9ab3012abfed0516b431e05b05b610055103838c
[gnulib.git] / ChangeLog
1 2011-12-17  Jim Meyering  <meyering@redhat.com>
2
3         bootstrap: correct the recent buildreq change
4         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
5         had no effect.
6         * build-aux/bootstrap (buildreq): Bracket each search term with
7         "*...*", so that the shell "case" statement works as intended.
8         Add comments.
9
10 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
11
12         build: let bootstrap resort to wget when downloading .po files
13         * build-aux/bootstrap (download_po_files): Fallback to wget when
14         downloading the .po files via rsync fails.  This is necessary to
15         bootstrap from behind a strict firewall.
16
17 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
18
19         stdint: don't assume C++11 when compiling with g++
20         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
21         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
22         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
23         work also in C++ before C++11, as that improperly inhibits
24         generating a substitute stdint.h for that case.
25
26 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
27
28         alloca: protect comment from gnulib-tool
29         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
30         that gnulib-tool doesn't think it's a license, and munge it to
31         say "GCC version 3".
32
33 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
34
35         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
36         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
37         $(abs_top_builddir) instead of $(top_builddir).
38
39 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
40
41         strftime-tests: also test nanoseconds
42         * tests/test-strftime.c (T): Add a test of %N.
43
44 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
45
46         inttypes, stdint: add C++11 support
47         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
48         when including inttypes.h and stdint.h.  Support this change to
49         the standard.
50         * doc/posix-headers/inttypes.texi (inttypes.h):
51         * doc/posix-headers/stdint.texi (stdint.h): Document this.
52         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
53         Define if not defined already, for the benefit of pre-C++11 hosts.
54         Define the standard format macros (e.g., PRId8) always.
55         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
56         Likewise, if __cpluspus.  Define the standard constant and limit
57         macros (e.g., INT8_C, INT8_MAX) always.
58         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
59         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
60         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
61         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
62         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
63         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
64         Likewise.
65
66 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
67
68         nonblocking tests: Fix test failure on Linux/PPC.
69         Suggested by Prerna Saxena in
70         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
71         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
72         Set to 1100000.
73
74 2011-12-12  Jim Meyering  <meyering@redhat.com>
75
76         argmatch: don't hard-code `' when listing valid option arguments
77         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
78         use the quote function to add quotes.  Use fputs rather than
79         fprintf for the format string with no format directive.
80
81 2011-12-07  Eric Blake  <eblake@redhat.com>
82
83         bootstrap: detect tools required by gnulib-tool
84         * build-aux/bootstrap (buildreq): Provide minimum implicit
85         dependencies.
86         * DEPENDENCIES: Mention patch as a prereq.
87
88 2011-12-04  Bruno Haible  <bruno@clisp.org>
89
90         sethostname: Port to Windows platforms.
91         * lib/sethostname.c: Provide an alternate implementation for Windows
92         platforms.
93         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
94         (main): Skip the test if sethostname() fails with EPERM. On Windows
95         platforms, don't check the result of gethostname().
96
97 2011-12-04  Bruno Haible  <bruno@clisp.org>
98             Jim Meyering  <meyering@redhat.com>
99
100         tests: Avoid spurious error message on platforms without mktemp program.
101         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
102
103 2011-12-04  Bruno Haible  <bruno@clisp.org>
104
105         sethostname: Fix documentation.
106         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
107         "not fixed" section.
108
109 2011-12-03  Bruno Haible  <bruno@clisp.org>
110
111         gnulib-tool: Verify that the License field is present and non-empty.
112         * gnulib-tool (func_get_license_raw): New function, extracted from
113         func_get_license.
114         (func_get_license): Use it. Warn if the module is not a test module and
115         has no license.
116         Suggested by Jim Meyering.
117
118 2011-12-03  Bruno Haible  <bruno@clisp.org>
119
120         sethostname tests: Fix link error on mingw.
121         * tests/test-sethostname1.c: New file, extracted from
122         tests/test-sethostname.c.
123         * tests/test-sethostname2.c: New file, extracted from
124         tests/test-sethostname.c.
125         * tests/test-sethostname.c: Remove file.
126         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
127         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
128         (Depends-on): Add gethostname.
129         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
130         Link the latter with $(GETHOSTNAME_LIB).
131
132         sethostname tests: Fix compilation error on mingw.
133         * tests/test-sethostname.c: Don't include <sys/types.h>.
134         (geteuid): Use a dummy value without uid_t.
135         * modules/sethostname-tests (Depends-on): Remove sys_types.
136
137         sethostname tests: Avoid a gcc warning.
138         * tests/test-sethostname.c (main): Remove an unused variable.
139
140         Tweak last commit.
141         * modules/sethostname-tests (Files): Sort by decreasing importance.
142         (configure.ac): Check for geteuid.
143         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
144         the test when there's nothing to test. Drop an unnecessary cast.
145         Improve an error message. Verify that the final sethostname() call
146         succeeds.
147
148 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
149
150         Add a test suite for the sethostname module.
151         * modules/sethostname-tests: New file.  A test program
152         for the sethostname module.
153         * tests/test-sethostname.c: Likewise.
154
155 2011-12-03  Bruno Haible  <bruno@clisp.org>
156
157         Tweak last commit.
158         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
159         Fix preprocessor directives indentation. Fix typos.
160         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
161         * modules/unistd (Makefile): Likewise.
162
163 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
164
165         Integrate the sethostname module into unistd.
166         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
167         into the unistd.h header.
168         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
169         preprocessor directives.
170         * modules/unistd: Setup the Makefile substitutions of the
171         SETHOSTNAME preprocessor directives.
172
173 2011-12-03  Bruno Haible  <bruno@clisp.org>
174
175         Tweak last commit.
176         * lib/sethostname.c: Don't include <string.h>.
177         (sethostname): No need to copy the argument string to the stack. Don't
178         call clearerr. Preserve errno when fprintf failed.
179         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
180         Don't invoke AC_REPLACE_FUNCS.
181         * modules/sethostname (Link): Remove empty section.
182         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
183         failure problem.
184
185 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
186
187         New module 'sethostname'.
188         * lib/sethostname.c (sethostname): New file.  Provide sethostname
189         for systems that lack it.
190         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
191         sethostname declaration and function.
192         * modules/sethostname: New file.  Define the sethostname module.
193
194 2011-12-03  Bruno Haible  <bruno@clisp.org>
195
196         Tweak last commit.
197         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
198
199 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
200
201         Split the HOST_NAME_MAX detection into a separate m4 macro.
202         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
203         macro so it can be used by the pending sethostname module.
204
205 2011-12-03  Bruno Haible  <bruno@clisp.org>
206
207         Fix module descriptions syntax.
208         * modules/argv-iter (License): Fix syntax.
209         * modules/di-set (License): Likewise.
210         * modules/ino-map (License): Likewise.
211         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
212
213 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
214
215         stdalign: port to Clang 3.0
216         Problem reported by Simon Josefsson in
217         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
218         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
219         which has <stdalign.h> but which does not define alignof.
220         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
221
222 2011-12-01  Eric Blake  <eblake@redhat.com>
223
224         mktempd: silence dd usage
225         * build-aux/mktempd (rand_bytes): Silence dd.
226
227 2011-11-30  Simon Josefsson  <simon@josefsson.org>
228
229         manywarnings: Don't mention gcc version in docstring.
230         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
231         Jim Meyering <meyering@redhat.com>.
232
233 2011-11-30  Jim Meyering  <meyering@redhat.com>
234
235         hash: mark a few floating point constants with "f" suffix
236         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
237         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
238         floating point constants with "f", since they're destined to be
239         saved/used as "float"s.
240
241 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
242
243         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
244         * tests/test-float.c (test_long_double): Correct and re-enable the
245         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
246
247 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
248
249         Avoid subtracting two pointers that don't point into the same block.
250         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
251         only pointers into the same memory block are subtracted. We cannot
252         assume that sizeof (ptrdiff_t) == sizeof (void *).
253
254 2011-11-29  Eric Blake  <eblake@redhat.com>
255
256         maint.mk: add syntax check for use of compare from init.sh
257         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
258         moved here from coreutils.
259
260         manywarnings: drop -Wunsuffixed-float-constants
261         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
262         '1.0D', which is the only way to silence this warning for 'double'.
263
264 2011-11-29  Jim Meyering  <meyering@redhat.com>
265
266         hash: mark compute_bucket_size with the pure attribute
267         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
268
269         quotearg, propername: correct pragma guard expression
270         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
271         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
272
273 2011-11-28  Jim Meyering  <meyering@redhat.com>
274
275         propername: do not mark proper_name with the const attribute
276         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
277         since it examines data pointed to by its parameter.
278         * lib/propername.c (proper_name): Instead, add a pragma to suppress
279         the suggestion from -Wsuggest-attribute=const.
280
281         propername: mark one more function as const
282         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
283
284 2011-11-27  Jim Meyering  <meyering@redhat.com>
285
286         mark functions with const and pure attributes
287
288         Mark functions per suggestions from gcc-4.6 when using these options:
289         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
290         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
291         Follow these guidelines: when possible, apply the attribute to
292         an extern declaration, not to its definition.  Apply it to the
293         definition only when the definition is static.
294         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
295         * lib/argv-iter.h (argv_iter_n_args): Likewise.
296         * lib/base64.h (isbase64): Likewise.
297         * lib/basename-lgpl.c (last_component, base_len): Likewise.
298         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
299         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
300         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
301         (c_tolower, c_toupper): Likewise.
302         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
303         * lib/chdir-long.c (find_non_slash): Likewise.
304         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
305         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
306         * lib/file-type.h (file_type): Likewise.
307         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
308         * lib/filevercmp.c (verrevcmp): Likewise.
309         * lib/freadahead.h (freadahead): Likewise.
310         * lib/fts.c (fts_maxarglen): Likewise.
311         * lib/hash-pjw.h (hash_pjw): Likewise.
312         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
313         * lib/hash.c (is_prime, next_prime): Likewise.
314         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
315         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
316         (hash_table_ok, hash_get_first, hash_string): Likewise.
317         (compute_bucket_size): Likewise.
318         * lib/i-ring.h (i_ring_empty): Likewise.
319         * lib/isnan.c (isnanl): Likewise.
320         * lib/math.h (isnanl, rpl_isnanl): Likewise.
321         * lib/memcasecmp.h (memcasecmp): Likewise.
322         * lib/memchr2.h (memchr2): Likewise.
323         * lib/memcmp2.h (memcmp2): Likewise.
324         * lib/parse-datetime.y (lookup_zone): Likewise.
325         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
326         [!WINDOWS_SOCKETS]: Likewise.
327         * lib/strnlen1.h (strnlen1): Likewise.
328         * lib/uniwidth.in.h (uc_width): Likewise.
329         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
330         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
331         (quoting_options_from_style): Add a comment.
332         * lib/propername.h (proper_name): Add a comment.
333
334 2011-11-27  Bruno Haible  <bruno@clisp.org>
335
336         Remove unused macros from !_LIBC code in glibc-borrowed files.
337         * lib/fnmatch.c (STRCOLL): Remove macro.
338         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
339         * lib/glob.c (__stat, __readdir64): Remove macros.
340         * lib/tempname.c (__open64, __xstat64): Remove macros.
341         Suggested by Paul Eggert.
342
343 2011-11-27  Bruno Haible  <bruno@clisp.org>
344
345         getcwd: Fix link error on MSVC 9.
346         * modules/getcwd (Depends-on): Add readdir, rewinddir.
347
348 2011-11-27  Bruno Haible  <bruno@clisp.org>
349
350         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
351         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
352         HAVE_OPENDIR is 0.
353         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
354         HAVE_CLOSEDIR is 0.
355         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
356         is 0.
357         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
358
359 2011-11-27  Bruno Haible  <bruno@clisp.org>
360
361         getcwd: Fix bug from 2011-08-17.
362         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
363         platforms that need it.
364         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
365         code of 4 to be a failure, not a success. This ensures that
366         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
367
368 2011-11-27  Bruno Haible  <bruno@clisp.org>
369
370         binary-io tests: Avoid test failure on mingw when libtool is used.
371         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
372         Don't verify the size of t-bin-out1.tmp here.
373         * tests/test-binary-io.sh: Verify it here.
374         Reported by Simon Josefsson.
375
376 2011-11-26  Bruno Haible  <bruno@clisp.org>
377
378         Fix conflict between two instantiations of module 'unistd'.
379         * gnulib-tool (func_emit_autoconf_snippet): Substitute
380         ${include_guard_prefix} also in the autoconf snippet.
381         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
382         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
383         GNULIB_UNISTD_H_GETOPT.
384         * modules/getopt-posix (configure.ac): Set the
385         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
386         * modules/getopt-gnu (configure.ac): Likewise.
387         * modules/unistd (Makefile.am): Change the substitution value of
388         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
389         Reported by Simon Josefsson.
390
391 2011-11-25  Bruno Haible  <bruno@clisp.org>
392
393         pagealign_alloc: Doc and comments.
394         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
395         module.
396         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
397
398 2011-11-25  Jim Meyering  <meyering@redhat.com>
399
400         test-update-copyright.sh: avoid false-positive failure
401         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
402         around false positive failure on Cygwin/Windows.  The latter was
403         matching erroneously-created files with names like
404         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
405
406 2011-11-25  Simon Josefsson  <simon@josefsson.org>
407
408         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
409         * m4/valgrind-tests.m4: Check that the parameters that will be
410         used works, not just a subset of them.  Reported by Bruno Haible
411         <bruno@clisp.org>.
412
413 2011-11-24  Jim Meyering  <meyering@redhat.com>
414
415         test-stdalign.c: comment out long double tests
416         * tests/test-stdalign.c: Don't try to reduce alignment of long double
417         variables.  That provokes errors like this from gcc-4.7.0 20111124:
418         error: '_Alignas' specifiers cannot reduce alignment of \
419         'static_longdouble_alignas'.
420
421 2011-11-22  Jim Meyering  <meyering@redhat.com>
422
423         init.sh: make "compare /dev/null FILE" output more readable
424         * tests/init.sh (compare_): Document the preferred order of arguments.
425         (emit_diff_u_header_): New function.
426         (compare_dev_null_): Emit a simulated diff, rather than just the
427         contents of the unexpected file.  Suggestion from Bruno Haible.
428
429 2011-11-21  Jim Meyering  <meyering@redhat.com>
430             Eric Blake  <eblake@redhat.com>
431
432         init.sh: work around OSF/1 5.1's mishandling of /dev/null
433         * tests/init.sh: Make our compare function slightly more portable.
434         Reported by Bruno Haible in
435         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
436
437 2011-11-21  Simon Josefsson  <simon@josefsson.org>
438
439         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
440         before using it, in code that ends up in config.h.
441
442 2011-11-20  Bruno Haible  <bruno@clisp.org>
443
444         getcwd: Work around getcwd bug on AIX 5..7.
445         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
446         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
447         Use a different value for gl_cv_func_getcwd_path_max. Move the
448         definition of HAVE_PARTLY_WORKING_GETCWD from here...
449         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
450         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
451         Define HAVE_MINIMALLY_WORKING_GETCWD.
452         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
453         where it is not even minimally working, that is, on AIX.
454         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
455         m4/getcwd-path-max.m4.
456         (main): Update exit code computation.
457         * doc/posix-functions/getcwd.texi: Mention list of platforms where
458         getcwd does not handle long file names.
459
460 2011-11-20  Bruno Haible  <bruno@clisp.org>
461
462         getcwd: Fix bug from 2009-09-10.
463         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
464         like "no".
465
466 2011-11-20  Simon Josefsson  <simon@josefsson.org>
467
468         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
469
470 2011-11-20  Bruno Haible  <bruno@clisp.org>
471
472         fma tests: Avoid shadowing local variables.
473         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
474         expected.
475
476 2011-11-20  Bruno Haible  <bruno@clisp.org>
477
478         copysignf tests: Fix.
479         * tests/test-copysignf.c: Fix signature check.
480
481 2011-11-20  Bruno Haible  <bruno@clisp.org>
482
483         fma: Remove unused code.
484         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
485         unused macros.
486
487 2011-11-20  Bruno Haible  <bruno@clisp.org>
488
489         sethostname: Fix doc about AIX.
490         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
491         sethostname; it has it.
492
493         sethostname: Mention more portability problems.
494         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
495         problem.
496         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
497
498 2011-11-19  Bruno Haible  <bruno@clisp.org>
499
500         Depend on module fcntl-h when AT_FDCWD is used.
501         * modules/utimens (Depends-on): Add fcntl-h.
502         * modules/areadlinkat (Depends-on): Likewise.
503         * modules/areadlinkat-with-size (Depends-on): Likewise.
504         * modules/faccessat (Depends-on): Likewise.
505         * modules/fchmodat (Depends-on): Likewise.
506         * modules/fchownat (Depends-on): Likewise.
507         * modules/getcwd (Depends-on): Likewise.
508         * modules/mkdirat (Depends-on): Likewise.
509         * modules/mkfifoat (Depends-on): Likewise.
510         * modules/readlinkat (Depends-on): Likewise.
511         * modules/symlinkat (Depends-on): Likewise.
512         * modules/dup2-tests (Depends-on): Likewise.
513         * modules/fdutimensat-tests (Depends-on): Likewise.
514         * modules/futimens-tests (Depends-on): Likewise.
515
516 2011-11-19  Bruno Haible  <bruno@clisp.org>
517
518         euidaccess: Update a comment.
519         * lib/euidaccess.c: Update comment about platforms with faccessat.
520
521 2011-11-19  Bruno Haible  <bruno@clisp.org>
522
523         openat: Fix file list.
524         * modules/openat (Files): Remove lib/at-func.c.
525
526 2011-11-19  Bruno Haible  <bruno@clisp.org>
527
528         fstatat: Simplify.
529         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
530         gnulib should define rpl_fstatat, there is a
531         "#define fstatat rpl_fstatat" in <sys/stat.h>.
532
533 2011-11-19  Bruno Haible  <bruno@clisp.org>
534
535         Ensure 'inline' can be used in tests/test-utimens-common.h.
536         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
537         * modules/futimens-tests (configure.ac): Likewise.
538         * modules/utimens-tests (configure.ac): Likewise.
539         * modules/utimensat-tests (configure.ac): Likewise.
540
541 2011-11-19  Simon Josefsson  <simon@josefsson.org>
542
543         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
544         not hash_insert0.
545         (hash_insert_if_absent): Doc fix.
546
547 2011-11-19  Simon Josefsson  <simon@josefsson.org>
548
549         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
550
551 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
552
553         test-getcwd: disambiguate exit status
554         * tests/test-getcwd.c (test_long_name): Return 0..7.
555         (main): Exit with an unambiguous exit status.  The old
556         code yielded a mysterious mixture of two failure codes.
557
558         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
559         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
560         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
561         rpl_fstatat or fstatat.  This should fix the other problem
562         reported by Kai Habel in
563         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
564         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
565         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
566         and I reproduced it on a Solaris 8 host we still have in production.
567
568 2011-11-18  Jim Meyering  <meyering@redhat.com>
569
570         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
571         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
572         Add a sentence to the comment.
573         (hash_insert0): New function that simply calls hash_insert_if_absent.
574         * lib/hash.h (hash_insert_if_absent): Declare it.
575         (hash_insert0): Add deprecation attribute.
576         (_GL_ATTRIBUTE_DEPRECATED): Define.
577         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
578         not hash_insert0.
579         * NEWS: Mention it, even though it's not really an incompatible change.
580
581 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
582
583         openat: avoid compilation failure due to lack of <errno.h> inclusion
584         * lib/openat.c: Include <errno.h>.
585
586 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
587
588         * modules/getcwd (Depends-on): Add fdopendir.
589         This fixes one of the two problems reported by Kai Habel in
590         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
591
592         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
593         stdalign problem reported by Ian Beckwith in
594         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
595         * modules/crypto/gc-arcfour (Depends-on):
596         Depend conditionally on crypto/arcfour.
597         * modules/crypto/gc-arctwo (Depends-on):
598         Depend conditionally on crypto/arctwo.
599         * modules/crypto/gc-des (Depends-on):
600         Depend conditionally on crypto/des.
601         * modules/crypto/gc-hmac-md5 (Depends-on):
602         Depend conditionally on crypto/hmac-md5.
603         * modules/crypto/gc-hmac-sha1 (Depends-on):
604         Depend conditionally on crypto/hmac-sha1.
605         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
606         * modules/crypto/gc-md4 (Depends-on):
607         Depend conditionally on crypto/md4.
608         * modules/crypto/gc-md5 (Depends-on):
609         Depend conditionally on crypto/md5.
610         * modules/crypto/gc-rijndael (Depends-on):
611         Depend conditionally on crypto/rijndael.
612         * modules/crypto/gc-sha1 (Depends-on):
613         Depend conditionally on crypto/sha1.
614         * modules/crypto/gc-arcfour:
615         * modules/crypto/gc-arctwo:
616         * modules/crypto/gc-des:
617         * modules/crypto/gc-hmac-md5:
618         * modules/crypto/gc-hmac-sha1:
619         * modules/crypto/gc-md2:
620         * modules/crypto/gc-md4:
621         * modules/crypto/gc-md5:
622         * modules/crypto/gc-rijndael:
623         * modules/crypto/gc-sha1:
624         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
625         now that the conditional dependencies do the work for us.
626
627 2011-11-17  Jim Meyering  <meyering@redhat.com>
628
629         tests: factor st_ctime-comparison out of two headers
630         * tests/test-utimens-common.h (ctime_compare): Define.
631         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
632         * tests/test-lutimens.h (test_lutimens): Likewise.
633         * tests/test-utimens.h (test_utimens): Likewise.
634
635         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
636         Invoke the test program via an init.sh-using wrapper.
637         * tests/test-getcwd.sh: New file.
638         * modules/getcwd-tests (Files): Add it.
639         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
640
641 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
642
643         gitlog-to-changelog: support multi-author commits.
644         The FSF cares about keeping track of all authors of patches to its
645         projects, but Git doesn't provide obvious support for multi-author
646         changesets. Consensus seems to be forming around the use of extra
647         Signed-off-by inspired lines in the log message formatted as
648         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
649         multi-author commits between version control systems.
650         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
651         log message and output in standard ChangeLog multi-author format.
652         Reported by Peter Rosin <peda@lysator.liu.se>
653
654 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
655             Bruno Haible  <bruno@clisp.org>
656
657         Fix some modules' file list.
658         * modules/fstatat (Files): Add m4/lstat.m4.
659         * modules/openat (Files): Likewise.
660         * modules/unlinkat (Files): Likewise.
661
662 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
663
664         maint.mk: fix tight-scope.mk generation in VPATH builds.
665         * top/maint.mk (tight-scope.mk): Make sure to prefix file
666         reference with $(srcdir) so that the file is found correctly even
667         when running `make syntax-check' in a VPATH build.
668
669 2011-11-13  Bruno Haible  <bruno@clisp.org>
670             Jim Meyering  <meyering@redhat.com>
671
672         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
673         * tests/init.sh (compare): Remove "No differences encountered" or
674         synonymous output from the 'diff' program.
675
676 2011-11-13  Bruno Haible  <bruno@clisp.org>
677
678         Makefile: Tweak indentation.
679         * Makefile: Use tab as first character in every line that contains rule
680         commands.
681
682 2011-11-13  Bruno Haible  <bruno@clisp.org>
683
684         Syntax check for copyright statements.
685         * check-copyright: New file.
686         * Makefile (sc_check_copyright): New rule.
687
688 2011-11-13  Simon Josefsson  <simon@josefsson.org>
689
690         * build-aux/git-version-gen: Add --prefix to configure the tag
691         match string.
692
693 2011-11-13  Simon Josefsson  <simon@josefsson.org>
694
695         * build-aux/git-version-gen: Add --help and --version.
696
697 2011-11-12  Jim Meyering  <meyering@redhat.com>
698
699         revamp the other test-exclude?.sh scripts to use init.sh, too
700         * tests/test-exclude1.sh: Use init.sh.
701         * tests/test-exclude2.sh: Likewise.
702         * tests/test-exclude3.sh: Likewise.
703         * tests/test-exclude4.sh: Likewise.
704         * tests/test-exclude5.sh: Likewise.
705         * tests/test-exclude6.sh: Likewise.
706         * tests/test-exclude7.sh: Likewise.
707         * tests/test-exclude8.sh: Likewise.
708         * modules/exclude-tests (Files): List init.sh.
709
710         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
711         These shell scripts ignored failure of the binary test-exclude,
712         so making the latter return 77 didn't cause them to be skipped.
713         * tests/test-exclude5.sh: Exit with test-exclude's error status
714         when that program fails.  Revamp to use init.sh.
715         * tests/test-exclude2.sh: Likewise.
716
717         test-exclude: fix a typo
718         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
719
720 2011-11-11  Bruno Haible  <bruno@clisp.org>
721
722         obstack: Fix compilation error on MSVC 9.
723         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
724
725 2011-11-11  Jim Meyering  <meyering@redhat.com>
726
727         test-exclude: skip tests rather than failing on deficient systems
728         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
729         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
730         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
731         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
732
733 2011-11-10  Bruno Haible  <bruno@clisp.org>
734
735         ptsname_r test: Avoid gcc warning on glibc systems.
736         * tests/test-ptsname_r.c (null_ptr): New function.
737         (test_errors): Use it.
738
739 2011-11-10  Bruno Haible  <bruno@clisp.org>
740
741         ptsname_r: Avoid compilation error on OSF/1 5.1.
742         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
743         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
744         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
745         function is not declared or incompatibly declared.
746         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
747         * modules/ptsname_r (Depends-on, configure.ac): Update.
748         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
749
750 2011-11-10  Bruno Haible  <bruno@clisp.org>
751
752         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
753         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
754         When cross-compiling, guess yes on all platforms except AIX.
755         Reported by Ludovic Courtès <ludo@gnu.org>.
756
757 2011-11-09  Bruno Haible  <bruno@clisp.org>
758
759         ptsname_r tests: Fix bugs.
760         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
761         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
762
763 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
764
765         fstatat: work with cross-compilation
766         Problem reported by Ludovic Courtès in
767         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
768         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
769         "cross-compiling" and assume the bug is present.  Replace
770         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
771         an inverted sense, to be more conservative about our assumptions.
772         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
773
774 2011-11-09  Bruno Haible  <bruno@clisp.org>
775
776         Improve MODULES.html output.
777         * modules/mkfifoat (Description): Use the word "function".
778         * modules/readlinkat (Description): Likewise.
779         * modules/symlinkat (Description): Likewise.
780
781 2011-11-09  Eric Blake  <eblake@redhat.com>
782
783         ptsname_r-tests: new test module
784         * modules/ptsname_r-tests: New module.
785         * tests/test-ptsname_r.c: New file.
786
787         ptsname_r: new module
788         * modules/ptsname_r: New module.
789         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
790         * lib/ptsname.c (__ptsname_r): Split...
791         * lib/ptsname_r.c: ...into new file.
792         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
793         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
794         * modules/stdlib (Makefile.am): Substitute witnesses.
795         * lib/stdlib.in.h (ptsname_r): Declare it.
796         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
797         * MODULES.html.sh (Misc): Likewise.
798         * modules/ptsname (Depends-on): Alter dependency.
799         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
800
801 2011-11-09  Jim Meyering  <meyering@redhat.com>
802
803         announce-gen: be more concise when there's only one URL+tarball
804         * build-aux/announce-gen (get_tool_versions): When you distribute
805         only one type of tarball, combine the first two "Here are..."
806         sections and make the key-checking grammar independent of
807         how many tarballs there are.
808
809 2011-11-09  Eric Blake  <eblake@redhat.com>
810
811         openpty: provide a stub on mingw
812         * lib/pty.in.h (includes): Provide forward declarations.
813         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
814
815         raise: fix mingw handling of SIGPIPE
816         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
817
818 2011-11-08  Bruno Haible  <bruno@clisp.org>
819
820         More conditional dependencies.
821         * modules/faccessat (Depends-on): Add conditions.
822         * modules/fchmodat (Depends-on): Likewise.
823         * modules/fchownat (Depends-on): Likewise.
824         * modules/fstatat (Depends-on): Likewise.
825         * modules/mkfifoat (Depends-on): Likewise.
826         * modules/readlinkat (Depends-on): Likewise.
827         * modules/symlinkat (Depends-on): Likewise.
828         * modules/unlinkat (Depends-on): Likewise.
829         * modules/utimensat (Depends-on): Likewise.
830         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
831         * modules/linkat (Depends-on): Refine the conditions.
832         * modules/renameat (Depends-on): Likewise.
833
834 2011-11-08  Bruno Haible  <bruno@clisp.org>
835
836         faccessat: Move AC_LIBOBJ invocation to module description.
837         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
838         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
839         invocation from here...
840         * modules/faccessat (configure.ac): ... to here. Invoke
841         gl_PREREQ_FACCESSAT.
842
843 2011-11-08  Bruno Haible  <bruno@clisp.org>
844
845         faccessat: Simplify autoconf macro.
846         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
847         gl_FUNC_EUIDACCESS.
848
849 2011-11-08  Bruno Haible  <bruno@clisp.org>
850
851         renameat: Fix dependencies.
852         * modules/renameat (Depends-on): Add stdbool.
853
854 2011-11-08  Bruno Haible  <bruno@clisp.org>
855
856         mkfifoat: Fix module description.
857         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
858         not gl_UNISTD_MODULE_INDICATOR.
859
860 2011-11-08  Bruno Haible  <bruno@clisp.org>
861
862         fstatat: Remove unused dependency.
863         * modules/fstatat (Depends-on): Remove fstat.
864
865 2011-11-08  Simon Josefsson  <simon@josefsson.org>
866
867         GNUmakefile: behave when Makefile is missing.
868         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
869
870 2011-11-08  Bruno Haible  <bruno@clisp.org>
871
872         openat: Conditionalize dependencies.
873         * lib/openat.c: Reduce the scope of some #includes.
874         * modules/openat (Depends-on): Add conditions.
875
876 2011-11-07  Jim Meyering  <meyering@redhat.com>
877
878         maint.mk: extract GPG key ID without using a temporary file
879         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
880         without using a temporary file.  Based on a suggestion from Werner Koch
881         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
882
883 2011-11-07  Eric Blake  <eblake@redhat.com>
884
885         grantpt: fix typo
886         * lib/stdlib.in.h (grantpt): Check correct function.
887
888         maint.mk: silence new syntax check
889         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
890
891 2011-11-06  Bruno Haible  <bruno@clisp.org>
892
893         Doc about floating-point and math API.
894         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
895         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
896
897 2011-11-06  Bruno Haible  <bruno@clisp.org>
898
899         stdalign tests: Skip the test when compiled by Sun C.
900         * tests/test-stdalign.c (main): Skip the test on Sun C.
901
902 2011-11-06  Bruno Haible  <bruno@clisp.org>
903
904         ansi-c++-opt: Complete the 2011-06-05 change.
905         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
906         does not support namespaces, set the variable to "no", not to ":".
907
908 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
909
910         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
911
912 2011-11-06  Bruno Haible  <bruno@clisp.org>
913
914         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
915         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
916         (minus_zerol) [HP-UX]: New macro.
917         (unary_minus) [HP-UX]: New function.
918         (copysignl) [HP-UX]: Use unary_minus function.
919
920 2011-11-06  Bruno Haible  <bruno@clisp.org>
921
922         ldexp, ldexpf, ldexpl: Enhance tests.
923         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
924         and tests/test-ldexpl.c.
925         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
926         LDEXP, MIN_EXP, MAX_EXP): New macros.
927         Include test-ldexp.h.
928         (main): Just call test_function.
929         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
930         infinity.h, nan.h.
931         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
932         MAX_EXP): New macros.
933         Include test-ldexp.h.
934         (x, y): Remove variables.
935         (main): Just call test_function.
936         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
937         infinity.h, nan.h.
938         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
939         MAX_EXP): New macros.
940         Include test-ldexp.h.
941         (x, y): Remove variables.
942         (main): Just call test_function.
943         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
944         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
945         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
946         (Depends-on): Add isnand-nolibm, signbit, float.
947         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
948         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
949         (Depends-on): Add isnanf-nolibm, signbit, float.
950
951 2011-11-06  Bruno Haible  <bruno@clisp.org>
952
953         math tests: Cosmetics.
954         * tests/test-math-c++.cc: Reorder declarations.
955
956 2011-11-05  Bruno Haible  <bruno@clisp.org>
957
958         fma*: Simplify test.
959         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
960         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
961
962         Tests for module 'fmal'.
963         * modules/fmal-tests: New file.
964         * tests/test-fmal1.c: New file.
965         * tests/test-fmal2.c: New file.
966
967         New module 'fmal'.
968         * lib/math.in.h (fmal): New declaration.
969         * lib/fmal.c: New file.
970         * m4/fmal.m4: New file.
971         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
972         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
973         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
974         REPLACE_FMAL.
975         * modules/fmal: New file.
976         * doc/posix-functions/fmal.texi: Mention the new module and the various
977         bugs.
978
979         Tests for module 'fmaf'.
980         * modules/fmaf-tests: New file.
981         * tests/test-fmaf1.c: New file.
982         * tests/test-fmaf2.c: New file.
983
984         New module 'fmaf'.
985         * lib/math.in.h (fmaf): New declaration.
986         * lib/fmaf.c: New file.
987         * m4/fmaf.m4: New file.
988         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
989         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
990         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
991         REPLACE_FMAF.
992         * modules/fmaf: New file.
993         * doc/posix-functions/fmaf.texi: Mention the new module and the various
994         bugs.
995
996         Tests for module 'fma'.
997         * modules/fma-tests: New file.
998         * tests/test-fma1.c: New file.
999         * tests/test-fma1.h: New file.
1000         * tests/test-fma2.c: New file.
1001         * tests/test-fma2.h: New file.
1002
1003         New module 'fma'.
1004         * lib/math.in.h (fma): New declaration.
1005         * lib/fma.c: New file.
1006         * m4/fma.m4: New file.
1007         * m4/fegetround.m4: New file.
1008         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
1009         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
1010         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
1011         REPLACE_FMA.
1012         * modules/fma: New file.
1013         * doc/posix-functions/fma.texi: Mention the new module and the various
1014         bugs.
1015
1016         Extend gl_MATHFUNC.
1017         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
1018         Support 'void' as argument type.
1019         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
1020
1021 2011-11-05  Jim Meyering  <meyering@redhat.com>
1022
1023         maint.mk: also prohibit inclusion of dirent.h without use
1024         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
1025
1026 2011-11-05  Bruno Haible  <bruno@clisp.org>
1027
1028         ldexpl tests: Avoid test failure on MSVC 9.
1029         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
1030         value. Needed in order to enforce the conversion from a value greater
1031         than LDBL_MAX to Infinity.
1032
1033 2011-11-05  Bruno Haible  <bruno@clisp.org>
1034
1035         New modules 'at-internal', 'openat-h', split off from module 'openat'.
1036         * modules/at-internal: New file, extracted from modules/openat.
1037         * modules/openat-h: New file.
1038         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
1039         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
1040         * modules/openat (Description): Add reference to POSIX function.
1041         (Files): Remove lib/openat.h, lib/openat-proc.c.
1042         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
1043         intprops, unistd.
1044         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
1045         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
1046         gl_FCNTL_MODULE_INDICATOR.
1047         (Include): Remove unistd.h, openat.h.
1048         * modules/areadlinkat (Files): Add lib/at-func.c.
1049         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1050         openat-die, openat-h, save-cwd.
1051         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
1052         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1053         openat-die, openat-h, save-cwd, unistd.
1054         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
1055         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1056         openat-h, save-cwd. Remove fcntl-h, openat.
1057         * modules/fchmodat (Files): Remove lib/openat.h.
1058         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1059         openat, stdbool, unistd.
1060         * modules/fchownat (Files): Remove lib/openat.h.
1061         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1062         openat, stdbool, sys_stat.
1063         * modules/fdopendir (Files): Remove lib/openat-priv.h,
1064         lib/openat-proc.c.
1065         (Depends-on): Add at-internal.
1066         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
1067         * modules/fstatat (Files): Remove lib/openat.h.
1068         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
1069         stdbool, unistd.
1070         * modules/fts (Depends-on): Add openat-h.
1071         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
1072         openat.
1073         * modules/mkdirat (Files): Remove lib/openat.h.
1074         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1075         openat, stdbool, sys_stat.
1076         * modules/mkfifoat (Files): Add lib/at-func.c.
1077         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1078         openat-h, save-cwd. Remove fcntl-h, openat.
1079         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
1080         * modules/readlinkat (Files): Add lib/at-func.c.
1081         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1082         openat-h, save-cwd. Remove fcntl-h, openat.
1083         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
1084         openat.
1085         * modules/selinux-at (Files): Add lib/at-func.c.
1086         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1087         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
1088         * modules/symlinkat (Files): Add lib/at-func.c.
1089         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1090         openat-h, save-cwd. Remove fcntl-h, openat.
1091         * modules/unlinkat (Files): Remove lib/openat.h.
1092         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
1093         stdbool.
1094         * modules/utimensat (Files): Add lib/at-func.c.
1095         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
1096         openat-die, openat-h, save-cwd.
1097         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
1098         * modules/fdutimensat-tests (Depends-on): Add openat.
1099         * modules/fstatat-tests (Depends-on): Add openat-h.
1100         * modules/readlinkat-tests (Depends-on): Add openat.
1101         * modules/symlinkat-tests (Depends-on): Add openat.
1102
1103 2011-11-05  Bruno Haible  <bruno@clisp.org>
1104
1105         openat: Include <stdbool.h>.
1106         * lib/openat.c: Include <stdbool.h>.
1107
1108 2011-11-04  Bruno Haible  <bruno@clisp.org>
1109
1110         fchownat, renameat, unlinkat: Fix dependencies.
1111         * modules/fchownat (Depends-on): Add fstatat.
1112         * modules/renameat (Depends-on): Likewise.
1113         * modules/unlinkat (Depends-on): Likewise.
1114
1115 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
1116
1117         openat: remove direct dependency on dirent
1118         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
1119         and hasn't been needed ever since fdopendir was split into its own
1120         module on 2009-08-31.
1121         * modules/openat (Depends-on): Remove dirent.
1122
1123 2011-11-04  Bruno Haible  <bruno@clisp.org>
1124
1125         renameat: Optimize code size.
1126         * modules/renameat (configure.ac): Don't compile at-func2.c if
1127         REPLACE_RENAMEAT is 1.
1128
1129 2011-11-04  Bruno Haible  <bruno@clisp.org>
1130
1131         openat tests: Fix file list.
1132         * modules/openat-tests (Files): Add tests/test-open.h.
1133
1134 2011-11-04  Bruno Haible  <bruno@clisp.org>
1135
1136         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
1137         * modules/fchmodat (Depends-on): Add openat-die.
1138         * modules/fchownat (Depends-on): Likewise.
1139         * modules/linkat (Depends-on): Likewise.
1140         * modules/renameat (Depends-on): Likewise.
1141         * modules/openat (Depends-on): Add dirent.
1142
1143 2011-11-04  Jim Meyering  <meyering@redhat.com>
1144
1145         at-func*.c: fix comments
1146         * lib/at-func2.c: Correct/improve first-line comment.
1147         * lib/at-func.c: Correct grammar in first-line comment.
1148
1149 2011-11-04  Bruno Haible  <bruno@clisp.org>
1150
1151         New module 'mkdirat', split off from module 'openat'.
1152         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
1153         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
1154         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
1155         * modules/mkdirat: New file, extracted from modules/openat.
1156         * modules/openat (Files): Remove lib/mkdirat.c.
1157         (Depends-on): Remove mkdir.
1158         (configure.ac): Remove AC_LIBOBJ of mkdirat.
1159         (Include): Remove <sys/stat.h>.
1160         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
1161         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
1162         tests/test-mkdir.h.
1163         (Depends-on): Remove ignore-value.
1164         (Makefile.am): Remove rules for test-mkdirat.
1165         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
1166         of module 'openat'.
1167         * NEWS: Mention the change.
1168
1169 2011-11-04  Bruno Haible  <bruno@clisp.org>
1170
1171         closedir: Avoid warning on mingw.
1172         * lib/closedir.c: Include <unistd.h>.
1173
1174 2011-11-04  Bruno Haible  <bruno@clisp.org>
1175
1176         New module 'fstatat', split off from module 'openat'.
1177         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
1178         defined.
1179         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
1180         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
1181         gl_FUNC_FSTATAT.
1182         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
1183         * modules/fstatat: New file, extracted from modules/openat.
1184         * modules/openat (Files): Remove lib/fstatat.c.
1185         (Depends-on): Remove lstat.
1186         (configure.ac): Remove AC_LIBOBJ of fstatat.
1187         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
1188         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
1189         tests/test-lstat.h, tests/test-stat.h.
1190         (Depends-on): Remove getcwd-lgpl.
1191         (Makefile.am): Remove rules for test-fstatat.
1192         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
1193         of module 'openat'.
1194         * NEWS: Mention the change.
1195         * modules/getcwd (Depends-on): Add fstatat.
1196         * modules/linkat (Depends-on): Likewise.
1197         * modules/mkfifoat-tests (Depends-on): Likewise.
1198         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
1199
1200 2011-11-03  Bruno Haible  <bruno@clisp.org>
1201
1202         New module 'unlinkat', split off from module 'openat'.
1203         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
1204         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
1205         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
1206         * modules/unlinkat: New file, extracted from modules/openat. Correct
1207         the dependency conditions.
1208         * modules/openat (Files): Remove lib/unlinkat.c.
1209         (Depends-on): Remove rmdir, unlink.
1210         (configure.ac): Remove AC_LIBOBJ of unlinkat.
1211         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
1212         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
1213         tests/test-rmdir.h, tests/test-unlink.h.
1214         (Depends-on): Remove unlinkdir.
1215         (Makefile.am): Remove rules for test-unlinkat.
1216         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
1217         of module 'openat'.
1218         * NEWS: Mention the change.
1219         * modules/linkat-tests (Depends-on): Add unlinkat.
1220         * modules/mkfifoat-tests (Depends-on): Likewise.
1221         * modules/readlinkat-tests (Depends-on): Likewise.
1222
1223 2011-11-02  Bruno Haible  <bruno@clisp.org>
1224
1225         New module 'fchmodat', split off from module 'openat'.
1226         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
1227         defined.
1228         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
1229         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
1230         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
1231         * modules/fchmodat: New file, extracted from modules/openat.
1232         * modules/openat (Files): Remove lib/fchmodat.c.
1233         (configure.ac): Remove AC_LIBOBJ of fchmodat.
1234         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
1235         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
1236         (Makefile.am): Remove rules for test-fchmodat.
1237         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
1238         of module 'openat'.
1239         * NEWS: Mention the change.
1240
1241 2011-11-02  Jim Meyering  <meyering@redhat.com>
1242
1243         putenv: indent #definition of "environ" to placate cppi
1244         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
1245
1246         gitlog-to-changelog: provide a ChangeLog-repair mechanism
1247         Git logs are often treated as immutable, because editing them
1248         changes the SHA1 checksums of all descendants.  Thus, errors in
1249         git logs tend to stay there forever.  However, when we generate
1250         a ChangeLog file -- typically for distribution -- from that git log,
1251         we can actually make corrections in the generated file.  The key
1252         lies in recording in machine-readable/applicable form the desired
1253         corrections.  See --help for description and an example.
1254         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
1255         (usage): Describe it; alphabetize option descriptions.
1256         (main): Honor the new option, carefully.
1257
1258 2011-11-01  Jim Meyering  <meyering@redhat.com>
1259
1260         gitlog-to-changelog: avoid an infloop
1261         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
1262         that ends up being empty.
1263
1264 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
1265
1266         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
1267         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
1268         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
1269         contains (possibly-quoted) backslashes.  This should avoid
1270         all-too-common shell bugs if COMPLICATED contains backslashes in
1271         the "wrong" places.  Reported by David Evans in
1272         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
1273         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
1274         because we want ASCII ranges.  Is there some reason we don't use
1275         the C locale everywhere in this script?
1276         (func_module, top level): Avoid unwanted pathname expansion when
1277         $repo_url_prefix or $repo_url_suffix_repl contain shell
1278         metacharacters like '?' and '*'.
1279
1280 2011-11-01  Bruno Haible  <bruno@clisp.org>
1281
1282         fchownat: Improve description.
1283         * modules/fchownat (Description): Add link to function.
1284
1285 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
1286
1287         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
1288         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
1289         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
1290         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
1291
1292 2011-11-01  Bruno Haible  <bruno@clisp.org>
1293
1294         alignof: Avoid collision with stdalign module.
1295         * lib/alignof.h (alignof): Remove macro.
1296         * NEWS: Mention the change.
1297         Reported by Paul Eggert.
1298
1299 2011-11-01  Bruno Haible  <bruno@clisp.org>
1300
1301         New module 'fchownat', split off from module 'openat'.
1302         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
1303         defined.
1304         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
1305         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
1306         invoke gl_FUNC_FCHOWNAT.
1307         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
1308         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
1309         * modules/fchownat: New file, extracted from modules/openat.
1310         * modules/openat (Files): Remove lib/fchownat.c.
1311         (Depends-on): Remove lchown.
1312         (configure.ac): Remove AC_LIBOBJ of fchownat.
1313         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
1314         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
1315         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
1316         (Depends-on): Remove mgetgroups, usleep, stat-time.
1317         (configure.ac): Remove test for getegid.
1318         (Makefile.am): Remove rules for test-fchownat.
1319         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
1320         of module 'openat'.
1321         * NEWS: Mention the change.
1322
1323 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
1324
1325         stdalign: port better to MSVC and to Sun C 5.11
1326         This fixes some of the problems reported by Bruno Haible in
1327         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
1328         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
1329         shortcomings of MSVC and of Sun C 5.11.
1330         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
1331         around __declspec arg.
1332         * modules/stdalign-tests (Files): Add tests/macros.h.
1333         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
1334         Include macros.h, for ASSERT.
1335         (DECLARE_ALIGNED): Remove.
1336         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
1337         to catch bug), and to 1 if not (simplifies the rest of the code).
1338         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
1339         (CHECK_AUTO): Remove.
1340         (CHECK_ALIGNED): Check only the alignment of the static vars,
1341         since auto var alignment isn't supported by Sun C 5.11.
1342         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
1343         ASSERT failures are easier to diagnose.
1344
1345 2011-10-31  Bruno Haible  <bruno@clisp.org>
1346
1347         doc about some IRIX 5.3 problems.
1348         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
1349         on IRIX 5.3.
1350         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
1351         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
1352         5.3.
1353         * doc/posix-functions/grantpt.texi: Likewise.
1354         * doc/posix-functions/unlockpt.texi: Likewise.
1355         * doc/posix-functions/lgamma.texi: Likewise.
1356         * doc/posix-functions/nextafter.texi: Likewise.
1357         * doc/posix-functions/remainder.texi: Likewise.
1358         * doc/posix-functions/select.texi: Mention misplaced declaration on
1359         IRIX 5.3.
1360         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1361
1362 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
1363
1364         gitlog-to-changelog: fix git-log invocation.
1365         git-log mishandles date strings before 1970-01-01 UTC, and there is
1366         no use to specify --since=1970-01-01 by default anyway.
1367         * build-aux/gitlog-to-changelog: By default, when no --since option
1368         was given, do not specify explicit --since option to git-log.
1369
1370 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
1371
1372         gitlog-to-changelog: new option --append-dot.
1373         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
1374         first non-blank line of each commit message terminated with a dot.
1375
1376 2011-10-30  Bruno Haible  <bruno@clisp.org>
1377
1378         ffsl, ffsll: Avoid compilation error due to 'restrict'.
1379         * lib/ffsl.h: Include <config.h>.
1380         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
1381
1382 2011-10-30  Jim Meyering  <meyering@redhat.com>
1383
1384         GNUmakefile: reenable "make syntax-check" for most projects
1385         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
1386         build-aux variable", "syntax-check" would do nothing but succeed with
1387         the "No version control files detected..." diagnostic (unless you
1388         happened to override _build-aux via cfg.mk).
1389         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
1390         to precede inclusion of maint.mk.  Otherwise, these variables would
1391         be used undefined in any project that does not override the default.
1392
1393 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
1394
1395         gitlog-to-changelog: treat a message with only blank lines as empty.
1396         * build-aux/gitlog-to-changelog: Move the code that removes leading and
1397         trailing blank lines before the code that issues a warning about an
1398         empty commit message.
1399
1400 2011-10-30  Jim Meyering  <meyering@redhat.com>
1401
1402         test-parse-datetime.c: avoid new DST-related false positive test failure
1403         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
1404         based on the time/date we'll convert, not the current time.
1405         Otherwise, the moment we cross a DST boundary like today's in
1406         Europe, (CEST to CET), that offset ends up being one hour off.
1407
1408 2011-10-27  Bruno Haible  <bruno@clisp.org>
1409
1410         fstat: Tweak documentation.
1411         * modules/fstat (Description): More precise description.
1412
1413 2011-10-27  Bruno Haible  <bruno@clisp.org>
1414
1415         Update documentation regarding 'largefile' module.
1416         * doc/posix-functions/fstat.texi: Tweak wording.
1417         * doc/posix-functions/opendir.texi: Mention that the module fixes the
1418         problems with huge directories and/or small ino_t types.
1419         * doc/posix-functions/readdir.texi: Likewise.
1420         * doc/posix-functions/rewinddir.texi: Likewise.
1421
1422 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
1423
1424         maint.mk: don't maintain a second build-aux variable.
1425         * maint.mk (build_aux): Removed.  The maintainer-makefile module
1426         depends on GNUmakefile, which already maintains a cfg.mk
1427         overridable $(_build-aux) for projects with a non-standard
1428         build-aux directory location, although without the $(srcdir)
1429         prefix.  Use that variable consistently instead of introducing a
1430         second one.  Adjust all call sites.
1431
1432 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
1433
1434         Add stdalign module and use it in other modules.
1435         This is based on a previous proposal by Bruno Haible
1436         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
1437
1438         stdalign: new module
1439         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
1440         * modules/stdalign: New files.
1441         * MODULES.html.sh (c1x_core_properties): Add stdalign.
1442         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
1443
1444         stdalign-tests: new module
1445         * modules/stdalign-tests, tests/test-stdalign.c: New files.
1446
1447         argp: use stdalign
1448         * lib/argp-parse.c: Include <stdalign.h>.
1449         (alignof): Remove.
1450         * modules/argp (Depends-on): Add stdalign.
1451
1452         crypto libraries: use stdalign
1453         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
1454         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
1455         Do not include <stdlib.h> twice, in md4.c.
1456         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
1457         because we are accessing a pointer's bit-pattern, not a size.
1458         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
1459         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
1460         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
1461         * modules/crypto/sha512: Likewise.
1462
1463         sys_socket: use stdalign, not alignof
1464         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
1465         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
1466
1467 2011-10-27  Bruno Haible  <bruno@clisp.org>
1468
1469         raise test: Avoid a test failure on Linux/MIPS.
1470         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
1471         because 99 is a valid signal on Linux/MIPS.
1472
1473 2011-10-27  Bruno Haible  <bruno@clisp.org>
1474
1475         nonblocking tests: Fix test failure on Linux/MIPS.
1476         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
1477         Set to 270000.
1478
1479 2011-10-27  Bruno Haible  <bruno@clisp.org>
1480
1481         utimensat: Work around problem on Linux/hppa.
1482         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
1483         values.
1484         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
1485
1486 2011-10-25  Jim Meyering  <meyering@redhat.com>
1487
1488         maint.mk: fix a bug in sc_prohibit_stddef_without_use
1489         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
1490         after symbols like NULL, size_t, etc.
1491         Reported by Alfred M. Szmidt.
1492
1493         maint.mk: exempt ENODATA from a syntax-check rule
1494         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
1495         from the sc_prohibit_always-defined_macros syntax-check rule.
1496         Add a comment.  See this for more details:
1497         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
1498
1499 2011-10-23  Jim Meyering  <meyering@redhat.com>
1500
1501         fts: close parent dir FD before returning from post-traversal fts_read
1502         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
1503         unlink A, even though an FD open on A remained.  This is suboptimal
1504         (holding a file descriptor open longer than needed), but otherwise not
1505         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
1506         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
1507         that represents a real problem: it causes the removal of A to fail
1508         with e.g., "rm: cannot remove `A': Device or resource busy"
1509
1510         fts visits each directory twice and keeps a cache (fts_fd_ring) of
1511         directory file descriptors.  After completing the final, FTS_DP,
1512         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
1513         cache, but then proceeded to add a new FD to it via the subsequent
1514         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
1515         final file descriptor would be closed only via fts_close's call to
1516         fd_ring_clear.  Now, it is usually closed earlier, via the final
1517         FTS_DP-returning fts_read call.
1518         * lib/fts.c (restore_initial_cwd): New function, converted from
1519         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
1520         Update callers.
1521         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
1522         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
1523
1524 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
1525             Bruno Haible  <bruno@clisp.org>
1526             Jim Meyering  <jim@meyering.net>
1527
1528         readme-release: improve safety of release prep instructions.
1529         * README-release: Don't git pull all branches when only master
1530         is needed for the release process.
1531         Run make maintainer-clean before changing trees and merging.
1532         Don't try to run ./configure right after git pull in case files
1533         that influence the bootstrap process have changed, move the
1534         ./configure step to after running ./bootstrap.
1535         Don't bootstrap "one last time"... it's the first time!
1536
1537 2011-10-22  Bruno Haible  <bruno@clisp.org>
1538
1539         errno, strerror-override: Support for MSVC 10.
1540         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
1541         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
1542         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
1543         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
1544         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
1545         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
1546         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
1547         Assign values compatible with MSVC 10.
1548         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
1549         New macros.
1550         (GNULIB_defined_EWINSOCK): New macro.
1551         * lib/strerror-override.c (strerror_override): Update accordingly.
1552         * lib/strerror-override.h: Likewise.
1553         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
1554         longer equal to the corresponding errno value.
1555         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1556
1557 2011-10-22  Bruno Haible  <bruno@clisp.org>
1558
1559         perror: Recognize when test program crashes.
1560         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
1561         strerror, set gl_cv_func_perror_works to no.
1562         Reported by Daniel Richard G. <skunk@iskunk.org>.
1563
1564         perror: Fix indentation.
1565         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
1566
1567 2011-10-22  Bruno Haible  <bruno@clisp.org>
1568
1569         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
1570         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
1571         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
1572         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
1573         functions, not as a macro.
1574         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
1575         macros.
1576         (isfinite, isinf, isnan, signbit): Check overloaded functions and
1577         absence of macro.
1578         Suggested by Eric Blake.
1579         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1580
1581 2011-10-21  Bruno Haible  <bruno@clisp.org>
1582
1583         relocatable-prog-wrapper: Don't leave object files behind.
1584         * build-aux/install-reloc: Re-synchronize list of .o files to be
1585         removed with list of compilation units.
1586
1587 2011-10-20  Bruno Haible  <bruno@clisp.org>
1588
1589         openpty, posix_openpt: Remove code duplication.
1590         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
1591         * lib/openpty.c: Include <stdlib.h>.
1592         (openpty): Use posix_openpt on all platforms except IRIX.
1593         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
1594
1595 2011-10-20  Bruno Haible  <bruno@clisp.org>
1596
1597         unlockpt: Detect invalid argument.
1598         * lib/unlockpt.c: Include <fcntl.h>.
1599         (unlockpt): Check whether fd is valid, using fcntl().
1600         * modules/unlockpt (Depends-on): Add fcntl-h.
1601
1602 2011-10-20  Bruno Haible  <bruno@clisp.org>
1603
1604         openpty: Avoid compilation error on AIX 6.1.
1605         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
1606
1607 2011-10-20  Bruno Haible  <bruno@clisp.org>
1608
1609         posix_openpt: Support for OpenBSD.
1610         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
1611         (posix_openpt) [OpenBSD]: New code.
1612         * lib/grantpt.c: Include <fcntl.h>.
1613         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
1614         * modules/grantpt (Depends-on): Add fcntl-h.
1615
1616 2011-10-20  Bruno Haible  <bruno@clisp.org>
1617
1618         posix_openpt test: Coding style.
1619         * tests/test-posix_openpt.c: Use GNU coding style.
1620
1621 2011-10-20  Bruno Haible  <bruno@clisp.org>
1622
1623         grantpt: Support --avoid=pt_chown.
1624         * modules/grantpt (Files): Add lib/pty-private.h.
1625
1626 2011-10-20  Bruno Haible  <bruno@clisp.org>
1627
1628         posix_openpt: Fix autoconf macro.
1629         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
1630         unneeded check for _getpty.
1631
1632 2011-10-20  Bruno Haible  <bruno@clisp.org>
1633
1634         openpty: Update comments.
1635         * lib/openpty.c: Add comments about Minix.
1636
1637 2011-10-19  Eric Blake  <eblake@redhat.com>
1638
1639         openpty: relax license
1640         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
1641
1642         pt_chown: use configmake to simplify build
1643         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
1644
1645         ptsname and others: relax license
1646         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
1647         * modules/unlockpt (License): Likewise.
1648         * modules/pt_chown (License): Likewise.
1649         * modules/ptsname (License): Likewise.
1650         * modules/ttyname_r (License): Likewise.
1651
1652 2011-10-19  Jim Meyering  <meyering@redhat.com>
1653
1654         posix_openpt: remove spurious #endif
1655         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
1656
1657 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
1658
1659         maint.mk: Respect $(build_aux) in web-manual rule.
1660         * top/maint.mk (web-manual): Find gen-announce script in user's
1661         $(build_aux) directory instead of hard-coding 'build-aux'.
1662
1663 2011-10-19  Bruno Haible  <bruno@clisp.org>
1664
1665         posix_openpt: Fix compilation error.
1666         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
1667         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
1668         Mention the openpty module as an alternative.
1669
1670 2011-10-19  Bruno Haible  <bruno@clisp.org>
1671
1672         Support for old NeXTstep 3.3 frexp().
1673         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
1674         execution time of the test to 5 seconds.
1675         Reported by Daniel Richard G. <skunk@iskunk.org>.
1676
1677 2011-10-19  Bruno Haible  <bruno@clisp.org>
1678
1679         Support for old NeXTstep 3.3 sed.
1680         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
1681         part, use /.../, not \|...|. Escape periods in the header file name.
1682         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
1683         Reported by Daniel Richard G. <skunk@iskunk.org>.
1684
1685 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1686
1687         Support for old NeXTstep 3.3 gcc.
1688         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
1689         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
1690         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
1691         * lib/spawn.in.h (_Restrict_arr_): Likewise.
1692         * lib/regex.h (_Restrict_arr_): Likewise.
1693         * lib/regex_internal.h (re_token_t): Likewise.
1694         * lib/regexec.c (check_node_accept_bytes): Likewise.
1695         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
1696
1697 2011-10-18  Eric Blake  <eblake@redhat.com>
1698
1699         posix_openpt: new module
1700         * modules/posix_openpt: New module.
1701         * m4/posix_openpt.m4: New file.
1702         * lib/posix_openpt.c: Likewise.
1703         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
1704         (gl_STDLIB_H_DEFAULTS): Set defaults.
1705         * modules/stdlib (Makefile.am): Substitute macros.
1706         * lib/stdlib.in.h (posix_openpt): Declare.
1707         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
1708         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
1709         * modules/posix_openpt-tests: New test module.
1710         * tests/test-posix_openpt.c: New test.
1711
1712 2011-10-15  Bruno Haible  <bruno@clisp.org>
1713
1714         xstrtoll: Fix compilation failure.
1715         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
1716         from lib/strtol.c.
1717         * doc/posix-headers/limits.texi: Mention missing numerical limits on
1718         some platforms.
1719         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1720
1721 2011-10-15  Bruno Haible  <bruno@clisp.org>
1722
1723         vasnprintf: Optimize bit search operation.
1724         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
1725         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
1726         gl_DOUBLE_EXPONENT_LOCATION.
1727         * modules/vasnprintf (Files): Add m4/exponentd.m4.
1728         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1729         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1730         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1731         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1732         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1733         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1734         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1735         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
1736
1737 2011-10-15  Bruno Haible  <bruno@clisp.org>
1738
1739         vasnprintf: Fix comments.
1740         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
1741
1742 2011-10-14  Bruno Haible  <bruno@clisp.org>
1743
1744         Tests for module 'integer_length_ll'.
1745         * modules/integer_length_ll-tests: New file.
1746         * tests/test-integer_length_ll.c: New file.
1747
1748         New module 'integer_length_ll'.
1749         * lib/integer_length_ll.c: New file.
1750         * modules/integer_length_ll: New file.
1751
1752 2011-10-14  Bruno Haible  <bruno@clisp.org>
1753
1754         Tests for module 'integer_length_l'.
1755         * modules/integer_length_l-tests: New file.
1756         * tests/test-integer_length_l.c: New file.
1757
1758         New module 'integer_length_l'.
1759         * lib/integer_length_l.c: New file.
1760         * modules/integer_length_l: New file.
1761
1762 2011-10-14  Bruno Haible  <bruno@clisp.org>
1763
1764         Tests for module 'integer_length'.
1765         * modules/integer_length-tests: New file.
1766         * tests/test-integer_length.c: New file.
1767
1768         New module 'integer_length'.
1769         * lib/integer_length.h: New file.
1770         * lib/integer_length.c: New file.
1771         * modules/integer_length: New file.
1772
1773 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1774
1775         popen: Fix dependency conditions.
1776         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
1777
1778 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1779
1780         perror: Fix autoconf test.
1781         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
1782         <stdlib.h> and <string.h>.
1783
1784 2011-10-14  Bruno Haible  <bruno@clisp.org>
1785
1786         ffsl: Optimize on 64-bit platforms.
1787         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
1788         unrolling.
1789
1790 2011-10-13  Bruno Haible  <bruno@clisp.org>
1791
1792         ffsl: Optimize on 32-bit platforms.
1793         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
1794         use ffs() without a loop.
1795
1796         ffsl, ffsll: Optimize for GCC.
1797         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
1798         * lib/ffsl.c (GCC_BUILTIN): New macro.
1799         * lib/ffsll.c (GCC_BUILTIN): Likewise.
1800
1801 2011-10-13  Bruno Haible  <bruno@clisp.org>
1802
1803         ffs, bcopy, memset: Support symbol renaming via config.h.
1804         * lib/ffs.c: Include <config.h>.
1805         * lib/bcopy.c: Likewise.
1806         * lib/memset.c: Likewise.
1807
1808 2011-10-10  Bruno Haible  <bruno@clisp.org>
1809
1810         atanl: Simplify for platforms where 'long double' == 'double'.
1811         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1812         alternative implementation.
1813         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1814         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1815         * modules/atanl (Depends-on): Add atan. Update conditions.
1816
1817 2011-10-10  Bruno Haible  <bruno@clisp.org>
1818
1819         acosl: Simplify for platforms where 'long double' == 'double'.
1820         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1821         alternative implementation.
1822         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1823         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1824         * modules/acosl (Depends-on): Add acos. Update conditions.
1825
1826 2011-10-10  Bruno Haible  <bruno@clisp.org>
1827
1828         asinl: Simplify for platforms where 'long double' == 'double'.
1829         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1830         alternative implementation.
1831         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1832         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1833         * modules/asinl (Depends-on): Add asin. Update conditions.
1834
1835 2011-10-10  Bruno Haible  <bruno@clisp.org>
1836
1837         tanl: Simplify for platforms where 'long double' == 'double'.
1838         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1839         implementation.
1840         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1841         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1842         * modules/tanl (Depends-on): Add tan. Update conditions.
1843         (configure.ac): Don't compile trigl.c if
1844         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1845
1846 2011-10-10  Bruno Haible  <bruno@clisp.org>
1847
1848         cosl: Simplify for platforms where 'long double' == 'double'.
1849         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1850         implementation.
1851         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1852         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1853         * modules/cosl (Depends-on): Add cos. Update conditions.
1854         (configure.ac): Don't compile sincosl.c and trigl.c if
1855         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1856
1857 2011-10-10  Bruno Haible  <bruno@clisp.org>
1858
1859         sinl: Simplify for platforms where 'long double' == 'double'.
1860         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1861         implementation.
1862         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1863         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1864         * modules/sinl (Depends-on): Add sin. Update conditions.
1865         (configure.ac): Don't compile sincosl.c and trigl.c if
1866         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1867
1868 2011-10-10  Bruno Haible  <bruno@clisp.org>
1869
1870         logl: Simplify for platforms where 'long double' == 'double'.
1871         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1872         implementation.
1873         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1874         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1875         * modules/logl (Depends-on): Add log. Update conditions.
1876
1877 2011-10-10  Bruno Haible  <bruno@clisp.org>
1878
1879         expl: Simplify for platforms where 'long double' == 'double'.
1880         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1881         implementation.
1882         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1883         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1884         * modules/expl (Depends-on): Add exp. Update conditions.
1885
1886 2011-10-10  Bruno Haible  <bruno@clisp.org>
1887
1888         sqrtl: Simplify for platforms where 'long double' == 'double'.
1889         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1890         alternative implementation.
1891         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1892         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1893         * modules/sqrtl (Depends-on): Update conditions.
1894
1895 2011-10-10  Bruno Haible  <bruno@clisp.org>
1896
1897         ldexpl: Simplify for platforms where 'long double' == 'double'.
1898         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1899         alternative implementation.
1900         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1901         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1902         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
1903
1904 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
1905
1906         ffsll: set correct witness
1907         * modules/ffsll (configure.ac): Fix typo.
1908
1909 2011-10-10  Bruno Haible  <bruno@clisp.org>
1910
1911         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
1912         * lib/printf-frexpl.c: Include <config.h>.
1913         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1914         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
1915         second time.
1916         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
1917         gl_LONG_DOUBLE_VS_DOUBLE.
1918         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
1919         conditions.
1920
1921 2011-10-10  Bruno Haible  <bruno@clisp.org>
1922
1923         frexpl: Simplify for platforms where 'long double' == 'double'.
1924         * lib/frexpl.c: Include <config.h>.
1925         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1926         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1927         time.
1928         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1929         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1930         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
1931         * modules/frexpl (Depends-on): Add frexp. Update conditions.
1932         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
1933         conditions.
1934
1935 2011-10-10  Jim Meyering  <meyering@redhat.com>
1936
1937         test-renameat: don't leave behind a temporary file
1938         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
1939           ERROR: files left in build directory after distclean:
1940           ./gltests/test-renameat.too
1941           make[1]: *** [distcleancheck] Error 1
1942         Reported by Tom G. Christensen.
1943
1944 2011-10-09  Bruno Haible  <bruno@clisp.org>
1945
1946         rint: Determine RINT_LIBM correctly on AIX 7.
1947         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
1948         directly, not only through a function pointer. Also accept an optional
1949         4th argument with extra code.
1950         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
1951         rintf() call by gcc when optimizing.
1952
1953         mathfunc.m4: Refactor.
1954         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
1955         m4 variable.
1956
1957 2011-10-09  Bruno Haible  <bruno@clisp.org>
1958
1959         rintl: Simplify for platforms where 'long double' == 'double'.
1960         * lib/rintl.c: Include <config.h>.
1961         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1962         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1963         time.
1964         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1965         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1966         * modules/rintl (Depends-on): Add rint. Update conditions.
1967
1968 2011-10-09  Bruno Haible  <bruno@clisp.org>
1969
1970         roundl: Simplify for platforms where 'long double' == 'double'.
1971         * lib/roundl.c: Include <config.h>.
1972         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1973         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1974         time.
1975         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1976         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1977         * modules/roundl (Depends-on): Add round. Update conditions.
1978
1979 2011-10-09  Bruno Haible  <bruno@clisp.org>
1980
1981         truncl: Simplify for platforms where 'long double' == 'double'.
1982         * lib/truncl.c: Include <config.h>.
1983         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1984         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1985         time.
1986         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1987         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1988         * modules/truncl (Depends-on): Add trunc. Update conditions.
1989
1990 2011-10-09  Bruno Haible  <bruno@clisp.org>
1991
1992         ceill: Simplify for platforms where 'long double' == 'double'.
1993         * lib/ceill.c: Include <config.h>.
1994         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1995         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1996         time.
1997         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1998         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1999         * modules/ceill (Depends-on): Add ceil. Update conditions.
2000
2001 2011-10-09  Bruno Haible  <bruno@clisp.org>
2002
2003         floorl: Simplify for platforms where 'long double' == 'double'.
2004         * lib/floorl.c: Include <config.h>.
2005         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2006         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2007         time.
2008         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2009         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2010         * modules/floorl (Depends-on): Add floor. Update conditions.
2011
2012 2011-10-09  Bruno Haible  <bruno@clisp.org>
2013
2014         rint: Fix ordering constraints.
2015         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
2016         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
2017         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
2018
2019 2011-10-09  Bruno Haible  <bruno@clisp.org>
2020
2021         copysignl: Simplify for platforms where 'long double' == 'double'.
2022         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2023         alternative.
2024         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2025         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2026         * modules/copysignl (Depends-on): Add copysign. Update conditions.
2027
2028 2011-10-09  Bruno Haible  <bruno@clisp.org>
2029
2030         Tests for module 'rintl'.
2031         * modules/rintl-tests: New file.
2032         * tests/test-rintl.c: New file.
2033
2034         New module 'rintl'.
2035         * lib/math.in.h (rintl): New declaration.
2036         * lib/rintl.c: New file.
2037         * m4/rintl.m4: New file.
2038         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
2039         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
2040         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
2041         * modules/rintl: New file.
2042         * tests/test-math-c++.cc: Check the declaration of rintl.
2043         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2044         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
2045         * doc/posix-functions/rintl.texi: Mention the new module.
2046
2047 2011-10-09  Bruno Haible  <bruno@clisp.org>
2048
2049         Tests for module 'rintf'.
2050         * modules/rintf-tests: New file.
2051         * tests/test-rintf.c: New file.
2052
2053         New module 'rintf'.
2054         * lib/math.in.h (rintf): New declaration.
2055         * lib/rintf.c: New file.
2056         * m4/rintf.m4: New file.
2057         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
2058         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
2059         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
2060         * modules/rintf: New file.
2061         * tests/test-math-c++.cc: Check the declaration of rintf.
2062         * doc/posix-functions/rintf.texi: Mention the new module.
2063
2064 2011-10-09  Bruno Haible  <bruno@clisp.org>
2065
2066         rint: Support for MSVC.
2067         * lib/math.in.h (rint): New declaration.
2068         * lib/rint.c: New file.
2069         * m4/rint.m4: New file.
2070         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
2071         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
2072         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
2073         * modules/rint (Description): Fix.
2074         (Files): Add lib/rint.c, m4/rint.m4.
2075         (Depends-on): Add math.
2076         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
2077         gl_MATH_MODULE_INDICATOR.
2078         * tests/test-math-c++.cc: Check the declaration of rint.
2079         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2080         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
2081         * doc/posix-functions/rint.texi: Mention the replacement provided by
2082         the module.
2083
2084         rint tests: More tests.
2085         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
2086         minus-zero.h, infinity.h, nan.h.
2087         (main): Skip the test if the current rounding mode is not standard. Add
2088         tests for negative numbers, minus zero, infinity, NaN.
2089         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
2090         tests/nan.h.
2091         (Depends-on): Add isnand-nolibm.
2092
2093 2011-10-09  Bruno Haible  <bruno@clisp.org>
2094
2095         Tests for module 'copysignl'.
2096         * modules/copysignl-tests: New file.
2097         * tests/test-copysignl.c: New file.
2098
2099         New module 'copysignl'.
2100         * lib/math.in.h (copysignl): New declaration.
2101         * lib/copysignl.c: New file.
2102         * m4/copysignl.m4: New file.
2103         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
2104         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
2105         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
2106         HAVE_COPYSIGNL.
2107         * modules/copysignl: New file.
2108         * tests/test-math-c++.cc: Check the declaration of copysignl.
2109         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2110         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
2111         * doc/posix-functions/copysignl.texi: Mention the new module.
2112
2113 2011-10-09  Bruno Haible  <bruno@clisp.org>
2114
2115         Tests for module 'copysignf'.
2116         * modules/copysignf-tests: New file.
2117         * tests/test-copysignf.c: New file.
2118
2119         New module 'copysignf'.
2120         * lib/math.in.h (copysignf): New declaration.
2121         * lib/copysignf.c: New file.
2122         * m4/copysignf.m4: New file.
2123         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
2124         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
2125         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
2126         HAVE_COPYSIGNF.
2127         * modules/copysignf: New file.
2128         * tests/test-math-c++.cc: Check the declaration of copysignf.
2129         * doc/posix-functions/copysignf.texi: Mention the new module.
2130
2131 2011-10-09  Bruno Haible  <bruno@clisp.org>
2132
2133         Ensure that HAVE_* variables are set to 1 before they are set to 0.
2134         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
2135         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
2136         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
2137         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
2138         gl_SIGNAL_H_DEFAULTS.
2139
2140 2011-10-09  Bruno Haible  <bruno@clisp.org>
2141
2142         poll: Make macro safer.
2143         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
2144         ac_cv_header_poll_h is not set.
2145
2146 2011-10-09  Bruno Haible  <bruno@clisp.org>
2147
2148         copysign: Provide replacement.
2149         * lib/math.in.h (copysign): New declaration.
2150         * lib/copysign.c: New file.
2151         * m4/copysign.m4: New file.
2152         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
2153         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
2154         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
2155         HAVE_COPYSIGN.
2156         * modules/copysign (Description): Clarify.
2157         (Files): Add lib/copysign.c, m4/copysign.m4.
2158         (Depends-on): Add math, signbit.
2159         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
2160         gl_MATH_MODULE_INDICATOR.
2161         * tests/test-math-c++.cc: Check the declaration of copysign.
2162         * doc/posix-functions/copysign.texi: Mention the effects of the module
2163         on Minix and MSVC.
2164
2165 2011-10-09  Bruno Haible  <bruno@clisp.org>
2166
2167         isinf: Ensure macro on AIX 5.1.
2168         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
2169         macro.
2170         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
2171
2172 2011-10-09  Bruno Haible  <bruno@clisp.org>
2173
2174         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
2175         * modules/snprintf-posix-tests (configure.ac): Require
2176         gl_LONG_DOUBLE_VS_DOUBLE.
2177         * modules/sprintf-posix-tests (configure.ac): Likewise.
2178         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
2179         * modules/vasprintf-posix-tests (configure.ac): Likewise.
2180         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
2181         * modules/vsprintf-posix-tests (configure.ac): Likewise.
2182         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
2183         tests on platforms where 'long double' is the same as 'double'.
2184         * tests/test-sprintf-posix.h (test_function): Likewise.
2185         * tests/test-vasnprintf-posix.c (test_function): Likewise.
2186         * tests/test-vasprintf-posix.c (test_function): Likewise.
2187
2188         *printf: Fix for platforms where 'long double' == 'double'.
2189         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
2190         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
2191         * modules/dprintf-posix (Files): Add m4/math_h.m4.
2192         * modules/fprintf-posix (Files): Likewise.
2193         * modules/obstack-printf-posix (Files): Likewise.
2194         * modules/snprintf-posix (Files): Likewise.
2195         * modules/sprintf-posix (Files): Likewise.
2196         * modules/vasnprintf (Files): Likewise.
2197         * modules/vasnprintf-posix (Files): Likewise.
2198         * modules/vasprintf-posix (Files): Likewise.
2199         * modules/vdprintf-posix (Files): Likewise.
2200         * modules/vfprintf-posix (Files): Likewise.
2201         * modules/vsnprintf-posix (Files): Likewise.
2202         * modules/vsprintf-posix (Files): Likewise.
2203         * modules/unistdio/u8-vasnprintf (Files): Likewise.
2204         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
2205         * modules/unistdio/u16-vasnprintf (Files): Likewise.
2206         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
2207         * modules/unistdio/u32-vasnprintf (Files): Likewise.
2208         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
2209         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
2210
2211         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
2212         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
2213         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2214         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
2215         'long double'.
2216         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
2217
2218         isinf: Fix for platforms where 'long double' == 'double'.
2219         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
2220         Don't blindly assume 80-bit 'long double'.
2221
2222         isfinite: Fix for platforms where 'long double' == 'double'.
2223         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
2224         Don't blindly assume 80-bit 'long double'.
2225
2226         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
2227         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
2228         * modules/isfinite-tests (configure.ac): Require
2229         gl_LONG_DOUBLE_VS_DOUBLE.
2230         * modules/isinf-tests (configure.ac): Likewise.
2231         * modules/isnan-tests (configure.ac): Likewise.
2232         * modules/isnanl-tests (configure.ac): Likewise.
2233         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
2234         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
2235         tests on platforms where 'long double' is the same as 'double'.
2236         * tests/test-isinf.c (test_isinfl): Likewise.
2237         * tests/test-isnan.c (test_long_double): Likewise.
2238         * tests/test-isnanl.h (main): Likewise.
2239
2240 2011-10-08  Bruno Haible  <bruno@clisp.org>
2241
2242         Tests for module 'tanhf'.
2243         * modules/tanhf-tests: New file.
2244         * tests/test-tanhf.c: New file.
2245
2246         New module 'tanhf'.
2247         * lib/math.in.h (tanhf): New declaration.
2248         * lib/tanhf.c: New file.
2249         * m4/tanhf.m4: New file.
2250         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
2251         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
2252         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
2253         * modules/tanhf: New file.
2254         * tests/test-math-c++.cc: Check the declaration of tanhf.
2255         * doc/posix-functions/tanhf.texi: Mention the new module.
2256
2257         tanh: Use a .m4 file.
2258         * m4/tanh.m4: New file.
2259         * modules/tanh (Files): Add it.
2260         (configure.ac): Just invoke gl_FUNC_TANH.
2261
2262 2011-10-08  Bruno Haible  <bruno@clisp.org>
2263
2264         Tests for module 'coshf'.
2265         * modules/coshf-tests: New file.
2266         * tests/test-coshf.c: New file.
2267
2268         New module 'coshf'.
2269         * lib/math.in.h (coshf): New declaration.
2270         * lib/coshf.c: New file.
2271         * m4/coshf.m4: New file.
2272         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
2273         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
2274         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
2275         * modules/coshf: New file.
2276         * tests/test-math-c++.cc: Check the declaration of coshf.
2277         * doc/posix-functions/coshf.texi: Mention the new module.
2278
2279         cosh: Use a .m4 file.
2280         * m4/cosh.m4: New file.
2281         * modules/cosh (Files): Add it.
2282         (configure.ac): Just invoke gl_FUNC_COSH.
2283
2284 2011-10-08  Bruno Haible  <bruno@clisp.org>
2285
2286         Tests for module 'sinhf'.
2287         * modules/sinhf-tests: New file.
2288         * tests/test-sinhf.c: New file.
2289
2290         New module 'sinhf'.
2291         * lib/math.in.h (sinhf): New declaration.
2292         * lib/sinhf.c: New file.
2293         * m4/sinhf.m4: New file.
2294         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
2295         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
2296         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
2297         * modules/sinhf: New file.
2298         * tests/test-math-c++.cc: Check the declaration of sinhf.
2299         * doc/posix-functions/sinhf.texi: Mention the new module.
2300
2301         sinh: Use a .m4 file.
2302         * m4/sinh.m4: New file.
2303         * modules/sinh (Files): Add it.
2304         (configure.ac): Just invoke gl_FUNC_SINH.
2305
2306 2011-10-08  Bruno Haible  <bruno@clisp.org>
2307
2308         Tests for module 'atan2f'.
2309         * modules/atan2f-tests: New file.
2310         * tests/test-atan2f.c: New file.
2311
2312         New module 'atan2f'.
2313         * lib/math.in.h (atan2f): New declaration.
2314         * lib/atan2f.c: New file.
2315         * m4/atan2f.m4: New file.
2316         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
2317         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
2318         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
2319         * modules/atan2f: New file.
2320         * tests/test-math-c++.cc: Check the declaration of atan2f.
2321         * doc/posix-functions/atan2f.texi: Mention the new module.
2322
2323         atan2: Use a .m4 file.
2324         * m4/atan2.m4: New file.
2325         * modules/atan2 (Files): Add it.
2326         (configure.ac): Just invoke gl_FUNC_ATAN2.
2327
2328 2011-10-08  Bruno Haible  <bruno@clisp.org>
2329
2330         Tests for module 'atanf'.
2331         * modules/atanf-tests: New file.
2332         * tests/test-atanf.c: New file.
2333
2334         New module 'atanf'.
2335         * lib/math.in.h (atanf): New declaration.
2336         * lib/atanf.c: New file.
2337         * m4/atanf.m4: New file.
2338         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
2339         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
2340         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
2341         * modules/atanf: New file.
2342         * tests/test-math-c++.cc: Check the declaration of atanf.
2343         * doc/posix-functions/atanf.texi: Mention the new module.
2344
2345         atan: Use a .m4 file.
2346         * m4/atan.m4: New file.
2347         * modules/atan (Files): Add it.
2348         (configure.ac): Just invoke gl_FUNC_ATAN.
2349
2350 2011-10-08  Bruno Haible  <bruno@clisp.org>
2351
2352         Tests for module 'acosf'.
2353         * modules/acosf-tests: New file.
2354         * tests/test-acosf.c: New file.
2355
2356         New module 'acosf'.
2357         * lib/math.in.h (acosf): New declaration.
2358         * lib/acosf.c: New file.
2359         * m4/acosf.m4: New file.
2360         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
2361         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
2362         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
2363         * modules/acosf: New file.
2364         * tests/test-math-c++.cc: Check the declaration of acosf.
2365         * doc/posix-functions/acosf.texi: Mention the new module.
2366
2367         acos: Use a .m4 file.
2368         * m4/acos.m4: New file.
2369         * modules/acos (Files): Add it.
2370         (configure.ac): Just invoke gl_FUNC_ACOS.
2371
2372 2011-10-08  Bruno Haible  <bruno@clisp.org>
2373
2374         Tests for module 'asinf'.
2375         * modules/asinf-tests: New file.
2376         * tests/test-asinf.c: New file.
2377
2378         New module 'asinf'.
2379         * lib/math.in.h (asinf): New declaration.
2380         * lib/asinf.c: New file.
2381         * m4/asinf.m4: New file.
2382         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
2383         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
2384         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
2385         * modules/asinf: New file.
2386         * tests/test-math-c++.cc: Check the declaration of asinf.
2387         * doc/posix-functions/asinf.texi: Mention the new module.
2388
2389         asin: Use a .m4 file.
2390         * m4/asin.m4: New file.
2391         * modules/asin (Files): Add it.
2392         (configure.ac): Just invoke gl_FUNC_ASIN.
2393
2394 2011-10-08  Bruno Haible  <bruno@clisp.org>
2395
2396         Tests for module 'tanf'.
2397         * modules/tanf-tests: New file.
2398         * tests/test-tanf.c: New file.
2399
2400         New module 'tanf'.
2401         * lib/math.in.h (tanf): New declaration.
2402         * lib/tanf.c: New file.
2403         * m4/tanf.m4: New file.
2404         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
2405         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
2406         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
2407         * modules/tanf: New file.
2408         * tests/test-math-c++.cc: Check the declaration of tanf.
2409         * doc/posix-functions/tanf.texi: Mention the new module.
2410
2411         tan: Use a .m4 file.
2412         * m4/tan.m4: New file.
2413         * modules/tan (Files): Add it.
2414         (configure.ac): Just invoke gl_FUNC_TAN.
2415
2416 2011-10-08  Bruno Haible  <bruno@clisp.org>
2417
2418         Tests for module 'cosf'.
2419         * modules/cosf-tests: New file.
2420         * tests/test-cosf.c: New file.
2421
2422         New module 'cosf'.
2423         * lib/math.in.h (cosf): New declaration.
2424         * lib/cosf.c: New file.
2425         * m4/cosf.m4: New file.
2426         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
2427         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
2428         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
2429         * modules/cosf: New file.
2430         * tests/test-math-c++.cc: Check the declaration of cosf.
2431         * doc/posix-functions/cosf.texi: Mention the new module.
2432
2433         cos: Use a .m4 file.
2434         * m4/cos.m4: New file.
2435         * modules/cos (Files): Add it.
2436         (configure.ac): Just invoke gl_FUNC_COS.
2437
2438 2011-10-08  Bruno Haible  <bruno@clisp.org>
2439
2440         Tests for module 'sinf'.
2441         * modules/sinf-tests: New file.
2442         * tests/test-sinf.c: New file.
2443
2444         New module 'sinf'.
2445         * lib/math.in.h (sinf): New declaration.
2446         * lib/sinf.c: New file.
2447         * m4/sinf.m4: New file.
2448         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
2449         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
2450         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
2451         * modules/sinf: New file.
2452         * tests/test-math-c++.cc: Check the declaration of sinf.
2453         * doc/posix-functions/sinf.texi: Mention the new module.
2454
2455         sin: Use a .m4 file.
2456         * m4/sin.m4: New file.
2457         * modules/sin (Files): Add it.
2458         (configure.ac): Just invoke gl_FUNC_SIN.
2459
2460 2011-10-08  Bruno Haible  <bruno@clisp.org>
2461
2462         Tests for module 'powf'.
2463         * modules/powf-tests: New file.
2464         * tests/test-powf.c: New file.
2465
2466         New module 'powf'.
2467         * lib/math.in.h (powf): New declaration.
2468         * lib/powf.c: New file.
2469         * m4/powf.m4: New file.
2470         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
2471         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
2472         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
2473         * modules/powf: New file.
2474         * tests/test-math-c++.cc: Check the declaration of powf.
2475         * doc/posix-functions/powf.texi: Mention the new module.
2476
2477         pow: Use a .m4 file.
2478         * m4/pow.m4: New file.
2479         * modules/pow (Files): Add it.
2480         (configure.ac): Just invoke gl_FUNC_POW.
2481
2482 2011-10-08  Bruno Haible  <bruno@clisp.org>
2483
2484         Tests for module 'log10f'.
2485         * modules/log10f-tests: New file.
2486         * tests/test-log10f.c: New file.
2487
2488         New module 'log10f'.
2489         * lib/math.in.h (log10f): New declaration.
2490         * lib/log10f.c: New file.
2491         * m4/log10f.m4: New file.
2492         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
2493         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
2494         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
2495         * modules/log10f: New file.
2496         * tests/test-math-c++.cc: Check the declaration of log10f.
2497         * doc/posix-functions/log10f.texi: Mention the new module.
2498
2499         log10: Use a .m4 file.
2500         * m4/log10.m4: New file.
2501         * modules/log10 (Files): Add it.
2502         (configure.ac): Just invoke gl_FUNC_LOG10.
2503
2504 2011-10-08  Bruno Haible  <bruno@clisp.org>
2505
2506         Tests for module 'logf'.
2507         * modules/logf-tests: New file.
2508         * tests/test-logf.c: New file.
2509
2510         New module 'logf'.
2511         * lib/math.in.h (logf): New declaration.
2512         * lib/logf.c: New file.
2513         * m4/logf.m4: New file.
2514         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
2515         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
2516         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
2517         * modules/logf: New file.
2518         * tests/test-math-c++.cc: Check the declaration of logf.
2519         * doc/posix-functions/logf.texi: Mention the new module.
2520
2521         log: Use a .m4 file.
2522         * m4/log.m4: New file.
2523         * modules/log (Files): Add it.
2524         (configure.ac): Just invoke gl_FUNC_LOG.
2525
2526 2011-10-08  Bruno Haible  <bruno@clisp.org>
2527
2528         Tests for module 'expf'.
2529         * modules/expf-tests: New file.
2530         * tests/test-expf.c: New file.
2531
2532         New module 'expf'.
2533         * lib/math.in.h (expf): New declaration.
2534         * lib/expf.c: New file.
2535         * m4/expf.m4: New file.
2536         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
2537         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
2538         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
2539         * modules/expf: New file.
2540         * tests/test-math-c++.cc: Check the declaration of expf.
2541         * doc/posix-functions/expf.texi: Mention the new module.
2542
2543         exp: Use a .m4 file.
2544         * m4/exp.m4: New file.
2545         * modules/exp (Files): Add it.
2546         (configure.ac): Just invoke gl_FUNC_EXP.
2547
2548 2011-10-08  Bruno Haible  <bruno@clisp.org>
2549
2550         Tests for module 'sqrtf'.
2551         * modules/sqrtf-tests: New file.
2552         * tests/test-sqrtf.c: New file.
2553
2554         New module 'sqrtf'.
2555         * lib/math.in.h (sqrtf): New declaration.
2556         * lib/sqrtf.c: New file.
2557         * m4/sqrtf.m4: New file.
2558         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
2559         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
2560         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
2561         * modules/sqrtf: New file.
2562         * tests/test-math-c++.cc: Check the declaration of sqrtf.
2563         * doc/posix-functions/sqrtf.texi: Mention the new module.
2564
2565 2011-10-08  Bruno Haible  <bruno@clisp.org>
2566
2567         Tests: Avoid link failures w.r.t. libintl.
2568         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
2569         $(LIBINTL).
2570         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
2571         $(LIBINTL).
2572         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
2573         against $(LIBINTL).
2574         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
2575         $(LIBINTL).
2576         * modules/openat-tests (Makefile.am): Link test-fchmodat against
2577         $(LIBINTL).
2578         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
2579
2580 2011-10-08  Bruno Haible  <bruno@clisp.org>
2581
2582         pow tests: Defeat compiler optimizations.
2583         * tests/test-pow.c (main): Assign arguments to x and y before use.
2584
2585 2011-10-08  Bruno Haible  <bruno@clisp.org>
2586
2587         gnulib-tool: Improve last commit.
2588         * gnulib-tool (func_modules_transitive_closure): Simplify code.
2589         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
2590         ignore dependencies that are not among the modules list.
2591
2592 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
2593
2594         gnulib-tool: don't follow dependencies to avoided modules
2595         This fixes a bug that is related to the previous one.
2596         * gnulib-tool (func_modules_transitive_closure)
2597         (func_emit_autoconf_snippets):
2598         Check whether a dependency is acceptable before using it.
2599         (--extract-dependencies): Report an error if --avoid is also used,
2600         since this combination of options is not yet supported.
2601
2602         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
2603         Problem reported by Peter Dyballa in
2604         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
2605         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
2606         when echoing "$condition".
2607
2608 2011-10-07  Bruno Haible  <bruno@clisp.org>
2609
2610         Fix documentation about math functions on MacOS X.
2611         * doc/posix-functions/exp2.texi: Don't say the function is missing on
2612         MacOS X 10.5.
2613         * doc/posix-functions/fdim.texi: Likewise.
2614         * doc/posix-functions/feclearexcept.texi: Likewise.
2615         * doc/posix-functions/fegetenv.texi: Likewise.
2616         * doc/posix-functions/fegetround.texi: Likewise.
2617         * doc/posix-functions/feholdexcept.texi: Likewise.
2618         * doc/posix-functions/feraiseexcept.texi: Likewise.
2619         * doc/posix-functions/fesetenv.texi: Likewise.
2620         * doc/posix-functions/fesetround.texi: Likewise.
2621         * doc/posix-functions/fetestexcept.texi: Likewise.
2622         * doc/posix-functions/feupdateenv.texi: Likewise.
2623         * doc/posix-functions/fmax.texi: Likewise.
2624         * doc/posix-functions/fmin.texi: Likewise.
2625         * doc/posix-functions/log2.texi: Likewise.
2626         * doc/posix-functions/modff.texi: Likewise.
2627         * doc/posix-functions/nan.texi: Likewise.
2628         * doc/posix-functions/nanf.texi: Likewise.
2629         * doc/posix-functions/nextafterf.texi: Likewise.
2630         * doc/posix-functions/remquo.texi: Likewise.
2631
2632 2011-10-07  Bruno Haible  <bruno@clisp.org>
2633
2634         modff: Drop assumption about library that defines modff.
2635         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
2636         AC_CHECK_FUNCS.
2637         * modules/modff (Files): Add m4/mathfunc.m4.
2638
2639 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
2640
2641         raise tests: Avoid a GCC warning.
2642         * tests/test-raise.c (handler): Use _Noreturn.
2643
2644 2011-10-07  Bruno Haible  <bruno@clisp.org>
2645
2646         Tests for module 'ldexpf'.
2647         * modules/ldexpf-tests: New file.
2648         * tests/test-ldexpf.c: New file.
2649
2650         New module 'ldexpf'.
2651         * lib/math.in.h (ldexpf): New declaration.
2652         * lib/ldexpf.c: New file.
2653         * m4/ldexpf.m4: New file.
2654         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
2655         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
2656         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
2657         * modules/ldexpf: New file.
2658         * tests/test-math-c++.cc: Check the declaration of ldexpf.
2659         * doc/posix-functions/ldexpf.texi: Mention the new module.
2660
2661 2011-10-06  Bruno Haible  <bruno@clisp.org>
2662
2663         frexpf: Work around problems on IRIX and mingw.
2664         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
2665         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
2666         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
2667         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
2668         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
2669         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
2670         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
2671
2672 2011-10-06  Bruno Haible  <bruno@clisp.org>
2673
2674         fabsf: Drop assumption about library that defines fabsf.
2675         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
2676         AC_CHECK_FUNCS.
2677         * modules/fabsf (Files): Add m4/mathfunc.m4.
2678
2679 2011-10-06  Bruno Haible  <bruno@clisp.org>
2680
2681         frexpf: Drop assumption about library that defines frexpf.
2682         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
2683         'int *', 'float *', 'long double *', 'float', 'long double'.
2684         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
2685         AC_CHECK_FUNCS.
2686         * modules/frexpf (Files): Add m4/mathfunc.m4.
2687
2688         Tests for module 'frexpf'.
2689         * modules/frexpf-tests: New file.
2690         * tests/test-frexpf.c: New file.
2691
2692         New module 'frexpf'.
2693         * lib/math.in.h (frexpf): New declaration.
2694         * lib/frexpf.c: New file.
2695         * m4/frexpf.m4: New file.
2696         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
2697         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
2698         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
2699         * modules/frexpf: New file.
2700         * tests/test-math-c++.cc: Check the declaration of frexpf.
2701         * doc/posix-functions/frexpf.texi: Mention the new module.
2702
2703 2011-10-06  Bruno Haible  <bruno@clisp.org>
2704
2705         math: Sort function declarations of math.in.h.
2706         * lib/math.in.h (frexp, logb): Move declarations.
2707
2708 2011-10-05  Bruno Haible  <bruno@clisp.org>
2709
2710         Tests for module 'modff'.
2711         * modules/modff-tests: New file.
2712         * tests/test-modff.c: New file.
2713
2714         New module 'modff'.
2715         * lib/math.in.h (modff): New declaration.
2716         * lib/modff.c: New file.
2717         * m4/modff.m4: New file.
2718         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
2719         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
2720         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
2721         * modules/modff: New file.
2722         * tests/test-math-c++.cc: Check the declaration of modff.
2723         * doc/posix-functions/modff.texi: Mention the new module.
2724
2725         modf tests: Make test sharper.
2726         * tests/test-modf.c (main): Strengthen upper bound.
2727
2728         modf: Use a .m4 file.
2729         * m4/modf.m4: New file.
2730         * modules/modf (Files): Add it.
2731         (configure.ac): Just invoke gl_FUNC_MODF.
2732
2733 2011-10-05  Bruno Haible  <bruno@clisp.org>
2734
2735         Tests for module 'fmodf'.
2736         * modules/fmodf-tests: New file.
2737         * tests/test-fmodf.c: New file.
2738
2739         New module 'fmodf'.
2740         * lib/math.in.h (fmodf): New declaration.
2741         * lib/fmodf.c: New file.
2742         * m4/fmodf.m4: New file.
2743         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
2744         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
2745         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
2746         * modules/fmodf: New file.
2747         * tests/test-math-c++.cc: Check the declaration of fmodf.
2748         * doc/posix-functions/fmodf.texi: Mention the new module.
2749
2750         fmod: Use a .m4 file.
2751         * m4/fmod.m4: New file.
2752         * modules/fmod (Files): Add it.
2753         (configure.ac): Just invoke gl_FUNC_FMOD.
2754
2755 2011-10-05  Bruno Haible  <bruno@clisp.org>
2756
2757         Tests for module 'fabsf'.
2758         * modules/fabsf-tests: New file.
2759         * tests/test-fabsf.c: New file.
2760
2761         New module 'fabsf'.
2762         * lib/math.in.h (fabsf): New declaration.
2763         * lib/fabsf.c: New file.
2764         * m4/fabsf.m4: New file.
2765         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
2766         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
2767         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
2768         * modules/fabsf: New file.
2769         * tests/test-math-c++.cc: Check the declaration of fabsf.
2770         * doc/posix-functions/fabsf.texi: Mention the new module.
2771
2772         fabs: Use a .m4 file.
2773         * m4/fabs.m4: New file.
2774         * modules/fabs (Files): Add it.
2775         (configure.ac): Just invoke gl_FUNC_FABS.
2776
2777 2011-10-05  Jim Meyering  <meyering@redhat.com>
2778
2779         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
2780         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
2781         ls -lL regression introduced in coreutils-8.12, it does so at the
2782         cost of an additional stat call in the common case.  Besides, now
2783         that the kernel change that prompted commit 95f7c57f has been reverted
2784         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
2785         we have no use for commit 95f7c57f, "file-has-acl: use
2786         acl_extended_file_nofollow if available".
2787
2788 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
2789
2790         file-has-acl: revert unintended change in behavior of ls -L
2791         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
2792         derived from...
2793         (file_has_acl): ...code here.  Call it.
2794         This problem was introduced with 2011-07-22 commit 95f7c57f,
2795         "file-has-acl: use acl_extended_file_nofollow if available".
2796         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
2797
2798 2011-10-03  Bruno Haible  <bruno@clisp.org>
2799
2800         poll: Avoid link errors on MSVC.
2801         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
2802         * modules/poll (Depends-on): Add sockets.
2803         (Link): New section.
2804         * NEWS: Mention the change.
2805         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
2806         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
2807         $(LIB_POLL) instead of $(LIBSOCKET).
2808
2809 2011-10-03  Bruno Haible  <bruno@clisp.org>
2810
2811         sys_select tests: Fix link error on MSVC 9.
2812         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
2813         with $(LIB_SELECT) instead of $(LIBSOCKET).
2814
2815 2011-10-03  Bruno Haible  <bruno@clisp.org>
2816
2817         sys_select: Fix compilation error on mingw.
2818         * lib/sys_select.in.h: On native Windows, include <io.h>.
2819
2820 2011-10-03  Bruno Haible  <bruno@clisp.org>
2821
2822         wmemset: Support for MSVC.
2823         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
2824         whether wmemset() exists.
2825
2826 2011-10-03  Bruno Haible  <bruno@clisp.org>
2827
2828         wmemmove: Support for MSVC.
2829         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
2830         whether wmemmove() exists.
2831
2832 2011-10-03  Bruno Haible  <bruno@clisp.org>
2833
2834         wmemcpy: Support for MSVC.
2835         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
2836         whether wmemcpy() exists.
2837
2838 2011-10-03  Bruno Haible  <bruno@clisp.org>
2839
2840         wmemcmp: Support for MSVC.
2841         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
2842         whether wmemcmp() exists.
2843
2844 2011-10-03  Bruno Haible  <bruno@clisp.org>
2845
2846         wmemchr: Support for MSVC.
2847         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
2848         whether wmemchr() exists.
2849
2850 2011-10-03  Bruno Haible  <bruno@clisp.org>
2851
2852         glthread/*, strsignal: Support for MSVC.
2853         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
2854         including <winsock.h> on MSVC 9.
2855         * lib/glthread/lock.h: Likewise.
2856         * lib/glthread/thread.h: Likewise.
2857         * lib/glthread/tls.h: Likewise.
2858         * lib/glthread/yield.h: Likewise.
2859         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
2860         if HAVE_UNISTD_H is false.
2861         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
2862
2863 2011-10-03  Bruno Haible  <bruno@clisp.org>
2864
2865         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
2866         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
2867         Set to 100000.
2868
2869 2011-10-03  Bruno Haible  <bruno@clisp.org>
2870
2871         acl: Fix specification.
2872         * lib/file-has-acl.c (file_has_acl): Fix specification.
2873
2874 2011-10-03  Bruno Haible  <bruno@clisp.org>
2875
2876         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
2877         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
2878         (compute_curr_prefix, shared_library_fullname,
2879         find_shared_library_fullname, get_shared_library_fullname, relocate):
2880         Use it together with PIC && INSTALLDIR.
2881         Reported by <jojelino@gmail.com>
2882         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
2883
2884 2011-10-01  Jim Meyering  <meyering@redhat.com>
2885
2886         maint.mk: adjust a release-related rule not to require use of gzip
2887         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
2888         Instead, check each file in $(DIST_ARCHIVES).  This is better for
2889         projects that build only .tar.xz files.  Also fix an erroneous test.
2890
2891         test-linkat: don't leave behind a temporary file
2892         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
2893         Otherwise, coreutils' "make distcheck" would fail with this:
2894           Only in /c/cu/tests/torture/coreutils/test/\
2895             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
2896           make[2]: *** [my-distcheck] Error 1
2897
2898         float, math: add omitted file
2899         * lib/itold.c: Add file, required for yesterday's float change.
2900
2901 2011-10-01  Bruno Haible  <bruno@clisp.org>
2902
2903         isinf: Fix for OpenBSD/x86.
2904         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
2905         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
2906         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
2907
2908 2011-10-01  Bruno Haible  <bruno@clisp.org>
2909
2910         isfinite: Fix syntax error in configure test.
2911         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
2912
2913         isfinite: Fix typo.
2914         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
2915         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
2916
2917 2011-10-01  Bruno Haible  <bruno@clisp.org>
2918
2919         nonblocking tests: Fix test failure on Linux/IA-64.
2920         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
2921         Set to 270000.
2922
2923 2011-10-01  Bruno Haible  <bruno@clisp.org>
2924
2925         mkfifoat tests: Fix a test failure on mingw.
2926         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
2927         with error ENOSYS.
2928
2929 2011-09-30  Bruno Haible  <bruno@clisp.org>
2930
2931         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
2932         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
2933         'long double'. Set REPLACE_ITOLD.
2934         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
2935         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
2936         * lib/itold.c: New file.
2937         * modules/float (Files): Add lib/itold.c.
2938         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
2939         (Makefile.am): Substitute REPLACE_ITOLD.
2940         * modules/math (Depends-on): Add float.
2941         (Makefile.am): Substitute REPLACE_ITOLD.
2942         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
2943         * doc/posix-headers/math.texi: Likewise.
2944         * doc/posix-functions/logl.texi: Likewise.
2945
2946 2011-09-30  Bruno Haible  <bruno@clisp.org>
2947
2948         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
2949         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
2950         Set to 140000.
2951
2952 2011-09-30  Bruno Haible  <bruno@clisp.org>
2953
2954         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
2955         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
2956         invocation, say "right after AC_PROG_CC_STDC", not "right after
2957         AC_PROG_CC".
2958         Reported by Gary V. Vaughan <gary@gnu.org>.
2959
2960 2011-09-30  Bruno Haible  <bruno@clisp.org>
2961
2962         Centralize C99 requirement.
2963         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
2964         * modules/stdarg (configure.ac-early): Invoke it instead of
2965         AC_PROG_CC_STDC.
2966         Reported by Gary V. Vaughan and Paul Eggert.
2967
2968 2011-09-29  Bruno Haible  <bruno@clisp.org>
2969
2970         float: Fix LDBL_MAX value on Linux/PowerPC.
2971         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
2972         on Linux/PowerPC.
2973         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
2974         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
2975         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
2976         platform.
2977         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
2978
2979 2011-09-29  Bruno Haible  <bruno@clisp.org>
2980
2981         doc: Improve doc about gl_EARLY.
2982         * doc/gnulib-tool.texi (Initial import): Mention where to place an
2983         AC_PROG_CC_STDC invocation.
2984         Reported by Gary V. Vaughan <gary@gnu.org>.
2985
2986 2011-09-28  Bruno Haible  <bruno@clisp.org>
2987
2988         fgetc, fputc, fread, fwrite tests: Fix link error.
2989         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
2990         on non-MSVC platforms.
2991         * tests/test-fputc.c (main): Likewise.
2992         * tests/test-fread.c (main): Likewise.
2993         * tests/test-fwrite.c (main): Likewise.
2994         Reported by Jim Meyering.
2995
2996 2011-09-27  Bruno Haible  <bruno@clisp.org>
2997
2998         fputc, fwrite tests: Avoid test failure on MSVC.
2999         * tests/test-fgetc.c: Include msvc-inval.h.
3000         (main): Invoke gl_msvc_inval_ensure_handler.
3001         * tests/test-fputc.c: Include msvc-inval.h.
3002         (main): Invoke gl_msvc_inval_ensure_handler.
3003         * tests/test-fread.c: Include msvc-inval.h.
3004         (main): Invoke gl_msvc_inval_ensure_handler.
3005         * tests/test-fwrite.c: Include msvc-inval.h.
3006         (main): Invoke gl_msvc_inval_ensure_handler.
3007         * modules/fgetc-tests (Depends-on): Add msvc-inval.
3008         * modules/fputc-tests (Depends-on): Likewise.
3009         * modules/fread-tests (Depends-on): Likewise.
3010         * modules/fwrite-tests (Depends-on): Likewise.
3011
3012 2011-09-27  Bruno Haible  <bruno@clisp.org>
3013
3014         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
3015         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
3016         (raise): Remove older, duplicated declaration.
3017         (_gl_raise_SIGPIPE): New declaration.
3018         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
3019         (rpl_raise): Remove function.
3020         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
3021         a gnulib-defined SIGPIPE here.
3022         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
3023         'sigprocmask' has detected missing signal-blocking and the module
3024         'sigpipe' is enabled.
3025         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
3026
3027 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
3028
3029         base64-tests: avoid memory leak
3030         * tests/test-base64.c (main): Plug memory leak.
3031
3032         base32: new module
3033         * modules/base32: New module.
3034         * lib/base32.c: New file.
3035         * lib/base32.h: Likewise.
3036         * m4/base32.m4: Likewise.
3037         * modules/base32-tests: New test.
3038         * tests/test-base32.c: Likewise.
3039         * MODULES.html.sh (Misc): Mention it.
3040
3041 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
3042
3043         gnulib: use more-standard license notice wording
3044         * gnulib-tool (func_emit_copyright_notice): When emitting a
3045         license notice into a file, use the standard wording as suggested
3046         by the current information for GNU maintainers, except say "file"
3047         rather than "program".  The new wording gives a license version
3048         number, which addresses an issue raised by Glenn Morris in
3049         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
3050         * m4/onceonly.m4: Use that same wording here, too.
3051
3052         dup2: minor simplification
3053         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
3054         as lib/dup2.c no longer uses 'inline'.
3055
3056 2011-09-25  Bruno Haible  <bruno@clisp.org>
3057
3058         strings: Fix compilation error on MSVC.
3059         * lib/strings.in.h: Include <stddef.h> for size_t.
3060
3061 2011-09-25  Bruno Haible  <bruno@clisp.org>
3062
3063         fflush et al.: Document limitation on MSVC.
3064         * doc/posix-functions/fflush.texi: Document possible crash in handling
3065         mode other than DEFAULT_HANDLING.
3066         * doc/posix-functions/fgetc.texi: Likewise.
3067         * doc/posix-functions/fputc.texi: Likewise.
3068         * doc/posix-functions/fread.texi: Likewise.
3069         * doc/posix-functions/fwrite.texi: Likewise.
3070
3071 2011-09-25  Bruno Haible  <bruno@clisp.org>
3072
3073         msvc-inval: Allow three invalid parameter handling modes.
3074         * lib/msvc-inval.h: Don't include <stdlib.h> here.
3075         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
3076         macros.
3077         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
3078         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
3079         SANE_LIBRARY_HANDLING as a no-op.
3080         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
3081         <stdlib.h>.
3082         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
3083
3084 2011-09-25  Bruno Haible  <bruno@clisp.org>
3085
3086         msvc-inval: Make handler multithread-safe.
3087         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
3088         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
3089         declarations.
3090         (gl_msvc_inval_current): New declaration.
3091         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
3092         Operate on the structure returned by gl_msvc_inval_current().
3093         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
3094         Remove varaiables.
3095         (tls_index, tls_initialized): New variables.
3096         (not_per_thread): New variable.
3097         (gl_msvc_inval_current): New function.
3098         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
3099         returned by gl_msvc_inval_current().
3100
3101 2011-09-25  Bruno Haible  <bruno@clisp.org>
3102
3103         msvc-inval: Install handler globally.
3104         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
3105         !_MSC_VER.
3106         (gl_msvc_invalid_parameter_handler): Remove declaration.
3107         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
3108         declarations.
3109         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
3110         Install the handler globally, don't uninstall it.
3111         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
3112         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
3113         currently valid, call RaiseException instead.
3114         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
3115         for !_MSC_VER.
3116
3117 2011-09-25  Bruno Haible  <bruno@clisp.org>
3118
3119         strerror_r-posix: Fix for MSVC 9.
3120         * lib/strerror_r.c (local_snprintf): New function.
3121         (snprintf): Define to local_snprintf, not to _snprintf.
3122
3123 2011-09-25  Bruno Haible  <bruno@clisp.org>
3124
3125         ftruncate: Support for MSVC 9.
3126         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
3127         (chsize_nothrow): New function.
3128         (chsize): Redefine as a macro.
3129         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
3130         * modules/ftruncate (Depends-on): Add msvc-inval.
3131
3132 2011-09-25  Bruno Haible  <bruno@clisp.org>
3133
3134         New module 'fstat'.
3135         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
3136         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
3137         * lib/fchdir.c (rpl_fstat): Remove function.
3138         * m4/fstat.m4: New file.
3139         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
3140         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
3141         declared.
3142         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
3143         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
3144         * modules/fstat: New file.
3145         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
3146         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
3147         is set.
3148         * doc/posix-functions/fstat.texi: Mention the new module and the
3149         problem on MSVC.
3150         * NEWS: Mention the change.
3151         * modules/acl (Depends-on): Add fstat.
3152         * modules/chdir-safer (Depends-on): Likewise.
3153         * modules/chown (Depends-on): Likewise.
3154         * modules/copy-file (Depends-on): Likewise.
3155         * modules/fchdir (Depends-on): Likewise.
3156         * modules/fdopendir (Depends-on): Likewise.
3157         * modules/fopen (Depends-on): Likewise.
3158         * modules/fts (Depends-on): Likewise.
3159         * modules/getcwd (Depends-on): Likewise.
3160         * modules/isapipe (Depends-on): Likewise.
3161         * modules/linkat (Depends-on): Likewise.
3162         * modules/lseek (Depends-on): Likewise.
3163         * modules/mkdir-p (Depends-on): Likewise.
3164         * modules/open (Depends-on): Likewise.
3165         * modules/openat (Depends-on): Likewise.
3166         * modules/read-file (Depends-on): Likewise.
3167         * modules/renameat (Depends-on): Likewise.
3168         * modules/utimens (Depends-on): Likewise.
3169
3170 2011-09-25  Bruno Haible  <bruno@clisp.org>
3171
3172         linkat: Fix compilation on MSVC 9.
3173         * lib/linkat.c: Don't include <stdint.h>.
3174
3175 2011-09-25  Bruno Haible  <bruno@clisp.org>
3176
3177         fclose: Support for MSVC 9.
3178         * lib/fclose.c: Include msvc-inval.h.
3179         (fclose_nothrow): New function.
3180         (rpl_fclose): Use it.
3181         * modules/fclose (Depends-on): Add msvc-inval.
3182         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
3183
3184 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
3185
3186         dup2: minor simplifications
3187         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
3188         that it's a performance win.
3189         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
3190         ! defined __CYGWIN__)" to "ifdef F_GETFL".
3191
3192 2011-09-24  Jim Meyering  <meyering@redhat.com>
3193
3194         test-futimens: avoid a warning from gcc -Wshadow
3195         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
3196         to avoid a shadowing warning.
3197
3198 2011-09-24  Bruno Haible  <bruno@clisp.org>
3199
3200         fdopen: Support for MSVC 9.
3201         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
3202         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
3203         * lib/fdopen.c: Include msvc-inval.h.
3204         (fdopen_nothrow): New function.
3205         (rpl_fdopen): Use it.
3206         * modules/fdopen (Depends-on): Add msvc-inval.
3207         * modules/fclose-tests (Depends-on): Add fdopen.
3208         * modules/fflush-tests (Depends-on): Likewise.
3209         * modules/fgetc-tests (Depends-on): Likewise.
3210         * modules/fputc-tests (Depends-on): Likewise.
3211         * modules/fread-tests (Depends-on): Likewise.
3212         * modules/freopen-tests (Depends-on): Likewise.
3213         * modules/fseeko-tests (Depends-on): Likewise.
3214         * modules/ftello-tests (Depends-on): Likewise.
3215         * modules/fwrite-tests  (Depends-on): Likewise.
3216         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
3217
3218 2011-09-24  Bruno Haible  <bruno@clisp.org>
3219
3220         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
3221         * modules/fgetc-tests (Depends-on): Add unistd.
3222         * modules/fputc-tests (Depends-on): Likewise.
3223         * modules/fread-tests (Depends-on): Likewise.
3224         * modules/fwrite-tests (Depends-on): Likewise.
3225
3226 2011-09-24  Bruno Haible  <bruno@clisp.org>
3227
3228         dup: Simplify autoconf test.
3229         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
3230         on gl_MSVC_INVAL's result.
3231
3232 2011-09-24  Bruno Haible  <bruno@clisp.org>
3233
3234         Tests for function fwrite().
3235         * modules/fwrite-tests: New file.
3236         * tests/test-fwrite.c: New file.
3237         * modules/stdio-tests (Depends-on): Add fwrite-tests.
3238
3239         Tests for function fread().
3240         * modules/fread-tests: New file.
3241         * tests/test-fread.c: New file.
3242         * modules/stdio-tests (Depends-on): Add fread-tests.
3243
3244         Activate fputc tests.
3245         * modules/stdio-tests (Depends-on): Add fputc-tests.
3246
3247         Enhance fgetc, fputc tests.
3248         * tests/test-fgetc.c (main): Also test the stream's error indicator.
3249         * tests/test-fputc.c (main): Likewise.
3250
3251 2011-09-24  Bruno Haible  <bruno@clisp.org>
3252
3253         write: Support for MSVC 9.
3254         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
3255         is not 1.
3256         * lib/write.c (write_nothrow): New function.
3257         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
3258         not 1. Use write_nothrow.
3259         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
3260         invalid parameter handler.
3261         (gl_PREREQ_WRITE): New macro.
3262         * modules/write (Depends-on): Add msvc-inval.
3263         (configure.ac): Invoke gl_PREREQ_WRITE.
3264         * doc/posix-functions/write.texi: Mention the problem on MSVC.
3265
3266 2011-09-24  Bruno Haible  <bruno@clisp.org>
3267
3268         read: Fix last commit.
3269         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
3270
3271 2011-09-24  Bruno Haible  <bruno@clisp.org>
3272
3273         dup2: Fix last commit.
3274         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
3275         (rpl_dup2): Disable fcntl workaround on native Windows.
3276
3277         sigprocmask: Make code safer.
3278         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
3279         section that changes macro definitions for this compilation unit.
3280
3281 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
3282
3283         dup2: clarify by coalescing Windows-specific material
3284         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
3285         "msvc-nothrow.h"' to the Windows-specific section, so that the
3286         Emacs source need not contain these include files.
3287         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
3288         Windows-specific fixes into this function rather than just the
3289         nothrow fix, as this shortens and clarifies the code.  Always
3290         define as a function, as that's a bit cleaner than having it be
3291         sometimes a function and sometimes a macro.
3292         (rpl_dup2): Move the Windows-specific stuff out of here and into
3293         ms_windows_dup2.  Don't protect the Haiku-related fix with
3294         "#if !defined __linux__", as the same code also works around
3295         a Linux kernel bug, and it doesn't add any system calls on any
3296         platform.  Add comment about FreeBSD 6.1.
3297
3298         sigprocmask: move #include directive
3299         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
3300         Windows-specific section, so that the Emacs source need not
3301         contain msvc-inval.h.
3302
3303 2011-09-23  Bruno Haible  <bruno@clisp.org>
3304
3305         read: Support for MSVC 9.
3306         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
3307         is not 1.
3308         * lib/read.c (read_nothrow): New function.
3309         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
3310         read_nothrow.
3311         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
3312         invalid parameter handler.
3313         (gl_PREREQ_READ): New macro.
3314         * modules/read (Depends-on): Add msvc-inval.
3315         (configure.ac): Invoke gl_PREREQ_READ.
3316         * doc/posix-functions/read.texi: Mention the problem on MSVC.
3317
3318 2011-09-23  Bruno Haible  <bruno@clisp.org>
3319
3320         close: Support for MSVC 9.
3321         * lib/close.c: Include <errno.h>, msvc-inval.h.
3322         (close_nothrow): New function.
3323         (rpl_close): Use it.
3324         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
3325         invalid parameter handler.
3326         * modules/close (Depends-on): Add msvc-inval.
3327         * modules/dup2-tests (Depends-on): Add close.
3328         * modules/dup3-tests (Depends-on): Likewise.
3329         * modules/fcntl-tests (Depends-on): Likewise.
3330         * modules/spawn-pipe-tests (Depends-on): Likewise.
3331         * modules/unistd-safer-tests (Depends-on): Likewise.
3332         * doc/posix-functions/close.texi: Mention the problem on MSVC.
3333
3334 2011-09-23  Bruno Haible  <bruno@clisp.org>
3335
3336         New module 'dup'.
3337         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
3338         Allow replacement.
3339         * lib/dup.c: New file.
3340         * lib/fchdir.c (rpl_dup): Remove function.
3341         * m4/dup.m4: New file.
3342         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
3343         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
3344         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
3345         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
3346         * modules/dup: New file.
3347         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
3348         'dup' module is in use.
3349         * modules/fdopendir (Depends-on): Add dup.
3350         * modules/fdutimensat-tests (Depends-on): Likewise.
3351         * modules/fts (Depends-on): Likewise.
3352         * modules/futimens-tests (Depends-on): Likewise.
3353         * modules/posix_spawnp-tests (Depends-on): Likewise.
3354         * modules/unistd-safer-tests (Depends-on): Likewise.
3355         * modules/utimens-tests (Depends-on): Likewise.
3356         * doc/posix-functions/dup.texi: Mention the new module and the problem
3357         on MSVC.
3358
3359 2011-09-23  Bruno Haible  <bruno@clisp.org>
3360
3361         getdtablesize: Support for MSVC 9.
3362         * lib/getdtablesize.c: Include msvc-inval.h.
3363         (_setmaxstdio_nothrow): New function.
3364         (_setmaxstdio): Redefine it.
3365         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
3366         * modules/getdtablesize (Depends-on): Add msvc-inval.
3367         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
3368
3369 2011-09-23  Bruno Haible  <bruno@clisp.org>
3370
3371         signal-h: Rename from signal.
3372         * modules/signal-h: Renamed from modules/signal.
3373         * modules/pthread_sigmask (Depends-on): Update.
3374         * modules/raise (Depends-on): Likewise.
3375         * modules/sigaction (Depends-on): Likewise.
3376         * modules/sigpipe (Depends-on): Likewise.
3377         * modules/sigprocmask (Depends-on): Likewise.
3378         * modules/sys_select (Depends-on): Likewise.
3379         * modules/signal-h-tests: Renamed from modules/signal-tests.
3380         (Files, Depends-on, Makefile.am): Update.
3381         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
3382         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
3383         (Files, Makefile.am): Update.
3384         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
3385         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
3386         * modules/signal: New placeholder file.
3387         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
3388         * doc/posix-headers/signal.texi: Update.
3389         * NEWS: Mention the change.
3390
3391 2011-09-23  Bruno Haible  <bruno@clisp.org>
3392
3393         sigprocmask: Avoid crashes through signal() on MSVC 9.
3394         * lib/sigprocmask.c: Include msvc-inval.h.
3395         (signal_nothrow): New function.
3396         (signal): Redefine it.
3397         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
3398         * modules/sigprocmask (Depends-on): Add msvc-inval.
3399         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
3400
3401 2011-09-23  Bruno Haible  <bruno@clisp.org>
3402
3403         Tests for module 'raise'.
3404         * modules/raise-tests: New file.
3405         * tests/test-raise.c: New file.
3406
3407         raise: Support for MSVC.
3408         * lib/signal.in.h (raise): New declaration.
3409         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
3410         for native Windows platforms.
3411         * m4/raise.m4: New file.
3412         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
3413         HAVE_RAISE, REPLACE_RAISE.
3414         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
3415         REPLACE_RAISE.
3416         * modules/raise (Status, Notice): Remove fields.
3417         (Files): Add m4/raise.m4.
3418         (Depends-on): Add signal, msvc-inval.
3419         (configure.ac): Use the common idioms.
3420         (Maintainer): Add me.
3421         * tests/test-signal-c++.cc: Check the signature of raise.
3422         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
3423
3424 2011-09-23  Bruno Haible  <bruno@clisp.org>
3425
3426         pipe2: Fix compilation on pre-C99 compilers.
3427         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
3428
3429 2011-09-23  Bruno Haible  <bruno@clisp.org>
3430
3431         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
3432         * lib/msvc-nothrow.h: New file.
3433         * lib/msvc-nothrow.c: New file.
3434         * m4/msvc-nothrow.m4: New file.
3435         * modules/msvc-nothrow: New file.
3436         * lib/dup2.c: Include msvc-nothrow.h.
3437         (rpl_dup2): No need to protect _get_osfhandle call here.
3438         * lib/accept4.c: Include msvc-nothrow.h.
3439         * lib/error.c: Likewise.
3440         * lib/fcntl.c: Likewise.
3441         * lib/lseek.c: Likewise.
3442         * lib/nonblocking.c: Likewise.
3443         * lib/poll.c: Likewise.
3444         * lib/read.c: Likewise.
3445         * lib/select.c: Likewise.
3446         * lib/sockets.h: Likewise.
3447         * lib/sockets.c: Likewise.
3448         * lib/stdio-read.c: Likewise.
3449         * lib/stdio-write.c: Likewise.
3450         * lib/write.c: Likewise.
3451         * lib/w32sock.h: Likewise.
3452         * lib/w32spawn.h: Likewise.
3453         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
3454         * lib/fsync.c: Likewise.
3455         * lib/isapipe.c: Likewise.
3456         * modules/dup2 (Depends-on): Add msvc-nothrow.
3457         * modules/accept4 (Depends-on): Likewise.
3458         * modules/error (Depends-on): Likewise.
3459         * modules/fcntl (Depends-on): Likewise.
3460         * modules/lseek (Depends-on): Likewise.
3461         * modules/nonblocking (Depends-on): Likewise.
3462         * modules/poll (Depends-on): Likewise.
3463         * modules/read (Depends-on): Likewise.
3464         * modules/select (Depends-on): Likewise.
3465         * modules/sockets (Depends-on): Likewise.
3466         * modules/sigpipe (Depends-on): Likewise.
3467         * modules/write (Depends-on): Likewise.
3468         * modules/accept (Depends-on): Likewise.
3469         * modules/bind (Depends-on): Likewise.
3470         * modules/connect (Depends-on): Likewise.
3471         * modules/gethostname (Depends-on): Likewise.
3472         * modules/getpeername (Depends-on): Likewise.
3473         * modules/getsockname (Depends-on): Likewise.
3474         * modules/getsockopt (Depends-on): Likewise.
3475         * modules/ioctl (Depends-on): Likewise.
3476         * modules/listen (Depends-on): Likewise.
3477         * modules/recv (Depends-on): Likewise.
3478         * modules/recvfrom (Depends-on): Likewise.
3479         * modules/send (Depends-on): Likewise.
3480         * modules/sendto (Depends-on): Likewise.
3481         * modules/setsockopt (Depends-on): Likewise.
3482         * modules/shutdown (Depends-on): Likewise.
3483         * modules/socket (Depends-on): Likewise.
3484         * modules/execute (Depends-on): Likewise.
3485         * modules/spawn-pipe (Depends-on): Likewise.
3486         * modules/flock (Depends-on): Likewise.
3487         * modules/fsync (Depends-on): Likewise.
3488         * modules/isapipe (Depends-on): Likewise.
3489         * tests/test-cloexec.c: Include msvc-nothrow.h.
3490         * tests/test-dup-safer.c: Likewise.
3491         * tests/test-dup2.c: Likewise.
3492         * tests/test-dup3.c: Likewise.
3493         * tests/test-fcntl.c: Likewise.
3494         * tests/test-pipe.c: Likewise.
3495         * tests/test-pipe2.c: Likewise.
3496         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
3497         * modules/unistd-safer-tests (Depends-on): Likewise.
3498         * modules/dup2-tests (Depends-on): Likewise.
3499         * modules/dup3-tests (Depends-on): Likewise.
3500         * modules/fcntl-tests (Depends-on): Likewise.
3501         * modules/pipe-posix-tests (Depends-on): Likewise.
3502         * modules/pipe2-tests (Depends-on): Likewise.
3503
3504 2011-09-23  Bruno Haible  <bruno@clisp.org>
3505
3506         dup2: Make code more maintainable.
3507         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
3508         (rpl_dup2): Use it.
3509         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
3510         * modules/dup2 (configure.ac): Invoke it.
3511         Reported by Paul Eggert.
3512
3513 2011-09-23  Bruno Haible  <bruno@clisp.org>
3514
3515         msvc-inval: Fix compilation error.
3516         * lib/msvc-inval.h: Include <excpt.h>.
3517
3518 2011-09-23  Bruno Haible  <bruno@clisp.org>
3519
3520         mkdir: Tweak for MSVC 9.
3521         * lib/sys_stat.in.h: Update comments.
3522         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
3523
3524         Tests for module 'chdir'.
3525         * modules/chdir-tests: New file.
3526         * tests/test-chdir.c: New file.
3527
3528         New module 'chdir'.
3529         * modules/chdir: New file.
3530         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
3531         (chdir): New declaration.
3532         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
3533         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
3534         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
3535         * tests/test-unistd-c++.cc: Check signature of chdir.
3536         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
3537         * modules/chdir-long (Depends-on): Add chdir.
3538         * modules/fchdir (Depends-on): Likewise.
3539         * modules/rename (Depends-on): Likewise.
3540         * modules/savewd (Depends-on): Likewise.
3541
3542         rmdir: Support for mingw, MSVC 9.
3543         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
3544         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
3545
3546         getcwd: Tweak for MSVC 9.
3547         * lib/unistd.in.h: Update comments.
3548         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
3549
3550 2011-09-22  Bruno Haible  <bruno@clisp.org>
3551
3552         strerror_r-posix: Avoid a link error on MSVC.
3553         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
3554         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
3555
3556 2011-09-22  Bruno Haible  <bruno@clisp.org>
3557
3558         select: Avoid link errors on MSVC.
3559         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
3560         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
3561         * modules/pselect (Link): Likewise.
3562         * NEWS: Mention the change.
3563         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
3564         test-select-stdin against $(LIB_SELECT).
3565         * modules/pselect-tests (Makefile.am): Link test-pselect against
3566         $(LIB_SELECT).
3567
3568 2011-09-22  Bruno Haible  <bruno@clisp.org>
3569
3570         select: Avoid compilation error on MSVC.
3571         * lib/select.c: Don't include <stdbool.h>.
3572
3573 2011-09-21  Bruno Haible  <bruno@clisp.org>
3574
3575         Consolidate all uses of PATH_MAX in *.m4 files.
3576         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
3577         macros.
3578         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
3579         and gl_PATHMAX_SNIPPET.
3580         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3581         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3582         * modules/chdir-long (Files): Add m4/pathmax.m4.
3583         * modules/getcwd (Files): Likewise.
3584
3585 2011-09-21  Bruno Haible  <bruno@clisp.org>
3586
3587         ftruncate: Un-deprecate, concentrate on Win32 support.
3588         * modules/ftruncate (Status, Notice): Remove sections.
3589         (Depends-on): Add largefile.
3590         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
3591         non-mingw platforms.
3592         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
3593         include <io.h>.
3594         * modules/perror-tests (Depends-on): Add ftruncate.
3595         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
3596         'ftruncate' module.
3597
3598 2011-09-21  Bruno Haible  <bruno@clisp.org>
3599
3600         Add dependencies to new dirent related modules.
3601         * modules/opendir (Depends-on): Add closedir.
3602         * modules/getcwd (Depends-on): Add opendir, closedir.
3603         * modules/dirent-safer-tests (Depends-on): Likewise.
3604         * modules/fdopendir-tests (Depends-on): Likewise.
3605         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
3606         * modules/renameat-tests (Depends-on): Likewise.
3607
3608 2011-09-21  Bruno Haible  <bruno@clisp.org>
3609
3610         opendir: Avoid compilation error on mingw.
3611         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
3612         * modules/opendir (Depends-on): Add unistd.
3613
3614 2011-09-21  Bruno Haible  <bruno@clisp.org>
3615
3616         ftruncate tests: Avoid a test failure on mingw.
3617         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
3618
3619 2011-09-21  Bruno Haible  <bruno@clisp.org>
3620
3621         select tests: Avoid test failures on OSF/1 5.1 and mingw.
3622         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
3623         native Windows.
3624
3625 2011-09-21  Bruno Haible  <bruno@clisp.org>
3626
3627         New module 'fdopen'.
3628         * lib/stdio.in.h (fdopen): New declaration.
3629         * lib/fdopen.c: New file.
3630         * m4/fdopen.m4: New file.
3631         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
3632         REPLACE_FDOPEN.
3633         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
3634         REPLACE_FDOPEN.
3635         * modules/fdopen: New file.
3636         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
3637         * tests/test-stdio-c++.cc: Check signature of fdopen.
3638         * doc/posix-functions/fdopen.texi: Mention the new module.
3639
3640 2011-09-21  Bruno Haible  <bruno@clisp.org>
3641
3642         unlockpt tests: Avoid test failure on NetBSD 5.1.
3643         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
3644         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
3645
3646 2011-09-21  Bruno Haible  <bruno@clisp.org>
3647
3648         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
3649         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
3650         * tests/test-getlogin_r.c (main): Likewise.
3651
3652 2011-09-20  Bruno Haible  <bruno@clisp.org>
3653
3654         time tests: Don't require pid_t.
3655         * doc/posix-headers/time.texi: Revert last change.
3656         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
3657         * tests/test-time.c: Comment out the check for pid_t.
3658
3659 2011-09-20  Bruno Haible  <bruno@clisp.org>
3660
3661         fsync tests: Avoid a test failure on mingw.
3662         * tests/test-fsync.c (main): Allow a failure with EIO.
3663
3664 2011-09-20  Bruno Haible  <bruno@clisp.org>
3665
3666         euidaccess: Update comments.
3667         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
3668
3669 2011-09-20  Bruno Haible  <bruno@clisp.org>
3670
3671         Ensure EBADF returns for socket functions on mingw.
3672         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
3673         descriptor is invalid.
3674         * lib/bind.c (rpl_bind): Likewise.
3675         * lib/connect.c (rpl_connect): Likewise.
3676         * lib/getpeername.c (rpl_getpeername): Likewise.
3677         * lib/getsockname.c (rpl_getsockname): Likewise.
3678         * lib/getsockopt.c (rpl_getsockopt): Likewise.
3679         * lib/listen.c (rpl_listen): Likewise.
3680         * lib/recv.c (rpl_recv): Likewise.
3681         * lib/recvfrom.c (rpl_recvfrom): Likewise.
3682         * lib/send.c (rpl_send): Likewise.
3683         * lib/sendto.c (rpl_sendto): Likewise.
3684         * lib/setsockopt.c (rpl_setsockopt): Likewise.
3685         * lib/shutdown.c (rpl_shutdown): Likewise.
3686
3687 2011-09-20  Bruno Haible  <bruno@clisp.org>
3688
3689         select tests: EBADF tests.
3690         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
3691         test_bad_fd): New functions.
3692         (test_function): Invoke also test_bad_fd.
3693
3694 2011-09-20  Bruno Haible  <bruno@clisp.org>
3695
3696         Tests for module 'posix_spawn_file_actions_addopen.
3697         * modules/posix_spawn_file_actions_addopen-tests: New file.
3698         * tests/test-posix_spawn_file_actions_addopen.c: New file.
3699
3700         Tests for module 'posix_spawn_file_actions_adddup2'.
3701         * modules/posix_spawn_file_actions_adddup2-tests: New file.
3702         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
3703
3704         Tests for module 'posix_spawn_file_actions_addclose'.
3705         * modules/posix_spawn_file_actions_addclose-tests: New file.
3706         * tests/test-posix_spawn_file_actions_addclose.c: New file.
3707
3708 2011-09-20  Bruno Haible  <bruno@clisp.org>
3709
3710         Tests for module 'unlockpt'.
3711         * modules/unlockpt-tests: New file.
3712         * tests/test-unlockpt.c: New file.
3713         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
3714
3715         Tests for module 'grantpt'.
3716         * modules/grantpt-tests: New file.
3717         * tests/test-grantpt.c: New file.
3718         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
3719
3720 2011-09-20  Bruno Haible  <bruno@clisp.org>
3721
3722         freopen tests: EBADF tests.
3723         * tests/test-freopen.c: Include errno.h, unistd.h.
3724         (main): Add tests for EBADF, commented out for the moment.
3725
3726         fclose tests: EBADF tests.
3727         * tests/test-fclose.c (main): Add tests for EBADF.
3728
3729         fflush tests: EBADF tests.
3730         * tests/test-fflush.c: Include errno.h, macros.h.
3731         (main): Add tests for EBADF.
3732
3733         ftello tests: EBADF tests.
3734         * tests/test-ftello4.sh: New file.
3735         * tests/test-ftello4.c: New file.
3736         * modules/ftello-tests (Files): Add them.
3737         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
3738
3739         fseeko tests: EBADF tests.
3740         * tests/test-fseeko4.sh: New file.
3741         * tests/test-fseeko4.c: New file.
3742         * modules/fseeko-tests (Files): Add them.
3743         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
3744
3745         Tests for function fputc().
3746         * modules/fputc-tests: New file.
3747         * tests/test-fputc.c: New file.
3748         * modules/stdio-tests (Depends-on): Add fputc-tests.
3749
3750         Tests for function fgetc().
3751         * modules/fgetc-tests: New file.
3752         * tests/test-fgetc.c: New file.
3753         * modules/stdio-tests (Depends-on): Add fgetc-tests.
3754
3755         Tests for function fdopen().
3756         * modules/fdopen-tests: New file.
3757         * tests/test-fdopen.c: New file.
3758         * modules/stdio-tests (Depends-on): Add fdopen-tests.
3759
3760         Tests for module 'vdprintf'.
3761         * modules/vdprintf-tests: New file.
3762         * tests/test-vdprintf.c: New file.
3763
3764         Tests for module 'dprintf'.
3765         * modules/dprintf-tests: New file.
3766         * tests/test-dprintf.c: New file.
3767
3768 2011-09-20  Bruno Haible  <bruno@clisp.org>
3769
3770         Tests for module 'ioctl'.
3771         * modules/ioctl-tests: New file.
3772         * tests/test-ioctl.c: New file.
3773
3774 2011-09-20  Bruno Haible  <bruno@clisp.org>
3775
3776         fcntl tests: EBADF tests.
3777         * tests/test-fcntl.c (main): Add more tests for EBADF.
3778
3779 2011-09-20  Bruno Haible  <bruno@clisp.org>
3780
3781         utimensat tests: EBADF tests.
3782         * tests/test-utimensat.c (main): Add tests for EBADF.
3783
3784         renameat tests: EBADF tests.
3785         * tests/test-renameat.c (main): Add tests for EBADF.
3786
3787         mkfifoat tests: EBADF tests.
3788         * tests/test-mkfifoat.c (main): Add tests for EBADF.
3789
3790         readlinkat tests: EBADF tests.
3791         * tests/test-readlinkat.c (main): Add tests for EBADF.
3792
3793         symlinkat tests: EBADF tests.
3794         * tests/test-symlinkat.c (main): Add tests for EBADF.
3795
3796         linkat tests: EBADF tests.
3797         * tests/test-linkat.c (main): Add tests for EBADF.
3798
3799         Tests for module 'faccessat'.
3800         * modules/faccessat-tests: New file.
3801         * tests/test-faccessat.c: New file.
3802
3803         fdopendir tests: EBADF tests.
3804         * tests/test-fdopendir.c (main): Add more tests for EBADF.
3805
3806         openat tests: EBADF tests.
3807         * tests/test-fchownat.c (main): Add tests for EBADF.
3808         * tests/test-fstatat.c (main): Likewise.
3809         * tests/test-mkdirat.c (main): Likewise.
3810         * tests/test-openat.c (main): Likewise.
3811         * tests/test-unlinkat.c (main): Likewise.
3812         * tests/test-fchmodat.c: New file.
3813         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
3814         (Makefile.am): Also run 'test-fchmodat'.
3815
3816 2011-09-20  Bruno Haible  <bruno@clisp.org>
3817
3818         utimens, futimens, fdutimensat tests: EBADF tests.
3819         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
3820
3821         Tests for function fstat().
3822         * modules/fstat-tests: New file.
3823         * tests/test-fstat.c: New file.
3824         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
3825
3826 2011-09-20  Bruno Haible  <bruno@clisp.org>
3827
3828         test-ttyname_r tests: EBADF tests.
3829         * tests/test-ttyname_r.c (main): Add tests for EBADF.
3830
3831         Tests for module 'isatty'.
3832         * modules/isatty-tests: New file.
3833         * tests/test-isatty.c: New file.
3834
3835         Tests for module 'write'.
3836         * modules/write-tests: New file.
3837         * tests/test-write.c: New file.
3838
3839         Tests for module 'read'.
3840         * modules/read-tests: New file.
3841         * tests/test-read.c: New file.
3842
3843         pwrite tests: EBADF tests.
3844         * tests/test-pwrite.c (main): Add tests for EBADF.
3845
3846         pread tests: EBADF tests.
3847         * tests/test-pread.c (main): Add tests for EBADF.
3848
3849         lseek tests: EBADF tests.
3850         * tests/test-lseek.c (main): Add more tests for EBADF.
3851
3852         Tests for module 'ftruncate'.
3853         * modules/ftruncate-tests: New file.
3854         * tests/test-ftruncate.sh: New file.
3855         * tests/test-ftruncate.c: New file.
3856
3857         fsync tests: EBADF tests.
3858         * tests/test-fsync.c (main): Add more tests for EBADF.
3859
3860         fdatasync tests: EBADF tests.
3861         * tests/test-fdatasync.c (main): Add more tests for EBADF.
3862
3863         Tests for module 'fchown'.
3864         * modules/fchown-tests: New file.
3865         * tests/test-fchown.c: New file.
3866
3867         Tests for module 'fchmod'.
3868         * modules/fchmod-tests: New file.
3869         * tests/test-fchmod.c: New file.
3870
3871         fchdir tests: EBADF tests.
3872         * tests/test-fchdir.c (main): Add more tests for EBADF.
3873
3874         dup2 tests: EBADF tests.
3875         * tests/test-dup2.c (main): Add more tests for EBADF.
3876
3877         Tests for module 'dup'.
3878         * modules/dup-tests: New file.
3879         * tests/test-dup.c: New file.
3880
3881         Tests for module 'close'.
3882         * modules/close-tests: New file.
3883         * tests/test-close.c: New file.
3884
3885 2011-09-20  Bruno Haible  <bruno@clisp.org>
3886
3887         Tests for module 'shutdown'.
3888         * modules/shutdown-tests: New file.
3889         * tests/test-shutdown.c: New file.
3890
3891         Tests for module 'setsockopt'.
3892         * modules/setsockopt-tests: New file.
3893         * tests/test-setsockopt.c: New file.
3894
3895         Tests for module 'sendto'.
3896         * modules/sendto-tests: New file.
3897         * tests/test-sendto.c: New file.
3898
3899         Tests for module 'send'.
3900         * modules/send-tests: New file.
3901         * tests/test-send.c: New file.
3902
3903         Tests for module 'recvfrom'.
3904         * modules/recvfrom-tests: New file.
3905         * tests/test-recvfrom.c: New file.
3906
3907         Tests for module 'recv'.
3908         * modules/recv-tests: New file.
3909         * tests/test-recv.c: New file.
3910
3911         Tests for module 'listen'.
3912         * modules/listen-tests: New file.
3913         * tests/test-listen.c: New file.
3914
3915         Tests for module 'getsockopt'.
3916         * modules/getsockopt-tests: New file.
3917         * tests/test-getsockopt.c: New file.
3918
3919         Tests for module 'getsockname'.
3920         * modules/getsockname-tests: New file.
3921         * tests/test-getsockname.c: New file.
3922
3923         Tests for module 'getpeername'.
3924         * modules/getpeername-tests: New file.
3925         * tests/test-getpeername.c: New file.
3926
3927         Tests for module 'connect'.
3928         * modules/connect-tests: New file.
3929         * tests/test-connect.c: New file.
3930
3931         Tests for module 'bind'.
3932         * modules/bind-tests: New file.
3933         * tests/test-bind.c: New file.
3934
3935         accept4 tests: Fix for native Windows.
3936         * tests/test-accept4.c: Include sockets.h.
3937         (main): Invoke gl_sockets_startup.
3938         * modules/accept4-tests (Depends-on): Add sockets.
3939
3940         accept tests: Fix for native Windows.
3941         * tests/test-accept.c: Include sockets.h.
3942         (main): Invoke gl_sockets_startup.
3943         * modules/accept-tests (Depends-on): Add sockets.
3944
3945 2011-09-19  Bruno Haible  <bruno@clisp.org>
3946
3947         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
3948         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
3949         do...while(0).
3950         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
3951         Suggested by Paul Eggert.
3952
3953 2011-09-19  Bruno Haible  <bruno@clisp.org>
3954
3955         sched: Ensure pid_t is defined.
3956         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
3957         not define pid_t.
3958         * lib/sched.in.h: Include <sys/types.h>.
3959         * doc/posix-headers/sched.texi: Mention the pid_t problem.
3960         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3961
3962 2011-09-19  Bruno Haible  <bruno@clisp.org>
3963
3964         msvc-inval: Ensure the entire expansion is a single statement.
3965         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
3966         of braces.
3967
3968 2011-09-19  Jim Meyering  <meyering@redhat.com>
3969
3970         tests: use printf, not echo in init.sh's warn_ function
3971         * tests/init.sh (warn_): Use printf, not echo.  The latter would
3972         misbehave when given strings containing a backslash or starting
3973         with e.g., -n.  James Youngman suggested setting IFS.
3974
3975 2011-09-19  Eric Blake  <eblake@redhat.com>
3976
3977         futimens: enhance test
3978         * tests/test-futimens.h (test_futimens): Also check for EBADF on
3979         closed non-negative fd.
3980
3981         date: accept 'hence' as opposite of 'ago'
3982         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
3983         * tests/test-parse-datetime.c (main): Enhance test.
3984         Suggested by Jesse Wilson.
3985
3986 2011-09-19  Jim Meyering  <meyering@redhat.com>
3987
3988         getcwd: don't fail in a deep directory on a system without openat
3989         Before this change, getcwd would fail when called from a directory
3990         of depth PATH_MAX / 3 or greater.  That was due to the fact that
3991         the non-openat implementation used "..", "../..", "../../..", etc.
3992         to access ancestor directories.  With too many, that string would
3993         be longer than PATH_MAX.
3994         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
3995         using gnulib's openat replacement.
3996         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
3997         we're using the replacement function.
3998
3999 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
4000
4001         maint.mk: avoid warnings from perl about missing files
4002         * top/maint.mk (def_sym_regex): Ignore files listed in
4003         $(gl_other_headers_) that do not exist, say because a project
4004         does not use a corresponding module.
4005
4006 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
4007
4008         stat: use pathmax.h only if needed
4009         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
4010         This is better for Emacs, which does not have a mingw port and
4011         therefore can avoid the pathmax module.
4012
4013         utimens: remove dependency on dup2
4014         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
4015         to work around the Linux kernel bug.
4016         * modules/utimens (Depends-on): Remove dup2.
4017
4018 2011-09-18  Bruno Haible  <bruno@clisp.org>
4019
4020         inet_ntop, inet_pton: Look for it also in libresolv.
4021         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
4022         libnsl, search for it in libresolv.
4023         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4024         Needed on Solaris 7.
4025
4026 2011-09-18  Bruno Haible  <bruno@clisp.org>
4027
4028         accept, accept4 tests: Avoid link error on Solaris.
4029         * modules/accept-tests (Makefile.am): Link test-accept against
4030         $(LIBSOCKET).
4031         * modules/accept4-tests (Makefile.am): Link test-accept4 against
4032         $(LIBSOCKET).
4033
4034         accept4: Avoid link error on Solaris.
4035         * modules/accept4 (Link): New section.
4036
4037         socket functions: Avoid link errors on Solaris.
4038         * modules/accept (Depends-on): Add socketlib.
4039         (Link): New section.
4040         * modules/bind (Depends-on): Add socketlib.
4041         (Link): New section.
4042         * modules/connect (Depends-on): Add socketlib.
4043         (Link): New section.
4044         * modules/getpeername (Depends-on): Add socketlib.
4045         (Link): New section.
4046         * modules/getsockname (Depends-on): Add socketlib.
4047         (Link): New section.
4048         * modules/getsockopt (Depends-on): Add socketlib.
4049         (Link): New section.
4050         * modules/listen (Depends-on): Add socketlib.
4051         (Link): New section.
4052         * modules/recv (Depends-on): Add socketlib.
4053         (Link): New section.
4054         * modules/recvfrom (Depends-on): Add socketlib.
4055         (Link): New section.
4056         * modules/send (Depends-on): Add socketlib.
4057         (Link): New section.
4058         * modules/sendto (Depends-on): Add socketlib.
4059         (Link): New section.
4060         * modules/setsockopt (Depends-on): Add socketlib.
4061         (Link): New section.
4062         * modules/shutdown (Depends-on): Add socketlib.
4063         (Link): New section.
4064         * modules/socket (Depends-on): Add socketlib.
4065         (Link): New section.
4066
4067 2011-09-18  Bruno Haible  <bruno@clisp.org>
4068
4069         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
4070         * tests/test-ptsname.c (main): Terminate the test if it takes longer
4071         than 5 seconds.
4072         * modules/ptsname-tests (configure.ac): Test for alarm.
4073
4074 2011-09-18  Bruno Haible  <bruno@clisp.org>
4075
4076         posix_spawn_file_actions_add*: Fix module dependencies.
4077         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
4078         posix_spawn_file_actions_init.
4079         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
4080         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
4081
4082 2011-09-18  Bruno Haible  <bruno@clisp.org>
4083
4084         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
4085         * tests/test-rename.h (test_rename): Allow error code EEXIST.
4086         * tests/test-renameat.c (main): Likewise.
4087
4088 2011-09-18  Bruno Haible  <bruno@clisp.org>
4089
4090         Tests for module 'accept4'.
4091         * modules/accept4-tests: New file.
4092         * tests/test-accept4.c: New file.
4093
4094 2011-09-18  Bruno Haible  <bruno@clisp.org>
4095
4096         Tests for module 'accept'.
4097         * modules/accept-tests: New file.
4098         * tests/test-accept.c: New file.
4099
4100 2011-09-18  Bruno Haible  <bruno@clisp.org>
4101
4102         dup2: Support for MSVC.
4103         * lib/dup2.c: Include msvc-inval.h.
4104         (rpl_dup2): Handle invalid parameter notifications during dup2 and
4105         _get_osfhandle calls.
4106         * modules/dup2 (Depends-on): Add msvc-inval.
4107         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
4108
4109         New module 'msvc-inval'.
4110         * lib/msvc-inval.h: New file.
4111         * lib/msvc-inval.c: New file.
4112         * m4/msvc-inval.m4: New file.
4113         * modules/msvc-inval: New file.
4114
4115 2011-09-17  Bruno Haible  <bruno@clisp.org>
4116
4117         Tests for module 'pclose'.
4118         * modules/pclose-tests: New file.
4119
4120         New module 'pclose'.
4121         * lib/stdio.in.h (pclose): New declaration.
4122         * lib/pclose.c: New file.
4123         * m4/pclose.m4: New file.
4124         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
4125         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
4126         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
4127         * modules/pclose: New file.
4128         * modules/popen-tests (Depends-on): Add pclose.
4129         * modules/popen-safer-tests (Depends-on): Likewise.
4130         * doc/posix-functions/pclose.texi: Mention the new module.
4131
4132 2011-09-17  Bruno Haible  <bruno@clisp.org>
4133
4134         popen: Support for MSVC.
4135         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
4136         * lib/popen.c (popen): Provide alternate definition for native Windows.
4137         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
4138         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
4139         * modules/popen (Depends-on, configure.ac): Update condition.
4140         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
4141         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
4142         fixed.
4143
4144 2011-09-17  Bruno Haible  <bruno@clisp.org>
4145
4146         isnanl, isnand, isnanf: Work around MSVC bug.
4147         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
4148
4149 2011-09-17  Bruno Haible  <bruno@clisp.org>
4150
4151         sys_socket tests: Fix recent mistake.
4152         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
4153
4154 2011-09-17  Bruno Haible  <bruno@clisp.org>
4155
4156         putenv: Support for MSVC.
4157         * modules/putenv (Depends-on): Add environ.
4158         * lib/putenv.c (environ): Disable declaration.
4159         * lib/unistd.in.h: Update comment.
4160
4161 2011-09-17  Bruno Haible  <bruno@clisp.org>
4162
4163         math: Avoid macro redefinition warnings on MSVC.
4164         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
4165         Undefine before redefining.
4166
4167 2011-09-17  Bruno Haible  <bruno@clisp.org>
4168
4169         doc: Mention functions which are declared as macros.
4170         * doc/posix-functions/*[fl].texi: Mention that some functions are
4171         defined as macros with arguments only.
4172
4173 2011-09-17  Bruno Haible  <bruno@clisp.org>
4174
4175         Add dependencies to new dirent related modules.
4176         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
4177         * modules/fts (Depends-on): Likewise.
4178         * modules/glob (Depends-on): Likewise.
4179         * modules/savedir (Depends-on): Likewise.
4180         * modules/scandir (Depends-on): Likewise.
4181         * modules/dirent-safer (Depends-on): Add opendir, closedir.
4182         * modules/fdopendir (Depends-on): Add opendir.
4183
4184 2011-09-17  Bruno Haible  <bruno@clisp.org>
4185
4186         inet_pton: Support for MSVC on Windows Vista or newer.
4187         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
4188         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
4189         HAVE_DECL_INET_PTON is defined.
4190         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
4191         On platforms with <winsock2.h>, test whether inet_pton is declared in
4192         <ws2tcpip.h>. If so, arrange to replace it.
4193         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
4194         REPLACE_INET_PTON.
4195         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
4196         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
4197         (Depends-on, configure.ac): Update condition.
4198         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
4199
4200 2011-09-17  Bruno Haible  <bruno@clisp.org>
4201
4202         inet_ntop: Support for MSVC on Windows Vista or newer.
4203         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
4204         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
4205         HAVE_DECL_INET_NTOP is defined.
4206         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
4207         On platforms with <winsock2.h>, test whether inet_ntop is declared in
4208         <ws2tcpip.h>. If so, arrange to replace it.
4209         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
4210         REPLACE_INET_NTOP.
4211         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
4212         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
4213         (Depends-on, configure.ac): Update condition.
4214         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
4215
4216 2011-09-16  Eric Blake  <eblake@redhat.com>
4217
4218         test-fsync: yet another enhancement
4219         * tests/test-fsync.c (main): Also test behavior on read-only text
4220         file.
4221
4222 2011-09-16  Bruno Haible  <bruno@clisp.org>
4223
4224         Enhance fsync, fdatasync tests.
4225         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
4226         * tests/test-fdatasync.c (main): Likewise.
4227
4228 2011-09-16  Bruno Haible  <bruno@clisp.org>
4229
4230         Support for MSVC compiler: Ensure mode_t gets defined.
4231         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
4232         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4233         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
4234         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
4235         * tests/test-fcntl-h.c: Check that mode_t is defined.
4236         * tests/test-sys_stat.c: Likewise.
4237         * tests/test-sys_types.c: Likewise.
4238         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
4239         * doc/posix-headers/sys_stat.texi: Likewise.
4240         * doc/posix-headers/sys_types.texi: Likewise.
4241
4242 2011-09-16  Bruno Haible  <bruno@clisp.org>
4243
4244         sys_stat: Support for MSVC.
4245         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
4246         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
4247         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
4248         MSVC.
4249
4250 2011-09-16  Bruno Haible  <bruno@clisp.org>
4251
4252         Support for MSVC compiler: Ensure off_t gets defined.
4253         * lib/unistd.in.h: Include <sys/types.h>.
4254         * tests/test-fcntl-h.c: Check that off_t is defined.
4255         * tests/test-sys_stat.c: Likewise.
4256         * tests/test-sys_types.c: Likewise.
4257
4258 2011-09-16  Eric Blake  <eblake@redhat.com>
4259
4260         fdatasync: port to Solaris
4261         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
4262         * modules/fdatasync (Link): Document it.
4263         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
4264
4265         fdatasync: port to MacOS X 10.7
4266         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
4267         declared.
4268         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
4269         * modules/unistd (Makefile.am): Substitute it.
4270         * lib/unistd.in.h (fdatasync): Declare on MacOS.
4271         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
4272
4273         fdatasync: minor improvements
4274         * modules/fdatasync (Depends-on): Add condition for fsync.
4275         * lib/fdatasync.c (fdatasync): Add comment.
4276         * tests/test-unistd-c++.cc: Test fdatasync.
4277
4278         unistd: update refs to newer POSIX
4279         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
4280         Suggested by Bruno Haible.
4281
4282         fdatasync: new module
4283         * modules/fsync (Description): Document difference to fdatasync.
4284         * modules/fdatasync: New module.
4285         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
4286         * lib/fdatasync.c (fdatasync): Likewise.
4287         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
4288         defaults.
4289         * modules/unistd (Makefile.am): Set witnesses.
4290         * lib/unistd.in.h (fdatasync): Declare.
4291         * MODULES.html.sh: Document it.
4292         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
4293         * modules/fdatasync-tests: New test.
4294         * tests/test-fdatasync.c: Likewise.
4295
4296 2011-09-16  Eric Blake  <eblake@redhat.com>
4297
4298         test-fsync: enhance tests
4299         * modules/fsync-tests (Depends-on): Add errno, for mingw.
4300         * tests/test-fsync.c (main): Enhance test.
4301
4302 2011-09-15  Bruno Haible  <bruno@clisp.org>
4303
4304         Support for MSVC compiler: Ensure ssize_t gets defined.
4305         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
4306         * doc/posix-headers/stdio.texi: Likewise.
4307         * modules/stdio (Depends-on): Add ssize_t.
4308         * modules/sys_socket (Depends-on): Likewise.
4309         * modules/sys_types (Depends-on): Likewise.
4310         * modules/sys_uio (Depends-on): Likewise.
4311         * modules/unistd (Depends-on): Likewise.
4312         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
4313         * tests/test-sys_types.c: Check that ssize_t is defined.
4314
4315 2011-09-14  Bruno Haible  <bruno@clisp.org>
4316
4317         Avoid using #, the m4 comment starter character, near brackets.
4318         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
4319         delimiter character in sed expressions.
4320         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
4321         Suggested by Eric Blake.
4322
4323         Properly quote AC_CHECK_DECLS' 4th argument.
4324         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
4325         argument.
4326         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
4327         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
4328         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
4329         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
4330         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
4331         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
4332         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
4333         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
4334         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
4335         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
4336         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
4337         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4338         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
4339         * m4/isinf.m4 (gl_ISINF): Likewise.
4340         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
4341         * m4/readutmp.m4 (gl_READUTMP): Likewise.
4342         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
4343         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4344         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4345         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
4346         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
4347         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
4348         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
4349         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
4350         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
4351         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4352         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
4353         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
4354         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
4355         Reported by Eric Blake.
4356
4357         Properly quote AC_CHECK_DECL's 4th argument.
4358         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
4359         argument.
4360         * m4/argp.m4 (gl_ARGP): Likewise.
4361         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
4362         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
4363         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
4364         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
4365         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
4366         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
4367         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
4368         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
4369         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
4370         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
4371         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
4372         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
4373         Reported by Eric Blake.
4374
4375 2011-09-14  Eric Blake  <eblake@redhat.com>
4376
4377         opendir: avoid compile warning
4378         * lib/opendir.c (includes): Always include errno.h.
4379         Reported by Tatsuro MATSUOKA.
4380
4381 2011-09-14  Jim Meyering  <meyering@redhat.com>
4382
4383         maint.mk: sc_tight_scope: propagate failure from sub-make
4384         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
4385         Reported by Martin von Gagern.
4386
4387 2011-09-13  Bruno Haible  <bruno@clisp.org>
4388
4389         tempname: Support for MSVC.
4390         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
4391         MSVC.
4392         * modules/tempname (Depends-on): Add fcntl-h.
4393
4394 2011-09-13  Bruno Haible  <bruno@clisp.org>
4395
4396         sys_time: Support for MSVC.
4397         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
4398         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
4399         include <winsock2.h>.
4400         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
4401         function declarations that collide with POSIX.
4402         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
4403         (Makefile.am): Substitute HAVE_WINSOCK2_H.
4404
4405 2011-09-13  Bruno Haible  <bruno@clisp.org>
4406
4407         stat: Support for MSVC.
4408         * lib/stat.c: Include pathmax.h.
4409         * modules/stat (Depends-on): Add pathmax.
4410
4411         pathmax: Support for native Windows.
4412         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
4413
4414 2011-09-12  Bruno Haible  <bruno@clisp.org>
4415
4416         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
4417         * lib/dirent.in.h (struct dirent): New type.
4418         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
4419         DT_WHT): New macros.
4420         (DIR): New type.
4421         (opendir, closedir): Declare only if the module 'opendir' is enabled.
4422         (readdir, rewinddir): New declarations.
4423         * lib/dirent-private.h: New file.
4424         * lib/opendir.c: New file.
4425         * lib/readdir.c: New file.
4426         * lib/rewinddir.c: New file.
4427         * lib/closedir.c: New file.
4428         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
4429         * m4/opendir.m4: New file.
4430         * m4/readdir.m4: New file.
4431         * m4/rewinddir.m4: New file.
4432         * m4/closedir.m4: New file.
4433         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
4434         REPLACE_CLOSEDIR here.
4435         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
4436         readdir, rewinddir are declared.
4437         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
4438         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
4439         HAVE_REWINDDIR, HAVE_CLOSEDIR.
4440         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
4441         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
4442         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
4443         * modules/opendir: New file.
4444         * modules/readdir: New file.
4445         * modules/rewinddir: New file.
4446         * modules/closedir: New file.
4447         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
4448         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
4449         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
4450         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
4451         * NEWS: Mention the 'fchdir' change.
4452
4453 2011-09-11  Bruno Haible  <bruno@clisp.org>
4454
4455         asm-underscore.m4: Support for MSVC.
4456         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
4457         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
4458
4459 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
4460
4461         Doc about crypt functions.
4462         * doc/posix-functions/crypt.texi: Expand range of glibc versions
4463         needing for _GNU_SOURCE to get crypt.
4464         * doc/posix-functions/encrypt.texi: Likewise.
4465         * doc/posix-functions/setkey.texi: Likewise.
4466
4467 2011-09-11  Bruno Haible  <bruno@clisp.org>
4468
4469         doc: Update regarding MSVC 9.
4470         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
4471         tested".
4472         * doc/posix-functions/*.texi: Update with info about MSVC 9.
4473         * doc/posix-headers/*.texi: Likewise.
4474         * doc/pastposix-functions/*.texi: Likewise.
4475         * doc/glibc-functions/*.texi: Likewise.
4476         * doc/glibc-headers/*.texi: Likewise.
4477
4478 2011-09-11  Bruno Haible  <bruno@clisp.org>
4479
4480         unistd et al.: Don't assume <unistd.h> exists.
4481         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
4482         does not exist.
4483         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
4484         exist. But include <stdlib.h>.
4485         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
4486         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
4487         symlink() does not exist.
4488         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
4489         include <io.h> instead.
4490         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
4491         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
4492         include <direct.h> instead.
4493         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4494         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4495         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
4496         <io.h> instead.
4497         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
4498         correctly if the system does not have hard links.
4499         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
4500         <direct.h> instead.
4501         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
4502         it when looking for function declarations.
4503         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
4504         <direct.h> and <io.h> instead.
4505         * doc/posix-headers/unistd.texi: More details about MSVC problem.
4506
4507 2011-09-11  Bruno Haible  <bruno@clisp.org>
4508
4509         strcase: Support for MSVC.
4510         * modules/strcase (Status, Notice): Remove obsoletion mark.
4511         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
4512         * doc/posix-functions/strncasecmp.texi: Likewise.
4513
4514         strings: Don't assume <strings.h> exists.
4515         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
4516         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
4517         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
4518         * doc/posix-headers/strings.texi: Mention the MSVC problem.
4519
4520 2011-09-11  Bruno Haible  <bruno@clisp.org>
4521
4522         dirent: Don't assume <dirent.h> exists.
4523         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
4524         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
4525         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
4526         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
4527
4528 2011-09-11  Bruno Haible  <bruno@clisp.org>
4529
4530         Fix wint_t on MSVC.
4531         * lib/wchar.in.h (wint_t): On MSVC, override it.
4532         * lib/wctype.in.h (wint_t): Likewise.
4533         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
4534         MSVC.
4535         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
4536         * doc/posix-headers/wctype.texi: Likewise.
4537
4538 2011-09-11  Bruno Haible  <bruno@clisp.org>
4539
4540         sys_types: Fix typo.
4541         * lib/sys_types.in.h: Fix typo in comment.
4542         Reported by Paul Eggert.
4543
4544         Support for MSVC compiler: Ensure size_t gets defined.
4545         * modules/strings (Depends-on): Add 'sys_types'.
4546         * modules/sys_uio (Depends-on): Likewise.
4547         * lib/sys_uio.in.h: Update comment.
4548
4549         C++ tests for module 'sys_types'.
4550         * modules/sys_types-c++-tests: New file.
4551         * tests/test-sys_types-c++.cc: New file.
4552
4553         Tests for module 'sys_types'.
4554         * modules/sys_types-tests: New file.
4555         * tests/test-sys_types.c: New file.
4556
4557         New module 'sys_types'.
4558         * lib/sys_types.in.h: New file.
4559         * m4/sys_types_h.m4: New file.
4560         * modules/sys_types: New file.
4561         * doc/posix-headers/sys_types.texi: Mention the new module and the
4562         size_t problem on MSVC 9.
4563
4564 2011-09-11  Bruno Haible  <bruno@clisp.org>
4565
4566         Support for MSVC compiler: Avoid division by a literal 0.
4567         * lib/math.in.h (NAN): Define through a function call also on MSVC.
4568         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
4569         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
4570         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
4571         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
4572         * tests/infinity.h: New file.
4573         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
4574         on MSVC.
4575         * tests/test-ceilf1.c: Include infinity.h.
4576         (main): Use Infinityf.
4577         * tests/test-ceil1.c: Include infinity.h.
4578         (main): Use Infinityd.
4579         * tests/test-ceill.c: Include infinity.h.
4580         (main): Use Infinityl.
4581         * tests/test-dprintf-posix.c: Include infinity.h.
4582         (test_function): Use Infinityd.
4583         * tests/test-floorf1.c: Include infinity.h.
4584         (main): Use Infinityf.
4585         * tests/test-floor1.c: Include infinity.h.
4586         (main): Use Infinityd.
4587         * tests/test-floorl.c: Include infinity.h.
4588         (main): Use Infinityl.
4589         * tests/test-fprintf-posix.c: Include infinity.h.
4590         (test_function): Use Infinityd.
4591         * tests/test-frexp.c: Include infinity.h.
4592         (main): Use Infinityd.
4593         * tests/test-frexpl.c: Include infinity.h.
4594         (main): Use Infinityl.
4595         * tests/test-isfinite.c: Include infinity.h.
4596         (test_isfinitef): Use Infinityf.
4597         (test_isfinited): Use Infinityd.
4598         (test_isfinitel): Use Infinityl.
4599         * tests/test-isinf.c: Include infinity.h.
4600         (test_isinff): Use Infinityf.
4601         (test_isinfd): Use Infinityd.
4602         (test_isinfl): Use Infinityl.
4603         * tests/test-isnan.c: Include infinity.h.
4604         (test_float): Use Infinityf.
4605         (test_double): Use Infinityd.
4606         (test_long_double): Use Infinityl.
4607         * tests/test-isnanf.h: Include infinity.h.
4608         (main): Use Infinityf.
4609         * tests/test-isnand.h: Include infinity.h.
4610         (main): Use Infinityd.
4611         * tests/test-isnanl.h: Include infinity.h.
4612         (main): Use Infinityl.
4613         * tests/test-ldexpl.c: Include infinity.h.
4614         (main): Use Infinityl.
4615         * tests/test-printf-posix.h: Include infinity.h.
4616         (test_function): Use Infinityd.
4617         * tests/test-roundf1.c: Include infinity.h.
4618         (main): Use Infinityf.
4619         * tests/test-round1.c: Include infinity.h.
4620         (main): Use Infinityd.
4621         * tests/test-roundl.c: Include infinity.h.
4622         (main): Use Infinityl.
4623         * tests/test-signbit.c: Include infinity.h.
4624         (test_signbitf): Use Infinityf.
4625         (test_signbitd): Use Infinityd.
4626         (test_signbitl): Use Infinityl.
4627         * tests/test-snprintf-posix.h: Include infinity.h.
4628         (test_function): Use Infinityd, Infinityl.
4629         * tests/test-sprintf-posix.h: Include infinity.h.
4630         (test_function): Use Infinityd, Infinityl.
4631         * tests/test-truncf1.c: Include infinity.h.
4632         (main): Use Infinityf.
4633         * tests/test-trunc1.c: Include infinity.h.
4634         (main): Use Infinityd.
4635         * tests/test-truncl.c: Include infinity.h.
4636         (main): Use Infinityl.
4637         * tests/test-vasnprintf-posix.c: Include infinity.h.
4638         (test_function): Use Infinityd, Infinityl.
4639         * tests/test-vasprintf-posix.c: Include infinity.h.
4640         (test_function): Use Infinityd, Infinityl.
4641         * modules/ceilf-tests (Files): Add tests/infinity.h.
4642         * modules/ceil-tests (Files): Likewise.
4643         * modules/ceill-tests (Files): Likewise.
4644         * modules/dprintf-posix-tests (Files): Likewise.
4645         * modules/floorf-tests (Files): Likewise.
4646         * modules/floor-tests (Files): Likewise.
4647         * modules/floorl-tests (Files): Likewise.
4648         * modules/fprintf-posix-tests (Files): Likewise.
4649         * modules/frexp-tests (Files): Likewise.
4650         * modules/frexp-nolibm-tests (Files): Likewise.
4651         * modules/frexpl-tests (Files): Likewise.
4652         * modules/frexpl-nolibm-tests (Files): Likewise.
4653         * modules/isfinite-tests (Files): Likewise.
4654         * modules/isinf-tests (Files): Likewise.
4655         * modules/isnan-tests (Files): Likewise.
4656         * modules/isnanf-tests (Files): Likewise.
4657         * modules/isnanf-nolibm-tests (Files): Likewise.
4658         * modules/isnand-tests (Files): Likewise.
4659         * modules/isnand-nolibm-tests (Files): Likewise.
4660         * modules/isnanl-tests (Files): Likewise.
4661         * modules/isnanl-nolibm-tests (Files): Likewise.
4662         * modules/ldexpl-tests (Files): Likewise.
4663         * modules/printf-posix-tests (Files): Likewise.
4664         * modules/roundf-tests (Files): Likewise.
4665         * modules/round-tests (Files): Likewise.
4666         * modules/roundl-tests (Files): Likewise.
4667         * modules/signbit-tests (Files): Likewise.
4668         * modules/snprintf-posix-tests (Files): Likewise.
4669         * modules/sprintf-posix-tests (Files): Likewise.
4670         * modules/truncf-tests (Files): Likewise.
4671         * modules/trunc-tests (Files): Likewise.
4672         * modules/truncl-tests (Files): Likewise.
4673         * modules/vasnprintf-posix-tests (Files): Likewise.
4674         * modules/vasprintf-posix-tests (Files): Likewise.
4675         * modules/vdprintf-posix-tests (Files): Likewise.
4676         * modules/vfprintf-posix-tests (Files): Likewise.
4677         * modules/vprintf-posix-tests (Files): Likewise.
4678         * modules/vsnprintf-posix-tests (Files): Likewise.
4679         * modules/vsprintf-posix-tests (Files): Likewise.
4680         * modules/xprintf-posix-tests (Files): Likewise.
4681
4682 2011-09-11  Bruno Haible  <bruno@clisp.org>
4683
4684         Ensure pid_t gets defined.
4685         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
4686         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
4687         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
4688         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4689         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
4690         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
4691         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
4692         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4693         * tests/test-fcntl-h.c: Check that pid_t is defined.
4694         * tests/test-sched.c: Likewise.
4695         * tests/test-termios.c: Likewise.
4696         * tests/test-time.c: Likewise.
4697         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
4698         * doc/posix-headers/signal.texi: Likewise.
4699         * doc/posix-headers/sys_types.texi: Likewise.
4700         * doc/posix-headers/time.texi: Likewise.
4701
4702 2011-09-11  Bruno Haible  <bruno@clisp.org>
4703
4704         acl: Fix compilation on Solaris 10 (older version).
4705         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
4706         of ACE_EVERYONE.
4707         * lib/set-mode-acl.c (qset_acl): Likewise.
4708         Reported by Christian Jullien <eligis@orange.fr>.
4709
4710 2011-09-10  Bruno Haible  <bruno@clisp.org>
4711
4712         iconv, unsetenv: Add support for MSVC compiler.
4713         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
4714         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
4715
4716 2011-09-10  Bruno Haible  <bruno@clisp.org>
4717
4718         *printf: Add support for MSVC compiler.
4719         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
4720         handles the exception caused by the %n directive. When cross-compiling,
4721         guess no on native Windows.
4722         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
4723         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
4724         emulate it through vsnprintf.
4725         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
4726         * doc/posix-functions/dprintf.texi: Update documentation regarding
4727         MSVC 9.
4728         * doc/posix-functions/fprintf.texi: Likewise.
4729         * doc/posix-functions/printf.texi: Likewise.
4730         * doc/posix-functions/snprintf.texi: Likewise.
4731         * doc/posix-functions/sprintf.texi: Likewise.
4732         * doc/posix-functions/swprintf.texi: Likewise.
4733         * doc/posix-functions/vdprintf.texi: Likewise.
4734         * doc/posix-functions/vfprintf.texi: Likewise.
4735         * doc/posix-functions/vprintf.texi: Likewise.
4736         * doc/posix-functions/vsnprintf.texi: Likewise.
4737         * doc/posix-functions/vsprintf.texi: Likewise.
4738         * doc/glibc-functions/asprintf.texi: Likewise.
4739         * doc/glibc-functions/obstack_printf.texi: Likewise.
4740         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
4741         * doc/glibc-functions/vasprintf.texi: Likewise.
4742
4743 2011-09-10  Bruno Haible  <bruno@clisp.org>
4744
4745         nocrash: Add support for native Windows.
4746         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
4747
4748 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
4749             Bruno Haible  <bruno@clisp.org>
4750
4751         absolute-header, include-next: Add support for MSVC compiler.
4752         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
4753         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
4754         directory separator in #line directives.
4755         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
4756         recognize also backslash as directory separator in #line directives.
4757
4758 2011-09-08  Jim Meyering  <meyering@redhat.com>
4759
4760         maint.mk: mark the post-release commit log with "maint: " prefix
4761         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
4762         one-line commit-log summary.
4763
4764 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
4765             Bruno Haible  <bruno@clisp.org>
4766
4767         Doc about crypt functions.
4768         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
4769         systems.
4770         * doc/posix-functions/encrypt.texi: Likewise.
4771         * doc/posix-functions/setkey.texi: Likewise.
4772
4773 2011-09-08  Simon Josefsson  <simon@josefsson.org>
4774
4775         * lib/gc.h: Fix copyright header.
4776
4777 2011-09-07  Bruno Haible  <bruno@clisp.org>
4778
4779         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
4780         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
4781         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
4782
4783 2011-09-07  Bruno Haible  <bruno@clisp.org>
4784
4785         openat: Work around compilation error with OSF/1 5.1 DTK cc.
4786         * lib/fopen.c: Use different syntax for include of <stdio.h>.
4787         * lib/freopen.c: Likewise.
4788         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
4789         * lib/lstat.c: Likewise.
4790         * lib/stat.c: Likewise.
4791         * lib/open.c: Use different syntax for include of <fcntl.h>.
4792         * lib/openat.c: Include fcntl.h again, explicitly.
4793
4794 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
4795
4796         parse-datetime: document the newly accepted format
4797         * doc/parse-datetime.texi (Combined date and time of day items):
4798         New section.
4799
4800 2011-09-06  Bruno Haible  <bruno@clisp.org>
4801
4802         acl: Fix a test failure on newer Solaris 10 with ZFS.
4803         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
4804         ENOSYS as no ACL.
4805         Reported by Jim Meyering.
4806
4807 2011-09-06  Bruno Haible  <bruno@clisp.org>
4808
4809         acl: Update for AIX >= 5.3 with NFS.
4810         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
4811         ENOSYS as no ACL.
4812
4813         acl: Fix a test failure on AIX >= 5.3 with NFS.
4814         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
4815         as no ACL.
4816
4817 2011-09-06  Bruno Haible  <bruno@clisp.org>
4818
4819         acl: Fix a test failure on IRIX 6.5 with NFS.
4820         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
4821         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
4822         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
4823         * lib/copy-acl.c (qcopy_acl): Likewise.
4824
4825 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
4826
4827         openat: port to AIX 7.1 with large files
4828         AIX 7.1 does a "#define openat open64at" if large files are in use,
4829         so we can't simply #undef openat.  Use the orig_openat trick (similar
4830         to orig_open in lib/open.c) to work around the problem.  Problem
4831         reported by Kevin Brott for GNU tar, in the thread containing
4832         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
4833         * lib/openat.c (__need_system_fcntl_h): Define first.
4834         Include <fcntl.h> and <sys/types.h> before undefining.
4835         (orig_openat) [HAVE_OPENAT]: New inline function.
4836         (openat) [HAVE_OPENAT]: Do not undef.
4837         (rpl_openat): Use orig_openat, not openat.
4838
4839 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
4840             Bruno Haible  <bruno@clisp.org>
4841
4842         acl: Avoid errors on NonStop Kernel.
4843         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
4844         ENOTSUP errors.
4845
4846 2011-09-05  Bruno Haible  <bruno@clisp.org>
4847
4848         acl: Clean up Solaris code.
4849         * lib/acl-internal.h: Remove no-op #if.
4850         * lib/file-has-acl.c: Likewise.
4851         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
4852         * lib/copy-acl.c (qcopy_acl): Likewise.
4853
4854 2011-09-05  Bruno Haible  <bruno@clisp.org>
4855
4856         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
4857         binaries built on the original Solaris 10.
4858         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
4859         trivial.
4860
4861 2011-09-05  Bruno Haible  <bruno@clisp.org>
4862
4863         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4864         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
4865         10.
4866         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
4867         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
4868         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
4869         instead of acl_get, facl_get, acl_set, facl_set.
4870
4871 2011-09-05  Bruno Haible  <bruno@clisp.org>
4872
4873         copy-file: Try unit tests on more file systems.
4874         * tests/test-copy-file-1.sh: New file.
4875         * tests/test-copy-file-2.sh: New file.
4876         * modules/copy-file-tests (Files): Add them.
4877         (Makefile.am): Add them to TESTS.
4878
4879         acl: Try unit tests on more file systems.
4880         * tests/test-file-has-acl-1.sh: New file.
4881         * tests/test-file-has-acl-2.sh: New file.
4882         * tests/test-set-mode-acl-1.sh: New file.
4883         * tests/test-set-mode-acl-2.sh: New file.
4884         * tests/test-copy-acl-1.sh: New file.
4885         * tests/test-copy-acl-2.sh: New file.
4886         * modules/acl-tests (Files): Add them.
4887         (Makefile.am): Add them to TESTS.
4888
4889 2011-09-04  Bruno Haible  <bruno@clisp.org>
4890
4891         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4892         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
4893         10.
4894         (OLD_ALLOW, OLD_DENY): New macros.
4895         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
4896         ACE_ACCESS_ALLOWED_ACE_TYPE.
4897         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
4898         ACE_ACCESS_DENIED_ACE_TYPE.
4899         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
4900         (NEW_ACE_EXECUTE): Fix value.
4901         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
4902         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
4903         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
4904         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
4905         NEW_ACE_SYNCHRONIZE): New macros.
4906         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
4907         instead of acl_fromtext, acl_set, facl_set.
4908         Fixes a coreutils/tests/cp/perm failure.
4909
4910 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
4911
4912         openat: test for fstatat (..., 0) bug
4913         Further testing with tar suggests that fstatat (..., 0)
4914         does not work in general, on AIX 7.1; see
4915         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
4916         So, give up entirely on AIX 7.1's fstatat, and fall back on our
4917         replacement fstatat (which is what older AIX releases were using
4918         anyway).
4919         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
4920         use is now changed to orig_fstatat.  This was probably the right
4921         thing to do anyway.
4922         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
4923         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
4924         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
4925         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
4926         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
4927         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
4928         if the bug is found.
4929
4930         openat: test for fstatat (AT_FDCWD, ..., 0) bug
4931         This tests for another fstatat bug on AIX 7.1:
4932         fstatat (AT_FDCWD, ..., 0) does not work.  See
4933         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
4934         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
4935         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
4936         (rpl_fstatat): Adjust so that it works around either (or both)
4937         bugs if present.
4938         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
4939
4940 2011-09-03  Karl Berry  <karl@gnu.org>
4941
4942         * doc/regex.texi (Character Class Operators): Avoid literal ":"
4943         in index entries.
4944
4945 2011-09-02  Bruno Haible  <bruno@clisp.org>
4946
4947         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
4948         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
4949         values of AR, ARFLAGS, RANLIB.
4950         Reported by John W. Eaton <jwe@gnu.org> for Octave.
4951
4952 2011-09-02  Bruno Haible  <bruno@clisp.org>
4953
4954         Find 'ar' program that fits with --host argument.
4955         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
4956
4957 2011-09-02  Bruno Haible  <bruno@clisp.org>
4958
4959         tests: init.sh: Support any non-GNU diff.
4960         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
4961         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
4962         Solaris 8.
4963
4964 2011-09-02  Bruno Haible  <bruno@clisp.org>
4965
4966         tests: init.sh: work also with any non-GNU diff that supports -u
4967         * tests/init.sh: Relax check for diff -u support.
4968         Rather than checking for GNU diff via --version, simply check
4969         for support for -u itself.  Useful at least on OpenBSD 4.9,
4970         AIX 7.1, IRIX 6.5, and Solaris 10.
4971
4972 2011-09-01  Bruno Haible  <bruno@clisp.org>
4973
4974         strtoimax, strtoumax: Document problem on HP-UX 11.
4975         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
4976         * doc/posix-functions/strtoumax.texi: Likewise.
4977
4978 2011-09-01  Bruno Haible  <bruno@clisp.org>
4979
4980         strtoumax: Avoid link error on OSF/1 with DTK cc.
4981         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
4982         defined as a function.
4983         * modules/strtoumax (Depends-on, configure.ac): Test only whether
4984         strtoumax is defined, not whether it is declared.
4985
4986 2011-09-01  Bruno Haible  <bruno@clisp.org>
4987
4988         strtoimax: Avoid link error on OSF/1 with DTK cc.
4989         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
4990         defined as a function.
4991         * modules/strtoimax (Depends-on, configure.ac): Test only whether
4992         strtoimax is defined, not whether it is declared.
4993
4994 2011-09-01  Bruno Haible  <bruno@clisp.org>
4995
4996         imaxdiv: Avoid link error on OSF/1 with DTK cc.
4997         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
4998         as a function.
4999         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
5000         whether it is declared.
5001
5002 2011-09-01  Bruno Haible  <bruno@clisp.org>
5003
5004         imaxabs: Avoid link error on OSF/1 with DTK cc.
5005         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
5006         as a function.
5007         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
5008         whether it is declared.
5009
5010 2011-09-01  Bruno Haible  <bruno@clisp.org>
5011
5012         Tests for module 'strtoumax'.
5013         * modules/strtoumax-tests: New file.
5014         * tests/test-strtoumax.c: New file.
5015
5016         Tests for module 'strtoimax'.
5017         * modules/strtoimax-tests: New file.
5018         * tests/test-strtoimax.c: New file.
5019
5020         Tests for module 'imaxdiv'.
5021         * modules/imaxdiv-tests: New file.
5022         * tests/test-imaxdiv.c: New file.
5023
5024         Tests for module 'imaxabs'.
5025         * modules/imaxabs-tests: New file.
5026         * tests/test-imaxabs.c: New file.
5027
5028 2011-09-01  Bruno Haible  <bruno@clisp.org>
5029
5030         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
5031         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
5032         pthread_create.
5033
5034 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
5035
5036         openat: work around AIX 7.1 fstatat issue
5037         This should fix the problem that was not properly fixed
5038         in the previous change, dated 2011-08-30.
5039         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
5040         __need_system_stat_h defined.
5041         (orig_fstatat) [HAVE_FSTATAT]: New function.
5042         (rpl_fstatat): Go back to the old way of doing things,
5043         except call orig_fstatat instead of fstatat.
5044         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
5045         Remove unnecessary check whether fstatat fills in st_size etc.
5046
5047 2011-09-01  Bruno Haible  <bruno@clisp.org>
5048
5049         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
5050         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
5051         just include the system's header.
5052
5053 2011-08-31  Jim Meyering  <meyering@redhat.com>
5054
5055         tests: avoid spurious assertion failure in test-float.c on ppc64
5056         * tests/test-float.c (test_long_double): Comment out an assertion,
5057         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
5058         with gcc-4.4.4.
5059
5060         maint: indent with spaces, not TABs
5061         I need to get in the habit of running gnulib's "make check".
5062         Both of these would have been caught.
5063         * m4/largefile.m4: Indent with spaces, not TABs.
5064         * lib/parse-datetime.y (iso_8601_time): Likewise.
5065         Spotted by Pádraig Brady.
5066
5067         test-parse-datetime.c: accommodate a relatively strict gcc warning
5068         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
5069         to avoid a warning from gcc's -Werror=missing-declarations.
5070         Insert a few spaces-before-funcall-parenthesis.
5071
5072 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
5073
5074         parse-datetime: accept ISO 8601 date and time rep with "T" separator
5075         The parser now accepts ISO 8601 date-time strings with "T" as the
5076         separator.  It has long parsed dates like "2004-02-29 16:21:42"
5077         with a space between the date and time strings.  Now it also parses
5078         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
5079         variants like "2004-02-29T16:21:42.333-07:00"
5080         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
5081         of day representation using the 'T' separator character.
5082         * doc/parse-datetime.texi (General date syntax): replace use of
5083         deprecated --iso-8601 option with --rfc-3339 in example of date
5084         command output formats that can be parsed.
5085         * tests/test-parse-datetime.c (tm_diff): New function, taken from
5086         lib/parse-datetime.y.
5087         (gmt_offset): New function.
5088         (main): Add additional test cases to validate ISO8601 extended
5089         date and time of day parsing.
5090
5091 2011-08-31  Bruno Haible  <bruno@clisp.org>
5092
5093         freopen: Documentation.
5094         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
5095         name.
5096         Reported by Claudio Bley <claudio.bley@gmail.com>.
5097
5098 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
5099
5100         freopen: Don't crash if the filename argument is NULL.
5101         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
5102         NULL.
5103
5104 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
5105
5106         openat: work around AIX 7.1 fstatat bug
5107         Problem reported by Kevin Brott for GNU tar, in the thread containing
5108         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
5109         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
5110         FSTATAT_ST_SIZE_ETC_BROKEN.
5111         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
5112         rpl_fstatat.
5113         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
5114         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
5115         AC_CHECK_FUNCS_ONCE for fstatat.
5116         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
5117         fchmodat, mkdirat, openat and unlinkat.
5118
5119 2011-08-30  Bruno Haible  <bruno@clisp.org>
5120
5121         Avoid endless recursions if config.h includes some header files.
5122         * lib/fopen.c (__need_FILE): Define already before including config.h.
5123         * lib/freopen.c (__need_FILE): Likewise.
5124         * lib/open.c (__need_system_fcntl_h): Likewise.
5125         * lib/stat.c (__need_system_sys_stat_h): Likewise.
5126         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
5127         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5128
5129 2011-08-25  Karl Berry  <karl@gnu.org>
5130
5131         * config/srclist.txt (ylwrap): new try.
5132         * build-aux/ylwrap: new file.
5133
5134 2011-08-23  Bruno Haible  <bruno@clisp.org>
5135
5136         tmpdir: Use a good default directory on native Windows.
5137         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
5138         (P_tmpdir): Default to _P_tmpdir on native Windows.
5139         (path_search): On native Windows, try the value returned by GetTempPath
5140         before trying P_tmpdir.
5141         * modules/tmpdir (Depends-on): Add pathmax.
5142         Suggested by John Darrington <john@darrington.wattle.id.au>.
5143
5144 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
5145
5146         doc: fix typo in README-release
5147         * top/README-release: Capitalize first word of a sentence.
5148
5149 2011-08-19  Jim Meyering  <meyering@redhat.com>
5150
5151         fts: do not exhaust memory when processing million-entry directories
5152         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
5153         directory would require about 256*N bytes of memory.  Thus, it was
5154         easy to construct a directory too large to be processed by any of
5155         those tools.  With this change, fts' maximum memory utilization is
5156         now limited to around 30MB.
5157         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
5158         (fts_read): When we've processed the final entry (i.e., when
5159         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
5160         using the parent entry to read any remaining entries.  Dispatch
5161         depending on what fts_build returns:
5162         - NULL+stop, aka failure: stop
5163         - NULL otherwise: move up in the dir hierarchy
5164         - non-NULL: handle this new entry
5165         (fts_build): Declare and use new local, continue_readdir.
5166         Prepare to be called from fts_read, when the entries
5167         from a partially-read directory have just been exhausted.
5168         In that case, we'll skip the opendir and instead use the parent's
5169         fts_dirp and derive dir_fd from that.
5170         Finally, in the readdir loop, if we read max_entries entries,
5171         exit the loop ensuring *not* to call closedir.  This is required
5172         so that fts_dirp can be reused on a subsequent call.
5173         Prompted by Ben England's report of memory exhaustion in find
5174         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
5175
5176         maint: fts: move decl of `dp' down into while loop; split a long line
5177         * lib/fts.c (fts_build): No semantic change.
5178
5179         fts: add/use new struct member, fts_dirp
5180         We are about to use this to manage any directory with
5181         too many entries to read all of them into memory at once.
5182         To do that, we'll need to save the DIR* pointer in each
5183         affected FTSENT struct.
5184         * lib/fts_.h: Include <dirent.h>.
5185         (struct FTSENT) [fts_dirp]: New member.
5186         * lib/fts.c (closedir_and_clear): Define.
5187         Use it in place of closedir so that we are sure to
5188         clear the new fts_dirp member when done with it.
5189         (fts_alloc): Initialize the new member.
5190         (fts_lfree): Free, if needed.
5191
5192         maint: fts: give __opendir2 a new parameter and rename
5193         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
5194         than surreptitiously using sole caller's "dir_fd".
5195         (fts_opendir): Rename from __opendir2.
5196
5197         maint: fts.c: remove __opendir2's now-unused parameter, oflag
5198         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
5199
5200         maint: fts.c: correct off-by-one indentation
5201         * lib/fts.c (fts_build): Correct indentation, change style
5202         of a couple of block comments, and bracing style.
5203
5204         maint: fts.c: move __opendir2 #define "up" out of function body
5205         * lib/fts.c (__opendir2): Move "up".  No semantic change.
5206
5207         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
5208         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
5209         out for a long time and besides was useful only on BSD systems.
5210
5211 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
5212
5213         regex: port to Stratus OpenVOS
5214         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
5215         define to empty, rather than attempting nonportable optimizations.
5216         Problem reported by Paul Green in:
5217         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
5218         and fix suggested by Eric Blake in:
5219         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
5220
5221 2011-08-17  Eric Blake  <eblake@redhat.com>
5222
5223         getcwd: fix test failures on mingw
5224         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
5225         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
5226         test if long directory cannot be created, and allow mingw errno.
5227
5228         getcwd-lgpl: fix m4 to match relaxed test for BSD
5229         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
5230         (gl_FUNC_GETCWD_SIGNATURE): New macro.
5231         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
5232         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
5233         signature problem.
5234
5235         getcwd: fix compilation on mingw64
5236         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
5237         getcwd.
5238         Reported by Marc-André Lureau.
5239
5240         pipe2: silence compiler warning
5241         * lib/pipe2.c (pipe2): Hide label if it is not used.
5242
5243 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
5244
5245         relocatable-prog: fix link error
5246         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
5247         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
5248         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
5249         into modules/relocatable-lib without noticing that
5250         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
5251         also needs to build relocatable.c.
5252
5253 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
5254
5255         getaddrinfo: fix sh typo in gai_strerrorA decl checking
5256         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
5257         shell code: it contained a 'break' that was not in a loop.
5258         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
5259         via a shell-language loop; this may have been true in old Autoconf
5260         versions, but it's not true in Autoconf 2.68.  I found this bug
5261         when testing coreutils git on Solaris 8, whose shell complains
5262         about the syntax error.
5263
5264 2011-08-12  Simon Josefsson  <simon@josefsson.org>
5265
5266         * lib/base64.c: Fix comment to reference RFC 4648.
5267         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
5268         <gvtulder@gmail.com>.
5269
5270 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
5271
5272         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
5273
5274         po/Makefile.in.in: fix make -q problem
5275         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
5276         rule, since there's no file named 'check-macro-version' and its
5277         use as a file breaks make -q.
5278         (all): Don't depend on check-macro-version.
5279         (CHECK_MACRO_VERSION): New macro.
5280         (stamp-po): Use it.
5281
5282         configmake: fix make -q problem
5283         * modules/configmake (configmake.h): Update configmake.h's time stamp
5284         even if the file does not change.  Otherwise, 'make -q' fails.
5285         Problem reported by Simon Josefsson in
5286         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
5287
5288 2011-08-11  Jim Meyering  <meyering@redhat.com>
5289
5290         git-version-gen: correct the advice in a comment
5291         * build-aux/git-version-gen: Correct comment.
5292         Don't recommend to list .tarball-version in .gitignore.
5293
5294 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
5295
5296         base64: fix off-by-one buffer size bug
5297         Problem and (trivial) fix reported by Gijs van Tulder in
5298         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
5299         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
5300         * tests/test-base64.c (main): Catch the bug.
5301
5302 2011-08-10  Eric Blake  <eblake@redhat.com>
5303
5304         closein: correct comments
5305         * lib/closein.c (close_stdin): Improve comments.
5306
5307 2011-08-09  Bruno Haible  <bruno@clisp.org>
5308
5309         More tests for 'fseeko'.
5310         * tests/test-fseeko3.c: New file, from Eric Blake.
5311         * tests/test-fseeko3.sh: New file.
5312         * modules/fseeko-tests (Files): Add them.
5313         (TESTS): Add test-fseeko3.sh.
5314         (check_PROGRAMS): Add test-fseeko3.
5315
5316 2011-08-09  Eric Blake  <eblake@redhat.com>
5317
5318         fseeko: remove unneeded hack
5319         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
5320
5321         fseeko: fix bug on glibc
5322         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
5323         Reported by John W. Eaton.
5324
5325 2011-08-08  Bruno Haible  <bruno@clisp.org>
5326
5327         unictype/base: Fix interoperability with preinstalled libunistring.
5328         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
5329         Reported by Simon Josefsson.
5330
5331 2011-08-08  Bruno Haible  <bruno@clisp.org>
5332
5333         iswblank: Detect declaration correctly.
5334         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
5335         AC_CHECK_DECLS invocation.
5336
5337 2011-08-08  Bruno Haible  <bruno@clisp.org>
5338
5339         tcgetsid: Detect declaration correctly.
5340         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
5341         AC_CHECK_DECLS invocation.
5342         Reported by Simon Josefsson.
5343
5344 2011-08-08  Eric Blake  <eblake@redhat.com>
5345
5346         largefile: fix typo that regressed large file support
5347         * modules/largefile (configure.ac-early): Fix section name.
5348
5349 2011-08-06  Karl Berry  <karl@gnu.org>
5350
5351         * MODULES.html.sh (func_all_files): _Noreturn is no longer
5352         a separate module.
5353
5354 2011-08-05  Simon Josefsson  <simon@josefsson.org>
5355
5356         openat: Fix warnings and commens when building unlinkat.c on Hurd.
5357         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
5358         get prototype for free.
5359
5360 2011-08-04  Bruno Haible  <bruno@clisp.org>
5361
5362         Tests for module 'pathmax'.
5363         * modules/pathmax-tests: New file.
5364         * tests/test-pathmax.c: New file.
5365
5366         canonicalize-lgpl: Support larger filenames on the Hurd.
5367         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
5368         Reported by Paul Eggert.
5369
5370         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
5371         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
5372         * lib/chdir-long.h: Include pathmax.h.
5373         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
5374         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
5375         (PATH_MAX): Remove code that is done by pathmax.h.
5376         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
5377         * lib/tmpfile.c: Add a comment.
5378         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
5379         * modules/chdir-long (Depends-on): Add pathmax.
5380         * modules/getcwd (Depends-on): Add pathmax.
5381         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
5382         is not defined.
5383         * doc/posix-headers/limits.texi: Mention the pathmax module.
5384         * NEWS: Mention the change.
5385
5386 2011-08-02  Bruno Haible  <bruno@clisp.org>
5387
5388         pthread_sigmask: Actually use results of gl_THREADLIB.
5389         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
5390         gl_THREADLIB, not gl_[]THREADLIB.
5391         Reported by Eric Blake.
5392
5393 2011-08-02  Jim Meyering  <meyering@redhat.com>
5394
5395         maint.mk: relax the default _gl_TS_function_match regexp
5396         * top/maint.mk (_gl_TS_function_match): Don't require at least one
5397         space between function name and "(" in an "extern" declaration.
5398         That would fail to match a decl with no space there: extern void foo();
5399
5400 2011-07-31  Iain Nicol  <iain@thenicols.net>
5401
5402         git-version-gen: document that EXTRA_DIST must include .version
5403         * build-aux/git-version-gen: In the how-to-use comment, document
5404         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
5405         will fail when run from an unpacked distribution tarball.
5406
5407 2011-08-01  Bruno Haible  <bruno@clisp.org>
5408
5409         wctype-h: Fix last change.
5410         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
5411         REPLACE_TOWLOWER to 0.
5412         Reported by Sam Steingold <sds@gnu.org>.
5413
5414 2011-07-31  Bruno Haible  <bruno@clisp.org>
5415
5416         frexpl: Update autoconf test.
5417         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
5418         according to changes of 2011-06-20.
5419
5420 2011-07-31  Bruno Haible  <bruno@clisp.org>
5421
5422         sys_utsname: Add support for Minix.
5423         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
5424         <sys/utsname.h>.
5425         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
5426         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
5427
5428 2011-07-31  Bruno Haible  <bruno@clisp.org>
5429
5430         strings: Add support for Minix.
5431         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
5432         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
5433         * doc/posix-headers/strings.texi: Document the Minix problem.
5434
5435 2011-07-31  Bruno Haible  <bruno@clisp.org>
5436
5437         wctype-h: Add support for Minix.
5438         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
5439         REPLACE_TOWLOWER.
5440         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
5441         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
5442         REPLACE_ISWCNTRL.
5443
5444 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
5445
5446         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
5447         This is a performance improvement for 64-bit hosts: it causes the
5448         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
5449
5450 2011-07-31  Bruno Haible  <bruno@clisp.org>
5451
5452         stdioext: Add support for Minix.
5453         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
5454         * lib/fpurge.c (fpurge): Likewise.
5455         * lib/freadahead.c (freadahead): Likewise.
5456         * lib/freadable.c (freadable): Likewise.
5457         * lib/freading.c (freading): Likewise.
5458         * lib/freadptr.c (freadptr): Likewise.
5459         * lib/freadseek.c (freadptrinc): Likewise.
5460         * lib/fseeko.c (rpl_fseeko): Likewise.
5461         * lib/fseterr.c (fseterr): Likewise.
5462         * lib/fwritable.c (fwritable): Likewise.
5463         * lib/fwriting.c (fwriting): Likewise.
5464         * lib/fflush.c (clear_ungetc_buffer): Update comment.
5465         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
5466
5467 2011-07-31  Bruno Haible  <bruno@clisp.org>
5468
5469         errno: Port to Minix.
5470         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
5471         ECONNABORTED are defined.
5472         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
5473         GNULIB_defined_ECONNABORTED): New macros.
5474         * lib/strerror-override.h (strerror_override): Test also
5475         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
5476         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
5477         ECONNABORTED.
5478         * doc/posix-headers/errno.texi: Mention the Minix problem.
5479
5480 2011-07-31  Bruno Haible  <bruno@clisp.org>
5481
5482         Work around declaration collisions on Minix.
5483         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
5484         defined, set REPLACE_MBSINIT.
5485         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
5486         defined, set REPLACE_MBRTOWC.
5487         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
5488         set REPLACE_MBRLEN.
5489         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
5490         defined, set REPLACE_MBSRTOWCS.
5491         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
5492         defined, set REPLACE_WCRTOMB.
5493         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
5494         defined, set REPLACE_WCSRTOMBS.
5495
5496 2011-07-31  Bruno Haible  <bruno@clisp.org>
5497
5498         Add support for Minix with ACK compiler.
5499         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
5500         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
5501         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
5502
5503 2011-07-31  Bruno Haible  <bruno@clisp.org>
5504
5505         Documentation about Minix.
5506         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
5507         * doc/glibc-headers/*.texi: Likewise.
5508         * doc/posix-functions/*.texi: Likewise.
5509         * doc/glibc-functions/*.texi: Likewise.
5510
5511 2011-07-31  Bruno Haible  <bruno@clisp.org>
5512
5513         snippet/warn-on-use: Fix indentation.
5514         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
5515
5516 2011-07-25  Jim Meyering  <meyering@redhat.com>
5517
5518         tests: test-update-copyright.sh: remove unnecessary "rm" commands
5519         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
5520         commands.
5521
5522 2011-07-27  Jim Meyering  <meyering@redhat.com>
5523
5524         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
5525         * top/maint.mk (gl_extract_significant_defines_): Now that
5526         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
5527         gnulib/lib/signal.in.h, and now that we recommend to
5528         define-if-undefined those two symbols in application code,
5529         we must filter them out of the "significant" list.
5530         This avoids a "make syntax-check" failure in coreutils.
5531
5532 2011-07-26  Eric Blake  <eblake@redhat.com>
5533
5534         warnings: add comments about previous patch
5535         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
5536         * m4/include_next.m4: Likewise.
5537         * m4/warn-on-use.m4: Likewise.
5538         * m4/warnings.m4: Likewise, and simplify use.
5539         Suggested by Stefano Lattarini.
5540
5541         include-next, warnings: support older autoconf
5542         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
5543         AS_VAR_PUSHDEF in a way that works with older autoconf.
5544         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
5545         Reported by Daniel P. Berrange.
5546
5547 2011-07-25  Bruno Haible  <bruno@clisp.org>
5548
5549         fseek, ftell: Fix doc.
5550         * doc/posix-functions/fseek.texi: Reword statement about
5551         AC_SYS_LARGEFILE.
5552         * doc/posix-functions/ftell.texi: Likewise.
5553
5554 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5555             Bruno Haible  <bruno@clisp.org>
5556
5557         Add dependencies to the 'largefile' module.
5558         * modules/fopen (Depends-on): Add 'largefile'.
5559         * modules/freopen (Depends-on): Likewise.
5560         * modules/fseeko (Depends-on): Likewise.
5561         * modules/ftello (Depends-on): Likewise.
5562         * modules/glob (Depends-on): Likewise.
5563         * modules/lseek (Depends-on): Likewise.
5564         * modules/lstat (Depends-on): Likewise.
5565         * modules/mkostemp (Depends-on): Likewise.
5566         * modules/mkostemps (Depends-on): Likewise.
5567         * modules/mkstemp (Depends-on): Likewise.
5568         * modules/mkstemps (Depends-on): Likewise.
5569         * modules/open (Depends-on): Likewise.
5570         * modules/openat (Depends-on): Likewise.
5571         * modules/pread (Depends-on): Likewise.
5572         * modules/pwrite (Depends-on): Likewise.
5573         * modules/scandir (Depends-on): Likewise.
5574         * modules/stat (Depends-on): Likewise.
5575         * modules/tmpfile (Depends-on): Likewise.
5576         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
5577         since the containing module now depends on the largefile module.
5578         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
5579         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
5580         off_t is fixed by gnulib.
5581         * doc/posix-functions/freopen.texi: Likewise.
5582         * doc/posix-functions/fseeko.texi: Likewise.
5583         * doc/posix-functions/fstatat.texi: Likewise.
5584         * doc/posix-functions/ftello.texi: Likewise.
5585         * doc/posix-functions/glob.texi: Likewise.
5586         * doc/posix-functions/lseek.texi: Likewise.
5587         * doc/posix-functions/lstat.texi: Likewise.
5588         * doc/posix-functions/mkstemp.texi: Likewise.
5589         * doc/posix-functions/open.texi: Likewise.
5590         * doc/posix-functions/openat.texi: Likewise.
5591         * doc/posix-functions/pread.texi: Likewise.
5592         * doc/posix-functions/pwrite.texi: Likewise.
5593         * doc/posix-functions/scandir.texi: Likewise.
5594         * doc/posix-functions/stat.texi: Likewise.
5595         * doc/posix-functions/tmpfile.texi: Likewise.
5596         * doc/glibc-functions/mkostemp.texi: Likewise.
5597         * doc/glibc-functions/mkostemps.texi: Likewise.
5598         * doc/glibc-functions/mkstemps.texi: Likewise.
5599
5600 2011-07-25  Bruno Haible  <bruno@clisp.org>
5601
5602         fcntl: Move AC_LIBOBJ invocation to module description.
5603         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
5604         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
5605
5606         fcntl: Remove call-in from fchdir.m4.
5607         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
5608         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
5609
5610         dup3: Remove potential call-in from fchdir.m4.
5611         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
5612         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
5613
5614         dup2: Move AC_LIBOBJ invocation to module description.
5615         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
5616         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
5617         Don't invoke AC_LIBOBJ.
5618         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
5619
5620         dup2: Remove call-in from fchdir.m4.
5621         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
5622         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
5623
5624         fclose: Move AC_LIBOBJ invocation to module description.
5625         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
5626         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
5627         to 1.
5628         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
5629
5630         fclose: Remove call-in from close.m4.
5631         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
5632         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
5633
5634         close: Move AC_LIBOBJ invocation to module description.
5635         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
5636         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
5637         1.
5638         * modules/close (configure.ac): Invoke AC_LIBOBJ.
5639
5640         close: Remove call-in from fchdir.m4.
5641         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
5642         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
5643
5644         open: Move AC_LIBOBJ invocation to module description.
5645         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
5646         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
5647         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
5648
5649         open: Remove call-in from fchdir.m4.
5650         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
5651         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
5652
5653         fchdir: Start to remove gl_REPLACE_* idiom.
5654         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
5655         (gl_FUNC_FCHDIR): Invoke it.
5656
5657 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5658
5659         * lib/ftell.c (ftell): Comment out cast.
5660
5661         close: use gl_REPLACE_FCLOSE only if defined
5662         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
5663         is defined.  The close module doesn't depend on the fclose module
5664         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
5665         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
5666         I reproduced the problem with "./gnulib-tool --test close sys_socket".
5667
5668 2011-07-24  Jim Meyering  <meyering@redhat.com>
5669
5670         test-select.h: avoid warning when using gcc's -Wmissing-declarations
5671         * tests/test-select.h (test_function): Declare as "static".
5672
5673 2011-07-24  Bruno Haible  <bruno@clisp.org>
5674
5675         doc: Mention the effects of AC_SYS_LARGEFILE.
5676         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
5677         on this function.
5678         * doc/posix-functions/aio_error.texi: Likewise.
5679         * doc/posix-functions/aio_fsync.texi: Likewise.
5680         * doc/posix-functions/aio_read.texi: Likewise.
5681         * doc/posix-functions/aio_return.texi: Likewise.
5682         * doc/posix-functions/aio_suspend.texi: Likewise.
5683         * doc/posix-functions/aio_write.texi: Likewise.
5684         * doc/posix-functions/fgetpos.texi: Likewise.
5685         * doc/posix-functions/fopen.texi: Likewise.
5686         * doc/posix-functions/freopen.texi: Likewise.
5687         * doc/posix-functions/fsetpos.texi: Likewise.
5688         * doc/posix-functions/fstatvfs.texi: Likewise.
5689         * doc/posix-functions/ftruncate.texi: Likewise.
5690         * doc/posix-functions/ftw.texi: Likewise.
5691         * doc/posix-functions/getrlimit.texi: Likewise.
5692         * doc/posix-functions/glob.texi: Likewise.
5693         * doc/posix-functions/lio_listio.texi: Likewise.
5694         * doc/posix-functions/lockf.texi: Likewise.
5695         * doc/posix-functions/mkstemp.texi: Likewise.
5696         * doc/posix-functions/mmap.texi: Likewise.
5697         * doc/posix-functions/nftw.texi: Likewise.
5698         * doc/posix-functions/openat.texi: Likewise.
5699         * doc/posix-functions/opendir.texi: Likewise.
5700         * doc/posix-functions/posix_fadvise.texi: Likewise.
5701         * doc/posix-functions/posix_fallocate.texi: Likewise.
5702         * doc/posix-functions/pread.texi: Likewise.
5703         * doc/posix-functions/pwrite.texi: Likewise.
5704         * doc/posix-functions/readdir.texi: Likewise.
5705         * doc/posix-functions/readdir_r.texi: Likewise.
5706         * doc/posix-functions/rewinddir.texi: Likewise.
5707         * doc/posix-functions/scandir.texi: Likewise.
5708         * doc/posix-functions/seekdir.texi: Likewise.
5709         * doc/posix-functions/setrlimit.texi: Likewise.
5710         * doc/posix-functions/statvfs.texi: Likewise.
5711         * doc/posix-functions/telldir.texi: Likewise.
5712         * doc/posix-functions/tmpfile.texi: Likewise.
5713         * doc/posix-functions/truncate.texi: Likewise.
5714         * doc/glibc-functions/fallocate.texi: Likewise.
5715         * doc/glibc-functions/fstatfs.texi: Likewise.
5716         * doc/glibc-functions/fts_children.texi: Likewise.
5717         * doc/glibc-functions/fts_read.texi: Likewise.
5718         * doc/glibc-functions/getdirentries.texi: Likewise.
5719         * doc/glibc-functions/mkostemp.texi: Likewise.
5720         * doc/glibc-functions/mkostemps.texi: Likewise.
5721         * doc/glibc-functions/mkstemps.texi: Likewise.
5722         * doc/glibc-functions/preadv.texi: Likewise.
5723         * doc/glibc-functions/pwritev.texi: Likewise.
5724         * doc/glibc-functions/sendfile.texi: Likewise.
5725         * doc/glibc-functions/statfs.texi: Likewise.
5726
5727 2011-07-24  Bruno Haible  <bruno@clisp.org>
5728
5729         doc: Fix typo.
5730         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
5731
5732 2011-07-24  Bruno Haible  <bruno@clisp.org>
5733
5734         doc: Mention fsusage.
5735         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
5736
5737 2011-07-24  Bruno Haible  <bruno@clisp.org>
5738
5739         doc: Mention new glibc headers and functions.
5740         * doc/glibc-headers/gshadow.texi: New file.
5741         * doc/glibc-functions/endsgent.texi: New file.
5742         * doc/glibc-functions/fgetsgent.texi: New file.
5743         * doc/glibc-functions/fgetsgent_r.texi: New file.
5744         * doc/glibc-functions/getsgent.texi: New file.
5745         * doc/glibc-functions/getsgent_r.texi: New file.
5746         * doc/glibc-functions/getsgnam.texi: New file.
5747         * doc/glibc-functions/getsgnam_r.texi: New file.
5748         * doc/glibc-functions/putsgent.texi: New file.
5749         * doc/glibc-functions/setsgent.texi: New file.
5750         * doc/glibc-functions/sgetsgent.texi: New file.
5751         * doc/glibc-functions/sgetsgent_r.texi: New file.
5752         * doc/glibc-functions/malloc_info.texi: New file.
5753         * doc/glibc-functions/preadv.texi: New file.
5754         * doc/glibc-functions/pwritev.texi: New file.
5755         * doc/glibc-functions/register_printf_modifier.texi: New file.
5756         * doc/glibc-functions/register_printf_specifier.texi: New file.
5757         * doc/glibc-functions/register_printf_type.texi: New file.
5758         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
5759         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
5760         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
5761         * doc/glibc-functions/pthread_getname_np.texi: New file.
5762         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
5763         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
5764         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
5765         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
5766         * doc/glibc-functions/pthread_setname_np.texi: New file.
5767         * doc/glibc-functions/pthread_sigqueue.texi: New file.
5768         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
5769         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
5770         * doc/glibc-functions/qsort_r.texi: New file.
5771         * doc/glibc-functions/quick_exit.texi: New file.
5772         * doc/glibc-functions/syncfs.texi: New file.
5773         * doc/gnulib.texi: Include them.
5774         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
5775         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
5776         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
5777         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
5778         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
5779         * doc/glibc-functions/execvpe.texi: Likewise.
5780
5781 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5782
5783         ftell: don't include <unistd.h>
5784         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
5785         guaranteed to define off_t, and the ftell module depends on the
5786         stdio module.
5787
5788         ftell: do not assume wraparound signed arithmetic
5789         * lib/ftell.c: Include <limits.h>.
5790         (ftell): Don't assume wraparound signed arithmetic.
5791
5792 2011-07-24  Bruno Haible  <bruno@clisp.org>
5793
5794         close: No longer depend on module 'fclose'.
5795         * modules/close (Depends-on): Remove fclose.
5796         * NEWS: Mention the change.
5797         Suggested by Sam Steingold <sds@gnu.org>.
5798
5799 2011-07-24  Bruno Haible  <bruno@clisp.org>
5800
5801         fsusage: Enable large volume support on AIX >= 5.2.
5802         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
5803         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
5804         instead of STAT_STATVFS.
5805         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
5806
5807         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
5808         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
5809         f_blocks field only on MacOS X.
5810
5811         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
5812         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
5813         * modules/fsusage (Depends-on): Add largefile.
5814
5815 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5816
5817         * README: Modernize discussion of signed integers.
5818         Assuming overflow wraparound is no longer safe.
5819         Mention ones' complement and signed magnitude.
5820
5821 2011-07-22  Bruno Haible  <bruno@clisp.org>
5822
5823         select tests, pselect tests: Refactor.
5824         * tests/test-select.h: New file, extracted from tests/test-select.c.
5825         (select_fn): New type.
5826         (test, do_select, do_select_nowait, do_select_wait, test_tty,
5827         test_connect_first, test_accept_first, test_pair, test_socket_pair,
5828         test_pipe): Add my_select argument.
5829         (test_function): Renamed from main. Add my_select argument.
5830         * tests/test-select.c: Move most code to tests/test-select.h. Include
5831         test-select.h.
5832         * modules/select-tests (Files): Add tests/test-select.h.
5833         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
5834         (my_select, main): New functions.
5835         * modules/pselect-tests (Files): Add tests/test-select.h,
5836         tests/macros.h, tests/signature.h.
5837         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
5838         (configure.ac): Check for <sys/wait.h>.
5839
5840 2011-07-22  Bruno Haible  <bruno@clisp.org>
5841
5842         sys_select tests: Check the signature of FD_*.
5843         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
5844         signature tests from here...
5845         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
5846         here.
5847         * modules/sys_select-tests (Files): Add tests/signature.h.
5848
5849 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
5850
5851         largefile: new module, replacing large-inode
5852         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
5853         * MODULES.html.sh: Add largefile, remove large-inode.
5854         * modules/largefile, m4/largefile.m4: New files.
5855         * modules/large-inode, m4/large-inode.m4: Remove.
5856
5857         fsusage: port to MacOS X 10.7 with 4 TiB file systems
5858         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
5859         implementations that use only 32 bits to count blocks.
5860         On typical hosts with 1024-byte blocks, this fails with file
5861         systems as small as 4 TiB.  Problem reported by Herb Wartens
5862         <http://debbugs.gnu.org/9140> and this should also fix a similar
5863         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
5864
5865         large-inode: New module
5866         * MODULES.html.sh: Add it.
5867         * modules/large-inode, m4/large-inode.m4: New files.
5868
5869         extensions: Enable extensions on MacOS X 10.5 and later.
5870         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
5871
5872 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
5873
5874         file-has-acl: use acl_extended_file_nofollow if available
5875         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
5876         (acl_extended_file): New macro.
5877         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
5878         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
5879
5880 2011-07-21  Bruno Haible  <bruno@clisp.org>
5881
5882         Declare system functions in a way that works with C++.
5883         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
5884         declare fdopendir as extern "C".
5885         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
5886         declare frexpl as extern "C".
5887         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
5888         declare gai_strerror as extern "C".
5889         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
5890         programs, declare gai_strerror as extern "C".
5891         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
5892         declare getlogin_r as extern "C".
5893         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
5894         as extern "C".
5895         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
5896         declare ldexpl as extern "C".
5897         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
5898         as extern "C".
5899         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
5900         program, declare getmntinfo as extern "C".
5901         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
5902         stpncpy as extern "C".
5903         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
5904         program, declare __xpg_strerror_r as extern "C".
5905         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
5906         strndup as extern "C".
5907         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
5908         declare memset and bzero as extern "C".
5909         Reported by Sam Steingold <sds@gnu.org>.
5910
5911 2011-07-12  Jim Meyering  <meyering@redhat.com>
5912
5913         maint.mk: prohibit inclusion of "verify.h" without use
5914         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
5915
5916 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5917
5918         timer-time: A new module to check for timer_settime()
5919         * m4/timer_time.m4: Check for the posix function.
5920         * modules/timer-time: Add the new module.
5921         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
5922         Mention it.
5923
5924 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
5925             Bruno Haible  <bruno@clisp.org>
5926
5927         pthread_sigmask: assume POSIX threads if --avoid=threadlib
5928         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
5929         not defined, assume POSIX threads and look for pthread_sigmask in
5930         $LIBS, without changing $CPPFLAGS.
5931
5932 2011-07-19  Bruno Haible  <bruno@clisp.org>
5933
5934         strstr: Update cross-compilation guess.
5935         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
5936         CPUs, guess no, in view of glibc
5937         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
5938         Suggested by Eric Blake. Reported by Reuben Thomas.
5939
5940 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5941
5942         getopt-gnu: suppress core dumps from detection code
5943         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
5944         to suppress core dumps that may well occur on glibc systems.
5945         * modules/getopt-gnu: Depend on nocrash.
5946
5947 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
5948
5949         pthread_sigmask: ensure usleep is declared
5950         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
5951         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
5952
5953 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
5954
5955         doc: Document NonStop portability issues.
5956         * doc/posix-functions/sigaction.texi (sigaction):
5957         * doc/posix-headers/signal.texi (signal.h):
5958         Document NonStop.  See Joachim Schmitz in
5959         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
5960
5961 2011-07-15  Bruno Haible  <bruno@clisp.org>
5962
5963         ffsl, ffsll: Avoid unportable behaviour.
5964         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
5965
5966 2011-07-15  Bruno Haible  <bruno@clisp.org>
5967
5968         ffs: More tests.
5969         * tests/test-ffs.c (NBITS): New macro.
5970         (main): Add more tests.
5971         * tests/test-ffsl.c (NBITS): New macro.
5972         (main): Add more tests.
5973         * tests/test-ffsll.c (NBITS): New macro.
5974         (main): Add more tests.
5975
5976 2011-07-15  Eric Blake  <eblake@redhat.com>
5977
5978         ffsl, ffsll: new modules
5979         * modules/ffsl: New file.
5980         * modules/ffsll: Likewise.
5981         * m4/ffsl.m4: Likewise.
5982         * m4/ffsll.m4: Likewise.
5983         * lib/ffsl.c: Likewise.
5984         * lib/ffsl.h: Likewise.
5985         * lib/ffsll.c: Likewise.
5986         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
5987         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
5988         * modules/string (Makefile.am): Substitute witnesses.
5989         * lib/strings.in.h (ffsl, ffsll): Declare.
5990         * modules/ffsl-tests: New test file.
5991         * modules/ffsll-tests: Likewise.
5992         * tests/test-ffsl.c: Likewise.
5993         * tests/test-ffsll.c: Likewise.
5994         * MODULES.html.sh (Integer arithmetic functions): Mention it.
5995         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
5996         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
5997
5998         ffs: fix m4 prerequisite
5999         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
6000
6001         ffs: avoid undefined behavior
6002         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
6003         * tests/test-ffs.c (naive, main): Avoid signed shifts.
6004         Reported by Bruno Haible.
6005
6006 2011-07-12  Bruno Haible  <bruno@clisp.org>
6007
6008         pthread_sigmask: Rely on module 'threadlib'.
6009         * modules/pthread_sigmask (Depends-on): Add threadlib.
6010         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
6011         is defined.
6012
6013 2011-07-12  Bruno Haible  <bruno@clisp.org>
6014
6015         regex: Depend on module 'strcase'.
6016         * modules/regex (Depends-on): Add strcase, for strcasecmp().
6017
6018 2011-07-12  Jim Meyering  <meyering@redhat.com>
6019
6020         warn-on-use: fix typo in file name
6021         * modules/snippet/warn-on-use (Files): Correct file name:
6022         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
6023
6024 2011-07-12  Bruno Haible  <bruno@clisp.org>
6025
6026         strings: Document module.
6027         * doc/posix-headers/strings.texi: Mention module 'strings'.
6028
6029 2011-07-12  Bruno Haible  <bruno@clisp.org>
6030
6031         Rename module '_Noreturn' to 'snippet/_Noreturn'.
6032         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
6033         (Files, Makefile.am): Update.
6034         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
6035         * modules/stdlib (Depends-on): Update.
6036
6037 2011-07-12  Bruno Haible  <bruno@clisp.org>
6038
6039         * NEWS: Mention the changes.
6040
6041         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
6042         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
6043         (Files, Makefile.am): Update.
6044         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
6045         * modules/arpa_inet (Depends-on): Update.
6046         * modules/ctype (Depends-on): Update.
6047         * modules/dirent (Depends-on): Update.
6048         * modules/fcntl-h (Depends-on): Update.
6049         * modules/glob (Depends-on): Update.
6050         * modules/iconv-h (Depends-on): Update.
6051         * modules/inttypes-incomplete (Depends-on): Update.
6052         * modules/langinfo (Depends-on): Update.
6053         * modules/locale (Depends-on): Update.
6054         * modules/math (Depends-on): Update.
6055         * modules/netdb (Depends-on): Update.
6056         * modules/poll-h (Depends-on): Update.
6057         * modules/pty (Depends-on): Update.
6058         * modules/search (Depends-on): Update.
6059         * modules/signal (Depends-on): Update.
6060         * modules/spawn (Depends-on): Update.
6061         * modules/stdio (Depends-on): Update.
6062         * modules/stdlib (Depends-on): Update.
6063         * modules/string (Depends-on): Update.
6064         * modules/strings (Depends-on): Update.
6065         * modules/sys_file (Depends-on): Update.
6066         * modules/sys_ioctl (Depends-on): Update.
6067         * modules/sys_select (Depends-on): Update.
6068         * modules/sys_socket (Depends-on): Update.
6069         * modules/sys_stat (Depends-on): Update.
6070         * modules/sys_time (Depends-on): Update.
6071         * modules/sys_times (Depends-on): Update.
6072         * modules/sys_utsname (Depends-on): Update.
6073         * modules/sys_wait (Depends-on): Update.
6074         * modules/termios (Depends-on): Update.
6075         * modules/time (Depends-on): Update.
6076         * modules/unistd (Depends-on): Update.
6077         * modules/wchar (Depends-on): Update.
6078         * modules/wctype-h (Depends-on): Update.
6079         * MODULES.html.sh (Support for building libraries and executables):
6080         Update.
6081
6082         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
6083         * modules/snippet/unused-parameter: Renamed from
6084         modules/unused-parameter.
6085         (Files, Makefile.am): Update.
6086         * build-aux/snippet/unused-parameter.h: Renamed from
6087         build-aux/unused-parameter.h.
6088         * modules/selinux-h (Depends-on): Update.
6089         * modules/unistr/base (Depends-on): Update.
6090         * MODULES.html.sh (Core language properties): Update.
6091
6092         Rename module 'link-warning' to 'snippet/link-warning'.
6093         * modules/snippet/link-warning: Renamed from modules/link-warning.
6094         (Files, Makefile.am): Update.
6095         * build-aux/snippet/link-warning.h: Renamed from
6096         build-aux/link-warning.h.
6097         * MODULES.html.sh (Support for building libraries and executables):
6098         Update.
6099
6100         Rename module 'c++defs' to 'snippet/c++defs'.
6101         * modules/snippet/c++defs: Renamed from modules/c++defs.
6102         (Files, Makefile.am): Update.
6103         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
6104         * modules/arpa_inet (Depends-on): Update.
6105         * modules/ctype (Depends-on): Update.
6106         * modules/dirent (Depends-on): Update.
6107         * modules/fcntl-h (Depends-on): Update.
6108         * modules/glob (Depends-on): Update.
6109         * modules/iconv-h (Depends-on): Update.
6110         * modules/langinfo (Depends-on): Update.
6111         * modules/locale (Depends-on): Update.
6112         * modules/math (Depends-on): Update.
6113         * modules/netdb (Depends-on): Update.
6114         * modules/poll-h (Depends-on): Update.
6115         * modules/pty (Depends-on): Update.
6116         * modules/search (Depends-on): Update.
6117         * modules/signal (Depends-on): Update.
6118         * modules/spawn (Depends-on): Update.
6119         * modules/stdio (Depends-on): Update.
6120         * modules/stdlib (Depends-on): Update.
6121         * modules/string (Depends-on): Update.
6122         * modules/strings (Depends-on): Update.
6123         * modules/sys_ioctl (Depends-on): Update.
6124         * modules/sys_select (Depends-on): Update.
6125         * modules/sys_socket (Depends-on): Update.
6126         * modules/sys_stat (Depends-on): Update.
6127         * modules/sys_time (Depends-on): Update.
6128         * modules/sys_wait (Depends-on): Update.
6129         * modules/termios (Depends-on): Update.
6130         * modules/time (Depends-on): Update.
6131         * modules/unistd (Depends-on): Update.
6132         * modules/wchar (Depends-on): Update.
6133         * modules/wctype-h (Depends-on): Update.
6134
6135         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
6136         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
6137         (Files, Makefile.am): Update.
6138         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
6139         * modules/argv-iter (Depends-on): Update.
6140         * modules/arpa_inet (Depends-on): Update.
6141         * modules/dirent (Depends-on): Update.
6142         * modules/fcntl-h (Depends-on): Update.
6143         * modules/fnmatch (Depends-on): Update.
6144         * modules/getopt-posix (Depends-on): Update.
6145         * modules/glob (Depends-on): Update.
6146         * modules/iconv-h (Depends-on): Update.
6147         * modules/inttypes-incomplete (Depends-on): Update.
6148         * modules/locale (Depends-on): Update.
6149         * modules/math (Depends-on): Update.
6150         * modules/netdb (Depends-on): Update.
6151         * modules/search (Depends-on): Update.
6152         * modules/signal (Depends-on): Update.
6153         * modules/spawn (Depends-on): Update.
6154         * modules/stdio (Depends-on): Update.
6155         * modules/stdlib (Depends-on): Update.
6156         * modules/string (Depends-on): Update.
6157         * modules/strings (Depends-on): Update.
6158         * modules/sys_socket (Depends-on): Update.
6159         * modules/sys_stat (Depends-on): Update.
6160         * modules/sys_time (Depends-on): Update.
6161         * modules/sys_times (Depends-on): Update.
6162         * modules/sys_utsname (Depends-on): Update.
6163         * modules/time (Depends-on): Update.
6164         * modules/unistd (Depends-on): Update.
6165         * modules/wchar (Depends-on): Update.
6166         * MODULES.html.sh (Support for building libraries and executables):
6167         Update.
6168
6169 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
6170
6171         Improvements on _Noreturn and related modules.
6172
6173         modules/_Exit-tests: test _Noreturn too
6174         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
6175         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
6176         (main): Use them.
6177
6178         stdnoreturn, stdnoreturn-tests: remove modules
6179         They're not needed here and a bit premature for use elsewhere.  See
6180         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
6181         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
6182         * tests/test-stdnoreturn.c: Remove files.
6183         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
6184         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
6185         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
6186         and using noreturn.
6187         * modules/openat, modules/sigpipe-die, modules/xalloc:
6188         * modules/xmemdup0, modules/xstrtol:
6189         Remove dependency on stdnoreturn.
6190
6191         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
6192         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
6193         Reparenthesize to avoid GCC warning.
6194         Support Microsoft's syntax.
6195         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
6196
6197         _Noreturn-tests: remove module
6198         * modules/_Noreturn-tests: Remove.
6199         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
6200         * tests/test-_Noreturn.c: Remove.
6201         * tests/test-stdnoreturn.c: Merge from the old
6202         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
6203
6204 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
6205
6206         _Noreturn, stdnoreturn, and related modules.
6207
6208         * top/maint.mk: Adjust to new noreturn support.
6209         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
6210         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
6211
6212         xalloc: use stdnoreturn.h
6213         * lib/xalloc.h: Include <stdnoreturn.h>.
6214         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6215         * modules/xalloc (Depends-on): Add stdnoreturn.
6216
6217         xstrtol: use stdnoreturn.h
6218         * lib/xstrtol.h: Include <stdnoreturn.h>.
6219         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6220         * modules/xstrtol (Depends-on): Add stdnoreturn.
6221
6222         xmemdup0: use stdnoreturn.h
6223         * lib/xmemdup0.h: Include <stdnoreturn.h>.
6224         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6225         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
6226
6227         sigpipe-die: use stdnoreturn.h
6228         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
6229         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6230         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
6231
6232         openat: use stdnoreturn.h
6233         * lib/openat.h: Include <stdnoreturn.h>.
6234         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6235         * modules/openat (Depends-on): Add stdnoreturn.
6236
6237         * lib/openat-die.c (openat_save_fail): Modernize comment.
6238
6239         * lib/xalloc-die.c (xalloc_die): Modernize comment.
6240
6241         * lib/glthread/thread.h: Modernize comment.
6242
6243         obstack: use _Noreturn
6244         * lib/obstack.c (__attribute__): Remove macro.
6245         (print_and_abort): Use _Noreturn.
6246
6247         c-stack: use _Noreturn
6248         * lib/c-stack.c (die, overflow_handler, segv_handler):
6249         Use _Noreturn rather than __attribute__((noreturn)).
6250
6251         argmatch-tests, exclude_tests: use _Noreturn
6252         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
6253         Remove.
6254         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
6255
6256         stdlib: use _Noreturn
6257         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
6258         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
6259         * modules/stdlib (Depends-on): Add _Noreturn.
6260         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
6261
6262         stdnoreturn-tests: new module
6263         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
6264
6265         stdnoreturn: new module
6266         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
6267         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
6268
6269         _Noreturn-tests: new module
6270         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
6271
6272         _Noreturn: new module
6273         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
6274         New section, mentioning it.
6275         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
6276
6277         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
6278
6279 2011-07-11  Eric Blake  <eblake@redhat.com>
6280
6281         ffs: new module
6282         * modules/ffs: New file.
6283         * m4/ffs.m4: Likewise.
6284         * lib/ffs.c: Likewise.
6285         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
6286         * modules/strings (Makefile.am): Substitute witness.
6287         (Depends-on): Add c++defs.
6288         * lib/strings.in.h (ffs): Declare.
6289         * modules/ffs-tests: New test file.
6290         * tests/test-ffs.c: Test new module.
6291         * MODULES.html.sh (Integer arithmetic functions): Mention it.
6292         * doc/posix-functions/ffs.texi (ffs): Likewise.
6293
6294         regex: avoid compiler warning
6295         * lib/regex.c (includes): Include <strings.h>, for use of
6296         strcasecmp in regcomp.c.
6297         Reported by Joachim Schmitz.
6298
6299 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
6300
6301         stdint: respect system's intmax_t if INTMAX_MAX
6302         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
6303         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
6304         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
6305         long but int64_t is long long, and where we will clash with the
6306         system intmax_t if we override it.  See
6307         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
6308         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
6309         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
6310         similarly for UINTMAX_C.
6311
6312 2011-07-08  Bruno Haible  <bruno@clisp.org>
6313
6314         pthread_sigmask tests: Avoid a compiler warning.
6315         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
6316         non-zero.
6317
6318         sigprocmask tests: A better way to avoid a compiler warning.
6319         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
6320         (main): Complain if system() returns non-zero.
6321         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
6322
6323 2011-07-08  Bruno Haible  <bruno@clisp.org>
6324
6325         pthread_sigmask: Work around IRIX bug.
6326         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
6327         bug.
6328         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
6329         there may be unblocked pending signals.
6330         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
6331
6332 2011-07-08  Bruno Haible  <bruno@clisp.org>
6333
6334         pthread_sigmask: Work around Cygwin bug.
6335         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
6336         bug.
6337         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
6338         the system's pthread_sigmask function.
6339         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
6340
6341 2011-07-08  Bruno Haible  <bruno@clisp.org>
6342
6343         pthread_sigmask: Work around bug in single-threaded implementation.
6344         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
6345         FreeBSD, HP-UX, Solaris bug.
6346         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
6347         * lib/pthread_sigmask.c: Include <stddef.h>.
6348         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
6349         the system's pthread_sigmask function.
6350         * modules/pthread_sigmask (configure.ac): Invoke
6351         gl_PREREQ_PTHREAD_SIGMASK.
6352         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
6353         HP-UX, Solaris.
6354
6355 2011-07-08  Eric Blake  <eblake@redhat.com>
6356
6357         test-sigprocmask: avoid compiler warning
6358         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
6359         * tests/test-sigprocmask.c (main): Use it to silence warning.
6360         Reported by Jim Meyering.
6361
6362         test-snprintf: avoid compiler warning
6363         * tests/test-snprintf.c (main): Avoid shadowed declaration.
6364         * tests/test-vsnprintf.c (main): Likewise.
6365         Reported by Jim Meyering.
6366
6367 2011-07-08  Bruno Haible  <bruno@clisp.org>
6368
6369         Tests for module 'pthread_sigmask'.
6370         * modules/pthread_sigmask-tests: New file.
6371         * tests/test-pthread_sigmask1.c: New file, based on
6372         tests/test-sigprocmask.c.
6373         * tests/test-pthread_sigmask2.c: New file.
6374
6375 2011-07-08  Jim Meyering  <meyering@redhat.com>
6376
6377         test-getopt.h: avoid warning about an unused variable
6378         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
6379
6380 2011-07-07  Jim Meyering  <meyering@redhat.com>
6381
6382         maint: reduce list of files exempt from sc_prohibit_leading_TABs
6383         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
6384         now that it no longer contains leading TABs.
6385         Remove unused "url=FIXME" statement.
6386
6387 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
6388
6389         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
6390         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
6391         When gl_THREADLIB is not in use, assume that the POSIX sematics
6392         are desired.  This is better for Emacs, which uses POSIX semantics
6393         on GNUish and/or POSIXish platforms, and does not use threads at
6394         all otherwise.
6395
6396         pthread_sigmask: fix typo when testing for libraries
6397         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
6398         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
6399
6400 2011-07-08  Eric Blake  <eblake@redhat.com>
6401
6402         fts: introduce FTS_NOATIME
6403         * lib/fts_.h (FTS_NOATIME): New bit flag.
6404         (FTS_OPTIONMASK): Adjust.
6405         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
6406         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
6407
6408 2011-07-08  Bruno Haible  <bruno@clisp.org>
6409
6410         Tests for module 'thread'.
6411         * modules/thread-tests: New file.
6412         * tests/test-thread_self.c: New file.
6413         * tests/test-thread_create.cc: New file.
6414
6415 2011-07-08  Bruno Haible  <bruno@clisp.org>
6416
6417         thread: Avoid gcc warnings when using gl_thread_self().
6418         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
6419         'void *'.
6420         (gl_thread_self_pointer): Update.
6421
6422 2011-07-07  Bruno Haible  <bruno@clisp.org>
6423
6424         signal-c++-tests: Check declaration of pthread_sigmask.
6425         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
6426         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
6427         $(LIB_PTHREAD_SIGMASK).
6428
6429 2011-07-07  Bruno Haible  <bruno@clisp.org>
6430
6431         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
6432         * lib/signal.in.h (pthread_sigmask): Override if
6433         REPLACE_PTHREAD_SIGMASK is 1.
6434         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
6435         REPLACE_PTHREAD_SIGMASK.
6436         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
6437         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
6438         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
6439         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
6440         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
6441
6442 2011-07-07  Bruno Haible  <bruno@clisp.org>
6443
6444         pthread_sigmask: Ensure declaration in <signal.h>.
6445         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
6446         include <pthread.h>.
6447         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
6448         problem.
6449
6450 2011-07-07  Bruno Haible  <bruno@clisp.org>
6451
6452         pthread_sigmask: Document the module.
6453         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
6454
6455 2011-07-07  Bruno Haible  <bruno@clisp.org>
6456
6457         pthread_sigmask: Follow gnulib conventions.
6458         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
6459         gl_PTHREAD_SIGMASK.
6460         * modules/pthread_sigmask (configure.ac): Update.
6461
6462 2011-07-07  Bruno Haible  <bruno@clisp.org>
6463
6464         pthread_sigmask: Make declaration C++ safe.
6465         * lib/signal.in.h: In two special conditions, just do an #include_next.
6466         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
6467         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
6468         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
6469         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
6470         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
6471         not REPLACE_PTHREAD_MASK.
6472         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
6473         not REPLACE_PTHREAD_MASK.
6474         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
6475
6476 2011-07-07  Bruno Haible  <bruno@clisp.org>
6477
6478         pthread_sigmask: Fix return value.
6479         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
6480         * lib/pthread_sigmask.c: New file.
6481         * modules/pthread_sigmask (Files): Add it.
6482         (configure.ac): Invoke AC_LIBOBJ.
6483
6484 2011-07-07  Eric Blake  <eblake@redhat.com>
6485
6486         getopt: more portable argv creation
6487         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
6488         const, use char arrays rather than strings.
6489         Suggested by Paul Eggert.
6490
6491 2011-07-07  Bruno Haible  <bruno@clisp.org>
6492
6493         Tests for module 'sigprocmask'.
6494         * modules/sigprocmask-tests: New file.
6495         * tests/test-sigprocmask.c: New file.
6496
6497 2011-07-07  Bruno Haible  <bruno@clisp.org>
6498
6499         float tests: Tweak.
6500         * tests/test-float.c (main): Tweak skip message.
6501
6502 2011-07-07  Eric Blake  <eblake@redhat.com>
6503
6504         getopt: avoid compiler warning during configure
6505         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
6506         assigning string literals to non-const pointer.
6507
6508         getopt-gnu: avoid crash in glibc getopt
6509         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
6510         * tests/test-getopt.h (test_getopt): Enhance test.
6511         * tests/test-getopt_long.h (test_getopt_long): Likewise.
6512         * doc/posix-functions/getopt.texi (getopt): Document it.
6513         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
6514         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6515         Likewise.
6516
6517 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
6518
6519         getopt: handle W; without long options in getopt [BZ #12922]
6520         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
6521         but no long options are defined, just return 'W'.
6522
6523 2011-07-07  Bruno Haible  <bruno@clisp.org>
6524
6525         Avoid literal tabs.
6526         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
6527         variable containing a tab instead of a literal tab.
6528         Reported by Jim Meyering.
6529
6530 2011-07-07  Bruno Haible  <bruno@clisp.org>
6531
6532         Comments.
6533         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
6534
6535 2011-07-06  Bruno Haible  <bruno@clisp.org>
6536
6537         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
6538         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
6539         <winsock2.h>.
6540         (rpl_fd_isset, FD_ISSET): New definitions, copied from
6541         lib/sys_socket.in.h.
6542         (close, gethostname): Hide declarations from <winsock2.h>.
6543         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
6544         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
6545         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
6546         (select): Don't override if gnulib's <sys/select.h> was already
6547         included.
6548         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
6549         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
6550         setsockopt, shutdown, select): Tweak indentation.
6551
6552 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6553
6554         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
6555         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
6556         in an application that does not use the sys_select module.
6557
6558 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
6559
6560         poll: do not return 0 on timeout=-1
6561         * lib/poll.c: Loop with yield if no events occured
6562
6563 2011-07-06  Eric Blake  <eblake@redhat.com>
6564
6565         pthread_sigmask: always replace when not using pthread
6566         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
6567         replacement when using some threading other than pthread.  Fix
6568         logic bug.
6569
6570 2011-07-06  Bruno Haible  <bruno@clisp.org>
6571
6572         Comments.
6573         * m4/printf.m4: Update comments about mingw.
6574
6575 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6576
6577         sys_select: define sigset_t more portably
6578         * lib/sys_select.in.h: Always include <sys/types.h>, since
6579         we now need sigset_t and mingw defines it there.
6580         Include <signal.h> before split inclusion guard, to avoid
6581         mishaps on Solaris, whose <signal.h> eventually includes us.
6582         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
6583         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
6584         which come from ...
6585         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
6586         gl_CHECK_TYPE_SIGSET_T.
6587         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
6588         does the real work.
6589         * modules/sys_select (Depends-on): Add 'signal'.
6590
6591         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
6592         Suggested by Bruno Haible.
6593
6594         pselect: Use pthread_sigmask, not sigprocmask.
6595         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
6596         multithreaded apps better than sigprocmask does.
6597         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
6598         sigprocmask directly.
6599
6600 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
6601
6602         * lib/pselect.c (pselect): Use plain name, without "rpl_".
6603         Don't #undef,  since we don't need any underlying pselect.
6604         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
6605         (Depends-on): Add select.
6606         (Link): Add $(LIBSOCKET).
6607         These changes suggested by Bruno Haible.
6608
6609         pselect: document better
6610         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6611         * doc/posix-functions/pselect.texi (pselect): Document new module.
6612
6613         pthread_sigmask: new module
6614         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6615         * doc/posix-functions/pthread_sigmask.texi: Document new module.
6616         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
6617         This is done only as a macro; I don't know how well that'll
6618         work for C++.  Move <sys/types.h> include before the include_next,
6619         to avoid mishap on Solaris.
6620         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
6621         * modules/signal (Makefile.am): Substitute the check's results.
6622         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
6623
6624         test-pselect: new module
6625         * modules/pselect-tests, tests/test-pselect.c: New files.
6626         * tests/test-select.c, tests/test-sys_select-c++.cc:
6627         If TEST_PSELECT is defined, test pselect instead of testing select.
6628
6629         * tests/test-sys_select.c (sigset_t): Test for it, too.
6630         Suggested by Bruno Haible.
6631
6632 2011-07-05  Eric Blake  <eblake@redhat.com>
6633
6634         snprintf: guarantee %1$d, for libintl
6635         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
6636         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
6637         * doc/posix-functions/snprintf.texi (snprintf): Update.
6638         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
6639         * tests/test-snprintf.c (main): Enhance test.
6640         * tests/test-vsnprintf.c (main): Likewise.
6641
6642 2011-07-05  Jim Meyering  <meyering@redhat.com>
6643
6644         maint: exempt stdio-read.c and stdio-write.c from the cppi check
6645         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
6646         per Bruno's request, to accommodate this idiom (no space after "#")
6647         even when the function is inside an #if block:
6648         char *
6649         gets (char *s)
6650         #undef gets
6651         {
6652           ...
6653         }
6654
6655 2011-07-04  Jim Meyering  <meyering@redhat.com>
6656
6657         maint: indent with spaces, not TABs, and add a rule to check this
6658         * tests/test-userspec.c: Indent with spaces, not TABs.
6659         * tests/test-argp.c: Likewise.
6660         * tests/test-c-stack2.sh: Likewise.
6661         * tests/test-parse-duration.sh: Likewise
6662         * m4/strtod.m4: Likewise.
6663         * m4/alloca.m4: Likewise.
6664         * m4/pselect.m4: Likewise.
6665         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
6666
6667 2011-07-03  Jim Meyering  <meyering@redhat.com>
6668
6669         maint.mk: correct omissions in prohibit_argmatch_without_use check
6670         This rule would mistakenly report that argmatch.h is included without
6671         use even when both the argmatch and invalid_arg macro were used.
6672         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
6673         of argmatch and invalid_arg.
6674
6675 2011-07-03  Bruno Haible  <bruno@clisp.org>
6676
6677         Comments about EINTR.
6678         * lib/safe-read.h: Explain the purpose of this module.
6679         * lib/safe-write.h: Likewise.
6680         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
6681         module.
6682         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
6683         module.
6684         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6685
6686 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
6687
6688         xnanosleep: Rewrite to use new dtotimespec module.
6689         It has the conversion code that used to be in xnanosleep.
6690         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
6691         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
6692         (TIME_T_MAX): Remove.
6693         (xnanosleep): Rewrite in terms of dtotimespec.
6694         * modules/xnanosleep (Depends-on): Add dtotimespec.
6695         Remove intprops, stdbool.
6696
6697         timespec-add, timespec-sub: new modules
6698         * lib/timespec.h (timespec_add, timespec_sub): New decls.
6699         * lib/timespec-add.c, lib/timespec-sub.c:
6700         * modules/timespec-add, modules/timespec-sub: New files.
6701
6702         dtotimespec: new module
6703         * lib/timespec.h (dtotimespec): New decl.
6704         * lib/dtotimespec.c, modules/dtotimespec: New files.
6705
6706         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
6707
6708         pselect: new module
6709         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
6710         (pselect): New decls.
6711         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
6712         since the standard pselect decl uses 'restrict'.
6713         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
6714         HAVE_PSELECT, REPLACE_PSELECT.
6715         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
6716         HAVE_PSELECT, REPLACE_PSELECT.
6717         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
6718
6719         sys_select: don't depend on sys_socket
6720         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
6721         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
6722         This fix works on GNU and GNU-like platforms, but has not been tested
6723         on native Windows.
6724         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
6725         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
6726         gl_HEADER_SYS_SOCKET.
6727         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
6728         gl_PREREQ_SYS_H_WINSOCK2.
6729
6730 2011-06-29  Eric Blake  <eblake@redhat.com>
6731
6732         pipe2: fix C89 compile problem
6733         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
6734         Reported by Bruno Haible.
6735
6736         pipe, pipe2: don't corrupt fd on error
6737         * lib/pipe.c (pipe): Leave fd unchanged on error.
6738         * lib/pipe2.c (pipe2): Likewise.
6739         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
6740         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
6741
6742 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
6743
6744         mmap-anon: do not use regular expressions inadvertently
6745         * m4/mmap-anon.m4: Remove trailing period from strings sought
6746         in the output.
6747
6748 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
6749
6750         nanosleep: fix integer overflow problem
6751         * lib/nanosleep.c (my_usleep): Don't assume signed integer
6752         arithmetic wraps around on overflow.
6753
6754         nanosleep: simplify carrying
6755         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
6756         first call to the underyling nanosleep, not for the last one.
6757         This doesn't fix any bugs, but it simplifies the computation of
6758         the remaining delay.  Found while auditing integer overflow issues.
6759
6760         dup2: remove test for existence of fcntl
6761         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
6762         "#if HAVE_FCNTL", in the configure-time test program.
6763         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
6764         and therefore speeds up "configure" a bit.  Found while
6765         adding the dup2 module to Emacs.
6766
6767 2011-06-24  Eric Blake  <eblake@redhat.com>
6768
6769         maint.mk: enhance useless header checks
6770         * top/maint.mk (_sc_header_without_use): Check both include
6771         styles.
6772         (sc_prohibit_assert_without_use)
6773         (sc_prohibit_close_stream_without_use)
6774         (sc_prohibit_getopt_without_use)
6775         (sc_prohibit_quotearg_without_use)
6776         (sc_prohibit_quote_without_use)
6777         (sc_prohibit_long_options_without_use)
6778         (sc_prohibit_inttostr_without_use)
6779         (sc_prohibit_ignore_value_without_use)
6780         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
6781         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
6782         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
6783         (sc_prohibit_hash_pjw_without_use)
6784         (sc_prohibit_safe_read_without_use)
6785         (sc_prohibit_argmatch_without_use)
6786         (sc_prohibit_canonicalize_without_use)
6787         (sc_prohibit_root_dev_ino_without_use)
6788         (sc_prohibit_openat_without_use)
6789         (sc_prohibit_c_ctype_without_use)
6790         (sc_prohibit_signal_without_use)
6791         (sc_prohibit_stdio--_without_use)
6792         (sc_prohibit_stdio-safer_without_use)
6793         (sc_prohibit_strings_without_use)
6794         (sc_prohibit_intprops_without_use)
6795         (sc_prohibit_stddef_without_use)
6796         (sc_prohibit_xfreopen_without_use): Update clients.
6797
6798 2011-06-24  Jim Meyering  <meyering@redhat.com>
6799
6800         syntax-check: keep one maint.mk rule in sync with its header
6801         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
6802         of the bug Eric has just fixed, with today's commit 25e4c2ec.
6803         I prefer to avoid temporary files here, so use <(...), but that
6804         is not supported by /bin/sh, so...
6805         (SHELL): Define to /bin/bash.
6806
6807 2011-06-24  Eric Blake  <eblake@redhat.com>
6808
6809         maint.mk: update sc_prohibit_intprops_without_use
6810         * top/maint.mk (_intprops_names): Match recent changes.
6811
6812 2011-06-24  Bruno Haible  <bruno@clisp.org>
6813
6814         strerror-override: No-op tweak.
6815         * lib/strerror-override.h (strerror_override): Reorder conditions,
6816         for consistency with lib/strerror-override.c.
6817
6818 2011-06-23  Eric Blake  <eblake@redhat.com>
6819
6820         maint.mk: test further PATH_MAX issues
6821         * top/maint.mk (sc_prohibit_path_max_array): Rename...
6822         (sc_prohibit_path_max_allocation): ...and also test alloca.
6823         Suggested by Jim Meyering.
6824
6825 2011-06-22  Eric Blake  <eblake@redhat.com>
6826
6827         maint.mk: add syntax-check to avoid char[PATH_MAX]
6828         * top/maint.mk (sc_prohibit_path_max_array): New rule.
6829
6830         stat: be robust to PATH_MAX definition
6831         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
6832         * modules/stat (Depends-on): Add verify.
6833
6834         link: work around IRIX bug
6835         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
6836         * lib/link.c (rpl_link): Work around it.
6837         * tests/test-link.h (test_link): Enhance test.
6838         * doc/posix-functions/link.texi (link): Document the bug.
6839
6840         getopt: silence clang warning
6841         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
6842         dereference.
6843         Reported by Gustavo Martin Domato.
6844
6845 2011-06-22  Jim Meyering  <meyering@redhat.com>
6846
6847         bootstrap: do not insert a blank line into each .gitignore file
6848         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
6849
6850 2011-06-21  Eric Blake  <eblake@redhat.com>
6851
6852         perror: test for output mismatch
6853         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
6854         perror on IRIX.
6855
6856         strerror_r: fix OpenBSD behavior on out-of-range
6857         * lib/strerror_r.c (strerror_r): Always use maximal string.
6858         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6859
6860         strerror_r: fix OpenBSD behavior on 0
6861         * lib/strerror-override.c (strerror_override): Also override 0
6862         when needed.
6863         * lib/strerror-override.h (strerror_override): Likewise.
6864         * lib/strerror.c (strerror): Simplify, now that 0 override is done
6865         earlier.
6866         * lib/strerror_r.c (strerror_r): Likewise.
6867         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
6868         behavior...
6869         (gl_FUNC_STRERROR_0): ...into new macro.
6870         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
6871         is overridden.
6872         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
6873         * modules/strerror-override (Files): Add strerror.m4.
6874         (configure.ac): Also provide override for 0 when needed.
6875         * doc/posix-functions/strerror.texi (strerror): Document this.
6876         * doc/posix-functions/perror.texi (perror): Likewise.
6877
6878         perror: adjust array size
6879         * modules/perror (Depends-on): Add strerror-override.
6880         * lib/perror.c (perror): Use it to avoid magic number.
6881
6882         strerror-override: reduce size
6883         * lib/strerror-override.c (strerror_override): Use fewer lines.
6884
6885 2011-06-20  Bruno Haible  <bruno@clisp.org>
6886
6887         pathmax: Ensure correct value for PATH_MAX on HP-UX.
6888         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
6889
6890 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
6891
6892         alloca: port to compilers that can optimize like GCC 4.6.0
6893         * lib/alloca.c (find_stack_direction): New signature, taken from
6894         Autoconf git.  This works with GCC 4.6.0.  This code should never
6895         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
6896         be used with other compilers that optimize as well as GCC 4.6.0 does.
6897         (alloca): Adjust to new signature.
6898         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
6899         New macro, which patches Autoconf in a similar way.
6900
6901         c-stack: stop worrying about stack direction
6902         * lib/c-stack.c (find_stack_direction): Remove.
6903         (segv_handler): Don't worry about stack direction growth, as it's
6904         too much of a pain to configure this correctly, given how compilers
6905         are optimizing-away our stack-growth detection code.  Instead, assume
6906         that any access to just before or just after the stack is OK.
6907         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
6908         Don't require AC_FUNC_ALLOCA; no longer needed.
6909
6910 2011-06-20  Eric Blake  <eblake@redhat.com>
6911
6912         test-stat: don't allocate PATH_MAX bytes
6913         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
6914         PATH_MAX-sized buffer.
6915         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
6916         * modules/stat-tests (Depends-on): Likewise.
6917         * tests/test-fstatat.c (includes): Drop pathmax.h.
6918         * tests/test-stat.c (includes): Likewise.
6919         Reported by Bruno Haible.
6920
6921 2011-06-20  Bruno Haible  <bruno@clisp.org>
6922
6923         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
6924         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
6925         * lib/float.c: New file.
6926         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
6927         REPLACE_FLOAT_LDBL.
6928         * modules/float (Files): Add lib/float.c.
6929         (configure.ac): Invoke AC_LIBOBJ.
6930         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
6931
6932 2011-06-20  Bruno Haible  <bruno@clisp.org>
6933
6934         Tests for module 'float'.
6935         * modules/float-tests: New file.
6936         * tests/test-float.c: New file.
6937
6938 2011-06-19  Bruno Haible  <bruno@clisp.org>
6939
6940         isinf: Coding style.
6941         * lib/isinf.c: Use GNU coding style.
6942
6943 2011-06-19  Bruno Haible  <bruno@clisp.org>
6944
6945         linkat test: Avoid test failure on AIX 7.1.
6946         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
6947         * tests/test-link.h (test_link): Likewise.
6948
6949 2011-06-19  Bruno Haible  <bruno@clisp.org>
6950
6951         pread test: Avoid test failure on OpenBSD 4.9.
6952         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
6953
6954 2011-06-19  Bruno Haible  <bruno@clisp.org>
6955
6956         sprintf-posix: Fix test failure on AIX 7.1.
6957         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
6958         * doc/posix-functions/dprintf.texi: Mention limited precision problem
6959         on AIX.
6960         * doc/posix-functions/fprintf.texi: Likewise.
6961         * doc/posix-functions/printf.texi: Likewise.
6962         * doc/posix-functions/snprintf.texi: Likewise.
6963         * doc/posix-functions/sprintf.texi: Likewise.
6964         * doc/posix-functions/vdprintf.texi: Likewise.
6965         * doc/posix-functions/vfprintf.texi: Likewise.
6966         * doc/posix-functions/vprintf.texi: Likewise.
6967         * doc/posix-functions/vsnprintf.texi: Likewise.
6968         * doc/posix-functions/vsprintf.texi: Likewise.
6969
6970 2011-06-19  Bruno Haible  <bruno@clisp.org>
6971
6972         roundl-ieee: Fix test failure on AIX 7.1.
6973         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
6974         * doc/posix-functions/roundl.texi: Mention problem with negative
6975         arguments.
6976
6977 2011-06-19  Bruno Haible  <bruno@clisp.org>
6978
6979         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6980         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
6981         * doc/posix-functions/round.texi: Mention problem with negative
6982         arguments.
6983         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
6984
6985 2011-06-19  Bruno Haible  <bruno@clisp.org>
6986
6987         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6988         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
6989         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
6990         * doc/posix-functions/roundf.texi: Mention problem with negative
6991         arguments.
6992         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
6993
6994 2011-06-19  Bruno Haible  <bruno@clisp.org>
6995
6996         ceilf-ieee: Work around bug on MacOS X 10.5.
6997         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
6998
6999         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
7000         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
7001         IEEE compliant, avoid compiler optimizations.
7002         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
7003         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
7004         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
7005         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
7006         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
7007         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
7008         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
7009         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
7010         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
7011         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
7012
7013 2011-06-19  Bruno Haible  <bruno@clisp.org>
7014
7015         ceilf-ieee: Work around bug on AIX 7.1.
7016         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
7017         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
7018
7019 2011-06-19  Bruno Haible  <bruno@clisp.org>
7020
7021         ceil-ieee: Work around bug on AIX 7.1.
7022         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
7023         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
7024
7025 2011-06-18  Bruno Haible  <bruno@clisp.org>
7026
7027         fsync test: Avoid test failure on MacOS X and AIX.
7028         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
7029         EINVAL.
7030
7031 2011-06-18  Bruno Haible  <bruno@clisp.org>
7032
7033         openat, fdopendir tests: Fix link errors.
7034         * modules/openat-tests (Depends-on): Add progname.
7035         * modules/fdopendir-tests (Depends-on): Likewise.
7036         * tests/test-fchownat.c: Include progname.h.
7037         (main): Call set_program_name.
7038         * tests/test-fstatat.c: Include progname.h.
7039         (main): Call set_program_name.
7040         * tests/test-mkdirat.c: Include progname.h.
7041         (main): Call set_program_name.
7042         * tests/test-openat.c: Include progname.h.
7043         (main): Call set_program_name.
7044         * tests/test-unlinkat.c: Include progname.h.
7045         (main): Call set_program_name.
7046         * tests/test-fdopendir.c: Include progname.h.
7047         (main): Call set_program_name.
7048
7049 2011-06-18  Bruno Haible  <bruno@clisp.org>
7050
7051         Doc update.
7052         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
7053         HP-UX.
7054         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
7055
7056 2011-06-18  Bruno Haible  <bruno@clisp.org>
7057
7058         getcwd tests: Avoid compilation error on HP-UX 11.31.
7059         * modules/getcwd-tests (Depends-on): Add pathmax.
7060         * tests/test-getcwd.c: Include pathmax.h.
7061
7062 2011-06-18  Bruno Haible  <bruno@clisp.org>
7063
7064         isfinite, isinf: Fix link error on AIX 6 and 7.
7065         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
7066         needed, also test the macro with a 'float' argument.
7067         * m4/isinf.m4 (gl_ISINF): Likewise.
7068
7069 2011-06-18  Bruno Haible  <bruno@clisp.org>
7070
7071         getloadavg: Don't clobber LIBS. Regression from previous commit.
7072         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
7073         AC_CHECK_LIB from here...
7074         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
7075         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
7076         gl_func_getloadavg_done.
7077         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7078
7079 2011-06-18  Bruno Haible  <bruno@clisp.org>
7080
7081         clean-temp: Improve documentation.
7082         * lib/clean-temp.h: Explain better how to use this module.
7083         Reported by John Darrington <john@darrington.wattle.id.au>.
7084
7085 2011-06-17  Bruno Haible  <bruno@clisp.org>
7086
7087         pread, pwrite: Avoid cc warning on AIX.
7088         * lib/unistd.in.h (pread): Undefine before defining as a macro.
7089         (pwrite): Likewise.
7090
7091 2011-06-17  Bruno Haible  <bruno@clisp.org>
7092
7093         spawn-pipe tests: Fix link error.
7094         * tests/test-spawn-pipe-child.c: Undefine fprintf.
7095         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7096
7097 2011-06-17  Bruno Haible  <bruno@clisp.org>
7098
7099         Tests: Remove unnecessary dependency.
7100         * modules/canonicalize-tests (Depends-on): Remove progname.
7101         * modules/chown-tests (Depends-on): Likewise.
7102         * modules/dirname-tests (Depends-on): Likewise.
7103         * modules/fdopendir-tests (Depends-on): Likewise.
7104         * modules/fdutimensat-tests (Depends-on): Likewise.
7105         * modules/hash-tests (Depends-on): Likewise.
7106         * modules/lchown-tests (Depends-on): Likewise.
7107         * modules/linkat-tests (Depends-on): Likewise.
7108         * modules/renameat-tests (Depends-on): Likewise.
7109         * modules/spawn-pipe-tests (Depends-on): Likewise.
7110         * modules/utimensat-tests (Depends-on): Likewise.
7111
7112 2011-06-17  Bruno Haible  <bruno@clisp.org>
7113
7114         spawn-pipe tests: Fix link error.
7115         * tests/test-spawn-pipe-child.c: Undefine fflush.
7116
7117 2011-06-17  Bruno Haible  <bruno@clisp.org>
7118
7119         Fix tests link errors.
7120         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
7121         * modules/chown-tests (Makefile.am): Don't link test-chown with
7122         LIBINTL.
7123         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
7124         LIBINTL.
7125         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
7126         LIBINTL.
7127         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
7128         LIBINTL.
7129
7130 2011-06-16  Bruno Haible  <bruno@clisp.org>
7131
7132         crypto/gc-sha1: Fix recent regression.
7133         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
7134         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
7135
7136         crypto/gc-md5: Fix recent regression.
7137         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
7138
7139         crypto/gc-md4: Fix recent regression.
7140         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
7141         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
7142
7143         crypto/gc-arctwo: Fix recent regression.
7144         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
7145         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
7146
7147         crypto/gc-rijndael: Fix recent regression.
7148         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
7149         (configure.ac): Invoke AC_LIBOBJ here.
7150         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
7151         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7152
7153         crypto/gc-hmac-sha1: Fix recent regression.
7154         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
7155         (configure.ac): Invoke AC_LIBOBJ here.
7156         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
7157         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7158
7159         crypto/gc-hmac-md5: Fix recent regression.
7160         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
7161         (configure.ac): Invoke AC_LIBOBJ here.
7162         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
7163         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7164
7165         crypto/gc-des: Fix recent regression.
7166         * modules/crypto/gc-des (Files): Remove m4/des.m4.
7167         (configure.ac): Invoke AC_LIBOBJ here.
7168         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
7169         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7170
7171         crypto/gc-arcfour: Fix recent regression.
7172         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
7173         (configure.ac): Invoke AC_LIBOBJ here.
7174         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
7175         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7176
7177 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
7178
7179         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
7180         After the 2011-05-21 change, this macro requires
7181         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
7182         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
7183
7184 2011-06-16  Bruno Haible  <bruno@clisp.org>
7185
7186         fprintftime: Move AC_LIBOBJ invocations to module description.
7187         * m4/fprintftime.m4: Remove file.
7188         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
7189         (configure.ac): Remove gl_FPRINTFTIME call.
7190         (Makefile.am): Augment lib_SOURCES.
7191         Reported by Jim Meyering.
7192
7193 2011-06-16  Bruno Haible  <bruno@clisp.org>
7194
7195         tmpfile-safer: Finish 2011-05-23 commit.
7196         * m4/stdio-safer.m4: Really remove file.
7197         Reported by Jim Meyering.
7198
7199 2011-06-16  Bruno Haible  <bruno@clisp.org>
7200
7201         syntax-check: Fix typo.
7202         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
7203         printf-posix.m4.
7204         Reported by Jim Meyering.
7205
7206 2011-06-13  Jim Meyering  <meyering@redhat.com>
7207
7208         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
7209         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
7210
7211 2011-05-23  Bruno Haible  <bruno@clisp.org>
7212
7213         yesno: Move AC_LIBOBJ invocations to module description.
7214         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
7215         * modules/yesno (Makefile.am): Augment lib_SOURCES.
7216
7217 2011-05-23  Bruno Haible  <bruno@clisp.org>
7218
7219         xstrtol: Move AC_LIBOBJ invocations to module description.
7220         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
7221         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
7222
7223 2011-05-23  Bruno Haible  <bruno@clisp.org>
7224
7225         xstrtold: Move AC_LIBOBJ invocations to module description.
7226         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
7227         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
7228
7229 2011-05-23  Bruno Haible  <bruno@clisp.org>
7230
7231         xstrtod: Move AC_LIBOBJ invocations to module description.
7232         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
7233         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
7234
7235 2011-05-23  Bruno Haible  <bruno@clisp.org>
7236
7237         xnanosleep: Move AC_LIBOBJ invocations to module description.
7238         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
7239         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
7240
7241 2011-05-23  Bruno Haible  <bruno@clisp.org>
7242
7243         xgetcwd: Move AC_LIBOBJ invocations to module description.
7244         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
7245         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
7246
7247 2011-05-23  Bruno Haible  <bruno@clisp.org>
7248
7249         xalloc: Move AC_LIBOBJ invocations to module description.
7250         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
7251         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
7252
7253 2011-05-23  Bruno Haible  <bruno@clisp.org>
7254
7255         write-any-file: Move AC_LIBOBJ invocations to module description.
7256         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
7257         invocation.
7258         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
7259
7260 2011-05-23  Bruno Haible  <bruno@clisp.org>
7261
7262         utimens: Move AC_LIBOBJ invocations to module description.
7263         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
7264         * modules/utimens (Makefile.am): Augment lib_SOURCES.
7265
7266 2011-05-23  Bruno Haible  <bruno@clisp.org>
7267
7268         utimecmp: Move AC_LIBOBJ invocations to module description.
7269         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
7270         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
7271
7272 2011-05-23  Bruno Haible  <bruno@clisp.org>
7273
7274         userspec: Move AC_LIBOBJ invocations to module description.
7275         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
7276         * modules/userspec (Makefile.am): Augment lib_SOURCES.
7277
7278 2011-05-23  Bruno Haible  <bruno@clisp.org>
7279
7280         unlinkdir: Move AC_LIBOBJ invocations to module description.
7281         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
7282         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
7283
7284 2011-05-23  Bruno Haible  <bruno@clisp.org>
7285
7286         unistd-safer: Move AC_LIBOBJ invocations to module description.
7287         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
7288         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
7289
7290 2011-05-23  Bruno Haible  <bruno@clisp.org>
7291
7292         tempname: Move AC_LIBOBJ invocations to module description.
7293         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
7294         * modules/tempname (Makefile.am): Augment lib_SOURCES.
7295
7296 2011-05-23  Bruno Haible  <bruno@clisp.org>
7297
7298         strftime: Move AC_LIBOBJ invocations to module description.
7299         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
7300         * modules/strftime (Makefile.am): Augment lib_SOURCES.
7301
7302 2011-05-23  Bruno Haible  <bruno@clisp.org>
7303
7304         stdlib-safer: Move AC_LIBOBJ invocations to module description.
7305         * m4/stdlib-safer.m4: Remove file.
7306         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
7307         (configure.ac): Remove gl_STDLIB_SAFER call.
7308         (Makefile.am): Augment lib_SOURCES.
7309
7310 2011-05-23  Bruno Haible  <bruno@clisp.org>
7311
7312         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
7313         * m4/stdio-safer.m4: Remove file.
7314         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
7315         (configure.ac): Remove gl_TMPFILE_SAFER call.
7316         (Makefile.am): Augment lib_SOURCES.
7317
7318 2011-05-23  Bruno Haible  <bruno@clisp.org>
7319
7320         popen-safer: Move AC_LIBOBJ invocations to module description.
7321         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
7322         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
7323         (configure.ac): Remove gl_POPEN_SAFER call.
7324         (Makefile.am): Augment lib_SOURCES.
7325
7326 2011-05-23  Bruno Haible  <bruno@clisp.org>
7327
7328         freopen-safer: Move AC_LIBOBJ invocations to module description.
7329         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
7330         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
7331         (configure.ac): Remove gl_FREOPEN_SAFER call.
7332         (Makefile.am): Augment lib_SOURCES.
7333
7334 2011-05-23  Bruno Haible  <bruno@clisp.org>
7335
7336         fopen-safer: Move AC_LIBOBJ invocations to module description.
7337         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
7338         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
7339         (configure.ac): Remove gl_FOPEN_SAFER call.
7340         (Makefile.am): Augment lib_SOURCES.
7341
7342 2011-05-23  Bruno Haible  <bruno@clisp.org>
7343
7344         crypto/sha512: Move AC_LIBOBJ invocations to module description.
7345         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
7346         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
7347
7348 2011-05-23  Bruno Haible  <bruno@clisp.org>
7349
7350         crypto/sha256: Move AC_LIBOBJ invocations to module description.
7351         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
7352         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
7353
7354 2011-05-23  Bruno Haible  <bruno@clisp.org>
7355
7356         crypto/sha1: Move AC_LIBOBJ invocations to module description.
7357         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
7358         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
7359
7360 2011-05-23  Bruno Haible  <bruno@clisp.org>
7361
7362         settime: Move AC_LIBOBJ invocations to module description.
7363         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
7364         * modules/settime (Makefile.am): Augment lib_SOURCES.
7365
7366 2011-05-23  Bruno Haible  <bruno@clisp.org>
7367
7368         savedir: Move AC_LIBOBJ invocations to module description.
7369         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
7370         * modules/savedir (Makefile.am): Augment lib_SOURCES.
7371
7372 2011-05-23  Bruno Haible  <bruno@clisp.org>
7373
7374         save-cwd: Move AC_LIBOBJ invocations to module description.
7375         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
7376         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
7377
7378 2011-05-23  Bruno Haible  <bruno@clisp.org>
7379
7380         same: Move AC_LIBOBJ invocations to module description.
7381         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
7382         * modules/same (Makefile.am): Augment lib_SOURCES.
7383
7384 2011-05-23  Bruno Haible  <bruno@clisp.org>
7385
7386         safe-write: Move AC_LIBOBJ invocations to module description.
7387         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
7388         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
7389         instead of gl_SAFE_WRITE.
7390         (Makefile.am): Augment lib_SOURCES.
7391
7392 2011-05-23  Bruno Haible  <bruno@clisp.org>
7393
7394         safe-read: Move AC_LIBOBJ invocations to module description.
7395         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
7396         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
7397         of gl_SAFE_READ.
7398         (Makefile.am): Augment lib_SOURCES.
7399
7400 2011-05-23  Bruno Haible  <bruno@clisp.org>
7401
7402         safe-alloc: Move AC_LIBOBJ invocations to module description.
7403         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
7404         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
7405
7406 2011-05-23  Bruno Haible  <bruno@clisp.org>
7407
7408         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
7409         * m4/rijndael.m4: Remove file.
7410         * modules/crypto/rijndael (Files): Remove it.
7411         (configure.ac): Remove gl_RIJNDAEL call.
7412         (Makefile.am): Augment lib_SOURCES.
7413
7414 2011-05-23  Bruno Haible  <bruno@clisp.org>
7415
7416         readtokens: Move AC_LIBOBJ invocations to module description.
7417         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
7418         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
7419
7420 2011-05-23  Bruno Haible  <bruno@clisp.org>
7421
7422         read-file: Move AC_LIBOBJ invocations to module description.
7423         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
7424         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
7425         of gl_FUNC_READ_FILE.
7426         (Makefile.am): Augment lib_SOURCES.
7427
7428 2011-05-23  Bruno Haible  <bruno@clisp.org>
7429
7430         quotearg: Move AC_LIBOBJ invocations to module description.
7431         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
7432         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
7433
7434 2011-05-23  Bruno Haible  <bruno@clisp.org>
7435
7436         quote: Move AC_LIBOBJ invocations to module description.
7437         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
7438         * modules/quote (Makefile.am): Augment lib_SOURCES.
7439
7440 2011-05-23  Bruno Haible  <bruno@clisp.org>
7441
7442         posixver: Move AC_LIBOBJ invocations to module description.
7443         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
7444         * modules/posixver (Makefile.am): Augment lib_SOURCES.
7445
7446 2011-05-23  Bruno Haible  <bruno@clisp.org>
7447
7448         posixtm: Move AC_LIBOBJ invocations to module description.
7449         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
7450         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
7451
7452 2011-05-23  Bruno Haible  <bruno@clisp.org>
7453
7454         physmem: Move AC_LIBOBJ invocations to module description.
7455         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
7456         * modules/physmem (Makefile.am): Augment lib_SOURCES.
7457
7458 2011-05-23  Bruno Haible  <bruno@clisp.org>
7459
7460         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
7461         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
7462         invocation.
7463         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
7464
7465 2011-05-23  Bruno Haible  <bruno@clisp.org>
7466
7467         mpsort: Move AC_LIBOBJ invocations to module description.
7468         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
7469         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
7470
7471 2011-05-23  Bruno Haible  <bruno@clisp.org>
7472
7473         modechange: Move AC_LIBOBJ invocations to module description.
7474         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
7475         * modules/modechange (Makefile.am): Augment lib_SOURCES.
7476
7477 2011-05-23  Bruno Haible  <bruno@clisp.org>
7478
7479         mkdir-p: Move AC_LIBOBJ invocations to module description.
7480         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
7481         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
7482
7483 2011-05-23  Bruno Haible  <bruno@clisp.org>
7484
7485         mkancesdirs: Move AC_LIBOBJ invocations to module description.
7486         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
7487         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
7488
7489 2011-05-23  Bruno Haible  <bruno@clisp.org>
7490
7491         mgetgroups: Move AC_LIBOBJ invocations to module description.
7492         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
7493         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
7494
7495 2011-05-23  Bruno Haible  <bruno@clisp.org>
7496
7497         memxor: Move AC_LIBOBJ invocations to module description.
7498         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
7499         * modules/memxor (Makefile.am): Augment lib_SOURCES.
7500
7501 2011-05-23  Bruno Haible  <bruno@clisp.org>
7502
7503         memcoll: Move AC_LIBOBJ invocations to module description.
7504         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
7505         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
7506
7507 2011-05-23  Bruno Haible  <bruno@clisp.org>
7508
7509         memcasecmp: Move AC_LIBOBJ invocations to module description.
7510         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
7511         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
7512
7513 2011-05-23  Bruno Haible  <bruno@clisp.org>
7514
7515         crypto/md5: Move AC_LIBOBJ invocations to module description.
7516         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
7517         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
7518
7519 2011-05-23  Bruno Haible  <bruno@clisp.org>
7520
7521         crypto/md4: Move AC_LIBOBJ invocations to module description.
7522         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
7523         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
7524
7525 2011-05-23  Bruno Haible  <bruno@clisp.org>
7526
7527         crypto/md2: Move AC_LIBOBJ invocations to module description.
7528         * m4/md2.m4: Remove file.
7529         * modules/crypto/md2 (Files): Remove it.
7530         (configure.ac): Remove gl_MD2 call.
7531         (Makefile.am): Augment lib_SOURCES.
7532
7533 2011-05-23  Bruno Haible  <bruno@clisp.org>
7534
7535         long-options: Move AC_LIBOBJ invocations to module description.
7536         * m4/long-options.m4: Remove file.
7537         * modules/long-options (Files): Remove it.
7538         (configure.ac): Remove gl_LONG_OPTIONS call.
7539         (Makefile.am): Augment lib_SOURCES.
7540
7541 2011-05-23  Bruno Haible  <bruno@clisp.org>
7542
7543         i-ring: Move AC_LIBOBJ invocations to module description.
7544         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
7545         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
7546
7547 2011-05-23  Bruno Haible  <bruno@clisp.org>
7548
7549         idcache: Move AC_LIBOBJ invocations to module description.
7550         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
7551         * modules/idcache (Makefile.am): Augment lib_SOURCES.
7552
7553 2011-05-23  Bruno Haible  <bruno@clisp.org>
7554
7555         human: Move AC_LIBOBJ invocations to module description.
7556         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
7557         * modules/human (Makefile.am): Augment lib_SOURCES.
7558
7559 2011-05-23  Bruno Haible  <bruno@clisp.org>
7560
7561         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
7562         * m4/hmac-sha1.m4: Remove file.
7563         * modules/crypto/hmac-sha1 (Files): Remove it.
7564         (configure.ac): Remove gl_HMAC_SHA1 call.
7565         (Makefile.am): Augment lib_SOURCES.
7566
7567 2011-05-23  Bruno Haible  <bruno@clisp.org>
7568
7569         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
7570         * m4/hmac-md5.m4: Remove file.
7571         * modules/crypto/hmac-md5 (Files): Remove it.
7572         (configure.ac): Remove gl_HMAC_MD5 call.
7573         (Makefile.am): Augment lib_SOURCES.
7574
7575 2011-05-23  Bruno Haible  <bruno@clisp.org>
7576
7577         hash: Move AC_LIBOBJ invocations to module description.
7578         * m4/hash.m4: Remove file.
7579         * modules/hash (Files): Remove it.
7580         (configure.ac): Remove gl_HASH call.
7581         (Makefile.am): Augment lib_SOURCES.
7582
7583 2011-05-23  Bruno Haible  <bruno@clisp.org>
7584
7585         hard-locale: Move AC_LIBOBJ invocations to module description.
7586         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
7587         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
7588
7589 2011-05-23  Bruno Haible  <bruno@clisp.org>
7590
7591         getugroups: Move AC_LIBOBJ invocations to module description.
7592         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
7593         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
7594
7595 2011-05-23  Bruno Haible  <bruno@clisp.org>
7596
7597         gettime: Move AC_LIBOBJ invocations to module description.
7598         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
7599         * modules/gettime (Makefile.am): Augment lib_SOURCES.
7600
7601 2011-05-23  Bruno Haible  <bruno@clisp.org>
7602
7603         getndelim2: Move AC_LIBOBJ invocations to module description.
7604         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
7605         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
7606
7607 2011-05-23  Bruno Haible  <bruno@clisp.org>
7608
7609         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
7610         * m4/gc-pbkdf2-sha1.m4: Remove file.
7611         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
7612         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
7613         (Makefile.am): Augment lib_SOURCES.
7614
7615 2011-05-23  Bruno Haible  <bruno@clisp.org>
7616
7617         fts: Move AC_LIBOBJ invocations to module description.
7618         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
7619         * modules/fts (configure.ac): ... to here.
7620
7621 2011-05-23  Bruno Haible  <bruno@clisp.org>
7622
7623         file-type: Move AC_LIBOBJ invocations to module description.
7624         * m4/file-type.m4: Remove file.
7625         * modules/file-type (Files): Remove it.
7626         (configure.ac): Remove gl_FILE_TYPE call.
7627         (Makefile.am): Augment lib_SOURCES.
7628
7629 2011-05-23  Bruno Haible  <bruno@clisp.org>
7630
7631         filenamecat*: Respect rules for use of AC_LIBOBJ.
7632         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
7633         Remove AC_LIBOBJ invocation.
7634         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
7635         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
7636
7637 2011-05-23  Bruno Haible  <bruno@clisp.org>
7638
7639         filemode: Move AC_LIBOBJ invocations to module description.
7640         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
7641         * modules/filemode (Makefile.am): Augment lib_SOURCES.
7642
7643 2011-05-23  Bruno Haible  <bruno@clisp.org>
7644
7645         openat-safer: Move AC_LIBOBJ invocations to module description.
7646         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
7647         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
7648
7649 2011-05-23  Bruno Haible  <bruno@clisp.org>
7650
7651         fcntl-safer: Move AC_LIBOBJ invocations to module description.
7652         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
7653         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
7654
7655 2011-05-23  Bruno Haible  <bruno@clisp.org>
7656
7657         exclude: Move AC_LIBOBJ invocations to module description.
7658         * m4/exclude.m4: Remove file.
7659         * modules/exclude (Files): Remove it.
7660         (configure.ac): Remove gl_EXCLUDE call.
7661         (Makefile.am): Augment lib_SOURCES.
7662
7663 2011-05-23  Bruno Haible  <bruno@clisp.org>
7664
7665         dirname*: Respect rules for use of AC_LIBOBJ.
7666         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
7667         invocations.
7668         * modules/dirname (Makefile.am): Augment lib_SOURCES.
7669         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
7670
7671 2011-05-23  Bruno Haible  <bruno@clisp.org>
7672
7673         dirent-safer: Move AC_LIBOBJ invocations to module description.
7674         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
7675         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
7676
7677 2011-05-23  Bruno Haible  <bruno@clisp.org>
7678
7679         crypto/des: Move AC_LIBOBJ invocations to module description.
7680         * m4/des.m4: Remove file.
7681         * modules/crypto/des (Files): Remove it.
7682         (configure.ac): Remove gl_DES call.
7683         (Makefile.am): Augment lib_SOURCES.
7684
7685 2011-05-23  Bruno Haible  <bruno@clisp.org>
7686
7687         cycle-check: Move AC_LIBOBJ invocations to module description.
7688         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
7689         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
7690
7691 2011-05-23  Bruno Haible  <bruno@clisp.org>
7692
7693         c-strtold: Move AC_LIBOBJ invocations to module description.
7694         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
7695         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
7696
7697 2011-05-23  Bruno Haible  <bruno@clisp.org>
7698
7699         c-strtod: Move AC_LIBOBJ invocations to module description.
7700         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
7701         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
7702
7703 2011-05-23  Bruno Haible  <bruno@clisp.org>
7704
7705         crc: Move AC_LIBOBJ invocations to module description.
7706         * m4/crc.m4: Remove file.
7707         * modules/crc (Files): Remove it.
7708         (configure.ac): Remove gl_CRC call.
7709         (Makefile.am): Augment lib_SOURCES.
7710
7711 2011-05-23  Bruno Haible  <bruno@clisp.org>
7712
7713         close-stream: Move AC_LIBOBJ invocations to module description.
7714         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
7715         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
7716
7717 2011-05-23  Bruno Haible  <bruno@clisp.org>
7718
7719         closeout: Move AC_LIBOBJ invocations to module description.
7720         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
7721         * modules/closeout (Makefile.am): Augment lib_SOURCES.
7722
7723 2011-05-23  Bruno Haible  <bruno@clisp.org>
7724
7725         closein: Move AC_LIBOBJ invocations to module description.
7726         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
7727         * modules/closein (Makefile.am): Augment lib_SOURCES.
7728
7729 2011-05-23  Bruno Haible  <bruno@clisp.org>
7730
7731         cloexec: Move AC_LIBOBJ invocations to module description.
7732         * m4/cloexec.m4: Remove file.
7733         * modules/cloexec (Files): Remove it.
7734         (configure.ac): Remove gl_CLOEXEC call.
7735         (Makefile.am): Augment lib_SOURCES.
7736
7737 2011-05-23  Bruno Haible  <bruno@clisp.org>
7738
7739         check-version: Move AC_LIBOBJ invocations to module description.
7740         * m4/check-version.m4: Remove file.
7741         * modules/check-version (Files): Remove it.
7742         (configure.ac): Remove gl_CHECK_VERSION call.
7743         (Makefile.am): Augment lib_SOURCES.
7744
7745 2011-05-23  Bruno Haible  <bruno@clisp.org>
7746
7747         chdir-safer: Move AC_LIBOBJ invocations to module description.
7748         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
7749         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
7750
7751 2011-05-23  Bruno Haible  <bruno@clisp.org>
7752
7753         canonicalize: Move AC_LIBOBJ invocations to module description.
7754         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
7755         AC_LIBOBJ invocation.
7756         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
7757
7758 2011-05-23  Bruno Haible  <bruno@clisp.org>
7759
7760         canon-host: Move AC_LIBOBJ invocations to module description.
7761         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
7762         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
7763         instead of gl_CANON_HOST.
7764         (Makefile.am): Augment lib_SOURCES.
7765
7766 2011-05-23  Bruno Haible  <bruno@clisp.org>
7767
7768         backupfile: Move AC_LIBOBJ invocations to module description.
7769         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
7770         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
7771
7772 2011-05-23  Bruno Haible  <bruno@clisp.org>
7773
7774         argmatch: Move AC_LIBOBJ invocations to module description.
7775         * m4/argmatch.m4: Remove file.
7776         * modules/argmatch (Files): Remove it.
7777         (configure.ac): Remove gl_ARGMATCH call.
7778         (Makefile.am): Augment lib_SOURCES.
7779
7780 2011-05-23  Bruno Haible  <bruno@clisp.org>
7781
7782         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
7783         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
7784         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
7785
7786 2011-05-23  Bruno Haible  <bruno@clisp.org>
7787
7788         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
7789         * m4/arcfour.m4: Remove file.
7790         * modules/crypto/arcfour (Files): Remove it.
7791         (configure.ac): Remove gl_ARCFOUR call.
7792         (Makefile.am): Augment lib_SOURCES.
7793
7794 2011-05-22  Bruno Haible  <bruno@clisp.org>
7795
7796         write: Move AC_LIBOBJ invocations to module description.
7797         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
7798         * modules/write (configure.ac): ... to here.
7799
7800 2011-05-22  Bruno Haible  <bruno@clisp.org>
7801
7802         wmemset: Move AC_LIBOBJ invocations to module description.
7803         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
7804         here...
7805         * modules/wmemset (configure.ac): ... to here.
7806
7807 2011-05-22  Bruno Haible  <bruno@clisp.org>
7808
7809         wmemmove: Move AC_LIBOBJ invocations to module description.
7810         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
7811         here...
7812         * modules/wmemmove (configure.ac): ... to here.
7813
7814 2011-05-22  Bruno Haible  <bruno@clisp.org>
7815
7816         wmemcpy: Move AC_LIBOBJ invocations to module description.
7817         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
7818         here...
7819         * modules/wmemcpy (configure.ac): ... to here.
7820
7821 2011-05-22  Bruno Haible  <bruno@clisp.org>
7822
7823         wmemcmp: Move AC_LIBOBJ invocations to module description.
7824         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
7825         here...
7826         * modules/wmemcmp (configure.ac): ... to here.
7827
7828 2011-05-22  Bruno Haible  <bruno@clisp.org>
7829
7830         wmemchr: Move AC_LIBOBJ invocations to module description.
7831         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
7832         here...
7833         * modules/wmemchr (configure.ac): ... to here.
7834
7835 2011-05-22  Bruno Haible  <bruno@clisp.org>
7836
7837         wcswidth: Move AC_LIBOBJ invocations to module description.
7838         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
7839         here...
7840         * modules/wcswidth (configure.ac): ... to here.
7841
7842 2011-05-22  Bruno Haible  <bruno@clisp.org>
7843
7844         wcwidth: Respect rules for use of AC_LIBOBJ.
7845         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
7846         invocation from here...
7847         * modules/wcwidth (configure.ac): ... to here.
7848         (Depends-on): Update conditions.
7849
7850 2011-05-22  Bruno Haible  <bruno@clisp.org>
7851
7852         wctype: Move AC_LIBOBJ invocations to module description.
7853         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
7854         invocation from here...
7855         * modules/wctype (configure.ac): ... to here.
7856         (Depends-on): Update conditions.
7857
7858 2011-05-22  Bruno Haible  <bruno@clisp.org>
7859
7860         wctrans: Move AC_LIBOBJ invocations to module description.
7861         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
7862         invocation from here...
7863         * modules/wctrans (configure.ac): ... to here.
7864
7865 2011-05-22  Bruno Haible  <bruno@clisp.org>
7866
7867         wctomb: Move AC_LIBOBJ invocations to module description.
7868         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
7869         invocations from here...
7870         * modules/wctomb (configure.ac): ... to here.
7871
7872 2011-05-22  Bruno Haible  <bruno@clisp.org>
7873
7874         wctob: Move AC_LIBOBJ invocations to module description.
7875         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
7876         gl_PREREQ_WCTOB invocations from here...
7877         * modules/wctob (configure.ac): ... to here.
7878         (Depends-on): Update conditions.
7879
7880 2011-05-22  Bruno Haible  <bruno@clisp.org>
7881
7882         wcsxfrm: Move AC_LIBOBJ invocations to module description.
7883         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
7884         here...
7885         * modules/wcsxfrm (configure.ac): ... to here.
7886
7887 2011-05-22  Bruno Haible  <bruno@clisp.org>
7888
7889         wcstok: Move AC_LIBOBJ invocations to module description.
7890         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
7891         * modules/wcstok (configure.ac): ... to here.
7892
7893 2011-05-22  Bruno Haible  <bruno@clisp.org>
7894
7895         wcsstr: Move AC_LIBOBJ invocations to module description.
7896         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
7897         * modules/wcsstr (configure.ac): ... to here.
7898
7899 2011-05-22  Bruno Haible  <bruno@clisp.org>
7900
7901         wcsspn: Move AC_LIBOBJ invocations to module description.
7902         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
7903         * modules/wcsspn (configure.ac): ... to here.
7904
7905 2011-05-22  Bruno Haible  <bruno@clisp.org>
7906
7907         wcsrtombs: Move AC_LIBOBJ invocations to module description.
7908         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
7909         gl_PREREQ_WCSRTOMBS invocations from here...
7910         * modules/wcsrtombs (configure.ac): ... to here.
7911
7912 2011-05-22  Bruno Haible  <bruno@clisp.org>
7913
7914         wcsrchr: Move AC_LIBOBJ invocations to module description.
7915         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
7916         here...
7917         * modules/wcsrchr (configure.ac): ... to here.
7918
7919 2011-05-22  Bruno Haible  <bruno@clisp.org>
7920
7921         wcspbrk: Move AC_LIBOBJ invocations to module description.
7922         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
7923         here...
7924         * modules/wcspbrk (configure.ac): ... to here.
7925
7926 2011-05-22  Bruno Haible  <bruno@clisp.org>
7927
7928         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
7929         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
7930         gl_PREREQ_WCSNRTOMBS invocations from here...
7931         * modules/wcsnrtombs (configure.ac): ... to here.
7932
7933 2011-05-22  Bruno Haible  <bruno@clisp.org>
7934
7935         wcsnlen: Move AC_LIBOBJ invocations to module description.
7936         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
7937         here...
7938         * modules/wcsnlen (configure.ac): ... to here.
7939
7940 2011-05-22  Bruno Haible  <bruno@clisp.org>
7941
7942         wcsncpy: Move AC_LIBOBJ invocations to module description.
7943         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
7944         here...
7945         * modules/wcsncpy (configure.ac): ... to here.
7946
7947 2011-05-22  Bruno Haible  <bruno@clisp.org>
7948
7949         wcsncmp: Move AC_LIBOBJ invocations to module description.
7950         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
7951         here...
7952         * modules/wcsncmp (configure.ac): ... to here.
7953
7954 2011-05-22  Bruno Haible  <bruno@clisp.org>
7955
7956         wcsncat: Move AC_LIBOBJ invocations to module description.
7957         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
7958         here...
7959         * modules/wcsncat (configure.ac): ... to here.
7960
7961 2011-05-22  Bruno Haible  <bruno@clisp.org>
7962
7963         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
7964         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
7965         from here...
7966         * modules/wcsncasecmp (configure.ac): ... to here.
7967
7968 2011-05-22  Bruno Haible  <bruno@clisp.org>
7969
7970         wcslen: Move AC_LIBOBJ invocations to module description.
7971         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
7972         * modules/wcslen (configure.ac): ... to here.
7973
7974 2011-05-22  Bruno Haible  <bruno@clisp.org>
7975
7976         wcsdup: Move AC_LIBOBJ invocations to module description.
7977         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
7978         * modules/wcsdup (configure.ac): ... to here.
7979
7980 2011-05-22  Bruno Haible  <bruno@clisp.org>
7981
7982         wcscspn: Move AC_LIBOBJ invocations to module description.
7983         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
7984         here...
7985         * modules/wcscspn (configure.ac): ... to here.
7986
7987 2011-05-22  Bruno Haible  <bruno@clisp.org>
7988
7989         wcscpy: Move AC_LIBOBJ invocations to module description.
7990         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
7991         * modules/wcscpy (configure.ac): ... to here.
7992
7993 2011-05-22  Bruno Haible  <bruno@clisp.org>
7994
7995         wcscoll: Move AC_LIBOBJ invocations to module description.
7996         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
7997         here...
7998         * modules/wcscoll (configure.ac): ... to here.
7999
8000 2011-05-22  Bruno Haible  <bruno@clisp.org>
8001
8002         wcscmp: Move AC_LIBOBJ invocations to module description.
8003         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
8004         * modules/wcscmp (configure.ac): ... to here.
8005
8006 2011-05-22  Bruno Haible  <bruno@clisp.org>
8007
8008         wcschr: Move AC_LIBOBJ invocations to module description.
8009         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
8010         * modules/wcschr (configure.ac): ... to here.
8011
8012 2011-05-22  Bruno Haible  <bruno@clisp.org>
8013
8014         wcscat: Move AC_LIBOBJ invocations to module description.
8015         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
8016         * modules/wcscat (configure.ac): ... to here.
8017
8018 2011-05-22  Bruno Haible  <bruno@clisp.org>
8019
8020         wcscasecmp: Move AC_LIBOBJ invocations to module description.
8021         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
8022         here...
8023         * modules/wcscasecmp (configure.ac): ... to here.
8024
8025 2011-05-22  Bruno Haible  <bruno@clisp.org>
8026
8027         wcrtomb: Move AC_LIBOBJ invocations to module description.
8028         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
8029         invocations from here...
8030         * modules/wcrtomb (configure.ac): ... to here.
8031
8032 2011-05-22  Bruno Haible  <bruno@clisp.org>
8033
8034         wcpncpy: Move AC_LIBOBJ invocations to module description.
8035         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
8036         here...
8037         * modules/wcpncpy (configure.ac): ... to here.
8038
8039 2011-05-22  Bruno Haible  <bruno@clisp.org>
8040
8041         wcpcpy: Move AC_LIBOBJ invocations to module description.
8042         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
8043         * modules/wcpcpy (configure.ac): ... to here.
8044
8045 2011-05-22  Bruno Haible  <bruno@clisp.org>
8046
8047         waitpid: Move AC_LIBOBJ invocations to module description.
8048         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
8049         invocation from here...
8050         * modules/waitpid (configure.ac): ... to here.
8051
8052 2011-05-22  Bruno Haible  <bruno@clisp.org>
8053
8054         utimensat: Move AC_LIBOBJ invocations to module description.
8055         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
8056         here...
8057         * modules/utimensat (configure.ac): ... to here.
8058
8059 2011-05-22  Bruno Haible  <bruno@clisp.org>
8060
8061         usleep: Move AC_LIBOBJ invocations to module description.
8062         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
8063         here...
8064         * modules/usleep (configure.ac): ... to here.
8065
8066 2011-05-22  Bruno Haible  <bruno@clisp.org>
8067
8068         unlockpt: Move AC_LIBOBJ invocations to module description.
8069         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
8070         gl_PREREQ_UNLOCKPT invocations from here...
8071         * modules/unlockpt (configure.ac): ... to here.
8072
8073 2011-05-22  Bruno Haible  <bruno@clisp.org>
8074
8075         unlink: Respect rules for use of AC_LIBOBJ.
8076         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
8077         * modules/unlink (configure.ac): ... to here.
8078
8079 2011-05-22  Bruno Haible  <bruno@clisp.org>
8080
8081         uname: Move AC_LIBOBJ invocations to module description.
8082         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
8083         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
8084         here...
8085         * modules/uname (configure.ac): ... to here.
8086
8087 2011-05-22  Bruno Haible  <bruno@clisp.org>
8088
8089         ttyname_r: Move AC_LIBOBJ invocations to module description.
8090         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
8091         gl_PREREQ_TTYNAME_R invocations from here...
8092         * modules/ttyname_r (configure.ac): ... to here.
8093
8094 2011-05-22  Bruno Haible  <bruno@clisp.org>
8095
8096         tsearch: Move AC_LIBOBJ invocations to module description.
8097         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
8098         invocations from here...
8099         * modules/tsearch (configure.ac): ... to here.
8100
8101 2011-05-22  Bruno Haible  <bruno@clisp.org>
8102
8103         towctrans: Move AC_LIBOBJ invocations to module description.
8104         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
8105         AC_LIBOBJ invocation from here...
8106         * modules/towctrans (configure.ac): ... to here.
8107
8108 2011-05-22  Bruno Haible  <bruno@clisp.org>
8109
8110         tmpfile: Move AC_LIBOBJ invocations to module description.
8111         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
8112         invocations from here...
8113         * modules/tmpfile (configure.ac): ... to here.
8114
8115 2011-05-22  Bruno Haible  <bruno@clisp.org>
8116
8117         times: Move AC_LIBOBJ invocations to module description.
8118         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
8119         * modules/times (configure.ac): ... to here.
8120
8121 2011-05-22  Bruno Haible  <bruno@clisp.org>
8122
8123         time_r: Move AC_LIBOBJ invocations to module description.
8124         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
8125         invocations from here...
8126         * modules/time_r (configure.ac): ... to here.
8127
8128 2011-05-22  Bruno Haible  <bruno@clisp.org>
8129
8130         timegm: Move AC_LIBOBJ invocations to module description.
8131         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
8132         invocations from here...
8133         * modules/timegm (configure.ac): ... to here.
8134
8135 2011-05-22  Bruno Haible  <bruno@clisp.org>
8136
8137         tcgetsid: Move AC_LIBOBJ invocations to module description.
8138         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
8139         and gl_PREREQ_TCGETSID invocations from here...
8140         * modules/tcgetsid (configure.ac): ... to here.
8141         (Depends-on): Update conditions.
8142
8143 2011-05-22  Bruno Haible  <bruno@clisp.org>
8144
8145         symlinkat: Move AC_LIBOBJ invocations to module description.
8146         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
8147         here...
8148         * modules/symlinkat (configure.ac): ... to here.
8149
8150 2011-05-22  Bruno Haible  <bruno@clisp.org>
8151
8152         symlink: Move AC_LIBOBJ invocations to module description.
8153         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
8154         here...
8155         * modules/symlink (configure.ac): ... to here.
8156
8157 2011-05-22  Bruno Haible  <bruno@clisp.org>
8158
8159         strverscmp: Move AC_LIBOBJ invocations to module description.
8160         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
8161         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
8162         from here...
8163         * modules/strverscmp (configure.ac): ... to here.
8164
8165 2011-05-22  Bruno Haible  <bruno@clisp.org>
8166
8167         strtok_r: Move AC_LIBOBJ invocations to module description.
8168         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
8169         and gl_PREREQ_STRTOK_R invocations from here...
8170         * modules/strtok_r (configure.ac): ... to here.
8171         (Depends-on): Update conditions.
8172
8173 2011-05-22  Bruno Haible  <bruno@clisp.org>
8174
8175         strtoumax: Move AC_LIBOBJ invocations to module description.
8176         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
8177         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
8178         from here...
8179         * modules/strtoumax (configure.ac): ... to here.
8180
8181 2011-05-22  Bruno Haible  <bruno@clisp.org>
8182
8183         strtoimax: Move AC_LIBOBJ invocations to module description.
8184         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
8185         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
8186         from here...
8187         * modules/strtoimax (configure.ac): ... to here.
8188
8189 2011-05-22  Bruno Haible  <bruno@clisp.org>
8190
8191         strtoull: Move AC_LIBOBJ invocations to module description.
8192         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
8193         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
8194         from here...
8195         * modules/strtoull (configure.ac): ... to here.
8196
8197 2011-05-22  Bruno Haible  <bruno@clisp.org>
8198
8199         strtoll: Move AC_LIBOBJ invocations to module description.
8200         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
8201         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
8202         here...
8203         * modules/strtoll (configure.ac): ... to here.
8204
8205 2011-05-22  Bruno Haible  <bruno@clisp.org>
8206
8207         strtoul: Move AC_LIBOBJ invocations to module description.
8208         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
8209         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
8210         * modules/strtoul (configure.ac): ... to here.
8211
8212 2011-05-22  Bruno Haible  <bruno@clisp.org>
8213
8214         strtol: Move AC_LIBOBJ invocations to module description.
8215         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
8216         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
8217         * modules/strtol (configure.ac): ... to here.
8218
8219 2011-05-22  Bruno Haible  <bruno@clisp.org>
8220
8221         strtod: Move AC_LIBOBJ invocations to module description.
8222         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
8223         invocations from here...
8224         * modules/strtod (configure.ac): ... to here.
8225
8226 2011-05-22  Bruno Haible  <bruno@clisp.org>
8227
8228         strstr*: Move AC_LIBOBJ invocations to module description.
8229         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
8230         invocations from here...
8231         * modules/strstr-simple (configure.ac): ... to here.
8232         * modules/strstr (configure.ac): ... and here.
8233
8234 2011-05-22  Bruno Haible  <bruno@clisp.org>
8235
8236         strsignal: Move AC_LIBOBJ invocations to module description.
8237         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
8238         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
8239         * modules/strsignal (configure.ac): ... to here.
8240         (Depends-on): Update conditions.
8241
8242 2011-05-22  Bruno Haible  <bruno@clisp.org>
8243
8244         strsep: Move AC_LIBOBJ invocations to module description.
8245         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
8246         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
8247         here...
8248         * modules/strsep (configure.ac): ... to here.
8249
8250 2011-05-22  Bruno Haible  <bruno@clisp.org>
8251
8252         strptime: Move AC_LIBOBJ invocations to module description.
8253         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
8254         gl_PREREQ_STRPTIME invocations from here...
8255         * modules/strptime (configure.ac): ... to here.
8256
8257 2011-05-22  Bruno Haible  <bruno@clisp.org>
8258
8259         strpbrk: Move AC_LIBOBJ invocations to module description.
8260         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
8261         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
8262         here...
8263         * modules/strpbrk (configure.ac): ... to here.
8264
8265 2011-05-22  Bruno Haible  <bruno@clisp.org>
8266
8267         strnlen: Move AC_LIBOBJ invocations to module description.
8268         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
8269         invocations from here...
8270         * modules/strnlen (configure.ac): ... to here.
8271
8272 2011-05-22  Bruno Haible  <bruno@clisp.org>
8273
8274         strndup: Move AC_LIBOBJ invocations to module description.
8275         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
8276         invocations from here...
8277         * modules/strndup (configure.ac): ... to here.
8278         (Depends-on): Update conditions.
8279
8280 2011-05-22  Bruno Haible  <bruno@clisp.org>
8281
8282         strncat: Move AC_LIBOBJ invocations to module description.
8283         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
8284         invocations from here...
8285         * modules/strncat (configure.ac): ... to here.
8286
8287 2011-05-22  Bruno Haible  <bruno@clisp.org>
8288
8289         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
8290         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
8291         invocations from here...
8292         * modules/strdup (configure.ac): ... to here.
8293         * modules/strdup-posix (configure.ac): ... and here.
8294
8295 2011-05-22  Bruno Haible  <bruno@clisp.org>
8296
8297         strcspn: Move AC_LIBOBJ invocations to module description.
8298         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
8299         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
8300         here...
8301         * modules/strcspn (configure.ac): ... to here.
8302
8303 2011-05-22  Bruno Haible  <bruno@clisp.org>
8304
8305         strchrnul: Move AC_LIBOBJ invocations to module description.
8306         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
8307         gl_PREREQ_STRCHRNUL invocations from here...
8308         * modules/strchrnul (configure.ac): ... to here.
8309
8310 2011-05-22  Bruno Haible  <bruno@clisp.org>
8311
8312         strcasestr*: Move AC_LIBOBJ invocations to module description.
8313         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
8314         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
8315         * modules/strcasestr-simple (configure.ac): ... to here.
8316         * modules/strcasestr (configure.ac): ... and here.
8317
8318 2011-05-22  Bruno Haible  <bruno@clisp.org>
8319
8320         strcase: Move AC_LIBOBJ invocations to module description.
8321         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
8322         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
8323         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
8324         gl_PREREQ_STRNCASECMP invocations from here...
8325         * modules/strcase (configure.ac): ... to here.
8326
8327 2011-05-22  Bruno Haible  <bruno@clisp.org>
8328
8329         stpncpy: Move AC_LIBOBJ invocations to module description.
8330         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
8331         here...
8332         * modules/stpncpy (configure.ac): ... to here.
8333
8334 2011-05-22  Bruno Haible  <bruno@clisp.org>
8335
8336         stpcpy: Move AC_LIBOBJ invocations to module description.
8337         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
8338         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
8339         here...
8340         * modules/stpcpy (configure.ac): ... to here.
8341
8342 2011-05-21  Bruno Haible  <bruno@clisp.org>
8343
8344         stat: Move AC_LIBOBJ invocations to module description.
8345         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
8346         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
8347         here...
8348         * modules/stat (configure.ac): ... to here.
8349
8350 2011-05-21  Bruno Haible  <bruno@clisp.org>
8351
8352         sleep: Move AC_LIBOBJ invocations to module description.
8353         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
8354         * modules/sleep (configure.ac): ... to here.
8355
8356 2011-05-21  Bruno Haible  <bruno@clisp.org>
8357
8358         signbit: Move AC_LIBOBJ invocations to module description.
8359         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
8360         * modules/signbit (configure.ac): ... to here.
8361
8362 2011-05-21  Bruno Haible  <bruno@clisp.org>
8363
8364         sigprocmask: Move AC_LIBOBJ invocations to module description.
8365         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
8366         gl_PREREQ_SIGPROMASK invocations from here...
8367         * modules/sigprocmask (configure.ac): ... to here.
8368
8369 2011-05-21  Bruno Haible  <bruno@clisp.org>
8370
8371         sigaction: Move AC_LIBOBJ invocations to module description.
8372         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
8373         gl_PREREQ_SIGACTION invocations from here...
8374         * modules/sigaction (configure.ac): ... to here.
8375
8376 2011-05-21  Bruno Haible  <bruno@clisp.org>
8377
8378         sig2str: Move AC_LIBOBJ invocations to module description.
8379         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
8380         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
8381         here...
8382         * modules/sig2str (configure.ac): ... to here.
8383
8384 2011-05-21  Bruno Haible  <bruno@clisp.org>
8385
8386         setlocale: Move AC_LIBOBJ invocations to module description.
8387         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
8388         gl_PREREQ_SETLOCALE invocations from here...
8389         * modules/setlocale (configure.ac): ... to here.
8390
8391 2011-05-21  Bruno Haible  <bruno@clisp.org>
8392
8393         unsetenv: Move AC_LIBOBJ invocations to module description.
8394         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
8395         and gl_PREREQ_UNSETENV invocations from here...
8396         * modules/unsetenv (configure.ac): ... to here.
8397         (Depends-on): Update.
8398
8399 2011-05-21  Bruno Haible  <bruno@clisp.org>
8400
8401         setenv: Move AC_LIBOBJ invocations to module description.
8402         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
8403         here...
8404         * modules/setenv (configure.ac): ... to here.
8405
8406 2011-05-21  Bruno Haible  <bruno@clisp.org>
8407
8408         selinux-h: Move AC_LIBOBJ invocations to module description.
8409         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
8410         AC_LIBOBJ invocation from here...
8411         * modules/selinux-h (configure.ac): ... to here.
8412
8413 2011-05-21  Bruno Haible  <bruno@clisp.org>
8414
8415         select: Respect rules for use of AC_LIBOBJ.
8416         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
8417         here...
8418         * modules/select (configure.ac): ... to here.
8419
8420 2011-05-21  Bruno Haible  <bruno@clisp.org>
8421
8422         scandir: Move AC_LIBOBJ invocations to module description.
8423         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
8424         invocations from here...
8425         * modules/scandir (configure.ac): ... to here.
8426
8427 2011-05-21  Bruno Haible  <bruno@clisp.org>
8428
8429         rpmatch: Move AC_LIBOBJ invocations to module description.
8430         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
8431         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
8432         here...
8433         * modules/rpmatch (configure.ac): ... to here.
8434
8435 2011-05-21  Bruno Haible  <bruno@clisp.org>
8436
8437         rmdir: Respect rules for use of AC_LIBOBJ.
8438         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
8439         * modules/rmdir (configure.ac): ... to here.
8440
8441 2011-05-21  Bruno Haible  <bruno@clisp.org>
8442
8443         renameat: Move AC_LIBOBJ invocations to module description.
8444         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
8445         here...
8446         * modules/renameat (configure.ac): ... to here.
8447
8448 2011-05-21  Bruno Haible  <bruno@clisp.org>
8449
8450         rename: Respect rules for use of AC_LIBOBJ.
8451         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
8452         here...
8453         * modules/rename (configure.ac): ... to here.
8454
8455 2011-05-21  Bruno Haible  <bruno@clisp.org>
8456
8457         remove: Move AC_LIBOBJ invocations to module description.
8458         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
8459         here...
8460         * modules/remove (configure.ac): ... to here.
8461
8462 2011-05-21  Bruno Haible  <bruno@clisp.org>
8463
8464         relocatable-lib: Move AC_LIBOBJ invocations to module description.
8465         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
8466         macro.
8467         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
8468         * modules/relocatable-lib (configure.ac): ... to here.
8469         * modules/relocatable-prog-wrapper (configure.ac): Invoke
8470         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
8471
8472 2011-05-21  Bruno Haible  <bruno@clisp.org>
8473
8474         relocatable-prog: Move AC_LIBOBJ invocations to module description.
8475         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
8476         here...
8477         * modules/relocatable-prog (configure.ac): ... to here.
8478
8479 2011-05-21  Bruno Haible  <bruno@clisp.org>
8480
8481         regex: Move AC_LIBOBJ invocations to module description.
8482         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
8483         invocations from here...
8484         * modules/regex (configure.ac): ... to here.
8485
8486 2011-05-21  Bruno Haible  <bruno@clisp.org>
8487
8488         realloc-*: Move AC_LIBOBJ invocations to module description.
8489         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
8490         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
8491         AC_LIBOBJ invocations from here...
8492         * modules/realloc-gnu (configure.ac): ... to here.
8493         * modules/realloc-posix (configure.ac): ... and here.
8494
8495 2011-05-21  Bruno Haible  <bruno@clisp.org>
8496
8497         readutmp: Move AC_LIBOBJ invocations to module description.
8498         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
8499         * modules/readutmp (configure.ac): ... to here.
8500
8501 2011-05-21  Bruno Haible  <bruno@clisp.org>
8502
8503         readlinkat: Move AC_LIBOBJ invocations to module description.
8504         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
8505         here...
8506         * modules/readlinkat (configure.ac): ... to here.
8507
8508 2011-05-21  Bruno Haible  <bruno@clisp.org>
8509
8510         readlink: Move AC_LIBOBJ invocations to module description.
8511         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
8512         gl_PREREQ_READLINK invocations from here...
8513         * modules/readlink (configure.ac): ... to here.
8514
8515 2011-05-21  Bruno Haible  <bruno@clisp.org>
8516
8517         readline: Move AC_LIBOBJ invocations to module description.
8518         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
8519         gl_PREREQ_READLINE invocations from here...
8520         * modules/readline (configure.ac): ... to here.
8521
8522 2011-05-21  Bruno Haible  <bruno@clisp.org>
8523
8524         read: Move AC_LIBOBJ invocations to module description.
8525         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
8526         * modules/read (configure.ac): ... to here.
8527
8528 2011-05-21  Bruno Haible  <bruno@clisp.org>
8529
8530         rawmemchr: Move AC_LIBOBJ invocations to module description.
8531         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
8532         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
8533         from here...
8534         * modules/rawmemchr (configure.ac): ... to here.
8535
8536 2011-05-21  Bruno Haible  <bruno@clisp.org>
8537
8538         random_r: Move AC_LIBOBJ invocations to module description.
8539         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
8540         gl_PREREQ_RANDOM_R invocations from here...
8541         * modules/random_r (configure.ac): ... to here.
8542
8543 2011-05-21  Bruno Haible  <bruno@clisp.org>
8544
8545         pwrite: Move AC_LIBOBJ invocations to module description.
8546         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
8547         * modules/pwrite (configure.ac): ... to here.
8548
8549 2011-05-21  Bruno Haible  <bruno@clisp.org>
8550
8551         putenv: Move AC_LIBOBJ invocations to module description.
8552         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
8553         * modules/putenv (configure.ac): ... to here.
8554
8555 2011-05-21  Bruno Haible  <bruno@clisp.org>
8556
8557         login_tty: Move AC_LIBOBJ invocations to module description.
8558         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
8559         * modules/login_tty (configure.ac): ... to here.
8560
8561 2011-05-21  Bruno Haible  <bruno@clisp.org>
8562
8563         openpty: Move AC_LIBOBJ invocations to module description.
8564         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
8565         * modules/openpty (configure.ac): ... to here.
8566
8567 2011-05-21  Bruno Haible  <bruno@clisp.org>
8568
8569         forkpty: Move AC_LIBOBJ invocations to module description.
8570         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
8571         * modules/forkpty (configure.ac): ... to here.
8572
8573 2011-05-21  Bruno Haible  <bruno@clisp.org>
8574
8575         ptsname: Move AC_LIBOBJ invocations to module description.
8576         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
8577         invocations from here...
8578         * modules/ptsname (configure.ac): ... to here.
8579
8580 2011-05-21  Bruno Haible  <bruno@clisp.org>
8581
8582         pread: Move AC_LIBOBJ invocations to module description.
8583         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
8584         * modules/pread (configure.ac): ... to here.
8585
8586 2011-05-21  Bruno Haible  <bruno@clisp.org>
8587
8588         posix_spawn*: Move AC_LIBOBJ invocations to module description.
8589         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
8590         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
8591         * modules/posix_spawn (configure.ac): ... to here.
8592         * modules/posix_spawnp (configure.ac): ... and here.
8593
8594 2011-05-21  Bruno Haible  <bruno@clisp.org>
8595
8596         popen: Move AC_LIBOBJ invocations to module description.
8597         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
8598         invocations from here...
8599         * modules/popen (configure.ac): ... to here.
8600
8601 2011-05-21  Bruno Haible  <bruno@clisp.org>
8602
8603         poll: Move AC_LIBOBJ invocations to module description.
8604         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
8605         invocations from here...
8606         * modules/poll (configure.ac): ... to here.
8607
8608 2011-05-21  Bruno Haible  <bruno@clisp.org>
8609
8610         pipe-posix: Move AC_LIBOBJ invocations to module description.
8611         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
8612         * modules/pipe-posix (configure.ac): ... to here.
8613
8614 2011-05-21  Bruno Haible  <bruno@clisp.org>
8615
8616         openat: Respect rules for use of AC_LIBOBJ.
8617         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
8618         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8619         * modules/openat (configure.ac): ... to here.
8620
8621 2011-05-21  Bruno Haible  <bruno@clisp.org>
8622
8623         obstack-printf*: Move AC_LIBOBJ invocations to module description.
8624         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
8625         invocation from here...
8626         * modules/obstack-printf (configure.ac): ... to here.
8627         * modules/obstack-printf-posix (configure.ac): ... and here.
8628
8629 2011-05-21  Bruno Haible  <bruno@clisp.org>
8630
8631         nl_langinfo: Move AC_LIBOBJ invocations to module description.
8632         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
8633         from here...
8634         * modules/nl_langinfo (configure.ac): ... to here.
8635
8636 2011-05-21  Bruno Haible  <bruno@clisp.org>
8637
8638         nanosleep: Move AC_LIBOBJ invocations to module description.
8639         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
8640         gl_PREREQ_NANOSLEEP invocations from here...
8641         * modules/nanosleep (configure.ac): ... to here.
8642
8643 2011-05-21  Bruno Haible  <bruno@clisp.org>
8644
8645         mountlist: Move AC_LIBOBJ invocations to module description.
8646         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
8647         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
8648         * modules/mountlist (configure.ac): ... to here.
8649
8650 2011-05-21  Bruno Haible  <bruno@clisp.org>
8651
8652         mktime: Respect rules for use of AC_LIBOBJ.
8653         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
8654         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
8655         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
8656         (gl_FUNC_MKTIME_INTERNAL): ... and here...
8657         * modules/mktime (configure.ac): ... to here.
8658         * modules/mktime-internal (configure.ac): ... and here.
8659         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
8660
8661 2011-05-21  Bruno Haible  <bruno@clisp.org>
8662
8663         mkstemps: Move AC_LIBOBJ invocations to module description.
8664         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
8665         here...
8666         * modules/mkstemps (configure.ac): ... to here.
8667
8668 2011-05-21  Bruno Haible  <bruno@clisp.org>
8669
8670         mkstemp: Move AC_LIBOBJ invocations to module description.
8671         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
8672         gl_PREREQ_MKSTEMP invocations from here...
8673         * modules/mkstemp (configure.ac): ... to here.
8674
8675 2011-05-21  Bruno Haible  <bruno@clisp.org>
8676
8677         mkostemps: Move AC_LIBOBJ invocations to module description.
8678         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
8679         here...
8680         * modules/mkostemps (configure.ac): ... to here.
8681
8682 2011-05-21  Bruno Haible  <bruno@clisp.org>
8683
8684         mkostemp: Move AC_LIBOBJ invocations to module description.
8685         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
8686         gl_PREREQ_MKOSTEMP invocations from here...
8687         * modules/mkostemp (configure.ac): ... to here.
8688
8689 2011-05-21  Bruno Haible  <bruno@clisp.org>
8690
8691         mknod: Move AC_LIBOBJ invocations to module description.
8692         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
8693         * modules/mknod (configure.ac): ... to here.
8694
8695 2011-05-21  Bruno Haible  <bruno@clisp.org>
8696
8697         mkfifoat: Move AC_LIBOBJ invocations to module description.
8698         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
8699         here...
8700         * modules/mkfifoat (configure.ac): ... to here.
8701
8702 2011-05-21  Bruno Haible  <bruno@clisp.org>
8703
8704         mkfifo: Respect rules for use of AC_LIBOBJ.
8705         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
8706         here...
8707         * modules/mkfifo (configure.ac): ... to here.
8708
8709 2011-05-21  Bruno Haible  <bruno@clisp.org>
8710
8711         mkdtemp: Move AC_LIBOBJ invocations to module description.
8712         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
8713         invocations from here...
8714         * modules/mkdtemp (configure.ac): ... to here.
8715
8716 2011-05-21  Bruno Haible  <bruno@clisp.org>
8717
8718         mkdir: Move AC_LIBOBJ invocations to module description.
8719         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
8720         * modules/mkdir (configure.ac): ... to here.
8721
8722 2011-05-21  Bruno Haible  <bruno@clisp.org>
8723
8724         memset: Move AC_LIBOBJ invocations to module description.
8725         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
8726         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
8727         here...
8728         * modules/memset (configure.ac): ... to here.
8729
8730 2011-05-21  Bruno Haible  <bruno@clisp.org>
8731
8732         memrchr: Move AC_LIBOBJ invocations to module description.
8733         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
8734         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
8735         here...
8736         * modules/memrchr (configure.ac): ... to here.
8737
8738 2011-05-21  Bruno Haible  <bruno@clisp.org>
8739
8740         mempcpy: Move AC_LIBOBJ invocations to module description.
8741         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
8742         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
8743         here...
8744         * modules/mempcpy (configure.ac): ... to here.
8745
8746 2011-05-21  Bruno Haible  <bruno@clisp.org>
8747
8748         memmove: Move AC_LIBOBJ invocations to module description.
8749         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
8750         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
8751         here...
8752         * modules/memmove (configure.ac): ... to here.
8753
8754 2011-05-21  Bruno Haible  <bruno@clisp.org>
8755
8756         memmem*: Move AC_LIBOBJ invocations to module description.
8757         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
8758         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
8759         here...
8760         (gl_FUNC_MEMMEM): ... and here...
8761         * modules/memmem-simple (configure.ac): ... to here.
8762         * modules/memmem (configure.ac): ... and here.
8763
8764 2011-05-21  Bruno Haible  <bruno@clisp.org>
8765
8766         memcpy: Move AC_LIBOBJ invocations to module description.
8767         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
8768         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
8769         here...
8770         * modules/memcpy (configure.ac): ... to here.
8771
8772 2011-05-21  Bruno Haible  <bruno@clisp.org>
8773
8774         memcmp: Simplify autoconf macro.
8775         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
8776         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
8777         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
8778
8779 2011-05-21  Bruno Haible  <bruno@clisp.org>
8780
8781         memcmp: Move AC_LIBOBJ invocations to module description.
8782         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
8783         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
8784         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
8785         * modules/memcmp (configure.ac): ... to here.
8786         (Depends-on): Update conditions.
8787
8788 2011-05-21  Bruno Haible  <bruno@clisp.org>
8789
8790         memchr: Respect rules for use of AC_LIBOBJ.
8791         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
8792         invocations from here...
8793         * modules/memchr (configure.ac): ... to here.
8794
8795 2011-05-21  Bruno Haible  <bruno@clisp.org>
8796
8797         mbtowc: Move AC_LIBOBJ invocations to module description.
8798         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
8799         invocations from here...
8800         * modules/mbtowc (configure.ac): ... to here.
8801
8802 2011-05-21  Bruno Haible  <bruno@clisp.org>
8803
8804         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
8805         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
8806         gl_PREREQ_MBSRTOWCS invocations from here...
8807         * modules/mbsrtowcs (configure.ac): ... to here.
8808
8809 2011-05-21  Bruno Haible  <bruno@clisp.org>
8810
8811         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
8812         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
8813         gl_PREREQ_MBSNRTOWCS invocations from here...
8814         * modules/mbsnrtowcs (configure.ac): ... to here.
8815
8816 2011-05-21  Bruno Haible  <bruno@clisp.org>
8817
8818         mbsinit: Move AC_LIBOBJ invocations to module description.
8819         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
8820         invocations from here...
8821         * modules/mbsinit (configure.ac): ... to here.
8822
8823 2011-05-21  Bruno Haible  <bruno@clisp.org>
8824
8825         mbrlen: Move AC_LIBOBJ invocations to module description.
8826         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
8827         invocations from here...
8828         * modules/mbrlen (configure.ac): ... to here.
8829
8830 2011-05-21  Bruno Haible  <bruno@clisp.org>
8831
8832         mbrtowc: Respect rules for use of AC_LIBOBJ.
8833         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
8834         invocations from here...
8835         * modules/mbrtowc (configure.ac): ... to here.
8836
8837 2011-05-21  Bruno Haible  <bruno@clisp.org>
8838
8839         malloc-*: Move AC_LIBOBJ invocations to module description.
8840         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
8841         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
8842         AC_LIBOBJ invocations from here...
8843         * modules/malloc-gnu (configure.ac): ... to here.
8844         * modules/malloc-posix (configure.ac): ... and here.
8845
8846 2011-05-21  Bruno Haible  <bruno@clisp.org>
8847
8848         lstat, openat: Respect rules for use of AC_LIBOBJ.
8849         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
8850         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
8851         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
8852         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
8853         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
8854         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
8855         here.
8856         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
8857
8858 2011-05-21  Bruno Haible  <bruno@clisp.org>
8859
8860         lseek: Move AC_LIBOBJ invocations to module description.
8861         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
8862         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
8863         * modules/lseek (configure.ac): ... to here.
8864
8865 2011-05-21  Bruno Haible  <bruno@clisp.org>
8866
8867         linkat: Move AC_LIBOBJ invocations to module description.
8868         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
8869         here...
8870         * modules/linkat (configure.ac): ... to here.
8871
8872 2011-05-21  Bruno Haible  <bruno@clisp.org>
8873
8874         link: Respect rules for use of AC_LIBOBJ.
8875         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
8876         * modules/link (configure.ac): ... to here.
8877
8878 2011-05-21  Bruno Haible  <bruno@clisp.org>
8879
8880         lchown: Move AC_LIBOBJ invocations to module description.
8881         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
8882         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8883         * modules/lchown (configure.ac): ... to here.
8884
8885 2011-05-21  Bruno Haible  <bruno@clisp.org>
8886
8887         iswctype: Move AC_LIBOBJ invocations to module description.
8888         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
8889         here...
8890         * modules/iswctype (configure.ac): ... to here.
8891
8892 2011-05-21  Bruno Haible  <bruno@clisp.org>
8893
8894         iswblank: Move AC_LIBOBJ invocations to module description.
8895         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
8896         here...
8897         * modules/iswblank (configure.ac): ... to here.
8898
8899 2011-05-21  Bruno Haible  <bruno@clisp.org>
8900
8901         atanl: Move AC_LIBOBJ invocations to module description.
8902         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
8903         * modules/atanl (configure.ac): ... to here.
8904
8905 2011-05-21  Bruno Haible  <bruno@clisp.org>
8906
8907         acosl: Move AC_LIBOBJ invocations to module description.
8908         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
8909         * modules/acosl (configure.ac): ... to here.
8910
8911 2011-05-21  Bruno Haible  <bruno@clisp.org>
8912
8913         asinl: Respect rules for use of AC_LIBOBJ.
8914         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
8915         * modules/asinl (configure.ac): ... to here.
8916
8917 2011-05-21  Bruno Haible  <bruno@clisp.org>
8918
8919         tanl: Move AC_LIBOBJ invocations to module description.
8920         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
8921         * modules/tanl (configure.ac): ... to here.
8922
8923 2011-05-21  Bruno Haible  <bruno@clisp.org>
8924
8925         cosl: Move AC_LIBOBJ invocations to module description.
8926         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
8927         * modules/cosl (configure.ac): ... to here.
8928
8929 2011-05-21  Bruno Haible  <bruno@clisp.org>
8930
8931         sinl: Move AC_LIBOBJ invocations to module description.
8932         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
8933         * modules/sinl (configure.ac): ... to here.
8934
8935 2011-05-21  Bruno Haible  <bruno@clisp.org>
8936
8937         logl: Move AC_LIBOBJ invocations to module description.
8938         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
8939         * modules/logl (configure.ac): ... to here.
8940
8941 2011-05-21  Bruno Haible  <bruno@clisp.org>
8942
8943         expl: Move AC_LIBOBJ invocations to module description.
8944         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
8945         * modules/expl (configure.ac): ... to here.
8946
8947 2011-05-21  Bruno Haible  <bruno@clisp.org>
8948
8949         roundl: Move AC_LIBOBJ invocations to module description.
8950         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
8951         * modules/roundl (configure.ac): ... to here.
8952
8953 2011-05-21  Bruno Haible  <bruno@clisp.org>
8954
8955         round: Move AC_LIBOBJ invocations to module description.
8956         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
8957         * modules/round (configure.ac): ... to here.
8958
8959 2011-05-21  Bruno Haible  <bruno@clisp.org>
8960
8961         roundf: Move AC_LIBOBJ invocations to module description.
8962         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
8963         * modules/roundf (configure.ac): ... to here.
8964
8965 2011-05-21  Bruno Haible  <bruno@clisp.org>
8966
8967         truncl: Move AC_LIBOBJ invocations to module description.
8968         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
8969         * modules/truncl (configure.ac): ... to here.
8970
8971 2011-05-21  Bruno Haible  <bruno@clisp.org>
8972
8973         trunc: Move AC_LIBOBJ invocations to module description.
8974         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
8975         * modules/trunc (configure.ac): ... to here.
8976
8977 2011-05-21  Bruno Haible  <bruno@clisp.org>
8978
8979         truncf: Move AC_LIBOBJ invocations to module description.
8980         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
8981         * modules/truncf (configure.ac): ... to here.
8982
8983 2011-05-21  Bruno Haible  <bruno@clisp.org>
8984
8985         ceill: Move AC_LIBOBJ invocations to module description.
8986         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
8987         * modules/ceill (configure.ac): ... to here.
8988
8989 2011-05-21  Bruno Haible  <bruno@clisp.org>
8990
8991         ceil: Move AC_LIBOBJ invocations to module description.
8992         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
8993         * modules/ceil (configure.ac): ... to here.
8994
8995 2011-05-21  Bruno Haible  <bruno@clisp.org>
8996
8997         ceilf: Move AC_LIBOBJ invocations to module description.
8998         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
8999         * modules/ceilf (configure.ac): ... to here.
9000
9001 2011-05-21  Bruno Haible  <bruno@clisp.org>
9002
9003         floorl: Respect rules for use of AC_LIBOBJ.
9004         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
9005         * modules/floorl (configure.ac): ... to here.
9006
9007 2011-05-21  Bruno Haible  <bruno@clisp.org>
9008
9009         floor: Respect rules for use of AC_LIBOBJ.
9010         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
9011         * modules/floor (configure.ac): ... to here.
9012
9013 2011-05-21  Bruno Haible  <bruno@clisp.org>
9014
9015         floorf: Move AC_LIBOBJ invocations to module description.
9016         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
9017         * modules/floorf (configure.ac): ... to here.
9018
9019 2011-05-20  Bruno Haible  <bruno@clisp.org>
9020
9021         sqrtl: Respect rules for use of AC_LIBOBJ.
9022         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
9023         * modules/sqrtl (configure.ac): ... to here.
9024
9025 2011-05-20  Bruno Haible  <bruno@clisp.org>
9026
9027         ldexpl: Respect rules for use of AC_LIBOBJ.
9028         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
9029         * modules/ldexpl (configure.ac): ... to here.
9030
9031 2011-05-20  Bruno Haible  <bruno@clisp.org>
9032
9033         frexpl*: Respect rules for use of AC_LIBOBJ.
9034         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
9035         invocation from here...
9036         * modules/frexpl (configure.ac): ... to here.
9037         * modules/frexpl-nolibm (configure.ac): ... and here.
9038
9039 2011-05-20  Bruno Haible  <bruno@clisp.org>
9040
9041         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
9042         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
9043         invocation from here...
9044         * modules/frexp (configure.ac): ... to here.
9045         * modules/frexp-nolibm (configure.ac): ... and here.
9046
9047 2011-05-20  Bruno Haible  <bruno@clisp.org>
9048
9049         isnan: Respect rules for use of AC_LIBOBJ.
9050         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
9051         invocations here.
9052         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
9053         REPLACE_ISNAN.
9054         * modules/isnand (configure.ac): Likewise.
9055         * modules/isnanl (configure.ac): Likewise.
9056
9057 2011-05-20  Bruno Haible  <bruno@clisp.org>
9058
9059         isnanl*: Respect rules for use of AC_LIBOBJ.
9060         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
9061         invocation from here...
9062         * modules/isnanl (configure.ac): ... to here.
9063         * modules/isnanl-nolibm (configure.ac): ... and here.
9064
9065 2011-05-20  Bruno Haible  <bruno@clisp.org>
9066
9067         isnand*: Move AC_LIBOBJ invocations to module description.
9068         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
9069         invocation from here...
9070         * modules/isnand (configure.ac): ... to here.
9071         * modules/isnand-nolibm (configure.ac): ... and here.
9072
9073 2011-05-20  Bruno Haible  <bruno@clisp.org>
9074
9075         isnanf*: Move AC_LIBOBJ invocations to module description.
9076         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
9077         invocation from here...
9078         * modules/isnanf (configure.ac): ... to here.
9079         * modules/isnanf-nolibm (configure.ac): ... and here.
9080
9081 2011-05-20  Bruno Haible  <bruno@clisp.org>
9082
9083         isnan*: Separate the AC_LIBOBJ invocations.
9084         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
9085         AC_LIBOBJ invocation.
9086         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
9087         here.
9088         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
9089         AC_LIBOBJ invocation.
9090         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
9091         here.
9092         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
9093         AC_LIBOBJ invocation.
9094         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
9095         here.
9096         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
9097
9098 2011-05-08  Bruno Haible  <bruno@clisp.org>
9099
9100         isinf: Move AC_LIBOBJ invocations to module description.
9101         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
9102         * modules/isinf (configure.ac): ... to here.
9103
9104 2011-05-08  Bruno Haible  <bruno@clisp.org>
9105
9106         isfinite: Move AC_LIBOBJ invocations to module description.
9107         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
9108         * modules/isfinite (configure.ac): ... to here.
9109
9110 2011-05-08  Bruno Haible  <bruno@clisp.org>
9111
9112         isblank: Move AC_LIBOBJ invocations to module description.
9113         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
9114         here...
9115         * modules/isblank (configure.ac): ... to here.
9116
9117 2011-05-08  Bruno Haible  <bruno@clisp.org>
9118
9119         isapipe: Move AC_LIBOBJ invocations to module description.
9120         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
9121         gl_PREREQ_ISAPIPE invocations from here...
9122         * modules/isapipe (configure.ac): ... to here.
9123         (Depends-on): Update condition.
9124
9125 2011-05-08  Bruno Haible  <bruno@clisp.org>
9126
9127         ioctl: Move AC_LIBOBJ invocations to module description.
9128         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
9129         invocations from here...
9130         * modules/ioctl (configure.ac): ... to here.
9131         (Depends-on): Update condition.
9132
9133 2011-05-08  Bruno Haible  <bruno@clisp.org>
9134
9135         imaxdiv: Move AC_LIBOBJ invocations to module description.
9136         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
9137         invocations from here...
9138         * modules/imaxdiv (configure.ac): ... to here.
9139
9140 2011-05-08  Bruno Haible  <bruno@clisp.org>
9141
9142         imaxabs: Move AC_LIBOBJ invocations to module description.
9143         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
9144         invocations from here...
9145         * modules/imaxabs (configure.ac): ... to here.
9146
9147 2011-05-08  Bruno Haible  <bruno@clisp.org>
9148
9149         getaddrinfo: Move AC_LIBOBJ invocations to module description.
9150         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
9151         AC_LIBOBJ invocations from here...
9152         * modules/getaddrinfo (configure.ac): ... to here.
9153         (Depends-on): Add conditions.
9154
9155 2011-05-08  Bruno Haible  <bruno@clisp.org>
9156
9157         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
9158         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
9159         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
9160         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
9161         (gl_PREREQ_INET_PTON): ... from here.
9162         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
9163         gl_PREREQ_INET_PTON here.
9164         (Depends-on): Update condition.
9165
9166 2011-05-08  Bruno Haible  <bruno@clisp.org>
9167
9168         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
9169         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
9170         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
9171         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
9172         (gl_PREREQ_INET_NTOP): ... from here.
9173         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
9174         gl_PREREQ_INET_NTOP here.
9175         (Depends-on): Update condition.
9176
9177 2011-05-08  Bruno Haible  <bruno@clisp.org>
9178
9179         iconv_open: Move AC_LIBOBJ invocations to module description.
9180         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
9181         AC_LIBOBJ invocations from here...
9182         * modules/iconv_open (configure.ac): ... to here.
9183
9184 2011-05-08  Bruno Haible  <bruno@clisp.org>
9185
9186         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
9187         If module 'iconv_open' is among the main modules and module
9188         'iconv_open-utf' is among the tests dependencies, then
9189         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
9190         return the special iconv_t values. Therefore iconv() and iconv_close()
9191         must support these special iconv_t values, already in lib, not only in
9192         tests.
9193         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
9194         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
9195         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
9196         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
9197         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
9198         (Depends-on): Add the dependencies of iconv_open-utf.
9199         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
9200         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
9201         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
9202
9203 2011-05-08  Bruno Haible  <bruno@clisp.org>
9204
9205         group-member: Move AC_LIBOBJ invocations to module description.
9206         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
9207         gl_PREREQ_GROUP_MEMBER invocations from here...
9208         * modules/group-member (configure.ac): ... to here.
9209
9210 2011-05-08  Bruno Haible  <bruno@clisp.org>
9211
9212         grantpt: Move AC_LIBOBJ invocations to module description.
9213         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
9214         invocations from here...
9215         * modules/grantpt (configure.ac): ... to here.
9216
9217 2011-05-08  Bruno Haible  <bruno@clisp.org>
9218
9219         glob: Move AC_LIBOBJ invocations to module description.
9220         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
9221         from here...
9222         * modules/glob (configure.ac): ... to here.
9223
9224 2011-05-08  Bruno Haible  <bruno@clisp.org>
9225
9226         getusershell: Move AC_LIBOBJ invocations to module description.
9227         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
9228         Move AC_LIBOBJ invocation from here...
9229         * modules/getusershell (configure.ac): ... to here.
9230         (Depends-on): Update condition.
9231
9232 2011-05-08  Bruno Haible  <bruno@clisp.org>
9233
9234         gettimeofday: Move AC_LIBOBJ invocations to module description.
9235         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
9236         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
9237         gl_PREREQ_GETTIMEOFDAY invocations from here...
9238         * modules/gettimeofday (configure.ac): ... to here.
9239
9240 2011-05-08  Bruno Haible  <bruno@clisp.org>
9241
9242         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
9243         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
9244         just gl_FUNC_TZSET.
9245         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
9246         (gl_FUNC_TZSET_CLOBBER): Remove actions.
9247         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
9248         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
9249
9250 2011-05-08  Bruno Haible  <bruno@clisp.org>
9251
9252         getsubopt: Move AC_LIBOBJ invocations to module description.
9253         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
9254         gl_PREREQ_GETSUBOPT invocations from here...
9255         * modules/getsubopt (configure.ac): ... to here.
9256
9257 2011-05-08  Bruno Haible  <bruno@clisp.org>
9258
9259         getpass-gnu: Move AC_LIBOBJ invocations to module description.
9260         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
9261         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
9262         * modules/getpass-gnu (configure.ac): ... to here.
9263
9264 2011-05-08  Bruno Haible  <bruno@clisp.org>
9265
9266         getpass: Move AC_LIBOBJ invocations to module description.
9267         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
9268         gl_PREREQ_GETPASS invocations from here...
9269         * modules/getpass (configure.ac): ... to here.
9270
9271 2011-05-08  Bruno Haible  <bruno@clisp.org>
9272
9273         getpagesize: Move AC_LIBOBJ invocations to module description.
9274         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
9275         from here...
9276         * modules/getpagesize (configure.ac): ... to here.
9277
9278 2011-05-08  Bruno Haible  <bruno@clisp.org>
9279
9280         getopt: Move AC_LIBOBJ invocations to module description.
9281         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
9282         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
9283         invocations from here...
9284         * modules/getopt-gnu (configure.ac): ... to here.
9285         * modules/getopt-posix (configure.ac): ... and here.
9286         (Depends-on): Update condition.
9287
9288 2011-05-08  Bruno Haible  <bruno@clisp.org>
9289
9290         getopt, argp: Respect rules for use of AC_LIBOBJ.
9291         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
9292         (gl_REPLACE_GETOPT_ALWAYS): New macro.
9293         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
9294         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
9295
9296 2011-05-08  Bruno Haible  <bruno@clisp.org>
9297
9298         getlogin_r: Move AC_LIBOBJ invocations to module description.
9299         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
9300         gl_PREREQ_GETLOGIN_R invocations from here...
9301         * modules/getlogin_r (configure.ac): ... to here.
9302
9303 2011-05-08  Bruno Haible  <bruno@clisp.org>
9304
9305         getlogin: Move AC_LIBOBJ invocations to module description.
9306         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
9307         here...
9308         * modules/getlogin (configure.ac): ... to here.
9309
9310 2011-05-08  Bruno Haible  <bruno@clisp.org>
9311
9312         getloadavg: Move AC_LIBOBJ invocations to module description.
9313         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
9314         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
9315         * modules/getloadavg (configure.ac): ... to here.
9316
9317 2011-05-08  Bruno Haible  <bruno@clisp.org>
9318
9319         gethrxtime: Move AC_LIBOBJ invocations to module description.
9320         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
9321         LIB_GETHRXTIME from here...
9322         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
9323         invocations from here...
9324         * modules/gethrxtime (configure.ac): ... to here.
9325
9326 2011-05-08  Bruno Haible  <bruno@clisp.org>
9327
9328         gethostname: Move AC_LIBOBJ invocations to module description.
9329         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
9330         gl_PREREQ_GETHOSTNAME invocations from here...
9331         * modules/gethostname (configure.ac): ... to here.
9332
9333 2011-05-08  Bruno Haible  <bruno@clisp.org>
9334
9335         getgroups: Move AC_LIBOBJ invocations to module description.
9336         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
9337         here...
9338         * modules/getgroups (configure.ac): ... to here.
9339
9340 2011-05-08  Bruno Haible  <bruno@clisp.org>
9341
9342         getdtablesize: Move AC_LIBOBJ invocations to module description.
9343         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
9344         invocation from here...
9345         * modules/getdtablesize (configure.ac): ... to here.
9346
9347 2011-05-08  Bruno Haible  <bruno@clisp.org>
9348
9349         getdomainname: Move AC_LIBOBJ invocations to module description.
9350         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
9351         gl_PREREQ_GETDOMAINNAME invocations from here...
9352         * modules/getdomainname (configure.ac): ... to here.
9353
9354 2011-05-08  Bruno Haible  <bruno@clisp.org>
9355
9356         getline: Move AC_LIBOBJ invocations to module description.
9357         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
9358         invocations from here...
9359         * modules/getline (configure.ac): ... to here.
9360
9361 2011-05-08  Bruno Haible  <bruno@clisp.org>
9362
9363         getline: Simplify.
9364         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
9365         It's already handled through the module dependency.
9366
9367 2011-05-08  Bruno Haible  <bruno@clisp.org>
9368
9369         getdelim: Move AC_LIBOBJ invocations to module description.
9370         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
9371         and gl_PREREQ_GETDELIM invocations from here...
9372         * modules/getdelim (configure.ac): ... to here.
9373         (Depends-on): Fix condition.
9374
9375 2011-05-08  Bruno Haible  <bruno@clisp.org>
9376
9377         getcwd: Move AC_LIBOBJ invocations to module description.
9378         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
9379         invocations from here...
9380         * modules/getcwd (configure.ac): ... to here.
9381
9382 2011-05-08  Bruno Haible  <bruno@clisp.org>
9383
9384         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
9385         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
9386         here...
9387         * modules/getcwd-lgpl (configure.ac): ... to here.
9388
9389 2011-05-07  Bruno Haible  <bruno@clisp.org>
9390
9391         crypto/gc: Move AC_LIBOBJ invocations to module description.
9392         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
9393         * modules/crypto/gc (configure.ac): ... to here.
9394
9395 2011-05-07  Bruno Haible  <bruno@clisp.org>
9396
9397         fwriting: Move AC_LIBOBJ invocations to module description.
9398         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
9399         here...
9400         * modules/fwriting (configure.ac): ... to here.
9401
9402 2011-05-07  Bruno Haible  <bruno@clisp.org>
9403
9404         fwritable: Move AC_LIBOBJ invocations to module description.
9405         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
9406         here...
9407         * modules/fwritable (configure.ac): ... to here.
9408
9409 2011-05-07  Bruno Haible  <bruno@clisp.org>
9410
9411         futimens: Move AC_LIBOBJ invocations to module description.
9412         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
9413         here...
9414         * modules/futimens (configure.ac): ... to here.
9415
9416 2011-05-07  Bruno Haible  <bruno@clisp.org>
9417
9418         ftruncate: Move AC_LIBOBJ invocations to module description.
9419         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
9420         gl_PREREQ_FTRUNCATE invocations from here...
9421         * modules/ftruncate (configure.ac): ... to here.
9422
9423 2011-05-07  Bruno Haible  <bruno@clisp.org>
9424
9425         fsync: Move AC_LIBOBJ invocations to module description.
9426         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
9427         invocations from here...
9428         * modules/fsync (configure.ac): ... to here.
9429
9430 2011-05-07  Bruno Haible  <bruno@clisp.org>
9431
9432         fsusage: Move AC_LIBOBJ invocations to module description.
9433         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
9434         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
9435         * modules/fsusage (configure.ac): ... to here.
9436
9437 2011-05-07  Bruno Haible  <bruno@clisp.org>
9438
9439         freopen: Move AC_LIBOBJ invocations to module description.
9440         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
9441         invocations from here...
9442         * modules/freopen (configure.ac): ... to here.
9443
9444 2011-05-07  Bruno Haible  <bruno@clisp.org>
9445
9446         free: Move AC_LIBOBJ invocations to module description.
9447         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
9448         invocations from here...
9449         * modules/free (configure.ac): ... to here.
9450
9451 2011-05-07  Bruno Haible  <bruno@clisp.org>
9452
9453         freadable: Move AC_LIBOBJ invocations to module description.
9454         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
9455         here...
9456         * modules/freadable (configure.ac): ... to here.
9457
9458 2011-05-07  Bruno Haible  <bruno@clisp.org>
9459
9460         fpurge: Move AC_LIBOBJ invocations to module description.
9461         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
9462         invocations from here...
9463         * modules/fpurge (configure.ac): ... to here.
9464
9465 2011-05-07  Bruno Haible  <bruno@clisp.org>
9466
9467         fpending: Move AC_LIBOBJ invocations to module description.
9468         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
9469         gl_FUNC_FPENDING.
9470         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
9471         invocations from here...
9472         * modules/fpending (configure.ac): ... to here.
9473
9474 2011-05-07  Bruno Haible  <bruno@clisp.org>
9475
9476         fopen: Move AC_LIBOBJ invocations to module description.
9477         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
9478         invocations from here...
9479         * modules/fopen (configure.ac): ... to here.
9480
9481 2011-05-07  Bruno Haible  <bruno@clisp.org>
9482
9483         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
9484         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
9485         gl_FUNC_FNMATCH_POSIX.
9486         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
9487         invocations from here...
9488         * modules/fnmatch (configure.ac): ... to here.
9489         * modules/fnmatch-gnu (configure.ac): ... and here.
9490
9491 2011-05-07  Bruno Haible  <bruno@clisp.org>
9492
9493         flock: Move AC_LIBOBJ invocations to module description.
9494         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
9495         invocations from here...
9496         * modules/flock (configure.ac): ... to here.
9497
9498 2011-05-07  Bruno Haible  <bruno@clisp.org>
9499
9500         fileblocks: Move AC_LIBOBJ invocations to module description.
9501         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
9502         gl_PREREQ_FILEBLOCKS invocations from here...
9503         * modules/fileblocks (configure.ac): ... to here.
9504
9505 2011-05-06  Bruno Haible  <bruno@clisp.org>
9506
9507         fflush: Move AC_LIBOBJ invocations to module description.
9508         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
9509         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
9510         invocations from here...
9511         * modules/fflush (configure.ac): ... to here.
9512
9513 2011-05-06  Bruno Haible  <bruno@clisp.org>
9514
9515         fdopendir: Move AC_LIBOBJ invocations to module description.
9516         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
9517         here...
9518         * modules/fdopendir (configure.ac): ... to here.
9519         (Depends-on): Improve conditions.
9520
9521 2011-05-06  Bruno Haible  <bruno@clisp.org>
9522
9523         _Exit: Move AC_LIBOBJ invocations to module description.
9524         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
9525         invocations from here...
9526         * modules/_Exit (configure.ac): ... to here.
9527
9528 2011-05-21  Bruno Haible  <bruno@clisp.org>
9529
9530         euidaccess: Respect rules for use of AC_LIBOBJ.
9531         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
9532         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
9533         from here...
9534         * modules/euidaccess (configure.ac): ... to here.
9535
9536 2011-05-06  Bruno Haible  <bruno@clisp.org>
9537
9538         error: Move AC_LIBOBJ invocations to module description.
9539         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
9540         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
9541         invocations from here...
9542         * modules/error (configure.ac): ... to here.
9543
9544 2011-05-06  Bruno Haible  <bruno@clisp.org>
9545
9546         duplocale: Move AC_LIBOBJ invocations to module description.
9547         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
9548         gl_PREREQ_DUPLOCALE invocations from here...
9549         * modules/duplocale (configure.ac): ... to here.
9550
9551 2011-05-05  Bruno Haible  <bruno@clisp.org>
9552
9553         dirfd: Move AC_LIBOBJ invocations to module description.
9554         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
9555         gl_FUNC_DIRFD.
9556         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
9557         here...
9558         * modules/dirfd (configure.ac): ... to here.
9559         (Depends-on): Fix condition.
9560
9561 2011-05-05  Bruno Haible  <bruno@clisp.org>
9562
9563         chown: Respect rules for use of AC_LIBOBJ.
9564         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
9565         * modules/chown (configure.ac): ... to here.
9566
9567 2011-05-05  Bruno Haible  <bruno@clisp.org>
9568
9569         chdir-long: Move AC_LIBOBJ invocations to module description.
9570         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
9571         gl_PREREQ_CHDIR_LONG invocations from here...
9572         * modules/chdir-long (configure.ac): ... to here.
9573
9574 2011-05-05  Bruno Haible  <bruno@clisp.org>
9575
9576         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
9577         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
9578         from here...
9579         * modules/canonicalize-lgpl (configure.ac): ... to here.
9580
9581 2011-05-05  Bruno Haible  <bruno@clisp.org>
9582
9583         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
9584         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
9585         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
9586         REPLACE_CALLOC.
9587         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
9588         * modules/calloc-gnu (configure.ac): Likewise.
9589
9590 2011-05-05  Bruno Haible  <bruno@clisp.org>
9591
9592         btowc: Move AC_LIBOBJ invocations to module description.
9593         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
9594         invocations from here...
9595         * modules/btowc (configure.ac): ... to here.
9596
9597 2011-05-21  Bruno Haible  <bruno@clisp.org>
9598
9599         atexit: Move AC_LIBOBJ invocations to module description.
9600         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
9601         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
9602         here...
9603         * modules/atexit (configure.ac): ... to here.
9604
9605 2011-05-05  Bruno Haible  <bruno@clisp.org>
9606
9607         atoll: Move AC_LIBOBJ invocations to module description.
9608         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
9609         invocations from here...
9610         * modules/atoll (configure.ac): ... to here.
9611
9612 2011-05-05  Bruno Haible  <bruno@clisp.org>
9613
9614         argz: Move AC_LIBOBJ invocations to module description.
9615         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
9616         * modules/argz (configure.ac): ... to here.
9617
9618 2011-05-05  Bruno Haible  <bruno@clisp.org>
9619
9620         alphasort: Move AC_LIBOBJ invocations to module description.
9621         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
9622         gl_PREREQ_ALPHASORT invocations from here...
9623         * modules/alphasort (configure.ac): ... to here.
9624
9625 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
9626
9627         verify: new macro verify_expr; verify_true deprecated
9628         * NEWS: Mention this.
9629         * doc/verify.texi (Compile-time Assertions): Document this.
9630         * lib/verify.h (verify_true): Deprecate.
9631         (verify_expr): New macro.
9632         * tests/test-verify.c (function): Test verify_expr.
9633
9634 2011-06-14  Jim Meyering  <meyering@redhat.com>
9635
9636         init.sh: give more portable redirection-related advice in a comment
9637         * tests/init.sh (stderr_fileno_): Update the advice in comments.
9638         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
9639         for lots of discussion.  Stefano Lattarini suggested the solution
9640         of putting "9>&2" after the command.  Reported by Bruno Haible.
9641
9642 2011-06-13  Bruno Haible  <bruno@clisp.org>
9643
9644         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
9645         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
9646         'none'.
9647
9648 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
9649
9650         ftoastr: use strtof only if HAVE_STRTOF
9651         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
9652         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
9653         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
9654         * modules/ftoastr (configure.ac): Check for strtof.
9655
9656 2011-06-13  Bruno Haible  <bruno@clisp.org>
9657
9658         gnulib-tool: Addendum to 2011-06-08 commit.
9659         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
9660         and --witness-c-macro have been given, augment AM_CPPFLAGS.
9661
9662 2011-06-13  Bruno Haible  <bruno@clisp.org>
9663
9664         fseeko: Provide a non-inline replacement of fseek().
9665         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
9666         * modules/fseeko (Depends-on): Add fseek.
9667         * modules/fseek (License): Change to LGPLv2+.
9668
9669 2011-06-13  Bruno Haible  <bruno@clisp.org>
9670
9671         ftello: Provide a non-inline replacement of ftell().
9672         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
9673         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
9674         not have ftello() (such as on mingw).
9675         * modules/ftello (Depends-on): Add ftell.
9676         * modules/ftell (License): Change to LGPLv2+.
9677
9678 2011-05-07  Bruno Haible  <bruno@clisp.org>
9679
9680         ftell: Move AC_LIBOBJ invocations to module description.
9681         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
9682         * modules/ftell (configure.ac): ... to here.
9683
9684 2011-05-07  Bruno Haible  <bruno@clisp.org>
9685
9686         ftello: Respect rules for use of AC_LIBOBJ.
9687         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
9688         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
9689         here...
9690         * modules/ftello (configure.ac): ... to here.
9691
9692 2011-05-07  Bruno Haible  <bruno@clisp.org>
9693
9694         fseeko: Simplify.
9695         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
9696         (gl_FUNC_FSEEKO): Inline it here.
9697
9698 2011-05-07  Bruno Haible  <bruno@clisp.org>
9699
9700         fseek: Move AC_LIBOBJ invocations to module description.
9701         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
9702         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
9703         * modules/fseek (configure.ac): ... to here.
9704
9705 2011-05-07  Bruno Haible  <bruno@clisp.org>
9706
9707         fseek: Respect rules for use of AC_LIBOBJ.
9708         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
9709         here...
9710         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
9711
9712 2011-05-07  Bruno Haible  <bruno@clisp.org>
9713
9714         fseeko: Respect rules for use of AC_LIBOBJ.
9715         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
9716         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
9717         here...
9718         * modules/fseeko (configure.ac): ... to here.
9719
9720 2011-06-13  Bruno Haible  <bruno@clisp.org>
9721
9722         gnulib-tool: Allow comments in the 'Depends-on' section.
9723         * doc/gnulib.texi (Module description): Mention comment syntax in the
9724         Depends-on section.
9725         * gnulib-tool (func_get_dependencies): Filter out comment lines.
9726
9727 2011-06-13  Bruno Haible  <bruno@clisp.org>
9728
9729         file-set.h: guard __attibute__ use, now that it's not always defined
9730         * lib/file-set.h (record_file): Use __attribute__ only with compiler
9731         versions that support it.  This fixes a coreutils build failure with
9732         the vendor cc on HP-UX 11.31.
9733
9734 2011-06-12  Bruno Haible  <bruno@clisp.org>
9735
9736         acl: Add support for HP-UX >= 11.11 JFS ACLs.
9737         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
9738         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
9739         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
9740         (acl, aclsort): New declarations.
9741         (aclv_nontrivial): New declaration.
9742         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
9743         (file_has_acl): Read also the second kind of HP-UX ACLs.
9744         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
9745         kind of HP-UX ACLs if the first kind fails.
9746         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
9747         second kind of HP-UX ACLs.
9748         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
9749         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
9750         agree.
9751         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9752         hpuxjfs.
9753         Handle hpuxjfs.
9754         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9755         hpuxjfs.
9756         Handle hpuxjfs.
9757         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9758         (func_test_same_acls): Use both lsacl and getacl.
9759         Handle hpuxjfs.
9760         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9761         (func_test_same_acls): Use both lsacl and getacl.
9762         Handle hpuxjfs.
9763
9764 2011-06-12  Bruno Haible  <bruno@clisp.org>
9765
9766         acl: Complete the 2010-08-10 fix.
9767         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
9768         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
9769         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
9770         explicitly.
9771         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
9772         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
9773
9774 2011-06-12  Bruno Haible  <bruno@clisp.org>
9775
9776         spawn-pipe tests: Comments.
9777         * tests/test-spawn-pipe-child.c (main): Update comment.
9778         Reported by James Youngman <jay@gnu.org>.
9779
9780 2011-06-11  James Youngman  <jay@gnu.org>
9781
9782         New module 'stat-size'.
9783         * modules/stat-size: New module.  Provides macros for accessing
9784         file size information in instances of struct stat.  Depends on the
9785         fileblocks module because it calls st_blocks.
9786         * lib/stat-size.h: New file, adapted from coreutils' system.h.
9787         * doc/gnulib.texi: Include stat-size.texi.
9788         * doc/stat-size.texi: Documentation for this module.
9789         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
9790         * m4/fileblocks.m4: Mention that stat-size depends on the call to
9791         AC_STRUCT_ST_BLOCKS.
9792
9793 2011-06-09  Bruno Haible  <bruno@clisp.org>
9794
9795         thread: Support pthreads-win32.
9796         * lib/glthread/thread.h (gl_thread_self): Define differently on
9797         pthreads-win32.
9798         (gl_null_thread): New declaration.
9799         (gl_thread_self_pointer): New macro.
9800         * lib/glthread/thread.c (gl_null_thread): New constant.
9801         * tests/test-lock.c: Use gl_thread_self_pointer instead of
9802         gl_thread_self.
9803         * tests/test-tls.c: Likewise.
9804         Suggested by Paul Eggert. Reported by Eric Blake.
9805
9806 2011-06-09  Bruno Haible  <bruno@clisp.org>
9807
9808         thread: Fix confusion between NULL and 0.
9809         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
9810         Reported by Paul Eggert.
9811
9812 2011-06-09  Bruno Haible  <bruno@clisp.org>
9813
9814         spawn-pipe tests: Avoid test failure on HP-UX 11.
9815         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
9816         is closed.
9817
9818 2011-06-09  Bruno Haible  <bruno@clisp.org>
9819
9820         acl tests: Fix compilation error on HP-UX 11.
9821         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
9822
9823 2011-06-09  Bruno Haible  <bruno@clisp.org>
9824
9825         rmdir: Avoid test failure on HP-UX 10.20.
9826         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
9827         EEXIST.
9828
9829 2011-06-08  Eric Blake  <eblake@redhat.com>
9830
9831         perror: fix test on mingw
9832         * modules/perror-tests (Depends-on): Add dup2.
9833
9834         strerror_r-posix: fix on MacOS
9835         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
9836         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
9837         logic bug.
9838         * lib/strerror_r.c (strerror_r): Fix the bug.
9839         * lib/strerror.c (strerror): Likewise.
9840         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
9841         problem.
9842         * doc/posix-functions/strerror.texi (strerror): Likewise.
9843         * doc/posix-functions/perror.texi (perror): Likewise.
9844         * tests/test-strerror.c (main): Enhance test.
9845         * tests/test-strerror_r.c (main): Likewise.
9846
9847 2011-06-08  Bruno Haible  <bruno@clisp.org>
9848
9849         gnulib-tool: Better isolation between different gnulib-tool invocations.
9850         * gnulib-tool: New option --witness-c-macro.
9851         (witness_c_macro): New variable.
9852         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
9853         AM_CPPFLAGS define it as a C macro.
9854         (func_emit_tests_Makefile_am): Likewise.
9855         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
9856         read it from there.
9857         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
9858         m4_define, not AC_DEFUN.
9859         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
9860         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
9861         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
9862         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
9863         s|...|...|, to substitute the values of the GNULIB_* module indicator
9864         variables.
9865         * modules/dirent (Makefile.am): Likewise.
9866         * modules/fcntl-h (Makefile.am): Likewise.
9867         * modules/iconv-h (Makefile.am): Likewise.
9868         * modules/langinfo (Makefile.am): Likewise.
9869         * modules/locale (Makefile.am): Likewise.
9870         * modules/math (Makefile.am): Likewise.
9871         * modules/netdb (Makefile.am): Likewise.
9872         * modules/poll-h (Makefile.am): Likewise.
9873         * modules/pty (Makefile.am): Likewise.
9874         * modules/search (Makefile.am): Likewise.
9875         * modules/signal (Makefile.am): Likewise.
9876         * modules/spawn (Makefile.am): Likewise.
9877         * modules/stdio (Makefile.am): Likewise.
9878         * modules/stdlib (Makefile.am): Likewise.
9879         * modules/string (Makefile.am): Likewise.
9880         * modules/sys_ioctl (Makefile.am): Likewise.
9881         * modules/sys_select (Makefile.am): Likewise.
9882         * modules/sys_socket (Makefile.am): Likewise.
9883         * modules/sys_stat (Makefile.am): Likewise.
9884         * modules/sys_times (Makefile.am): Likewise.
9885         * modules/sys_utsname (Makefile.am): Likewise.
9886         * modules/sys_wait (Makefile.am): Likewise.
9887         * modules/termios (Makefile.am): Likewise.
9888         * modules/time (Makefile.am): Likewise.
9889         * modules/unistd (Makefile.am): Likewise.
9890         * modules/wchar (Makefile.am): Likewise.
9891
9892 2011-06-08  Eric Blake  <eblake@redhat.com>
9893
9894         strerror: simplify replacement
9895         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
9896         * modules/strerror (configure.ac): No prereqs needed here...
9897         * modules/strerror-override (configure.ac): ...but this needs it.
9898         (Files): Add file for needed prereq macro.
9899
9900 2011-06-08  Bruno Haible  <bruno@clisp.org>
9901
9902         strerror_r-posix: Tweaks.
9903         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
9904         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
9905         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
9906         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
9907         (gl_FUNC_STRERROR_R): ... to here.
9908         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
9909
9910 2011-06-07  Eric Blake  <eblake@redhat.com>
9911
9912         perror: document fixed bugs
9913         * doc/posix-functions/perror.texi (perror): Document recent
9914         patches.
9915
9916 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
9917
9918         stat-time: get_stat_birthtime failure is better-defined
9919         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
9920         return a timestamp whose tv_sec and tv_nsec values are both -1.
9921         Previously, the spec said only that the tv_nsec value was negative.
9922         This upward-compatible change simplifies GNU tar a bit.
9923
9924 2011-06-07  Eric Blake  <eblake@redhat.com>
9925
9926         strerror_r-posix: work around cygwin 1.7.9
9927         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
9928         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
9929         bug without replacing strerror_r.
9930         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
9931         strerror_r is buggy, but without requiring strerror_r compilation.
9932         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
9933
9934         test-perror: relax test to ignore cygwin bug
9935         * tests/test-perror2.c (main): Relax test on requiring detection
9936         of stream errors, and use unbuffered stream.
9937         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
9938         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
9939         * doc/posix-functions/fputc.texi (fputc): Likewise.
9940         * doc/posix-functions/fputs.texi (fputs): Likewise.
9941         * doc/posix-functions/fputws.texi (fputws): Likewise.
9942         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
9943         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
9944         * doc/posix-functions/getopt.texi (getopt): Likewise.
9945         * doc/posix-functions/perror.texi (perror): Likewise.
9946         * doc/posix-functions/printf.texi (printf): Likewise.
9947         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
9948         * doc/posix-functions/psignal.texi (psignal): Likewise.
9949         * doc/posix-functions/putc.texi (putc): Likewise.
9950         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
9951         Likewise.
9952         * doc/posix-functions/putchar.texi (putchar): Likewise.
9953         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
9954         Likewise.
9955         * doc/posix-functions/puts.texi (puts): Likewise.
9956         * doc/posix-functions/putwc.texi (putwc): Likewise.
9957         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
9958         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
9959         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
9960         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
9961         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
9962         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
9963         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
9964         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
9965
9966 2011-05-22  Bruno Haible  <bruno@clisp.org>
9967
9968         strerror: Move AC_LIBOBJ invocations to module description.
9969         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
9970         gl_PREREQ_STRERROR invocations from here...
9971         * modules/strerror (configure.ac): ... to here.
9972
9973 2011-05-21  Bruno Haible  <bruno@clisp.org>
9974
9975         perror: Use common idiom.
9976         * modules/perror (configure.ac): Reorder statements.
9977
9978 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9979
9980         tests: fix usage message in 'mktempd_'
9981         * tests/init.sh (mktempd_): In the usage message, use literal
9982         'mktempd_', not '$ME' (which is even undefined), as the name of
9983         the subroutine.
9984
9985 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9986
9987         tests init: new function 'fatal_', for hard errors
9988         Before this patch, the only way offered by tests/init.sh to
9989         properly signal a hard error was the `framework_failure_'
9990         function.  But the error message issued by that function,
9991         as its name would suggest, refers to a set-up failure in the
9992         testsuite, while hard errors can obviously also be due to
9993         other reasons.  The best way to fix this inconsistency is to
9994         introduce a new function with a more general error message.
9995         * tests/init.sh (fatal_): New function.
9996
9997 2011-06-06  Eric Blake  <eblake@redhat.com>
9998
9999         canonicalize-lgpl: use common idiom
10000         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
10001         over newer POSIX -Rf.
10002         Reported by Bruno Haible.
10003
10004         canonicalize-lgpl: work around AIX realpath bug
10005         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
10006         * doc/posix-functions/realpath.texi (realpath): Document it.
10007         Reported by Bruno Haible.
10008
10009         strerror: work around FreeBSD bug
10010         * lib/strerror.c (strerror): Special case 0.
10011         Reported by Bruno Haible.
10012
10013         strerror-override: avoid bloating errno module
10014         * modules/errno (Files, configure.ac): Move replacement strings...
10015         * modules/strerror-override: ...to new module.
10016         * modules/strerror (Depends-on): Add strerror-override.
10017         * modules/strerror_r-posix (Depends-on): Likewise.
10018         * MODULES.html.sh: Document new module.
10019         Reported by Bruno Haible.
10020
10021 2011-06-06  Bruno Haible  <bruno@clisp.org>
10022
10023         spawn-pipe tests: Rename program.
10024         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
10025         * tests/test-spawn-pipe-child.c: Update comment.
10026         * tests/test-spawn-pipe.sh: Update.
10027         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
10028
10029         spawn-pipe tests: Link the child program only against libc.
10030         * tests/test-spawn-pipe-child.c: New file, extracted from
10031         tests/test-spawn-pipe.c.
10032         (main): Expect only one argument.
10033         (is_open): New function, copied from tests/test-pipe.c.
10034         * tests/test-spawn-pipe.c: Don't include <errno.h>.
10035         (child_main): Remove function.
10036         (test_pipe): Pass only one argument to the child program.
10037         (main): Remove child process code. Expect the child program's name as
10038         first argument.
10039         * tests/test-spawn-pipe.sh: Pass the child program's name as first
10040         argument.
10041         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
10042         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
10043         test-spawn-pipe-child against no libraries.
10044
10045 2011-06-06  Bruno Haible  <bruno@clisp.org>
10046
10047         careadlinkat: Avoid mismatch between ssize_t and int.
10048         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
10049         * lib/careadlinkat.c (careadlinkatcwd): Define always.
10050
10051 2011-06-06  Jim Meyering  <meyering@redhat.com>
10052
10053         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
10054         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
10055         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
10056
10057 2011-06-05  Bruno Haible  <bruno@clisp.org>
10058
10059         ansi-c++-opt: Interoperability with libtool.
10060         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
10061         set the variable to "no", not to ":".
10062         * NEWS: Mention the change.
10063
10064 2011-06-05  Bruno Haible  <bruno@clisp.org>
10065
10066         acl: Fix test failure on AIX 7.
10067         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
10068         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
10069
10070 2011-06-05  Bruno Haible  <bruno@clisp.org>
10071
10072         pipe-filter-ii: Fix test failure on AIX and IRIX.
10073         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
10074         with EAGAIN, retry with a smaller buffer size.
10075
10076 2011-06-05  Bruno Haible  <bruno@clisp.org>
10077
10078         localename: Fix link dependencies.
10079         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
10080         * modules/localename-tests (Makefile.am): Link test-localename with
10081         $(LIBTHREAD).
10082
10083 2011-06-05  Bruno Haible  <bruno@clisp.org>
10084
10085         error: Avoid gcc warning.
10086         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
10087
10088 2011-06-05  Bruno Haible  <bruno@clisp.org>
10089
10090         unsetenv: Avoid gcc warning.
10091         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
10092
10093 2011-06-05  Bruno Haible  <bruno@clisp.org>
10094
10095         setenv: Avoid gcc warning.
10096         * lib/setenv.c (setenv): Provide declaration if system lacks it.
10097
10098 2011-06-05  Bruno Haible  <bruno@clisp.org>
10099
10100         sys_select: Ensure memset is declared also on AIX 7.
10101         * lib/sys_select.in.h: Include <string.h> also on AIX.
10102         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
10103         self-contained also on AIX 7.1.
10104
10105 2011-06-04  Jim Meyering  <meyering@redhat.com>
10106
10107         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
10108         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
10109         function name, "error".
10110         (_gl_translatable_diag_func_re): New configurable variable.
10111
10112 2011-06-04  Bruno Haible  <bruno@clisp.org>
10113
10114         getopt: Avoid gcc warning.
10115         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
10116
10117 2011-06-04  Bruno Haible  <bruno@clisp.org>
10118
10119         strerror_r: Fix comments.
10120         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
10121         commit.
10122
10123 2011-06-04  Bruno Haible  <bruno@clisp.org>
10124
10125         perror: Fix compilation error.
10126         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
10127         Undefine fprintf, not sprintf.
10128         * modules/perror (Depends-on): Remove intprops, verify.
10129
10130 2011-06-04  Bruno Haible  <bruno@clisp.org>
10131
10132         setlocale: Enable replacement on Cygwin 1.5.
10133         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
10134         Cygwin 1.5.x.
10135         * doc/posix-functions/setlocale.texi: Mention that the problem with the
10136         LC_CTYPE category also exists on Cygwin 1.5.x.
10137
10138 2011-06-04  Bruno Haible  <bruno@clisp.org>
10139
10140         strerror-override: Don't disable symbol renamings.
10141         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
10142         * lib/strerror-override.c: Include config.h.
10143         (strerror_override): Don't undefine.
10144
10145 2011-06-03  Bruno Haible  <bruno@clisp.org>
10146
10147         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
10148         * lib/localename.h: Update copyright header.
10149         * lib/localename.c: Likewise.
10150         * lib/relocatable.h: Likewise.
10151         * lib/relocatable.c: Likewise.
10152
10153 2011-06-02  Bruno Haible  <bruno@clisp.org>
10154
10155         doc: Fix a module name.
10156         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
10157
10158 2011-06-02  Bruno Haible  <bruno@clisp.org>
10159
10160         pipe2: Remove dependency on 'nonblocking' module.
10161         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
10162         O_NONBLOCK is defined by gnulib.
10163         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
10164         is zero.
10165         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
10166         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
10167         defined by gnulib.
10168         (get_nonblocking_flag): New function.
10169         (main): Test O_NONBLOCK flag only if it is nonzero.
10170         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
10171
10172 2011-06-03  Jim Meyering  <meyering@redhat.com>
10173
10174         maint: three new prohibit-header-without-use rules
10175         Prohibit use of cloexec.h, posixver.h, same.h without use.
10176         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
10177         (sc_prohibit_posixver_without_use): Likewise.
10178         (sc_prohibit_same_without_use): Likewise.
10179
10180 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
10181
10182         allocator: 'die' routine is now given requested size
10183         * lib/allocator.h (struct allocator.die): New size arg.
10184         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
10185         If the actual problem is an ssize_t limitation, not a size_t or
10186         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
10187
10188 2011-06-01  Eric Blake  <eblake@redhat.com>
10189
10190         strerror: drop strerror_r dependency
10191         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
10192         * lib/strerror-override.c (strerror_override): ...to new file.
10193         * lib/strerror-override.h: Add prototype.
10194         * lib/strerror-impl.h: Delete.
10195         * lib/strerror.c (strerror): New implementation.
10196         * modules/errno (Files): Add new files.
10197         (configure.ac): Compile new file as appropriate.
10198         * modules/strerror (Files): Drop unused file.
10199         (Depends-on): Drop strerror_r-posix.
10200         * MODULES.html.sh: Document strerror_r-posix.
10201         Requested by Sam Steingold.
10202
10203         perror: call strerror_r directly
10204         * modules/perror (Files): Drop strerror-impl.h.
10205         * lib/perror.c (perror): Use our own stack buffer, rather than
10206         calling a wrapper that uses static storage.
10207         * doc/posix-functions/perror.texi (perror): Document a limitation
10208         of our replacement.
10209
10210         strerror_r: fix includes for FreeBSD
10211         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
10212         since we use abort on some platforms.
10213         Reported by Matthias Bolte.
10214
10215 2011-05-31  Bruno Haible  <bruno@clisp.org>
10216
10217         Fix link errors in tests: openat-die uses gettext-h.
10218         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
10219         against $(LIBINTL).
10220         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
10221         against $(LIBINTL).
10222         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
10223         $(LIBINTL).
10224         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
10225         against $(LIBINTL).
10226         * modules/linkat-tests (Makefile.am): Link test-linkat against
10227         $(LIBINTL).
10228         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
10229         $(LIBINTL).
10230         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
10231         against $(LIBINTL).
10232         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
10233         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
10234         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
10235         $(LIBINTL).
10236         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
10237         $(LIBINTL).
10238         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
10239         $(LIBINTL).
10240         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10241
10242 2011-05-31  Bruno Haible  <bruno@clisp.org>
10243
10244         Fix link errors in tests: wait-process uses gettext-h.
10245         * modules/nonblocking-pipe-tests (Makefile.am): Set
10246         test_nonblocking_pipe_main_LDADD.
10247         * modules/nonblocking-socket-tests (Makefile.am): Link
10248         test-nonblocking-socket-main against $(LIBINTL).
10249         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10250
10251 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
10252
10253         assert-h: work around 'verify' incompatibility
10254         * lib/verify.h: Use @...@ directives, not ifdef.
10255         * modules/assert-h (assert.h): Implement the directives.
10256         (assert.h): Substitute the symbol-prefix more consistently.
10257
10258 2011-05-29  Jim Meyering  <meyering@redhat.com>
10259
10260         trim: remove three superfluous assignments
10261         * lib/trim.c (trim2): Remove three superfluous assignments
10262         and correct brace positioning.
10263
10264 2011-05-29  Bruno Haible  <bruno@clisp.org>
10265
10266         wctype-h: Avoid namespace pollution on Solaris 2.6.
10267         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
10268         identifiers.
10269         * doc/posix-headers/wctype.texi: Mention the problem.
10270         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10271
10272 2011-05-28  Jim Meyering  <meyering@redhat.com>
10273
10274         parse-datetime.y: accommodate -Wstrict-overflow
10275         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
10276         placate -Wstrict-overflow.
10277
10278         trim: avoid a warning from -O2 -Wstrict-overflow
10279         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
10280
10281 2011-05-29  Bruno Haible  <bruno@clisp.org>
10282
10283         gnulib-tool: Fix bug in yesterday's commit.
10284         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
10285         twice.
10286
10287 2011-05-29  Bruno Haible  <bruno@clisp.org>
10288
10289         Allow multiple gnulib generated include files to be combined.
10290         * gnulib-tool (func_compute_include_guard_prefix): New function.
10291         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
10292         ${gl_include_guard_prefix} references.
10293         (func_import, func_create_testdir): Invoke
10294         func_compute_include_guard_prefix.
10295         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
10296         * lib/ctype.in.h: Likewise.
10297         * lib/dirent.in.h: Likewise.
10298         * lib/errno.in.h: Likewise.
10299         * lib/fcntl.in.h: Likewise.
10300         * lib/float.in.h: Likewise.
10301         * lib/getopt.in.h: Likewise.
10302         * lib/iconv.in.h: Likewise.
10303         * lib/langinfo.in.h: Likewise.
10304         * lib/locale.in.h: Likewise.
10305         * lib/math.in.h: Likewise.
10306         * lib/netdb.in.h: Likewise.
10307         * lib/netinet_in.in.h: Likewise.
10308         * lib/poll.in.h: Likewise.
10309         * lib/pthread.in.h: Likewise.
10310         * lib/pty.in.h: Likewise.
10311         * lib/sched.in.h: Likewise.
10312         * lib/se-selinux.in.h: Likewise.
10313         * lib/search.in.h: Likewise.
10314         * lib/signal.in.h: Likewise.
10315         * lib/spawn.in.h: Likewise.
10316         * lib/stdarg.in.h: Likewise.
10317         * lib/stddef.in.h: Likewise.
10318         * lib/stdint.in.h: Likewise.
10319         * lib/stdio.in.h: Likewise.
10320         * lib/stdlib.in.h: Likewise.
10321         * lib/string.in.h: Likewise.
10322         * lib/strings.in.h: Likewise.
10323         * lib/sys_file.in.h: Likewise.
10324         * lib/sys_ioctl.in.h: Likewise.
10325         * lib/sys_select.in.h: Likewise.
10326         * lib/sys_socket.in.h: Likewise.
10327         * lib/sys_stat.in.h: Likewise.
10328         * lib/sys_time.in.h: Likewise.
10329         * lib/sys_times.in.h: Likewise.
10330         * lib/sys_uio.in.h: Likewise.
10331         * lib/sys_utsname.in.h: Likewise.
10332         * lib/sys_wait.in.h: Likewise.
10333         * lib/sysexits.in.h: Likewise.
10334         * lib/termios.in.h: Likewise.
10335         * lib/time.in.h: Likewise.
10336         * lib/unistd.in.h: Likewise.
10337         * lib/wchar.in.h: Likewise.
10338         * lib/wctype.in.h: Likewise.
10339         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
10340         * modules/ctype (Makefile.am): Likewise.
10341         * modules/dirent (Makefile.am): Likewise.
10342         * modules/errno (Makefile.am): Likewise.
10343         * modules/fcntl-h (Makefile.am): Likewise.
10344         * modules/float (Makefile.am): Likewise.
10345         * modules/getopt-posix (Makefile.am): Likewise.
10346         * modules/iconv-h (Makefile.am): Likewise.
10347         * modules/langinfo (Makefile.am): Likewise.
10348         * modules/locale (Makefile.am): Likewise.
10349         * modules/math (Makefile.am): Likewise.
10350         * modules/netdb (Makefile.am): Likewise.
10351         * modules/netinet_in (Makefile.am): Likewise.
10352         * modules/poll-h (Makefile.am): Likewise.
10353         * modules/pthread (Makefile.am): Likewise.
10354         * modules/pty (Makefile.am): Likewise.
10355         * modules/sched (Makefile.am): Likewise.
10356         * modules/search (Makefile.am): Likewise.
10357         * modules/selinux-h (Makefile.am): Likewise.
10358         * modules/signal (Makefile.am): Likewise.
10359         * modules/spawn (Makefile.am): Likewise.
10360         * modules/stdarg (Makefile.am): Likewise.
10361         * modules/stddef (Makefile.am): Likewise.
10362         * modules/stdint (Makefile.am): Likewise.
10363         * modules/stdio (Makefile.am): Likewise.
10364         * modules/stdlib (Makefile.am): Likewise.
10365         * modules/string (Makefile.am): Likewise.
10366         * modules/strings (Makefile.am): Likewise.
10367         * modules/sys_file (Makefile.am): Likewise.
10368         * modules/sys_ioctl (Makefile.am): Likewise.
10369         * modules/sys_select (Makefile.am): Likewise.
10370         * modules/sys_socket (Makefile.am): Likewise.
10371         * modules/sys_stat (Makefile.am): Likewise.
10372         * modules/sys_time (Makefile.am): Likewise.
10373         * modules/sys_times (Makefile.am): Likewise.
10374         * modules/sys_uio (Makefile.am): Likewise.
10375         * modules/sys_utsname (Makefile.am): Likewise.
10376         * modules/sys_wait (Makefile.am): Likewise.
10377         * modules/sysexits (Makefile.am): Likewise.
10378         * modules/termios (Makefile.am): Likewise.
10379         * modules/time (Makefile.am): Likewise.
10380         * modules/unistd (Makefile.am): Likewise.
10381         * modules/wchar (Makefile.am): Likewise.
10382         * modules/wctype-h (Makefile.am): Likewise.
10383         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
10384
10385 2011-05-29  Bruno Haible  <bruno@clisp.org>
10386
10387         assert-h: Allow multiple gnulib generated replacements to coexist.
10388         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
10389
10390 2011-05-29  Bruno Haible  <bruno@clisp.org>
10391
10392         argp: Allow coexistence with strerror_r-posix module.
10393         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
10394         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
10395         by gnulib's <string.h> replacement), assume it has the POSIX signature,
10396         not the glibc signature.
10397
10398 2011-05-28  Bruno Haible  <bruno@clisp.org>
10399
10400         gnulib-tool: Alternative structure of testdirs, similar to --import.
10401         * gnulib-tool: New option --single-configure.
10402         (func_usage): Document it.
10403         (single_configure): New variable.
10404         (func_modules_transitive_closure_separately,
10405         func_modules_transitive_closure_separately,
10406         func_determine_use_libtests, func_modules_add_dummy_separately,
10407         func_modules_to_filelist_separately): New functions, extracted from
10408         func_import.
10409         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
10410         (func_import): Use the new functions.
10411         (func_create_testdir): Set final_modules. Handle $single_configure =
10412         true case.
10413
10414 2011-05-28  Bruno Haible  <bruno@clisp.org>
10415
10416         getloadavg: Remove an unreliable safety check.
10417         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
10418         getloadavg.c is in place.
10419         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
10420         Reported by Sam Steingold <sds@gnu.org>.
10421
10422 2011-05-28  Bruno Haible  <bruno@clisp.org>
10423
10424         doc: Cleanup yet another file produced by texinfo.tex.
10425         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
10426
10427 2011-05-28  Bruno Haible  <bruno@clisp.org>
10428
10429         Finish the conditional dependencies mechanism.
10430         * gnulib-tool: New option --no-conditional-dependencies.
10431         (func_usage): Document it. Don't mark --conditional-dependencies as
10432         experimental.
10433         (cond_dependencies): The possible values can now be true, false, empty.
10434         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
10435         (func_import): Store setting in gnulib-cache.m4 and read it from there.
10436         * doc/gnulib-tool.texi (Conditional dependencies): New section.
10437
10438 2011-05-28  Bruno Haible  <bruno@clisp.org>
10439
10440         doc: Use a recent texinfo.tex.
10441         * doc/Makefile (tex_opts): New variable.
10442         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
10443
10444 2011-05-28  Jim Meyering  <meyering@redhat.com>
10445
10446         intprops.h: adjust comment to match code change
10447         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
10448         only once, it *may* have side effects.  Also fix an unrelated typo.
10449         (_GL_INT_SIGNED): Likewise.
10450
10451 2011-05-26  Simon Josefsson  <simon@josefsson.org>
10452
10453         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
10454
10455 2011-05-26  Bruno Haible  <bruno@clisp.org>
10456
10457         mbsrchr: Avoid collision with system function on Interix.
10458         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
10459         Reported by Markus Duft <mduft@gentoo.org>.
10460
10461 2011-05-15  James Youngman  <jay@gnu.org>
10462
10463         getopt: for ambiguous options, enumerate the possibilities.
10464         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
10465         the ambiguous options when an ambiguous prefix is given. This was
10466         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
10467         glibc change was
10468         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
10469
10470 2011-05-25  Eric Blake  <eblake@redhat.com>
10471
10472         getcwd: work around mingw bug
10473         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
10474         * doc/posix-functions/getcwd.texi (getcwd): Document it.
10475         Reported by Matthias Bolte.
10476
10477 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
10478
10479         test-intprops: disable -Wtype-limits diagnostics
10480         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
10481         diagnostics.  Otherwise, the integer overflow macros generate many
10482         diagnostics.  Reported by Jim Meyering in
10483         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
10484
10485         intprops: shorten, to pacify gcc -Woverlength-strings
10486         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
10487         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
10488         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
10489         likely to run afoul of C compiler limits for string constant lengths.
10490         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
10491
10492 2011-05-24  Eric Blake  <eblake@redhat.com>
10493
10494         docs: document recently fixed glibc printf bug
10495         * doc/posix-functions/fprintf.texi (fprintf): Document it.
10496         * doc/posix-functions/printf.texi (printf): Likewise.
10497         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
10498         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
10499
10500         closein-tests: convert to init.sh
10501         * modules/closein-tests (Files): Add init.sh
10502         * tests/test-closein.sh Use it.
10503
10504         yesno-tests: convert to init.sh
10505         * modules/yesno-tests (Files): Add init.sh.
10506         * tests/test-yesno.sh: Use it.
10507
10508         atexit-tests: ensure reliable exit status
10509         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
10510         Reported by Bruno Haible.
10511
10512 2011-05-24  Bruno Haible  <bruno@clisp.org>
10513
10514         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
10515         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
10516         gl_PREREQ_STRERROR_R invocations from here...
10517         * modules/strerror_r-posix (configure.ac): ... to here.
10518
10519 2011-05-24  Eric Blake  <eblake@redhat.com>
10520
10521         strerror_r: fix missing header
10522         * lib/strerror_r.c: Avoid compiler warning about snprintf.
10523
10524         strerror_r: fix AIX test failures
10525         * lib/strerror_r.c (strerror_r): Convert silent truncation to
10526         ERANGE failure.
10527
10528         strerror_r: fix Solaris test failures
10529         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
10530         failures.
10531         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
10532
10533         strerror_r: enforce POSIX recommendations
10534         * lib/strerror_r.c (safe_copy): New helper method.
10535         (strerror_r): Guarantee a non-empty string.
10536         * tests/test-strerror_r.c (main): Enhance tests to incorporate
10537         recent POSIX rulings and to match our strerror guarantees.
10538         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
10539
10540 2011-05-24  Jim Meyering  <meyering@redhat.com>
10541
10542         test-perror2.c: avoid warning about unused variable
10543         * tests/test-perror2.c (main): Remove declaration of unused "fp".
10544
10545 2011-05-24  Eric Blake  <eblake@redhat.com>
10546
10547         perror: avoid spurious test failure on HP-UX
10548         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
10549
10550         tests: fix logic bug in init.sh
10551         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
10552         shell.
10553
10554 2011-05-24  Jim Meyering  <meyering@redhat.com>
10555
10556         utimensat: do not reference an out-of-scope buffer
10557         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
10558         declared in an inner scope, yet "times" would be dereferenced outside
10559         the scope in which "ts" was valid.
10560         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
10561         of ts[2] "out/up", so that the use of aliased "times" (via
10562         "times = ts;") does not end up referencing an out-of-scope "ts"
10563
10564         opendir-safer.c: don't clobber errno; don't close negative FD
10565         * lib/opendir-safer.c (opendir_safer):
10566         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
10567         file descriptor, and more importantly, don't clobber the
10568         offending errno value with EINVAL.  Before, upon failure
10569         of dup_safer, we would pass the negative file descriptor to
10570         fdopendir, which would clobber errno.
10571
10572 2011-05-23  Bruno Haible  <bruno@clisp.org>
10573
10574         idcache: Fix module description.
10575         * modules/idcache (Include): Set to "idcache.h".
10576
10577 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
10578
10579         gnulib-tool: fix portability problem with MacOS sed
10580         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
10581         before the "}".  Problem reported by Leo in
10582         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
10583         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
10584         sed_extract_condition1, sed_extract_condition2.
10585
10586 2011-05-23  Bruno Haible  <bruno@clisp.org>
10587
10588         hash: Simplify autoconf macro.
10589         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
10590
10591 2011-05-23  Bruno Haible  <bruno@clisp.org>
10592
10593         getugroups: Fix module description.
10594         * modules/getugroups (Include): Set to "getugroups.h".
10595
10596 2011-05-23  Bruno Haible  <bruno@clisp.org>
10597
10598         linkat: Simplify autoconf macro.
10599         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
10600
10601 2011-05-23  Bruno Haible  <bruno@clisp.org>
10602             Eric Blake  <eblake@redhat.com>
10603
10604         linkat, renameat: Update dependencies.
10605         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
10606         * modules/linkat (Depends-on): Likewise. Remove also readlink,
10607         symlinkat.
10608
10609 2011-05-23  Jim Meyering  <meyering@redhat.com>
10610
10611         maint.mk: more tight_scope improvements
10612         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
10613         (_gl_TS_headers): Define only in if-0'd block.
10614         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
10615         sometimes we must *not* use it.  Adjust uses accordingly.
10616         (sc_tight_scope): Use much simpler grep-based test to determine
10617         whether we skip this rule.
10618
10619         maint.mk: generalize/improve the tight-scope rule
10620         * top/maint.mk: Emit a warning when the test is skipped.
10621         (_gl_TS_dir): Add $(srcdir)/ prefix.
10622         (_gl_TS_function_match): Simplify, rather than trying
10623         to enumerate common types.  Otherwise, it would fail to match an
10624         "extern unsigned char const *" declaration in idutils.
10625         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
10626         a way to support use of that type of macro.
10627         (_gl_TS_var_match): Simplify regexp.
10628         (_gl_TS_obj_files): New configurable variable.
10629         (_gl_TS_headers): Likewise.
10630
10631 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
10632
10633         verify: fix bug when gnulib <assert.h> is also included
10634         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
10635         is defined, not if _GL_STATIC_ASSERT_H is not defined.
10636         Perhaps there's a better way, but this fixes the immediate problem.
10637         Problem reported by Bruno Haible in
10638         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
10639
10640 2011-05-22  Bruno Haible  <bruno@clisp.org>
10641
10642         xgetcwd: Simplify autoconf macro.
10643         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
10644
10645 2011-05-22  Bruno Haible  <bruno@clisp.org>
10646
10647         New module 'mktime-internal'.
10648         * modules/mktime-internal: New file.
10649         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
10650         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
10651         mktime_internal as a C macro if libc has __mktime_internal.
10652         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
10653         conditions.
10654         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
10655
10656 2011-05-22  Bruno Haible  <bruno@clisp.org>
10657
10658         timegm: Correct mktime replacement statements.
10659         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
10660         defining mktime as a C macro. This completes a 2009-07-28 commit.
10661
10662 2011-05-22  Bruno Haible  <bruno@clisp.org>
10663
10664         timegm: Simplify autoconf macro.
10665         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
10666
10667 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
10668
10669         clock-time: change to LGPLv2+.
10670         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
10671         BSD-like but we have no mark for that; this is good enough for now.
10672
10673 2011-05-21  Bruno Haible  <bruno@clisp.org>
10674
10675         strerror_r: Fix comments.
10676         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
10677
10678 2011-05-21  Bruno Haible  <bruno@clisp.org>
10679
10680         relocatable-prog-wrapper: Fix possible link error.
10681         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
10682         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
10683         (gl_FUNC_SETENV): ... to here.
10684         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
10685         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
10686
10687 2011-05-21  Bruno Haible  <bruno@clisp.org>
10688
10689         relocatable-prog-wrapper: Assume strerror() exists.
10690         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
10691         m4/strerror.m4.
10692         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
10693         * lib/relocwrapper.c: Remove mention of strerror module.
10694         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
10695         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
10696         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
10697         C macro.
10698
10699 2011-05-21  Bruno Haible  <bruno@clisp.org>
10700
10701         select: Simplify replacement idiom.
10702         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
10703         Win32 platforms.
10704         * lib/sys_select.in.h (select): Simplify accordingly.
10705         * modules/select (Depends-on): Likewise.
10706
10707 2011-05-21  Bruno Haible  <bruno@clisp.org>
10708
10709         mkdir-p: Simplify autoconf macro.
10710         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
10711         gl_FUNC_LCHOWN.
10712
10713 2011-05-21  Eric Blake  <eblake@redhat.com>
10714
10715         strerror_r: avoid clobbering strerror on cygwin
10716         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
10717         fall back instead to sys_errlist.
10718         * modules/strerror (configure.ac): Add witness.
10719         * tests/test-strerror_r.c (main): Enhance test.
10720         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10721         * tests/test-perror2.c (main): Free memory before exit.
10722
10723 2011-05-21  Bruno Haible  <bruno@clisp.org>
10724
10725         mkdtemp: Use gnulib naming conventions.
10726         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
10727         * modules/mkdtemp (configure.ac): Update.
10728
10729 2011-05-20  Eric Blake  <eblake@redhat.com>
10730
10731         strerror_r: avoid corrupting errno on Solaris
10732         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
10733         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10734
10735         strerror_r: avoid compiler warning
10736         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
10737
10738         strerror_r: simplify AIX code
10739         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
10740
10741         test-perror: avoid spurious failure on FreeBSD
10742         * modules/perror-tests (Depends-on): Add strerror, now that
10743         strerror_r no longer pulls it in.
10744
10745 2011-05-20  Bruno Haible  <bruno@clisp.org>
10746
10747         strerror_r-posix: Remove unused dependencies.
10748         * modules/strerror_r-posix (Depends-on): Remove strerror.
10749         Reported by Eric Blake.
10750
10751 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
10752
10753         intprops: remove assumption about A|B representation
10754         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
10755         is a valid integer if both A and B are.  Although this is true for
10756         all known practical hosts, the C standard doesn't guarantee it,
10757         and the code need not assume it.  Also, this change may work around
10758         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
10759         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
10760
10761 2011-05-20  Eric Blake  <eblake@redhat.com>
10762
10763         perror: work around FreeBSD bug
10764         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
10765         is broken.  Move AC_LIBOBJ...
10766         * modules/perror (configure.ac): Here.
10767         * doc/posix-functions/perror.texi (perror): Document this.
10768         * tests/test-perror2.c (main): Enhance test.
10769
10770         test-perror: check for strerror interactions
10771         * tests/macros.h (STREQ): Add macro.
10772         * modules/perror-tests (Files): Add second test.
10773         * tests/test-perror2.c (main): New file.
10774         * doc/posix-functions/perror.texi (perror): Document glibc bug.
10775
10776         test-perror: rewrite to use init script
10777         * modules/perror-tests (Files): Add init.sh.
10778         * tests/test-perror.sh: Use temporary directory.
10779
10780 2011-05-20  Jim Meyering  <meyering@redhat.com>
10781
10782         maint: replace misused "a" with "an"
10783         * doc/intprops.texi: "a integer"
10784         * doc/regex.texi: "a explanation"
10785         * lib/alignof.h: "a object"
10786         * lib/argmatch.h: "a explanation"
10787         * lib/argp-help.c: "a option" and "a OPTION_DOC"
10788         * lib/stdint.in.h: "a integer"
10789         * lib/userspec.c: "a owner"
10790         * doc/gnulib.texi: Fix "a idea", and reword.
10791
10792 2011-05-19  Jim Meyering  <meyering@redhat.com>
10793
10794         maint: correct misuse of "a" and "an"
10795         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
10796         * lib/argp-help.c: "an docum...": s/an/a/
10797         * lib/argp-parse.c: "An vector": s/An/A/
10798         * lib/execute.c: "an native": s/an/a/
10799         * lib/spawn-pipe.c: Likewise.
10800         * lib/gc.h: "an Gc_rc": s/an/a/
10801         * lib/unigbrk.in.h: "an grapheme": s/an/a/
10802         * lib/fts.c: "an stat.st_dev": s/an/a/
10803
10804 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10805
10806         intprops-tests: work around HP-UX 11.23 cc bug with constants
10807         * tests/test-intprops.c (VERIFY): New macro.
10808         (main): Use it, instead of verify, to work around the compiler bug; see
10809         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10810
10811         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
10812         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
10813         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
10814         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
10815         (_GL_REMAINDER_OVERFLOW): Use it.
10816
10817         intprops-tests: revert unsigned part of previous change
10818         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
10819         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
10820         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
10821         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
10822
10823 2011-05-19  Bruno Haible  <bruno@clisp.org>
10824
10825         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
10826         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
10827         strerror_r() returned without filling the buffer.
10828         Reported by Eric Blake.
10829
10830 2011-05-19  Eric Blake  <eblake@redhat.com>
10831
10832         strerror_r: guarantee unchanged errno
10833         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
10834         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
10835         failure.
10836         * tests/test-strerror_r.c (main): Enhance test.
10837
10838 2011-05-19  Bruno Haible  <bruno@clisp.org>
10839
10840         strerror_r: Reorder #if blocks.
10841         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
10842         for consistency with the previous commit.
10843
10844 2011-05-19  Bruno Haible  <bruno@clisp.org>
10845
10846         perror: Avoid clobbering the strerror buffer when possible.
10847         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
10848         * lib/strerror.c: Include it.
10849         * modules/strerror (Files): Add lib/strerror-impl.h.
10850         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
10851         (my_strerror): New function, defined through lib/strerror-impl.h.
10852         (perror): Use it instead of strerror.
10853         * modules/perror (Files): Add lib/strerror-impl.h.
10854         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
10855
10856 2011-05-19  Eric Blake  <eblake@redhat.com>
10857
10858         strerror_r: fix on newer cygwin
10859         * lib/strerror_r.c (strerror_r): Cygwin now has
10860         __xpg_strerror_r, use it.
10861
10862 2011-05-19  Bruno Haible  <bruno@clisp.org>
10863
10864         strerror_r: Avoid clobbering the strerror buffer when possible.
10865         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
10866         (sys_nerr, sys_errlist): New declarations.
10867         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
10868         HP-UX, native Win32, IRIX, and 32-bit Solaris.
10869         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
10870
10871 2011-05-19  Bruno Haible  <bruno@clisp.org>
10872
10873         strerror_r: Fix test failure on mingw.
10874         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
10875         EXTEND_STRERROR_R.
10876         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
10877         macros from errno.in.h instead.
10878
10879 2011-05-19  Eric Blake  <eblake@redhat.com>
10880
10881         strerror: relax test for Solaris
10882         * tests/test-strerror.c (main): Permit Solaris behavior.
10883         * tests/test-strerror_r.c (main): Likewise.
10884
10885         strerror: enforce POSIX ruling on strerror(0)
10886         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
10887         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
10888         * lib/strerror_r.c (rpl_strerror_r): Work around it.
10889         * doc/posix-functions/strerror.texi (strerror): Document it.
10890         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
10891         * tests/test-strerror.c (main): Strengthen test.
10892         * tests/test-strerror_r.c (main): Likewise.
10893
10894 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10895
10896         intprop-tests: port to older and more-pedantic compilers
10897         * modules/intprops-tests (Files): Add tests/macros.h.
10898         * tests/test-intprops.c: Include macros.h.
10899         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
10900         it's no longer documented to expand to an integer constant expression.
10901         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
10902         argument is floating point, as it's no longer documented to expand
10903         to an integer constant expression in that case.
10904         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
10905         compiler bugs reported by Bruno Haible.  See
10906         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10907         (U0, U1): New constants, to work around the same bugs.  Also,
10908         in tests, use e.g., "(unsigned int) 39" rather than "39u".
10909
10910         intprops: work around C compiler bugs
10911         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
10912         bug in Sun C 5.11 2010/08/13 and other compilers; see
10913         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10914
10915         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
10916         * doc/intprops.texi (Integer Type Determination): Fix
10917         documentation for TYPE_IS_INTEGER: it returns an constant
10918         expression, not an integer constant expression.  Fix doc for
10919         TYPE_SIGNED: it returns an integer constant expression only if its
10920         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
10921         hardly worth documented that way....)
10922
10923 2011-05-18  Bruno Haible  <bruno@clisp.org>
10924
10925         strerror_r: Avoid clobbering the strerror buffer when possible.
10926         * lib/strerror_r.c (strerror_r): Merge the three implementations.
10927         Handle gnulib defined errno values here. When strerror() returns NULL
10928         or an empty string, return EINVAL.
10929         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
10930         gnulib defined errno values here.
10931         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
10932
10933 2011-05-18  Eric Blake  <eblake@redhat.com>
10934
10935         fnmatch: avoid compiler warning
10936         * lib/fnmatch_loop.c (FCT): Use correct type.
10937         Reported by Matthias Bolte.
10938
10939 2011-05-13  Jim Meyering  <meyering@redhat.com>
10940
10941         maint.mk: three new prohibit_<HDR>_without_use rules
10942         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
10943         (sc_prohibit_stdio-safer_without_use): Likewise.
10944         (sc_prohibit_xfreopen_without_use): Likewise.
10945
10946 2011-05-17  Jim Meyering  <meyering@redhat.com>
10947
10948         announce-gen: fail if the NEWS delta is empty
10949         If there's nothing noteworthy in NEWS, then either you forgot
10950         or you shouldn't be releasing.
10951         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
10952
10953 2011-05-17  Pádraig Brady <P@draigBrady.com>
10954
10955         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
10956         reserved symbols starting with double underscore from the check.
10957
10958 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
10959
10960         intprops: add doc
10961         * doc/intprops.texi: New file, documenting intprops.
10962         * doc/gnulib.texi (Particular Modules): Include it.
10963
10964         verify: add doc to gnulib manual and fix example
10965         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
10966         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
10967         (Compile-time Assertions): Fix example so it can't overflow.
10968
10969 2011-05-17  Jim Meyering  <meyering@redhat.com>
10970
10971         warnings.m4: don't usurp save_CPPFLAGS variable name
10972         * m4/warnings.m4: Prefix local temporary variable name with gl_.
10973
10974         doc: fix typo
10975         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
10976
10977 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10978             Bruno Haible  <bruno@clisp.org>
10979
10980         doc: Tweak recent change.
10981         * README (Portability guidelines): Tweak new text.
10982         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
10983         Interix 6.1.
10984
10985 2011-05-16  Eric Blake  <eblake@redhat.com>
10986
10987         inttypes: avoid autoconf warning
10988         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
10989         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10990
10991 2011-05-16  Sam Steingold <sds@gnu.org>
10992         and Eric Blake  <eblake@redhat.com>
10993
10994         vc-list-files: accept multiple directory operands
10995         * build-aux/vc-list-files: Iterate over all remaining operands.
10996
10997 2011-05-16  Bruno Haible  <bruno@clisp.org>
10998
10999         Fix confusion regarding deprecated modules.
11000         * modules/calloc (Status, Notice): Mark module as deprecated, not
11001         obsolete.
11002         * modules/fnmatch-posix (Status, Notice): Likewise.
11003         * modules/getdate (Status, Notice): Likewise.
11004         * modules/getopt (Status, Notice): Likewise.
11005         * modules/malloc (Status, Notice): Likewise.
11006         * modules/pipe (Status, Notice): Likewise.
11007         * modules/realloc (Status, Notice): Likewise.
11008         * modules/rename-dest-slash (Status, Notice): Likewise.
11009         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
11010         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
11011         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
11012         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
11013         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
11014
11015 2011-05-16  Bruno Haible  <bruno@clisp.org>
11016
11017         doc: List the target platforms.
11018         * doc/gnulib-intro.texi (Target Platforms): New section.
11019         * doc/gnulib.texi (Introduction): Update menu.
11020         * README (Portability guidelines): Refer to the new section. Update
11021         statement about oldest supported environment. Remove rationale why
11022         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
11023         unportable C89 function.
11024         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
11025         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
11026
11027 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
11028
11029         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
11030
11031 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
11032
11033         intprops-tests: new module
11034         * modules/intprops-tests, tests/test-intprops.c: New files.
11035
11036         intprops: add safe, portable integer overflow checking
11037         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
11038         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
11039         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
11040         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
11041         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
11042         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
11043         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
11044         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
11045         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
11046         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
11047         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
11048
11049 2011-05-12  James Youngman  <jay@gnu.org>
11050
11051         Add a test for glibc's Bugzilla bug #12378.
11052         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
11053         doesn't allow the literal matching of a lone "[" (which is
11054         required by POSIX).
11055         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
11056
11057 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
11058
11059         Sync glibc change fixing Bugzilla bug #12378.
11060         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
11061         beginning and fall back to matching as normal character if the
11062         string ends before the matching ']' is found.  This is what POSIX
11063         requires.
11064
11065 2011-05-13  Eric Blake  <eblake@redhat.com>
11066
11067         getcwd-lgpl: relax test for FreeBSD
11068         * doc/posix-functions/getcwd.texi (getcwd): Document portability
11069         issue.
11070         * tests/test-getcwd-lgpl.c (main): Relax test.
11071         Reported by Matthias Bolte.
11072
11073 2011-05-11  Eric Blake  <eblake@redhat.com>
11074
11075         test-fflush: silence compiler warning
11076         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
11077
11078 2011-05-11  Bruno Haible  <bruno@clisp.org>
11079
11080         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
11081         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
11082         * modules/canonicalize (Depends-on): Add 'nocrash'.
11083         * modules/canonicalize-lgpl (Depends-on): Likewise.
11084         * doc/posix-functions/realpath.texi: Update platforms list.
11085         Reported by Ryan Schmidt <ryandesign@macports.org>.
11086
11087 2011-05-11  Bruno Haible  <bruno@clisp.org>
11088
11089         group-member: Declare function in <unistd.h>.
11090         * lib/unistd.in.h (group_member): New declaration.
11091         * lib/group-member.h: Remove file.
11092         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
11093         * tests/test-unistd-c++.cc: Check signature of group_member.
11094         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
11095         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
11096         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
11097         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
11098         HAVE_GROUP_MEMBER.
11099         * modules/group-member (Files): Remove lib/group-member.h.
11100         (Depends-on): Add unistd. Specify conditions.
11101         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11102         (Include): Change to <unistd.h>.
11103         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
11104         HAVE_GROUP_MEMBER.
11105         * NEWS: Mention the change.
11106         * lib/euidaccess.c: Don't include group-member.h.
11107
11108 2011-05-11  Bruno Haible  <bruno@clisp.org>
11109
11110         group-member: Document module.
11111         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
11112         module.
11113
11114 2011-05-11  Bruno Haible  <bruno@clisp.org>
11115
11116         fclose: Fix mistake earlier today.
11117         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
11118
11119 2011-05-11  Eric Blake  <eblake@redhat.com>
11120
11121         fclose: preserve fflush errors
11122         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
11123         Reported by Jim Meyering.
11124
11125         bootstrap: support a prereq of 'rpcgen -' on RHEL5
11126         * build-aux/bootstrap (check_versions): When no specific version
11127         is required, merely check that the app produces an exit status
11128         that indicates its existence.
11129
11130         maint.mk: drop redundant check
11131         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
11132         the same but better.
11133
11134 2011-05-11  Bruno Haible  <bruno@clisp.org>
11135
11136         fclose: Fix possible link error.
11137         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
11138         unregister_shadow_fd. Improve comments.
11139         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
11140         Eric Blake.
11141
11142 2011-05-11  Jim Meyering  <meyering@redhat.com>
11143
11144         maint.mk: improve "can not" detection and generalize rule name
11145         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
11146         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
11147         Use the same technique as in sc_prohibit_doubled_word, so that
11148         we recognize "can not" also when the words are separated by a newline.
11149         Suggested by Eric Blake.
11150         (perl_filename_lineno_text_): Define.  Factored out of...
11151         (prohibit_doubled_word_): ...here.  Use the new definition.
11152         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
11153         (prohibit_undesirable_word_seq_RE_): New overridable variable.
11154         (ignore_undesirable_word_sequence_RE_): New overridable variable.
11155
11156 2011-05-10  Eric Blake  <eblake@redhat.com>
11157
11158         fclose: avoid double close race when possible
11159         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
11160         all but WINDOWS_SOCKETS.
11161
11162 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
11163
11164         openat: correct new comment
11165         * lib/openat-proc.c (openat_proc_name): Correct the comment.
11166
11167 2011-05-10  Jim Meyering  <meyering@redhat.com>
11168
11169         openat: add comments
11170         * lib/openat-proc.c (openat_proc_name): Add comments,
11171         mostly from Eric Blake.
11172
11173 2011-05-09  Eric Blake  <eblake@redhat.com>
11174
11175         openat: reduce syscalls in first probe of /proc
11176         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
11177         be a directory.  Simplify the probe for .. bugs.
11178         * modules/openat (Depends-on): Drop same-inode.
11179         Reported by Bastien ROUCARIES.
11180
11181 2011-05-09  Jim Meyering  <meyering@redhat.com>
11182
11183         maint.mk: change semantics/name of tight_scope variables
11184         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
11185         Rename variables to align with semantics that make them more useful.
11186
11187         maint.mk: tweak new rule's name not to impinge
11188         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
11189         (sc_tight_scope): Use new rule name rather than $@-0.
11190
11191         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
11192         * top/maint.mk (sc_tight_scope): New rule.
11193         (sc_tight_scope-0): New rule, ifdef'd out.
11194         (_gl_TS_dir): Default.
11195         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
11196         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
11197
11198 2011-05-09  Simon Josefsson  <simon@josefsson.org>
11199
11200         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
11201         Haible <bruno@clisp.org>.
11202
11203 2011-05-08  Bruno Haible  <bruno@clisp.org>
11204
11205         Comments.
11206         * m4/isnanf.m4: Add comment.
11207         * m4/isnanl.m4: Likewise.
11208
11209 2011-05-08  Bruno Haible  <bruno@clisp.org>
11210
11211         glob: Remove obsolete macro.
11212         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
11213
11214 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
11215
11216         intprops: Sun C 5.11 supports __typeof__
11217         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
11218         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
11219         which is new.
11220         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
11221
11222         intprops: switch to usual gnulib indenting and naming
11223         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
11224         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
11225
11226         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
11227
11228 2011-05-08  Jim Meyering  <meyering@redhat.com>
11229
11230         maint.mk: suppress "Entering/Leaving directory" diag in announcement
11231         * top/maint.mk (release-prep): Use make's --no-print-directory
11232         option when generating the announcement.  This eliminates the
11233         pesky "make[2]: Entering/Leaving directory" diagnostics in the
11234         generated announcement template.
11235
11236 2011-05-08  Bruno Haible  <bruno@clisp.org>
11237
11238         tzset: Fix gettimeofday wrapper on Solaris 2.6.
11239         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
11240         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
11241
11242 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
11243
11244         ignore-value, verify: Omit include files from lib_SOURCES.
11245         * modules/ignore-value, modules/verify (Makefile.am):
11246         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
11247         that leads Automake to duplicate use of am__objects_... variables
11248         in Makefile.in.  See
11249         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
11250
11251 2011-05-07  Bruno Haible  <bruno@clisp.org>
11252
11253         fclose: Simplify autoconf macro.
11254         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
11255         defined.
11256
11257 2011-05-07  Bruno Haible  <bruno@clisp.org>
11258
11259         canonicalize-lgpl: Fix autoconf macro ordering bug.
11260         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
11261         gl_STDLIB_H_DEFAULTS.
11262
11263 2011-05-06  Eric Blake  <eblake@redhat.com>
11264
11265         maintainer-makefile: make sc_po_check easier to tune
11266         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
11267         to probe for strings, such as an alternate location for gnulib.
11268
11269         fclose: guarantee behavior on seekable stdin
11270         * modules/fclose (Depends-on): Add fflush.
11271         * doc/posix-functions/fclose.texi (fclose): Document this.
11272         * tests/test-fclose.c (main): Make test for this unconditional.
11273
11274 2011-05-06  Bruno Haible  <bruno@clisp.org>
11275
11276         fflush, fpurge: Relicense under LGPLv2+.
11277         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
11278         * modules/fpurge (License): Likewise.
11279         With permission from Eric Blake and Jim Meyering.
11280         Suggested by Eric Blake.
11281
11282 2011-05-06  Karl Berry  <karl@gnu.org>
11283
11284         * MODULES.html.sh (func_all_modules): remove exit.
11285
11286 2011-05-06  Jim Meyering  <meyering@redhat.com>
11287
11288         maint.mk: use info-gnu@ as the default only for a stable release
11289         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
11290         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
11291         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
11292         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
11293
11294 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
11295
11296         assert-h: new module, which supports C1X-style static_assert
11297         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
11298         * lib/verify.h: Revamp so that this can be copied into assert.h,
11299         while retaining the ability to use it standalone as before.
11300         Rename private identifiers so as not to encroach on the
11301         standard C namespace, since this is now used by assert.h.
11302         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
11303         the old verify_true.
11304         (_GL_VERIFY_TRUE): New macro, with much of the contents of
11305         the old verify_true.  Use _GL_VERIFY_TYPE.
11306         (_GL_VERIFY): New macro, with much of the contents of the old verify.
11307         (static_assert): New macro, if _GL_STATIC_ASSERT_H
11308         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
11309         defined when this file is copied into the replacement assert.h.
11310         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
11311         and _Static_assert is not built in.
11312         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
11313         defined, and use the new macros mentioned above.
11314         * doc/posix-headers/assert.texi: Document this.
11315
11316 2011-05-05  Bruno Haible  <bruno@clisp.org>
11317
11318         fclose, fflush: Respect rules for use of AC_LIBOBJ.
11319         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
11320         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
11321         gl_REPLACE_FCLOSE here.
11322         * modules/fflush (Depends-on): Remove fclose.
11323         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
11324         combination with module 'fclose'.
11325
11326 2011-05-05  Bruno Haible  <bruno@clisp.org>
11327
11328         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
11329         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
11330         gl_FUNC_FFLUSH.
11331         (gl_FUNC_FFLUSH): Use it.
11332         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
11333         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
11334         gl_REPLACE_FSEEKO here.
11335
11336 2011-05-05  Bruno Haible  <bruno@clisp.org>
11337
11338         tzset: Relicense under LGPL.
11339         * modules/tzset (License): Change to LGPL.
11340         No agreement needed; it's a no-op.
11341
11342         strtoimax, strtoumax: Relicense under LGPL.
11343         * modules/strtoimax (License): Change to LGPL.
11344         * modules/strtoumax (License): Likewise.
11345         With permission from Jim Meyering, Paul Eggert:
11346         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
11347         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
11348
11349         getgroups: Relicense under LGPL.
11350         * modules/getgroups (License): Change to LGPL.
11351         With permission from Jim Meyering, Paul Eggert, Eric Blake:
11352         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
11353         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
11354         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11355
11356         nanosleep: Relicense under LGPL.
11357         * modules/nanosleep (License): Change to LGPL.
11358         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
11359         Haible:
11360         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
11361         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
11362         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11363         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
11364
11365         futimens: Relicense under LGPL.
11366         * modules/futimens (License): Change to LGPL.
11367         With permission from Eric Blake:
11368         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11369
11370         fflush: Relicense under LGPL.
11371         * modules/fflush (License): Change to LGPL.
11372         With permission from Eric Blake, Bruno Haible, Jim Meyering:
11373         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11374         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
11375         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
11376
11377         tmpfile: Relicense under LGPL.
11378         * modules/tmpfile (License): Change to LGPL.
11379         With permission from Ben Pfaff:
11380         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
11381
11382         isfinite: Relicense under LGPL.
11383         * modules/isfinite (License): Change to LGPL.
11384         With permission from Ben Pfaff, Bruno Haible:
11385         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
11386         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
11387
11388         acosl..tanl: Relicense under LGPL.
11389         * modules/acosl (License): Change to LGPL.
11390         * modules/asinl (License): Likewise.
11391         * modules/atanl (License): Likewise.
11392         * modules/cosl (License): Likewise.
11393         * modules/expl (License): Likewise.
11394         * modules/logl (License): Likewise.
11395         * modules/sinl (License): Likewise.
11396         * modules/sqrtl (License): Likewise.
11397         * modules/tanl (License): Likewise.
11398         Source code originally from glibc and Paolo Bonzini. Agreements:
11399         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
11400         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
11401
11402 2011-05-05  Bruno Haible  <bruno@clisp.org>
11403
11404         signal: Define sighandler_t.
11405         * lib/signal.in.h (sighandler_t): New type.
11406         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
11407         whether sighandler_t is defined.
11408         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
11409         * modules/signal (Depends-on): Add extensions.
11410         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
11411         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
11412         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
11413
11414 2011-05-05  Eric Blake  <eblake@redhat.com>
11415
11416         maint: remove useless REPLACE_*_H macros
11417         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
11418         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
11419         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
11420         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
11421         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
11422         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
11423         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
11424         * m4/btowc.m4: Update callers.
11425         * m4/dirfd.m4: Likewise.
11426         * m4/duplocale.m4: Likewise.
11427         * m4/fchdir.m4: Likewise.
11428         * m4/fdopendir.m4: Likewise.
11429         * m4/inet_ntop.m4: Likewise.
11430         * m4/inet_pton.m4: Likewise.
11431         * m4/ioctl.m4: Likewise.
11432         * m4/mbrlen.m4: Likewise.
11433         * m4/mbrtowc.m4: Likewise.
11434         * m4/mbsinit.m4: Likewise.
11435         * m4/mbsnrtowcs.m4: Likewise.
11436         * m4/mbsrtowcs.m4: Likewise.
11437         * m4/poll.m4: Likewise.
11438         * m4/setlocale.m4: Likewise.
11439         * m4/wcrtomb.m4: Likewise.
11440         * m4/wcsnrtombs.m4: Likewise.
11441         * m4/wcsrtombs.m4: Likewise.
11442         * m4/wctob.m4: Likewise.
11443         * m4/wcwidth.m4: Likewise.
11444         * modules/posix_spawn: Likewise.
11445         * modules/posix_spawn_file_actions_addclose: Likewise.
11446         * modules/posix_spawn_file_actions_adddup2: Likewise.
11447         * modules/posix_spawn_file_actions_addopen: Likewise.
11448         * modules/posix_spawn_file_actions_destroy: Likewise.
11449         * modules/posix_spawn_file_actions_init: Likewise.
11450         * modules/posix_spawnattr_destroy: Likewise.
11451         * modules/posix_spawnattr_getflags: Likewise.
11452         * modules/posix_spawnattr_getpgroup: Likewise.
11453         * modules/posix_spawnattr_getschedparam: Likewise.
11454         * modules/posix_spawnattr_getschedpolicy: Likewise.
11455         * modules/posix_spawnattr_getsigdefault: Likewise.
11456         * modules/posix_spawnattr_getsigmask: Likewise.
11457         * modules/posix_spawnattr_init: Likewise.
11458         * modules/posix_spawnattr_setflags: Likewise.
11459         * modules/posix_spawnattr_setpgroup: Likewise.
11460         * modules/posix_spawnattr_setschedparam: Likewise.
11461         * modules/posix_spawnattr_setschedpolicy: Likewise.
11462         * modules/posix_spawnattr_setsigdefault: Likewise.
11463         * modules/posix_spawnattr_setsigmask: Likewise.
11464         * modules/posix_spawnp: Likewise.
11465
11466 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
11467
11468         Add option to do-release-commit-and-tag to specify branch.
11469         * build-aux/do-release-commit-and-tag: Add --branch.
11470
11471 2011-05-03  Bruno Haible  <bruno@clisp.org>
11472
11473         Avoid unnecessary compilation units, through conditional dependencies.
11474         * modules/accept (Depends-on): Add conditions to the dependencies.
11475         * modules/acosl (Depends-on): Likewise.
11476         * modules/argz (Depends-on): Likewise.
11477         * modules/asinl (Depends-on): Likewise.
11478         * modules/atanl (Depends-on): Likewise.
11479         * modules/atoll (Depends-on): Likewise.
11480         * modules/bind (Depends-on): Likewise.
11481         * modules/btowc (Depends-on): Likewise.
11482         * modules/canonicalize-lgpl (Depends-on): Likewise.
11483         * modules/ceil (Depends-on): Likewise.
11484         * modules/ceilf (Depends-on): Likewise.
11485         * modules/ceill (Depends-on): Likewise.
11486         * modules/chdir-long (Depends-on): Likewise.
11487         * modules/chown (Depends-on): Likewise.
11488         * modules/close (Depends-on): Likewise.
11489         * modules/connect (Depends-on): Likewise.
11490         * modules/cosl (Depends-on): Likewise.
11491         * modules/dirfd (Depends-on): Likewise.
11492         * modules/dprintf (Depends-on): Likewise.
11493         * modules/dprintf-posix (Depends-on): Likewise.
11494         * modules/error (Depends-on): Likewise.
11495         * modules/euidaccess (Depends-on): Likewise.
11496         * modules/expl (Depends-on): Likewise.
11497         * modules/faccessat (Depends-on): Likewise.
11498         * modules/fchdir (Depends-on): Likewise.
11499         * modules/fclose (Depends-on): Likewise.
11500         * modules/fcntl (Depends-on): Likewise.
11501         * modules/fdopendir (Depends-on): Likewise.
11502         * modules/fflush (Depends-on): Likewise.
11503         * modules/floor (Depends-on): Likewise.
11504         * modules/floorf (Depends-on): Likewise.
11505         * modules/floorl (Depends-on): Likewise.
11506         * modules/fnmatch (Depends-on): Likewise.
11507         * modules/fopen (Depends-on): Likewise.
11508         * modules/fprintf-posix (Depends-on): Likewise.
11509         * modules/frexp (Depends-on): Likewise.
11510         * modules/frexp-nolibm (Depends-on): Likewise.
11511         * modules/frexpl (Depends-on): Likewise.
11512         * modules/frexpl-nolibm (Depends-on): Likewise.
11513         * modules/fseek (Depends-on): Likewise.
11514         * modules/fsusage (Depends-on): Likewise.
11515         * modules/ftell (Depends-on): Likewise.
11516         * modules/ftello (Depends-on): Likewise.
11517         * modules/futimens (Depends-on): Likewise.
11518         * modules/getcwd (Depends-on): Likewise.
11519         * modules/getcwd-lgpl (Depends-on): Likewise.
11520         * modules/getdelim (Depends-on): Likewise.
11521         * modules/getdomainname (Depends-on): Likewise.
11522         * modules/getgroups (Depends-on): Likewise.
11523         * modules/gethostname (Depends-on): Likewise.
11524         * modules/getline (Depends-on): Likewise.
11525         * modules/getlogin_r (Depends-on): Likewise.
11526         * modules/getopt-posix (Depends-on): Likewise.
11527         * modules/getpeername (Depends-on): Likewise.
11528         * modules/getsockname (Depends-on): Likewise.
11529         * modules/getsockopt (Depends-on): Likewise.
11530         * modules/getsubopt (Depends-on): Likewise.
11531         * modules/getusershell (Depends-on): Likewise.
11532         * modules/glob (Depends-on): Likewise.
11533         * modules/grantpt (Depends-on): Likewise.
11534         * modules/iconv_open (Depends-on): Likewise.
11535         * modules/iconv_open-utf (Depends-on): Likewise.
11536         * modules/inet_ntop (Depends-on): Likewise.
11537         * modules/inet_pton (Depends-on): Likewise.
11538         * modules/ioctl (Depends-on): Likewise.
11539         * modules/isapipe (Depends-on): Likewise.
11540         * modules/isfinite (Depends-on): Likewise.
11541         * modules/isinf (Depends-on): Likewise.
11542         * modules/lchown (Depends-on): Likewise.
11543         * modules/ldexpl (Depends-on): Likewise.
11544         * modules/link (Depends-on): Likewise.
11545         * modules/linkat (Depends-on): Likewise.
11546         * modules/listen (Depends-on): Likewise.
11547         * modules/logl (Depends-on): Likewise.
11548         * modules/lstat (Depends-on): Likewise.
11549         * modules/mbrlen (Depends-on): Likewise.
11550         * modules/mbrtowc (Depends-on): Likewise.
11551         * modules/mbsinit (Depends-on): Likewise.
11552         * modules/mbsnrtowcs (Depends-on): Likewise.
11553         * modules/mbsrtowcs (Depends-on): Likewise.
11554         * modules/mbtowc (Depends-on): Likewise.
11555         * modules/memcmp (Depends-on): Likewise.
11556         * modules/mkdir (Depends-on): Likewise.
11557         * modules/mkdtemp (Depends-on): Likewise.
11558         * modules/mkfifo (Depends-on): Likewise.
11559         * modules/mkfifoat (Depends-on): Likewise.
11560         * modules/mknod (Depends-on): Likewise.
11561         * modules/mkostemp (Depends-on): Likewise.
11562         * modules/mkostemps (Depends-on): Likewise.
11563         * modules/mkstemp (Depends-on): Likewise.
11564         * modules/mkstemps (Depends-on): Likewise.
11565         * modules/mktime (Depends-on): Likewise.
11566         * modules/nanosleep (Depends-on): Likewise.
11567         * modules/open (Depends-on): Likewise.
11568         * modules/openat (Depends-on): Likewise.
11569         * modules/perror (Depends-on): Likewise.
11570         * modules/poll (Depends-on): Likewise.
11571         * modules/popen (Depends-on): Likewise.
11572         * modules/posix_spawn (Depends-on): Likewise.
11573         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
11574         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
11575         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
11576         * modules/posix_spawnp (Depends-on): Likewise.
11577         * modules/pread (Depends-on): Likewise.
11578         * modules/printf-posix (Depends-on): Likewise.
11579         * modules/ptsname (Depends-on): Likewise.
11580         * modules/putenv (Depends-on): Likewise.
11581         * modules/pwrite (Depends-on): Likewise.
11582         * modules/readline (Depends-on): Likewise.
11583         * modules/readlink (Depends-on): Likewise.
11584         * modules/readlinkat (Depends-on): Likewise.
11585         * modules/recv (Depends-on): Likewise.
11586         * modules/recvfrom (Depends-on): Likewise.
11587         * modules/regex (Depends-on): Likewise.
11588         * modules/remove (Depends-on): Likewise.
11589         * modules/rename (Depends-on): Likewise.
11590         * modules/renameat (Depends-on): Likewise.
11591         * modules/rmdir (Depends-on): Likewise.
11592         * modules/round (Depends-on): Likewise.
11593         * modules/roundf (Depends-on): Likewise.
11594         * modules/roundl (Depends-on): Likewise.
11595         * modules/rpmatch (Depends-on): Likewise.
11596         * modules/select (Depends-on): Likewise.
11597         * modules/send (Depends-on): Likewise.
11598         * modules/sendto (Depends-on): Likewise.
11599         * modules/setenv (Depends-on): Likewise.
11600         * modules/setlocale (Depends-on): Likewise.
11601         * modules/setsockopt (Depends-on): Likewise.
11602         * modules/shutdown (Depends-on): Likewise.
11603         * modules/sigaction (Depends-on): Likewise.
11604         * modules/signbit (Depends-on): Likewise.
11605         * modules/sigprocmask (Depends-on): Likewise.
11606         * modules/sinl (Depends-on): Likewise.
11607         * modules/sleep (Depends-on): Likewise.
11608         * modules/snprintf (Depends-on): Likewise.
11609         * modules/snprintf-posix (Depends-on): Likewise.
11610         * modules/socket (Depends-on): Likewise.
11611         * modules/sprintf-posix (Depends-on): Likewise.
11612         * modules/sqrtl (Depends-on): Likewise.
11613         * modules/stat (Depends-on): Likewise.
11614         * modules/strchrnul (Depends-on): Likewise.
11615         * modules/strdup-posix (Depends-on): Likewise.
11616         * modules/strerror (Depends-on): Likewise.
11617         * modules/strerror_r-posix (Depends-on): Likewise.
11618         * modules/strndup (Depends-on): Likewise.
11619         * modules/strnlen (Depends-on): Likewise.
11620         * modules/strptime (Depends-on): Likewise.
11621         * modules/strsep (Depends-on): Likewise.
11622         * modules/strsignal (Depends-on): Likewise.
11623         * modules/strstr-simple (Depends-on): Likewise.
11624         * modules/strtod (Depends-on): Likewise.
11625         * modules/strtoimax (Depends-on): Likewise.
11626         * modules/strtok_r (Depends-on): Likewise.
11627         * modules/strtoumax (Depends-on): Likewise.
11628         * modules/symlink (Depends-on): Likewise.
11629         * modules/symlinkat (Depends-on): Likewise.
11630         * modules/tanl (Depends-on): Likewise.
11631         * modules/tcgetsid (Depends-on): Likewise.
11632         * modules/tmpfile (Depends-on): Likewise.
11633         * modules/trunc (Depends-on): Likewise.
11634         * modules/truncf (Depends-on): Likewise.
11635         * modules/truncl (Depends-on): Likewise.
11636         * modules/uname (Depends-on): Likewise.
11637         * modules/unlink (Depends-on): Likewise.
11638         * modules/unlockpt (Depends-on): Likewise.
11639         * modules/unsetenv (Depends-on): Likewise.
11640         * modules/usleep (Depends-on): Likewise.
11641         * modules/utimensat (Depends-on): Likewise.
11642         * modules/vasprintf (Depends-on): Likewise.
11643         * modules/vdprintf (Depends-on): Likewise.
11644         * modules/vdprintf-posix (Depends-on): Likewise.
11645         * modules/vfprintf-posix (Depends-on): Likewise.
11646         * modules/vprintf-posix (Depends-on): Likewise.
11647         * modules/vsnprintf (Depends-on): Likewise.
11648         * modules/vsnprintf-posix (Depends-on): Likewise.
11649         * modules/vsprintf-posix (Depends-on): Likewise.
11650         * modules/wcrtomb (Depends-on): Likewise.
11651         * modules/wcscasecmp (Depends-on): Likewise.
11652         * modules/wcscspn (Depends-on): Likewise.
11653         * modules/wcsdup (Depends-on): Likewise.
11654         * modules/wcsncasecmp (Depends-on): Likewise.
11655         * modules/wcsnrtombs (Depends-on): Likewise.
11656         * modules/wcspbrk (Depends-on): Likewise.
11657         * modules/wcsrtombs (Depends-on): Likewise.
11658         * modules/wcsspn (Depends-on): Likewise.
11659         * modules/wcsstr (Depends-on): Likewise.
11660         * modules/wcstok (Depends-on): Likewise.
11661         * modules/wcswidth (Depends-on): Likewise.
11662         * modules/wctob (Depends-on): Likewise.
11663         * modules/wctomb (Depends-on): Likewise.
11664         * modules/wctype (Depends-on): Likewise.
11665         * modules/wcwidth (Depends-on): Likewise.
11666         * modules/write (Depends-on): Likewise.
11667
11668 2011-05-03  Bruno Haible  <bruno@clisp.org>
11669
11670         Support for conditional dependencies.
11671         * doc/gnulib.texi (Module description): Document the syntax of
11672         conditional dependencies.
11673         * gnulib-tool: New option --conditional-dependencies.
11674         (func_usage): Document it.
11675         (cond_dependencies): New variable.
11676         (func_get_automake_snippet_conditional,
11677         func_get_automake_snippet_unconditional): New functions, extracted from
11678         func_get_automake_snippet.
11679         (func_get_automake_snippet): Use them.
11680         (sed_first_32_chars): New variable.
11681         (func_module_shellfunc_name): New function.
11682         (func_module_shellvar_name): New function.
11683         (func_module_conditional_name): New function.
11684         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
11685         func_cond_module_condition): New functions.
11686         (func_modules_transitive_closure): Add support for conditional
11687         dependencies.
11688         (func_emit_lib_Makefile_am): For a conditional module, enclose the
11689         conditional automake snippet in an automake conditional.
11690         (func_emit_autoconf_snippets): Emit shell functions that contain the
11691         code for conditional modules.
11692         (func_import, func_create_testdir): Update specification.
11693
11694 2011-05-03  Eric Blake  <eblake@redhat.com>
11695
11696         test-getaddrinfo: report error information
11697         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
11698
11699 2011-05-03  Jim Meyering  <meyering@redhat.com>
11700
11701         bootstrap: avoid build failure when $GZIP is set
11702         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
11703         program name.  If defined at all, it is supposed to list gzip options.
11704         Reported by Alan Curry in http://debbugs.gnu.org/8609
11705
11706 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
11707
11708         readme-release: new module with release instructions
11709         * modules/readme-release: New module.
11710         * top/README-release: New file, from coreutils, grep, diffutils.
11711         * MODULES.html.sh (Support for maintaining and releasing): Add it.
11712
11713 2011-05-02  Eric Blake  <eblake@redhat.com>
11714
11715         fflush: also replace fclose when fixing fflush
11716         * modules/fflush (Depends-on): Add fclose.
11717         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
11718         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
11719         memstreams with no backing fd.
11720         * doc/posix-functions/fclose.texi (fclose): Document the use of
11721         fflush module to fix the bug.
11722         * tests/test-fclose.c (main): Relax test when fclose is used in
11723         isolation.
11724
11725         fclose: add some tests
11726         * modules/fclose-tests: New test module.
11727         * tests/test-fclose.c: New file.
11728         * doc/posix-functions/fclose.texi (fclose): Document the bug.
11729
11730         fclose: reduced dependencies
11731         * modules/fclose (Depends-on): Switch from fflush/fseeko to
11732         simpler lseek.
11733         * lib/fclose.c (rpl_fclose): Likewise.
11734         Reported by Simon Josefsson.
11735
11736         exit: drop remaining clients
11737         * modules/argmatch (Depends-on): Replace exit with stdlib.
11738         * modules/copy-file (Depends-on): Likewise.
11739         * modules/execute (Depends-on): Likewise.
11740         * modules/exitfail (Depends-on): Likewise.
11741         * modules/obstack (Depends-on): Likewise.
11742         * modules/pagealign_alloc (Depends-on): Likewise.
11743         * modules/pipe-filter-gi (Depends-on): Likewise.
11744         * modules/pipe-filter-ii (Depends-on): Likewise.
11745         * modules/savewd (Depends-on): Likewise.
11746         * modules/spawn-pipe (Depends-on): Likewise.
11747         * modules/wait-process (Depends-on): Likewise.
11748         * modules/xsetenv (Depends-on): Likewise.
11749         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
11750         * modules/git-merge-changelog (Depends-on): Likewise.
11751         * modules/long-options (Depends-on): Likewise.
11752         * modules/pt_chown (Depends-on): Likewise.
11753         * modules/sysexits (Depends-on): Likewise.
11754
11755         freading: relax license from LGPLv3+ to LGPLv2+
11756         * modules/freading (License): Relax LGPL version.
11757
11758 2011-05-02  Bruno Haible  <bruno@clisp.org>
11759
11760         fchdir: Remove unused dependencies.
11761         * modules/fchdir (Depends-on): Remove include_next.
11762
11763 2011-05-02  Bruno Haible  <bruno@clisp.org>
11764
11765         gnulib-tool: Refactor.
11766         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
11767         from func_emit_autoconf_snippets.
11768         (func_emit_autoconf_snippets): Use it.
11769
11770 2011-05-02  Simon Josefsson  <simon@josefsson.org>
11771
11772         * NEWS: Document removal of 'exit'.
11773         * modules/exit: Remove file.
11774
11775 2011-05-01  Bruno Haible  <bruno@clisp.org>
11776
11777         Update DEPENDENCIES.
11778         * DEPENDENCIES (gettext): Recommend the newest release.
11779         Reported by Simon Josefsson.
11780
11781 2011-05-01  Bruno Haible  <bruno@clisp.org>
11782
11783         gnulib-tool: Reduce code duplication.
11784         * gnulib-tool (func_emit_autoconf_snippets): New function.
11785         (func_import, func_create_testdir): Use it.
11786
11787 2011-04-30  Eric Blake  <eblake@redhat.com>
11788
11789         fclose: don't fail on non-seekable input stream
11790         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
11791         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
11792         since fflush is allowed to fail in that case.
11793
11794 2011-04-30  Bruno Haible  <bruno@clisp.org>
11795
11796         dup3: cleanup
11797         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
11798
11799 2011-04-30  Bruno Haible  <bruno@clisp.org>
11800
11801         netdb: Make it work in C++ mode.
11802         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
11803         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
11804         module.
11805         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
11806         gl_MODULE_INDICATOR_FOR_TESTS.
11807         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
11808         * modules/netdb-c++-tests: New file.
11809         * tests/test-netdb-c++.cc: New file.
11810
11811 2011-04-30  Bruno Haible  <bruno@clisp.org>
11812
11813         New modules 'vfscanf', 'vscanf'.
11814         * modules/vfscanf: New file.
11815         * modules/vscanf: New file.
11816         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
11817         here.
11818         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
11819         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
11820
11821 2011-04-30  Bruno Haible  <bruno@clisp.org>
11822
11823         passfd: Add comments.
11824         * lib/passfd.c: Add comments about platforms.
11825
11826 2011-04-30  Bruno Haible  <bruno@clisp.org>
11827
11828         sys_uio: Make <sys/uio.h> self-contained.
11829         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
11830         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
11831
11832 2011-04-30  Bruno Haible  <bruno@clisp.org>
11833
11834         sys_socket: Ensure 'struct iovec' definition.
11835         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
11836         <sys/socket.h>.
11837         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
11838
11839 2011-04-30  Bruno Haible  <bruno@clisp.org>
11840
11841         sys_uio: Protect definition of 'struct iovec'.
11842         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
11843         it as a C struct.
11844
11845 2011-04-30  Bruno Haible  <bruno@clisp.org>
11846
11847         manywarnings: fix indentation
11848         * m4/manywarnings.m4: Indent by 2 spaces consistently.
11849
11850 2011-04-30  Pádraig Brady <P@draigBrady.com>
11851
11852         manywarnings: add -Wno-missing-field-initializers if needed.
11853         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
11854         option if it's needed to allow initialization with { 0, }
11855
11856 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
11857
11858         announce-gen: cosmetic improvement
11859         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
11860
11861 2011-04-29  Jim Meyering  <meyering@redhat.com>
11862
11863         vc-list-files: indent with spaces, not TABs
11864         * build-aux/vc-list-files: Convert leading TABs to spaces,
11865         to match the style of most other files in gnulib.
11866
11867         announce-gen: indent with spaces, not TABs
11868         * build-aux/announce-gen: Convert all TABs to spaces, to match
11869         the style of most other files in gnulib.
11870
11871 2011-04-29  Eric Blake  <eblake@redhat.com>
11872
11873         quotearg: avoid uninitialized variable use
11874         * lib/quotearg.c (quoting_options_from_style): Initialize
11875         remaining fields, and ensure that custom styles are only used via
11876         quoting_options rather than quoting_style.
11877
11878 2011-04-29  Jim Meyering  <meyering@redhat.com>
11879
11880         maint.mk: remove unused VC-tag variable
11881         * top/maint.mk (VC-tag): Remove unused variable.
11882
11883 2011-04-29  Bruno Haible  <bruno@clisp.org>
11884
11885         netdb: fix gai_strerror replacements
11886         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
11887         * modules/netdb: Substitute it.
11888
11889 2011-04-29  Jim Meyering  <meyering@redhat.com>
11890
11891         test-getcwd.c: avoid new set-but-not-used warning
11892         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
11893         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
11894         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
11895         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
11896
11897         test-hash.c: avoid a new shadowing warning
11898         * tests/test-hash.c (main): Don't shadow "dup".
11899
11900 2011-04-28  Eric Blake  <eblake@redhat.com>
11901
11902         getaddrinfo: fix gai_strerror signature
11903         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
11904         and work around mingw with UNICODE defined.
11905         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
11906         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
11907         * modules/netdb (Makefile.am): Substitute it.
11908         * lib/netdb.in.h (gai_strerror): Declare replacement.
11909         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
11910         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
11911         the fix.
11912
11913         getsockopt: avoid compiler warning
11914         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
11915         Reported by Matthias Bolte.
11916
11917         tests: drop unused link dependency
11918         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
11919         * modules/dirent-safer-tests (Makefile.am): Likewise.
11920         * modules/fdopendir-tests (Makefile.am): Likewise.
11921         * modules/mkfifoat-tests (Makefile.am): Likewise.
11922         * modules/openat-safer-tests (Makefile.am): Likewise.
11923         * modules/openat-tests (Makefile.am): Likewise.
11924         * modules/readlinkat-tests (Makefile.am): Likewise.
11925         * modules/symlinkat-tests (Makefile.am): Likewise.
11926         * modules/linkat-tests (Makefile.am): Likewise.
11927         (Depends-on): Switch to filenamecat-lgpl.
11928         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
11929         LIBINTL.
11930         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
11931         * tests/test-linkat.c (main): Don't require xalloc.
11932
11933         hash, mgetgroups: drop xalloc dependency
11934         * lib/hash.c (includes): Adjust includes.
11935         * lib/mgetgroups.c (includes): Likewise.
11936         (xgetgroups): Move...
11937         * lib/xgetgroups.c: ...to new file.
11938         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
11939         * modules/xgetgroups: New file, split from...
11940         * modules/mgetgroups: ...here.
11941         (Depends-on): Add xalloc-oversized.
11942         * modules/hash (Depends-on): Likewise.
11943         * modules/hash-tests (Depends-on): Drop xalloc.
11944         (test_hash_LDADD): Drop unused library.
11945         * tests/test-hash.c (main): Break xalloc dependency.
11946         (includes): Drop unused include.
11947
11948         xalloc-oversized: new module
11949         * modules/xalloc-oversized: New module.
11950         * modules/xalloc (Depends-on): Add it.
11951         * lib/xalloc.h (xalloc_oversized): Move...
11952         * lib/xalloc-oversized.h: ...into new file.
11953
11954         utimecmp: drop dependency on xmalloc
11955         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
11956         due to memory pressure.
11957         * modules/utimecmp (Depends-on): Drop xalloc.
11958
11959 2011-04-27  Eric Blake  <eblake@redhat.com>
11960
11961         getcwd: fix mingw bugs
11962         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
11963         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
11964         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
11965
11966 2011-04-27  Bruno Haible  <bruno@clisp.org>
11967
11968         mkstemps: Ensure declaration on MacOS X 10.5.
11969         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
11970         * doc/glibc-functions/mkstemps.texi: Document header file problem on
11971         MacOS X.
11972
11973 2011-04-27  Bruno Haible  <bruno@clisp.org>
11974
11975         mkstemp: More documentation.
11976         * doc/posix-functions/mkstemp.texi: Document header file problem on
11977         MacOS X.
11978
11979 2011-04-27  Bruno Haible  <bruno@clisp.org>
11980
11981         mkstemp: Tweak configure message when cross-compiling.
11982         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
11983         result as a guess.
11984
11985 2011-04-27  Bruno Haible  <bruno@clisp.org>
11986
11987         clean-temp: Clarify what it does.
11988         * lib/clean-temp.h: Add more comments.
11989         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
11990         module.
11991         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
11992         * doc/glibc-functions/mkstemps.texi: Likewise.
11993         * doc/glibc-functions/mkostemps.texi: Likewise.
11994
11995 2011-04-27  Eric Blake  <eblake@redhat.com>
11996
11997         fchdir: avoid extra chdir and fix test
11998         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
11999         getcwd-lgpl.
12000         * lib/fchdir.c (get_name): Any absolute name will do; it does not
12001         have to be canonical.
12002         (canonicalize_file_name): Drop unused macro.
12003         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
12004
12005         filenamecat-lgpl: fix licence
12006         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
12007         when it was first created.
12008
12009         linkat, renameat: add missing dependency
12010         * modules/linkat (Depends-on): Require getcwd-lgpl.
12011         * modules/renameat (Depends-on): Likewise.
12012
12013         tests: reduce dependencies
12014         * tests/test-linkat.c (main): Use lighter-weight getcwd.
12015         * tests/test-renameat.c (main): Likewise.
12016         * modules/linkat-tests (Depends-on): Relax dependency.
12017         * modules/renameat-tests (Depends-on): Likewise.
12018         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
12019         dependency explicit.
12020
12021         save-cwd: reduce default dependency
12022         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
12023         * lib/save-cwd.c: Update comments.
12024         * NEWS: Document the semantic change.
12025
12026         getcwd: enhance tests
12027         * tests/test-getcwd-lgpl.c: New file, taken from...
12028         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
12029         repeat long path stress tests from m4 probe.
12030         * modules/getcwd-lgpl-tests: New module.
12031         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
12032         * m4/getcwd-abort-bug.m4: Update comment.
12033         * m4/getcwd-path-max.m4: Likewise.
12034
12035         getcwd-lgpl: new module
12036         * modules/getcwd-lgpl: New module.
12037         * lib/getcwd-lgpl.c: New file.
12038         * doc/posix-functions/getcwd.texi (getcwd): Document it.
12039         * MODULES.html.sh (lacking POSIX:2008): Likewise.
12040         * modules/getcwd (configure.ac): Set C witness.
12041         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
12042
12043         getcwd: tweak comments
12044         * m4/getcwd-abort-bug.m4: Fix comments.
12045         * m4/getcwd-path-max.m4: Likewise.
12046         * m4/getcwd.m4: Likewise.
12047
12048 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
12049         and Eric Blake  <eblake@redhat.com>
12050
12051         mkstemp: replace if system version uses wrong permissions
12052         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
12053         read/write mode bits set in file created by mkstemp.
12054         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
12055
12056 2011-04-27  Eric Blake  <eblake@redhat.com>
12057
12058         passfd: avoid compiler warning
12059         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
12060         Reported by Laine Stump.
12061
12062 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
12063
12064         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
12065         required by the NetBSD (and perhaps other 4.4BSD derived) join.
12066
12067 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
12068         and Eric Blake  <eblake@redhat.com>
12069
12070         mkstemp: mention clean-temp module
12071         * lib/mkstemp.c: Add comment.
12072         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
12073
12074 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
12075
12076         inttypes: also provide default values for 32-bit tests
12077         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
12078         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
12079
12080 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
12081
12082         strtoumax: remove dependency on strtoimax
12083         This is like the strtoull change of yesterday.
12084         * modules/strtoumax (Files): Add lib/strtoimax.c.
12085         (Depends-on): Remove strtoimax and add verify.
12086
12087         inttypes-incomplete: new module
12088         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
12089         all but the PRI* and SCN* parts of gl_INTTYPES_H.
12090         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
12091         of gl_INTTYPES_H.
12092         (gl_INTTYPES_H): Rewrite in terms of these new macros.
12093         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
12094         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
12095         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
12096         * modules/strtoumax, modules/xstrtol (Depends-on):
12097         Depend on inttypes-incomplete, not inttypes.
12098         * modules/inttypes-incomplete: New module, containing the contents
12099         of the old modules/inttypes module, except that the Files: section
12100         omits m4/inttypes-pri.m4, and the configure.ac section invokes
12101         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
12102         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
12103         (Depends-on): Depend only on inttypes-incomplete.
12104         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
12105
12106         inttypes: omit now-redundant strtoimax and strtoumax work
12107         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
12108         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
12109
12110         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
12111         This supports apps that need pointers to strtoimax and strtoumax,
12112         and ports to HP-UX 11.00 64.bit, which has macros that expand to
12113         nonexistent functions.  See
12114         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
12115         et seq.
12116         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
12117         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
12118         a macro.
12119         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
12120
12121 2011-04-25  Simon Josefsson  <simon@josefsson.org>
12122
12123         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
12124
12125 2011-04-25  Bruno Haible  <bruno@clisp.org>
12126
12127         strtol, strtoul: Mark modules as obsolete.
12128         * modules/strtol (Status, Notice): New sections.
12129         * modules/strtoul (Status, Notice): New sections.
12130
12131 2011-04-25  Bruno Haible  <bruno@clisp.org>
12132
12133         strtod: Remove check for strtod, unless supporting old platforms.
12134         * modules/strtod-obsolete: New file.
12135         * m4/strtod-obsolete.m4: New file.
12136         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
12137         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
12138         * modules/strtod (Depends-on): Add strtod-obsolete.
12139         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
12140
12141 2011-04-25  Bruno Haible  <bruno@clisp.org>
12142
12143         strcase: Make module obsolete.
12144         * modules/strcase (Status, Notice): New sections.
12145
12146 2011-04-25  Bruno Haible  <bruno@clisp.org>
12147
12148         dup2: Remove check for dup2, unless supporting old obsolete platforms.
12149         * modules/dup2-obsolete: New file.
12150         * m4/dup2-obsolete.m4: New file.
12151         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
12152         gl_FUNC_DUP2_OBSOLETE is not also defined.
12153         * modules/dup2 (Depends-on): Add dup2-obsolete.
12154         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
12155
12156 2011-04-25  Bruno Haible  <bruno@clisp.org>
12157
12158         strnlen: Avoid memchr related link error on old obsolete platforms.
12159         * modules/memchr-obsolete: New file.
12160         * m4/memchr-obsolete.m4: New file.
12161         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
12162         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
12163         * modules/memchr (Depends-on): Add memchr-obsolete.
12164         * modules/strnlen (Depends-on): Likewise.
12165         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
12166
12167 2011-04-25  Jim Meyering  <meyering@redhat.com>
12168
12169         maint.mk: makefile_at_at_check extend and clean up
12170         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
12171         in addition to */Makefile.am.
12172         Exempt legitimate uses of @VAR@ notation, e.g.,
12173         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
12174         Remove obsolete coreutils-specific comment.
12175         Prompted by discussion here:
12176         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
12177
12178 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
12179
12180         strtoul: remove dependency on strtol
12181         This is so that 'configure' need not check for strtol merely because
12182         the application needs strtoul.
12183         * modules/strtoul (Files): Add lib/strtol.c.
12184         (Depends-on): Remove strtol.
12185
12186         strtoull: remove dependency on strtoul
12187         This is like the strtoll change.
12188         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
12189         (Depends-on): Remove strtoul.
12190
12191         strtoll: remove dependency on strtol
12192         This is so that 'configure' need not check for strtol merely because
12193         the application needs strtoll.
12194         * modules/strtoll (Files): Add lib/strtol.c.
12195         (Depends-on): Remove strtol.
12196
12197 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12198
12199         inttypes: Move some configure check to module 'imaxdiv'.
12200         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
12201         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
12202         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
12203
12204 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12205
12206         inttypes: Move some configure check to module 'imaxabs'.
12207         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
12208         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
12209         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
12210
12211 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12212
12213         inttypes: Remove configure tests that are not needed since 2009-12-31.
12214         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
12215         gl_cv_header_working_inttypes_h.
12216
12217 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12218
12219         * modules/strnlen (Depends-on): Remove memchr.
12220         The strnlen implementation doesn't need the memchr module's fixes; see
12221         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
12222
12223         strtol: remove dependency on wchar
12224         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
12225         * modules/strtol (Depends-on): Remove wchar.
12226
12227 2011-04-21  Eric Blake  <eblake@redhat.com>
12228
12229         passfd: fix test regression on Linux
12230         * modules/passfd-tests (configure.ac): Correct socketpair check.
12231
12232         passfd: speed up configure and drop unused code
12233         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
12234         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
12235         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
12236         Instead of probing at configure for unix_scm_rights_bsd44_way,
12237         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
12238         check to a struct member probe.
12239         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
12240         (sendfd, recvfd): Update preprocessor checks.
12241         * modules/passfd (Files): Reflect rename, and drop unused file.
12242         (Depends-on): Drop unused dependency.
12243
12244         passfd: allow compilation on mingw
12245         * modules/sys_socket (Depends-on): Add sys_uio.
12246         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
12247         iovec and a minimal struct msghdr.
12248         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
12249         * tests/test-sys_socket.c (main): Enhance test.
12250         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
12251         guaranteed to provide what we need.
12252         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
12253         * modules/passfd-tests (Depends-on): Add sys_wait.
12254         * tests/test-passfd.c (main): Skip test on mingw, for now.
12255         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
12256         partial 'struct msghdr' implementation.
12257
12258         sys_uio: new module
12259         * modules/sys_uio: New module.
12260         * modules/sys_uio-tests: Likewise.
12261         * lib/sys_uio.in.h: New file.
12262         * m4/sys_uio_h.m4: Likewise.
12263         * tests/test-sys_uio.c: Likewise.
12264         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
12265         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
12266
12267 2011-04-20  Jim Meyering  <meyering@redhat.com>
12268
12269         useless-if-before-free: avoid false-positive
12270         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
12271         disjunct so that it too requires a terminating ";".  Without that,
12272         this script would identify as useless one statement from gcc that
12273         was not:
12274           if (aligned_ptr)
12275             free (((void **) aligned_ptr) [-1]);
12276
12277 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
12278
12279         doc: update users.txt.
12280         * users.txt: Add barcode.
12281
12282 2011-04-19  Bruno Haible  <bruno@clisp.org>
12283
12284         ioctl: Remove link dependency on native Windows.
12285         * lib/fd-hook.h: Renamed from lib/close-hook.h.
12286         (gl_close_fn, gl_ioctl_fn): New types.
12287         (struct fd_hook): Renamed from struct close_hook. Change type of
12288         private_close_fn field. Add private_ioctl_fn field.
12289         (close_hook_fn): Add parameter for primary close method.
12290         (execute_close_hooks, execute_all_close_hooks): Likewise.
12291         (ioctl_hook_fn): New type.
12292         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
12293         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
12294         argument.
12295         (unregister_fd_hook): Renamed from unregister_close_hook.
12296         * lib/fd-hook.c: Renamed from lib/close-hook.c.
12297         Don't include <unistd.h>.
12298         (close): Remove undef.
12299         (anchor): Update.
12300         (execute_close_hooks): Add argument for primary close method.
12301         (execute_all_close_hooks): Likewise.
12302         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
12303         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
12304         argument. Allow each argument to be NULL.
12305         (unregister_fd_hook): Renamed from unregister_close_hook.
12306         * lib/close.c (rpl_close): Pass 'close' function pointer to
12307         execute_all_close_hooks.
12308         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
12309         (primary_ioctl): New function.
12310         (ioctl): Don't call ioctlsocket here. Instead, call
12311         execute_all_ioctl_hooks.
12312         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
12313         close method.
12314         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
12315         (fd_sockets_hook): Renamed from close_sockets_hook.
12316         (gl_sockets_startup, gl_sockets_cleanup): Update.
12317         * modules/fd-hook: Renamed from modules/close-hook. Update.
12318         * modules/close (Depends-on): Add fd-hook, remove close-hook.
12319         * modules/sockets (Depends-on): Likewise.
12320         * modules/ioctl (Depends-on): Add fd-hook.
12321         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
12322         GNULIB_SOCKET.
12323
12324 2011-04-19  Bruno Haible  <bruno@clisp.org>
12325
12326         Move the support of O_NONBLOCK in open() to the 'open' module.
12327         * modules/nonblocking (Depends-on): Remove 'open'.
12328         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
12329         gl_cv_have_open_O_NONBLOCK.
12330         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
12331         O_NONBLOCK support.
12332         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
12333
12334 2011-04-17  Bruno Haible  <bruno@clisp.org>
12335
12336         pipe2: Simplify code.
12337         * lib/pipe2.c (pipe2): Reduce code duplication.
12338
12339 2011-04-17  Bruno Haible  <bruno@clisp.org>
12340
12341         nonblocking: Add comment.
12342         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
12343
12344 2011-04-17  Bruno Haible  <bruno@clisp.org>
12345
12346         nonblocking: Add tests for sockets.
12347         * tests/test-nonblocking-socket.sh: New file.
12348         * tests/test-nonblocking-socket-main.c: New file.
12349         * tests/test-nonblocking-socket-child.c: New file.
12350         * tests/test-nonblocking-socket.h: New file.
12351         * tests/socket-server.h: New file.
12352         * tests/socket-client.h: New file.
12353         * modules/nonblocking-socket-tests: New file.
12354         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
12355
12356 2011-04-17  Bruno Haible  <bruno@clisp.org>
12357
12358         nonblocking: Add tests for pipes.
12359         * tests/test-nonblocking-pipe.sh: New file.
12360         * tests/test-nonblocking-pipe-main.c: New file.
12361         * tests/test-nonblocking-pipe-child.c: New file.
12362         * tests/test-nonblocking-pipe.h: New file.
12363         * tests/test-nonblocking-writer.h: New file.
12364         * tests/test-nonblocking-reader.h: New file.
12365         * tests/test-nonblocking-misc.h: New file.
12366         * modules/nonblocking-pipe-tests: New file.
12367         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
12368
12369 2011-04-16  Bruno Haible  <bruno@clisp.org>
12370
12371         gettext: Clarify the needed programmer actions.
12372         * modules/gettext (Notice): New field.
12373         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
12374
12375 2011-04-16  Bruno Haible  <bruno@clisp.org>
12376
12377         strchrnul: Tweak last commit.
12378         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
12379         bug.
12380         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
12381         as in _GL_FUNCDECL_SYS.
12382         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
12383         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
12384
12385 2011-04-15  Eric Blake  <eblake@redhat.com>
12386
12387         strchrnul: work around cygwin bug
12388         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
12389         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
12390         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
12391         * modules/string (Makefile.am): Substitute it.
12392         * lib/string.in.h (strchrnul): Use it.
12393
12394 2011-04-15  Bruno Haible  <bruno@clisp.org>
12395
12396         Don't require lib/stdio-write.c when only module 'stdio' is used.
12397         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
12398         invocation.
12399         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
12400
12401 2011-04-14  Bruno Haible  <bruno@clisp.org>
12402
12403         Support non-blocking pipe I/O in read() on native Windows.
12404         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
12405         (read): New declaration.
12406         * lib/read.c: New file.
12407         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
12408         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
12409         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
12410         vscanf): New declarations.
12411         * lib/stdio-read.c: New file.
12412         * m4/read.m4: New file.
12413         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
12414         REPLACE_READ.
12415         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
12416         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12417         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
12418         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
12419         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
12420         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12421         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
12422         * modules/read: New file.
12423         * modules/nonblocking (Files): Add lib/stdio-read.c.
12424         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
12425         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
12426         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12427         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
12428         * modules/pread (Depends-on): Add read.
12429         * modules/safe-read (Depends-on): Likewise.
12430         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
12431         gets, scanf, vfscanf, vscanf): Verify signatures.
12432         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
12433         problem with non-blocking pipes.
12434         * doc/posix-functions/fgetc.texi: Likewise.
12435         * doc/posix-functions/fgets.texi: Likewise.
12436         * doc/posix-functions/fread.texi: Likewise.
12437         * doc/posix-functions/fscanf.texi: Likewise.
12438         * doc/posix-functions/getc.texi: Likewise.
12439         * doc/posix-functions/getchar.texi: Likewise.
12440         * doc/posix-functions/gets.texi: Likewise.
12441         * doc/posix-functions/scanf.texi: Likewise.
12442         * doc/posix-functions/vfscanf.texi: Likewise.
12443         * doc/posix-functions/vscanf.texi: Likewise.
12444
12445 2011-04-14  Bruno Haible  <bruno@clisp.org>
12446
12447         Support non-blocking pipe I/O in write() on native Windows.
12448         * lib/write.c (rpl_write): Split a write request that failed merely
12449         because the byte count was larger than the pipe buffer's size.
12450         * doc/posix-functions/write.texi: Mention the problem with large byte
12451         counts.
12452
12453 2011-04-14  Bruno Haible  <bruno@clisp.org>
12454
12455         wchar: Ensure that wchar_t gets defined on uClibc.
12456         * lib/wchar.in.h: On uClibc, include <stddef.h>.
12457         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
12458
12459 2011-04-13  Bruno Haible  <bruno@clisp.org>
12460
12461         safe-write, full-read: Avoid unnecessary compilation units.
12462         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
12463         (Depends-on): Remove safe-read. Add ssize_t.
12464         * modules/full-read (Files): Add lib/full-write.c.
12465         (Depends-on): Add full-write.
12466
12467 2011-04-13  Bruno Haible  <bruno@clisp.org>
12468
12469         Support non-blocking pipe I/O and SIGPIPE in pwrite().
12470         * modules/pwrite (Depends-on): Add 'write'.
12471
12472 2011-04-13  Bruno Haible  <bruno@clisp.org>
12473
12474         Support non-blocking pipe I/O in write() on native Windows.
12475         * lib/unistd.in.h (write): Enable replacement also if
12476         GNULIB_UNISTD_H_NONBLOCKING is 1.
12477         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
12478         (rpl_write): When failing to write on a non-blocking pipe, change
12479         errno from ENOSPC to EAGAIN.
12480         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
12481         putchar, puts, vfprintf, vprintf): Enable replacement also if
12482         GNULIB_STDIO_H_NONBLOCKING is 1.
12483         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
12484         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
12485         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
12486         CALL_WITH_SIGPIPE_EMULATION.
12487         (CALL_WITH_SIGPIPE_EMULATION): Use them.
12488         * m4/nonblocking.m4: New file.
12489         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
12490         for non-blocking I/O support.
12491         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12492         GNULIB_UNISTD_H_NONBLOCKING.
12493         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
12494         required for non-blocking I/O support.
12495         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
12496         * modules/nonblocking (Files): Add m4/nonblocking.m4,
12497         lib/stdio-write.c, m4/asm-underscore.m4.
12498         (Depends-on): Add stdio, unistd.
12499         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
12500         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
12501         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
12502         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
12503         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
12504         problem with non-blocking pipes.
12505         * doc/posix-functions/fputc.texi: Likewise.
12506         * doc/posix-functions/fputs.texi: Likewise.
12507         * doc/posix-functions/fwrite.texi: Likewise.
12508         * doc/posix-functions/printf.texi: Likewise.
12509         * doc/posix-functions/putc.texi: Likewise.
12510         * doc/posix-functions/putchar.texi: Likewise.
12511         * doc/posix-functions/puts.texi: Likewise.
12512         * doc/posix-functions/vfprintf.texi: Likewise.
12513         * doc/posix-functions/vprintf.texi: Likewise.
12514         * doc/posix-functions/write.texi: Likewise.
12515
12516 2011-04-10  Jim Meyering  <meyering@redhat.com>
12517
12518         maint.mk: prohibit doubled words
12519         Detect them also when they're separated by a newline.
12520         There are 3 ways to customize it:
12521           - disable the test on a per file basis, as usual with rules using
12522             $(VC_LIST_EXCEPT)
12523           - replace the default doubled-word-selecting regexp (affects all files)
12524           - ignore a particular file-vs-doubled-word match
12525         I nearly used that last one to ignore the "is is" match in
12526         coreutils' NEWS file, since the text was "ls -is is ..."
12527         To do that, I would have added this line to cfg.mk:
12528           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
12529         but it would have ignored any "is is" match in NEWS.
12530         Low probability, but still...
12531         Instead, I changed the text, slightly:
12532           -  ls -is is now consistent with ls -lis in ignoring values returned
12533           +  "ls -is" is now consistent with ls -lis in ignoring values returned
12534         * top/maint.mk (prohibit_double_word_RE_): Provide default.
12535         (prohibit_doubled_word_): Define.
12536         (sc_prohibit_doubled_word): New rule.
12537         (sc_prohibit_the_the): Remove.  Subsumed by the above.
12538
12539 2011-04-10  Jim Meyering  <meyering@redhat.com>
12540
12541         maint: fix doubled-word typo in comment
12542         * m4/gethostname.m4: s/is is/it is/
12543         * m4/getdomainname.m4: Likewise.
12544
12545 2011-04-10  Jim Meyering  <meyering@redhat.com>
12546
12547         maint: remove doubled word: s/it it/it/
12548         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
12549
12550 2011-04-10  Jim Meyering  <meyering@redhat.com>
12551
12552         maint.mk: remove useless semicolon and backslash
12553         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
12554         semicolon and backslash.
12555
12556 2011-04-10  Bruno Haible  <bruno@clisp.org>
12557
12558         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
12559         * modules/stdint-tests (Depends-on): Add wchar.
12560
12561 2011-04-10  Jim Meyering  <meyering@redhat.com>
12562
12563         maint: remove doubled words in comments, e.g., s/a a/a/
12564         * lib/strptime.c (day_of_the_week): s/the the/the/
12565         * tests/test-chown.h (test_chown): s/a a/a/
12566
12567         test-chown.h: correct a cast
12568         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
12569         when the destination is a stat.st_gid.
12570
12571 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
12572
12573         getaddrinfo: Fix test for sa_len member.
12574         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
12575         include <sys/types.h> before <sys/socket.h>.
12576
12577 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
12578
12579         maint: change "can not" to "cannot"
12580         * doc/posix-functions/iconv.texi (iconv): This one crossed line
12581         boundaries.
12582
12583 2011-04-09  Jim Meyering  <meyering@redhat.com>
12584
12585         maint: change "a a" to "a"
12586         * tests/test-lchown.h (test_lchown): s/a a/a/
12587
12588         maint.mk: prohibit \<the the\>
12589         * top/maint.mk (sc_prohibit_the_the): New rule.
12590
12591         maint: fix "the the" in comment
12592         * lib/count-one-bits.h: s/the the/the/
12593
12594         maint: change "can not" to "cannot"
12595         But do not change the occurrences in maintain.texi or in
12596         build-aux/po/Makefile.in.in, which I presume comes from gettext.
12597         * doc/gnulib-tool.texi: s/can not/cannot/
12598         * doc/posix-functions/accept.texi (accept): Likewise.
12599         * doc/posix-functions/socket.texi (socket): Likewise.
12600         * lib/mbrtowc.c: Likewise.
12601
12602         maint.mk: prohibit use of "can not"
12603         * top/maint.mk (sc_prohibit_can_not): New rule.
12604         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
12605
12606 2011-04-09  Bruno Haible  <bruno@clisp.org>
12607
12608         careadlinkat: Guard against misuse of careadlinkatcwd.
12609         * lib/careadlinkat.c: Include <stdlib.h>.
12610         (careadlinkatcwd): Check that the fd argument is as expected.
12611
12612 2011-04-09  Bruno Haible  <bruno@clisp.org>
12613
12614         careadlinkat: Use common coding style.
12615         * lib/careadlinkat.c: Move gnulib includes after system includes.
12616
12617 2011-04-09  Bruno Haible  <bruno@clisp.org>
12618
12619         careadlinkat: Clarify specification.
12620         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
12621         (careadlinkatcwd): Add comment.
12622         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
12623
12624 2011-04-09  Bruno Haible  <bruno@clisp.org>
12625
12626         areadlinkat: Avoid link error on many platforms.
12627         * modules/areadlinkat (Depends-on): Add areadlink.
12628
12629 2011-04-09  Bruno Haible  <bruno@clisp.org>
12630
12631         allocator, careadlinkat: Fix double-inclusion guard.
12632         * lib/allocator.h: Fix double-inclusion guard.
12633         * lib/careadlinkat.h: Likewise.
12634
12635 2011-04-09  Bruno Haible  <bruno@clisp.org>
12636
12637         relocatable-prog-wrapper: Update after module 'areadlink' changed.
12638         * lib/relocwrapper.c: Update dependencies hierarchy.
12639         * build-aux/install-reloc: Update list of files to be compiled.
12640         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
12641         lib/allocator.[hc].
12642
12643 2011-04-08  Eric Blake  <eblake@redhat.com>
12644
12645         strftime: silence gnulib-tool warning
12646         * modules/strftime-tests (Depends-on): Drop automatic dependency.
12647
12648 2011-04-08  Bruno Haible  <bruno@clisp.org>
12649
12650         verify: Fix syntax error with GCC 4.6 in C++ mode.
12651         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
12652         (HAVE_STATIC_ASSERT): New macro.
12653         (verify_true, verify): Use 'static_assert' if it is supported and
12654         '_Static_assert' is not supported.
12655
12656 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
12657
12658         allocator: New module.
12659         * modules/allocator, lib/allocator.c: New files.
12660         * lib/allocator.h (stdlib_allocator): New decl.
12661         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
12662         Remove.  Do not include <stdlib.h>.
12663         (careadlinkat): Use stdlib_allocator instead of rolling our own.
12664         * modules/careadlinkat (Files): Remove lib/allocator.h.
12665         (Depends-on): Add allocator.
12666
12667         stdlib: let modules use system malloc, realloc
12668         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
12669         if !_GL_USE_STDLIB_ALLOC.
12670         (malloc, realloc): Limit this change to a smaller scope.
12671
12672         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
12673         (malloc, realloc): Don't #undef; no longer needed.
12674         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12675         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12676         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12677         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12678         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12679         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12680         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12681         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12682
12683         careadlinkat: rename members to avoid problem
12684         * lib/allocator.h (struct allocator): Rename members from
12685         malloc/realloc to allocate/reallocate, to avoid problems if malloc
12686         and realloc are #define'd.  Reported by Eric Blake in
12687         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
12688         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
12689
12690 2011-04-08  Eric Blake  <eblake@redhat.com>
12691
12692         nonblocking: reduce dependency
12693         * tests/test-nonblocking.c: Only test sockets when in use.
12694         * modules/nonblocking-tests (Depends-on): Drop socket.
12695         (Makefile.am): Link even if sockets are not present.
12696         * modules/pipe2-tests (Makefile.am): Likewise.
12697         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
12698
12699         pipe2: fix O_NONBLOCK support on mingw
12700         * modules/pipe2 (Depends-on): Add nonblocking.
12701         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
12702         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
12703         * tests/test-nonblocking.c (main): Likewise.
12704         * modules/pipe2-tests (Makefile.am): Avoid link failure.
12705
12706         fcntl-h: fix O_ACCMODE on cygwin
12707         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
12708         * lib/fcntl.in.h (O_ACCMODE): Fix it.
12709
12710         pipe-filter: drop O_NONBLOCK workarounds
12711         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
12712         * modules/pipe-filter-ii (Depends-on): Likewise.
12713         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
12714
12715         nonblocking: provide O_NONBLOCK for mingw
12716         * modules/nonblocking (Depends-on): Add open.
12717         (configure.ac): Set new witness macro.
12718         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
12719         * modules/fcntl-h (Makefile.am): Substitute it.
12720         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
12721         nonblocking module is in use.
12722         * lib/nonblocking.c: Adjust portability test.
12723         * lib/open.c (open): Don't let native open see gnulib flag.
12724         * tests/test-fcntl-h.c (main): Enhance test.
12725         * tests/test-open.h (test_open): Likewise.
12726         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
12727
12728         careadlinkat: fix compilation error on mingw
12729         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
12730         within struct allocator.
12731
12732 2011-04-06  Eric Blake  <eblake@redhat.com>
12733
12734         binary-io: relicense under LGPLv2+
12735         * modules/binary-io (License): Relax to LGPLv2+.
12736         Requested for libvirt, and required by pipe2.
12737
12738 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
12739
12740         verify: use _Static_assert if available
12741         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
12742         (verify_true, verify): Use it if available.  This generates better
12743         diagnostics with GCC 4.6.0 and later.
12744
12745 2011-04-05  Bruno Haible  <bruno@clisp.org>
12746
12747         Remove leftover generated .h files after config.status changed.
12748
12749         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
12750         GL_GENERATE_ALLOCA_H.
12751         * modules/alloca-opt (Makefile.am): Remove alloca.h if
12752         GL_GENERATE_ALLOCA_H evaluates to false.
12753
12754         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
12755         GL_GENERATE_ARGZ_H.
12756         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
12757         evaluates to false.
12758
12759         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
12760         GL_GENERATE_BYTESWAP_H.
12761         * modules/byteswap (Makefile.am): Remove byteswap.h if
12762         GL_GENERATE_BYTESWAP_H evaluates to false.
12763
12764         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
12765         GL_GENERATE_ERRNO_H.
12766         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
12767         evaluates to false.
12768
12769         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
12770         GL_GENERATE_FLOAT_H.
12771         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
12772         evaluates to false.
12773
12774         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
12775         GL_GENERATE_FNMATCH_H.
12776         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
12777         GL_GENERATE_FNMATCH_H evaluates to false.
12778
12779         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
12780         GL_GENERATE_GLOB_H.
12781         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
12782         evaluates to false.
12783
12784         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
12785         automake conditional GL_GENERATE_ICONV_H.
12786         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
12787         evaluates to false.
12788
12789         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
12790         GL_GENERATE_NETINET_IN_H.
12791         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
12792         GL_GENERATE_NETINET_IN_H evaluates to false.
12793
12794         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
12795         conditional GL_GENERATE_PTHREAD_H.
12796         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
12797         * modules/pthread (Makefile.am): Remove pthread.h if
12798         GL_GENERATE_PTHREAD_H evaluates to false.
12799
12800         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
12801         GL_GENERATE_SCHED_H.
12802         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
12803         evaluates to false.
12804
12805         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
12806         conditional GL_GENERATE_SELINUX_CONTEXT_H.
12807         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
12808         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
12809
12810         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
12811         GL_GENERATE_STDARG_H.
12812         * modules/stdarg (Makefile.am): Remove stdarg.h if
12813         GL_GENERATE_STDARG_H evaluates to false.
12814
12815         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
12816         GL_GENERATE_STDBOOL_H.
12817         * modules/stdbool (Makefile.am): Remove stdbool.h if
12818         GL_GENERATE_STDBOOL_H evaluates to false.
12819
12820         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
12821         conditional GL_GENERATE_STDDEF_H.
12822         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
12823         * modules/stddef (Makefile.am): Remove stddef.h if
12824         GL_GENERATE_STDDEF_H evaluates to false.
12825
12826         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
12827         GL_GENERATE_STDINT_H.
12828         * modules/stdint (Makefile.am): Remove stdint.h if
12829         GL_GENERATE_STDINT_H evaluates to false.
12830
12831         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
12832         GL_GENERATE_SYSEXITS_H.
12833         * modules/sysexits (Makefile.am): Remove sysexits.h if
12834         GL_GENERATE_SYSEXITS_H evaluates to false.
12835
12836         Reported by Karl Berry and Ralf Wildenhues.
12837
12838 2011-04-05  Bruno Haible  <bruno@clisp.org>
12839
12840         Ensure to rebuild generated .h files when config.status has changed.
12841         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
12842         config.status.
12843         * modules/ctype (Makefile.am): Likewise.
12844         * modules/dirent (Makefile.am): Likewise.
12845         * modules/errno (Makefile.am): Likewise.
12846         * modules/fcntl-h (Makefile.am): Likewise.
12847         * modules/float (Makefile.am): Likewise.
12848         * modules/getopt-posix (Makefile.am): Likewise.
12849         * modules/glob (Makefile.am): Likewise.
12850         * modules/iconv-h (Makefile.am): Likewise.
12851         * modules/inttypes (Makefile.am): Likewise.
12852         * modules/langinfo (Makefile.am): Likewise.
12853         * modules/locale (Makefile.am): Likewise.
12854         * modules/math (Makefile.am): Likewise.
12855         * modules/netdb (Makefile.am): Likewise.
12856         * modules/netinet_in (Makefile.am): Likewise.
12857         * modules/poll-h (Makefile.am): Likewise.
12858         * modules/pthread (Makefile.am): Likewise.
12859         * modules/pty (Makefile.am): Likewise.
12860         * modules/sched (Makefile.am): Likewise.
12861         * modules/search (Makefile.am): Likewise.
12862         * modules/selinux-h (Makefile.am): Likewise.
12863         * modules/signal (Makefile.am): Likewise.
12864         * modules/spawn (Makefile.am): Likewise.
12865         * modules/stdarg (Makefile.am): Likewise.
12866         * modules/stdbool (Makefile.am): Likewise.
12867         * modules/stddef (Makefile.am): Likewise.
12868         * modules/stdint (Makefile.am): Likewise.
12869         * modules/stdio (Makefile.am): Likewise.
12870         * modules/stdlib (Makefile.am): Likewise.
12871         * modules/string (Makefile.am): Likewise.
12872         * modules/strings (Makefile.am): Likewise.
12873         * modules/sys_file (Makefile.am): Likewise.
12874         * modules/sys_ioctl (Makefile.am): Likewise.
12875         * modules/sys_select (Makefile.am): Likewise.
12876         * modules/sys_socket (Makefile.am): Likewise.
12877         * modules/sys_stat (Makefile.am): Likewise.
12878         * modules/sys_time (Makefile.am): Likewise.
12879         * modules/sys_times (Makefile.am): Likewise.
12880         * modules/sys_utsname (Makefile.am): Likewise.
12881         * modules/sys_wait (Makefile.am): Likewise.
12882         * modules/sysexits (Makefile.am): Likewise.
12883         * modules/termios (Makefile.am): Likewise.
12884         * modules/time (Makefile.am): Likewise.
12885         * modules/unistd (Makefile.am): Likewise.
12886         * modules/wchar (Makefile.am): Likewise.
12887         * modules/wctype-h (Makefile.am): Likewise.
12888         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
12889
12890 2011-04-05  Bruno Haible  <bruno@clisp.org>
12891
12892         pipe2: Relicense under LGPLv2+.
12893         * modules/pipe2 (License): Change to LGPLv2+.
12894         Requested by Eric Blake, for libvirt.
12895
12896 2011-04-05  Bruce Korb  <bkorb@gnu.org>
12897
12898         bootstrap: compute gnulib_extra_files after updating build_aux
12899         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
12900         change build_aux or also supply gnulib_extra_files.  Handle correctly.
12901
12902 2011-04-05  Eric Blake  <eblake@redhat.com>
12903
12904         bootstrap: preserve git whitelist item sorting
12905         * build-aux/bootstrap (sort_patterns): New function.
12906         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
12907
12908 2011-04-05  Simon Josefsson  <simon@josefsson.org>
12909
12910         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
12911         sc_space_tab check.
12912
12913 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
12914
12915         areadlink, areadlinkat: rewrite in terms of careadlinkat
12916         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
12917         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
12918         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
12919         (malloc, realloc): Remove #undefs.
12920         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
12921         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
12922         readlink, ssize_t, stdint, unistd.
12923         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
12924         areadlink, stdint.
12925
12926         careadlinkat: new module
12927         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
12928         * modules/careadlinkat: New files, written by me with
12929         a review and feedback from Ben Pfaff in
12930         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
12931
12932 2011-04-01  Bruno Haible  <bruno@clisp.org>
12933
12934         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
12935         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
12936         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
12937         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
12938         Reported by Bruce Korb <bruce.korb@gmail.com>.
12939
12940 2011-04-01  Bruno Haible  <bruno@clisp.org>
12941
12942         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
12943         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
12944         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
12945         * modules/wcpcpy (Depends-on): Add extensions.
12946         * modules/wcpncpy (Depends-on): Likewise.
12947         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
12948         systems.
12949         * doc/posix-functions/wcpncpy.texi: Likewise.
12950         * doc/posix-functions/wcwidth.texi: Likewise.
12951
12952 2011-03-31  Eric Blake  <eblake@redhat.com>
12953
12954         nonblocking: fix mingw test failures
12955         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
12956         non-blocking flag on regular file.
12957         (get_nonblocking_flag): Set errno on invalid fd.
12958         * tests/test-nonblocking.c (main): Avoid test failure on
12959         directories if fchdir is not active.
12960         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
12961
12962 2011-03-31  Bruno Haible  <bruno@clisp.org>
12963
12964         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
12965         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
12966         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
12967         Reported by Simon Josefsson <simon@josefsson.org>.
12968
12969 2011-03-31  Bruno Haible  <bruno@clisp.org>
12970         and Eric Blake  <eblake@redhat.com>
12971
12972         nonblocking: new module
12973         * modules/nonblocking: New module.
12974         * modules/nonblocking-tests: Likewise.
12975         * lib/nonblocking.h: New file.
12976         * lib/nonblocking.c: Likewise.
12977         * tests/test-nonblocking.c: New test.
12978         * lib/ioctl.c (ioctl) [mingw]: Update comment.
12979
12980 2011-03-30  Bruno Haible  <bruno@clisp.org>
12981
12982         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
12983         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
12984         instead of 'printf' format for GCC >= 4.4.
12985         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
12986         (fprintf, printf, vfprintf, vprintf): Declare with
12987         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
12988         the system's vfprintf() function.
12989         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
12990
12991 2011-03-30  Eric Blake  <eblake@redhat.com>
12992
12993         passfd: fix scoping bug
12994         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
12995         before sendmsg/recvmsg.
12996
12997         passfd: standardize coding conventions
12998         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
12999         can be learned at compile time.
13000         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
13001         ifdefs.
13002         (sendfd, recvfd): Follow gnulib code conventions.
13003
13004         passfd: fix incorrect sendmsg arguments
13005         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
13006         incorrect msg_controllen value.
13007         * modules/passfd-tests (Depends-on): Check for alarm.
13008         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
13009         Reported by Bastien ROUCARIES.
13010
13011 2011-03-30  Bruno Haible  <bruno@clisp.org>
13012
13013         c-strcasestr: Relicense under LGPLv2+.
13014         * modules/c-strcasestr (License): Change to LGPLv2+.
13015         Requested by Eric Blake, for libvirt.
13016
13017 2011-03-30  Simon Josefsson  <simon@josefsson.org>
13018
13019         * users.txt: Add libidn2.  Fix libtasn1 link.
13020
13021 2011-03-30  Jim Meyering  <meyering@redhat.com>
13022
13023         tests: readlink* ("",... fails with EINVAL on newer kernels
13024         readlink and readlinkat have typically failed with ENOENT for
13025         the invalid, empty file name,  "".  However, with the advent
13026         of linux-2.6.39, they fail with EINVAL.
13027         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
13028         when operating on the empty file name.
13029         * tests/test-readlink.h (test_readlink): Likewise.
13030
13031 2011-03-29  Bruno Haible  <bruno@clisp.org>
13032
13033         Relicense some modules under LGPLv2+, for libidn2.
13034         * modules/array-mergesort (License): Change to LGPLv2+.
13035         * modules/c-strcaseeq (License): Likewise.
13036         * modules/striconveh (License): Likewise.
13037         * modules/striconveha (License): Likewise.
13038         * modules/uniconv/base (License): Likewise.
13039         * modules/uniconv/u8-conv-from-enc (License): Likewise.
13040         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
13041         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
13042         * modules/unictype/base (License): Likewise.
13043         * modules/unictype/bidiclass-of (License): Likewise.
13044         * modules/unictype/category-M (License): Likewise.
13045         * modules/unictype/category-none (License): Likewise.
13046         * modules/unictype/category-of (License): Likewise.
13047         * modules/unictype/category-test (License): Likewise.
13048         * modules/unictype/category-test-withtable (License): Likewise.
13049         * modules/unictype/combining-class (License): Likewise.
13050         * modules/unictype/joiningtype-of (License): Likewise.
13051         * modules/unictype/scripts (License): Likewise.
13052         * modules/uninorm/base (License): Likewise.
13053         * modules/uninorm/canonical-decomposition (License): Likewise.
13054         * modules/uninorm/composition (License): Likewise.
13055         * modules/uninorm/decompose-internal (License): Likewise.
13056         * modules/uninorm/decomposition-table (License): Likewise.
13057         * modules/uninorm/nfc (License): Likewise.
13058         * modules/uninorm/nfd (License): Likewise.
13059         * modules/uninorm/u32-normalize (License): Likewise.
13060         * modules/unistr/base (License): Likewise.
13061         * modules/unistr/u32-cpy (License): Likewise.
13062         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
13063         * modules/unistr/u32-to-u8 (License): Likewise.
13064         * modules/unistr/u32-uctomb (License): Likewise.
13065         * modules/unistr/u8-check (License): Likewise.
13066         * modules/unistr/u8-mblen (License): Likewise.
13067         * modules/unistr/u8-mbtouc (License): Likewise.
13068         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
13069         * modules/unistr/u8-mbtoucr (License): Likewise.
13070         * modules/unistr/u8-prev (License): Likewise.
13071         * modules/unistr/u8-strlen (License): Likewise.
13072         * modules/unistr/u8-to-u32 (License): Likewise.
13073         * modules/unistr/u8-uctomb (License): Likewise.
13074         * modules/unitypes (License): Likewise.
13075         Requested by Simon Josefsson.
13076
13077 2011-03-29  Simon Josefsson  <simon@josefsson.org>
13078
13079         lib-symbol-visibility: Add a notice.
13080         * modules/lib-symbol-visibility (Notice): New field.
13081
13082 2011-03-29  Bruno Haible  <bruno@clisp.org>
13083
13084         getaddrinfo: Doc fix.
13085         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
13086         section "fixed in Gnulib".
13087
13088 2011-03-28  Simon Josefsson  <simon@josefsson.org>
13089
13090         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
13091         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
13092
13093 2011-03-26  Bruno Haible  <bruno@clisp.org>
13094
13095         unictype/property-byname: Reduce the number of load-time relocations.
13096         * lib/unictype/pr_byname.c: Include <stdlib.h>.
13097         (UC_PROPERTY_INDEX_*): New enumeration values.
13098         (uc_property_byname): Convert an index from the lookup table to an
13099         uc_property_t.
13100         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
13101         values.
13102
13103 2011-03-26  Bruno Haible  <bruno@clisp.org>
13104
13105         unictype/property-byname: Allow omitted word separators and aliases.
13106         * lib/unictype/pr_byname.gperf: Add property names without word
13107         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
13108         for 'space'.
13109
13110 2011-03-26  Bruno Haible  <bruno@clisp.org>
13111
13112         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
13113         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
13114         also hyphens to space.
13115         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
13116         without spaces.
13117         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
13118
13119 2011-03-26  Bruno Haible  <bruno@clisp.org>
13120
13121         unictype/joiningtype-byname: Recognize long names as well.
13122         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
13123         a long name.
13124         * lib/unictype/joiningtype_byname.c: Include <string.h>,
13125         unictype/joiningtype_byname.h.
13126         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
13127         * lib/unictype/joiningtype_byname.gperf: New file.
13128         * modules/unictype/joiningtype-byname (Files): Add
13129         lib/unictype/joiningtype_byname.gperf.
13130         (Depends-on): Add gperf.
13131         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
13132         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
13133         long names.
13134
13135         Tests for module 'unictype/joiningtype-longname'.
13136         * modules/unictype/joiningtype-longname-tests: New file.
13137         * tests/unictype/test-joiningtype_longname.c: New file.
13138
13139         New module 'unictype/joiningtype-longname'.
13140         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
13141         * lib/unictype/joiningtype_longname.c: New file.
13142         * modules/unictype/joiningtype-longname: New file.
13143         * modules/unictype/joiningtype-all (Depends-on): Add
13144         unictype/joiningtype-longname.
13145
13146 2011-03-26  Bruno Haible  <bruno@clisp.org>
13147
13148         unictype/bidiclass-byname: Recognize long names as well.
13149         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
13150         name.
13151         * lib/unictype/bidi_byname.c: Include <string.h>,
13152         unictype/bidi_byname.h.
13153         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
13154         * lib/unictype/bidi_byname.gperf: New file.
13155         * modules/unictype/bidiclass-byname (Files): Add
13156         lib/unictype/bidi_byname.gperf.
13157         (Depends-on): Add gperf.
13158         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
13159         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
13160         long names.
13161
13162         Tests for module 'unictype/bidiclass-longname'.
13163         * modules/unictype/bidiclass-longname-tests: New file.
13164         * tests/unictype/test-bidi_longname.c: New file.
13165
13166         New module 'unictype/bidiclass-longname'.
13167         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
13168         * lib/unictype/bidi_longname.c: New file.
13169         * modules/unictype/bidiclass-longname: New file.
13170         * modules/unictype/bidiclass-all (Depends-on): Add
13171         unictype/bidiclass-longname.
13172
13173 2011-03-26  Bruno Haible  <bruno@clisp.org>
13174
13175         unictype/bidi*: Rename modules.
13176         * modules/unictype/bidiclass-all: Renamed from
13177         modules/unictype/bidicategory-all.
13178         * modules/unictype/bidiclass-name: Renamed from
13179         modules/unictype/bidiclass-name.
13180         (Description): Update.
13181         * modules/unictype/bidiclass-name-tests: Renamed from
13182         modules/unictype/bidicategory-name-tests.
13183         * modules/unictype/bidiclass-byname: Renamed from
13184         modules/unictype/bidicategory-byname.
13185         (Description): Update.
13186         * modules/unictype/bidiclass-byname-tests: Renamed from
13187         modules/unictype/bidicategory-byname-tests.
13188         * modules/unictype/bidiclass-of: Renamed from
13189         modules/unictype/bidicategory-of.
13190         (Description): Update.
13191         * modules/unictype/bidiclass-of-tests: Renamed from
13192         modules/unictype/bidicategory-of-tests.
13193         * modules/unictype/bidiclass-test: Renamed from
13194         modules/unictype/bidicategory-test.
13195         (Description): Update.
13196         * modules/unictype/bidiclass-test-tests: Renamed from
13197         modules/unictype/bidicategory-test-tests.
13198         * modules/unictype/bidicategory-all: New file, a simple redirection.
13199         * modules/unictype/bidicategory-name: Likewise.
13200         * modules/unictype/bidicategory-byname: Likewise.
13201         * modules/unictype/bidicategory-of: Likewise.
13202         * modules/unictype/bidicategory-test: Likewise.
13203         * modules/unictype/property-bidi-* (Dependencies): Update.
13204         * lib/unictype/bidi_*.c: Update comment.
13205
13206 2011-03-26  Bruno Haible  <bruno@clisp.org>
13207
13208         unictype/bidi*: Rename functions, part 2.
13209         * modules/unictype/bidicategory-name (configure.ac): Update required
13210         libunistring version.
13211         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
13212
13213 2011-03-25  Bruno Haible  <bruno@clisp.org>
13214
13215         New module 'unictype/combining-class-all'.
13216         * modules/unictype/combining-class-all: New file.
13217
13218         Tests for module 'unictype/combining-class-byname'.
13219         * modules/unictype/combining-class-byname-tests: New file.
13220         * tests/unictype/test-combiningclass_byname.c: New file.
13221
13222         New module 'unictype/combining-class-byname'.
13223         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
13224         * lib/unictype/combiningclass_byname.c: New file.
13225         * lib/unictype/combiningclass_byname.gperf: New file.
13226         * modules/unictype/combining-class-byname: New file.
13227
13228         Tests for module 'unictype/combining-class-longname'.
13229         * modules/unictype/combining-class-longname-tests: New file.
13230         * tests/unictype/test-combiningclass_longname.c: New file.
13231
13232         New module 'unictype/combining-class-longname'.
13233         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
13234         * lib/unictype/combiningclass_longname.c: New file.
13235         * modules/unictype/combining-class-longname: New file.
13236
13237         Tests for module 'unictype/combining-class-name'.
13238         * modules/unictype/combining-class-name-tests: New file.
13239         * tests/unictype/test-combiningclass_name.c: New file.
13240
13241         New module 'unictype/combining-class-name'.
13242         * lib/unictype.in.h (uc_combining_class_name): New declaration.
13243         * lib/unictype/combiningclass_name.c: New file.
13244         * modules/unictype/combining-class-name: New file.
13245
13246 2011-03-25  Bruno Haible  <bruno@clisp.org>
13247
13248         unictype/combining-class: Rename source files.
13249         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
13250         of unictype/combining.h.
13251         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
13252         Update.
13253         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
13254         * modules/unictype/combining-class (Description): Fix.
13255         (Files, Makefile.am): Update.
13256         * tests/unictype/test-combiningclass.c: Renamed from
13257         tests/unictype/test-combining.c.
13258         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
13259
13260 2011-03-25  Bruno Haible  <bruno@clisp.org>
13261
13262         unictype: Update list of canonical combining classes.
13263         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
13264
13265 2011-03-25  Bruno Haible  <bruno@clisp.org>
13266
13267         unictype/category-byname: Recognize long names as well.
13268         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
13269         a long name.
13270         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
13271         unictype/categ_byname.h.
13272         (UC_CATEGORY_INDEX_*): New enumeration values.
13273         (uc_general_category_byname): Use uc_general_category_lookup and
13274         convert from index to value.
13275         * lib/unictype/categ_byname.gperf: New file.
13276         * modules/unictype/category-byname (Files): Add
13277         lib/unictype/categ_byname.gperf.
13278         (Depends-on): Add gperf.
13279         (Makefile.am): Add rule for generating unictype/categ_byname.h.
13280         * tests/unictype/test-categ_byname.c (main): Test the recognition of
13281         long names.
13282
13283         Tests for module 'unictype/category-longname'.
13284         * modules/unictype/category-longname-tests: New file.
13285         * tests/unictype/test-categ_longname.c: New file.
13286
13287         New module 'unictype/category-longname'.
13288         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
13289         * lib/unictype/categ_longname.c: New file.
13290         * modules/unictype/category-longname: New file.
13291         * modules/unictype/category-all (Depends-on): Add it.
13292
13293 2011-03-25  Bruno Haible  <bruno@clisp.org>
13294
13295         Tests for module 'unictype/category-LC'.
13296         * modules/unictype/category-LC-tests: New file.
13297         * tests/unictype/test-categ_LC.c: New file, automatically generated.
13298
13299         New module 'unictype/category-LC'.
13300         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
13301         (UC_CATEGORY_LC): New declaration.
13302         (UC_CASED_LETTER): New macro.
13303         * lib/gen-uni-tables.c (is_category_LC): New function.
13304         (output_categories): Also handle category LC.
13305         (UC_CATEGORY_MASK_LC): New enumeration value.
13306         (general_category_byname): Also handle category LC.
13307         * lib/unictype/categ_LC.c: New file.
13308         * lib/unictype/categ_LC.h: New file, automatically generated.
13309         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
13310         category LC.
13311         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
13312         * modules/unictype/category-LC: New file.
13313         * modules/unictype/category-byname (Depends-on): Add
13314         unictype/category-LC.
13315         * modules/unictype/category-all (Depends-on): Likewise.
13316
13317 2011-03-25  Eric Blake  <eblake@redhat.com>
13318
13319         xmalloc: revert yesterday's regression
13320         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
13321         realloc's underlying behavior (allowing allocation of zero-size
13322         objects, especially if malloc-gnu is also in use).
13323
13324 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
13325
13326         maint.mk: add missing version to VC-tag
13327         * top/maint.mk: git tag was missing actual tag name; add it.
13328
13329         valgrind: do leak checking, and exit with code 1 on error (not 0)
13330         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
13331         to VALGRIND.
13332
13333 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
13334
13335         posix-modules: say what it does.
13336         * posix-modules: Add a line to the --help output saying what it does.
13337
13338 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
13339
13340         xmalloc: Do not leak if underlying realloc is C99 compatible.
13341         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
13342         This avoids a leak on C99-based systems.  See
13343         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
13344
13345 2011-03-24  Eric Blake  <eblake@redhat.com>
13346
13347         realloc: document portability problem
13348         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
13349         passing 0 size to realloc.
13350
13351 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
13352
13353         doc: update users.txt
13354         * users.txt: Add cvsps, tmpwatch
13355
13356 2011-03-23  Matt Rice  <ratmice@gmail.com>
13357
13358         doc: update users.txt
13359         * users.txt: Add gdb.
13360
13361 2011-03-23  Jim Meyering  <meyering@redhat.com>
13362
13363         doc: update users.txt
13364         Looking through matches up to the following URL (there are still
13365         several more pages), I found several projects that use gnulib:
13366         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
13367         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
13368         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
13369
13370 2011-03-22  Bruno Haible  <bruno@clisp.org>
13371
13372         unictype/bidi*: Rename functions.
13373         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
13374         uc_bidi_class, uc_is_bidi_class): New declarations.
13375         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
13376         uc_bidi_category_byname.
13377         (uc_bidi_category_byname): New function.
13378         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
13379         u_bidi_category_name.
13380         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
13381         (uc_bidi_category_name): New function.
13382         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
13383         uc_bidi_category.
13384         (uc_bidi_category): New function.
13385         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
13386         uc_is_bidi_category. Invoke uc_bidi_class.
13387         (uc_is_bidi_category): New function.
13388         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
13389         instead of uc_bidi_category_byname.
13390         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
13391         instead of uc_bidi_category_name.
13392         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
13393         uc_bidi_category.
13394         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
13395         instead of uc_is_bidi_category.
13396
13397 2011-03-21  Bruno Haible  <bruno@clisp.org>
13398
13399         New module 'unictype/joininggroup-all'.
13400         * modules/unictype/joininggroup-all: New file.
13401
13402         Tests for module 'unictype/joininggroup-of'.
13403         * modules/unictype/joininggroup-of-tests: New file.
13404         * tests/unictype/test-joininggroup_of.c: New file.
13405         * tests/unictype/test-joininggroup_of.h: New file, automatically
13406         generated by gen-uni-tables.
13407
13408         New module 'unictype/joininggroup-of'.
13409         * modules/unictype/joininggroup-of: New file.
13410         * lib/unictype/joininggroup_of.c: New file.
13411         * lib/unictype/joininggroup_of.h: New file, automatically generated by
13412         gen-uni-tables.
13413
13414         Tests for module 'unictype/joininggroup-byname'.
13415         * modules/unictype/joininggroup-byname-tests: New file.
13416         * tests/unictype/test-joininggroup_byname.c: New file.
13417
13418         New module 'unictype/joininggroup-byname'.
13419         * modules/unictype/joininggroup-byname: New file.
13420         * lib/unictype/joininggroup_byname.c: New file.
13421         * lib/unictype/joininggroup_byname.gperf: New file.
13422
13423         Tests for module 'unictype/joininggroup-name'.
13424         * modules/unictype/joininggroup-name-tests: New file.
13425         * tests/unictype/test-joininggroup_name.c: New file.
13426
13427         New module 'unictype/joininggroup-name'.
13428         * modules/unictype/joininggroup-name: New file.
13429         * lib/unictype/joininggroup_name.c: New file.
13430         * lib/unictype/joininggroup_name.h: New file.
13431
13432         New module 'unictype/joiningtype-all'.
13433         * modules/unictype/joiningtype-all: New file.
13434
13435         Tests for module 'unictype/joiningtype-of'.
13436         * modules/unictype/joiningtype-of-tests: New file.
13437         * tests/unictype/test-joiningtype_of.c: New file.
13438         * tests/unictype/test-joiningtype_of.h: New file, automatically
13439         generated by gen-uni-tables.
13440
13441         New module 'unictype/joiningtype-of'.
13442         * modules/unictype/joiningtype-of: New file.
13443         * lib/unictype/joiningtype_of.c: New file.
13444         * lib/unictype/joiningtype_of.h: New file, automatically generated by
13445         gen-uni-tables.
13446
13447         Tests for module 'unictype/joiningtype-byname'.
13448         * modules/unictype/joiningtype-byname-tests: New file.
13449         * tests/unictype/test-joiningtype_byname.c: New file.
13450
13451         New module 'unictype/joiningtype-byname'.
13452         * modules/unictype/joiningtype-byname: New file.
13453         * lib/unictype/joiningtype_byname.c: New file.
13454
13455         Tests for module 'unictype/joiningtype-name'.
13456         * modules/unictype/joiningtype-name-tests: New file.
13457         * tests/unictype/test-joiningtype_name.c: New file.
13458
13459         New module 'unictype/joiningtype-name'.
13460         * modules/unictype/joiningtype-name: New file.
13461         * lib/unictype/joiningtype_name.c: New file.
13462
13463         unictype: Add support for Arabic shaping properties.
13464         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
13465         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
13466         declarations.
13467         (UC_JOINING_GROUP_*): New enumeration values.
13468         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
13469         declarations.
13470         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
13471         (unicode_joining_type): New variable.
13472         (UC_JOINING_GROUP_*): New enumeration values.
13473         (unicode_joining_group): New variable.
13474         (fill_arabicshaping, joining_type_as_c_identifier,
13475         output_joining_type_test, output_joining_type,
13476         joining_group_as_c_identifier, output_joining_group_test,
13477         output_joining_group): New functions.
13478         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
13479         fill_arabicshaping and output_joining_type_test, output_joining_type,
13480         output_joining_group_test, output_joining_group.
13481         Reported by Simon Josefsson.
13482
13483 2011-03-21  Jim Meyering  <meyering@redhat.com>
13484
13485         strftime: fix a bug in yesterday's change
13486         * lib/strftime.c (add): Accommodate width's initial value of -1.
13487         Otherwise, nstrftime would copy uninitialized data into
13488         the result buffer.
13489
13490 2011-03-21  Jim Meyering  <meyering@redhat.com>
13491
13492         tests: add strftime-tests module
13493         * tests/test-strftime.c: New file.
13494         * modules/strftime-tests: New module.
13495
13496 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13497
13498         strftime: don't assume a byte count fits in 'int'
13499         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
13500         found this problem by static analysis, using gcc -Wstrict-overflow
13501         (GCC 4.5.2, x86-64).  This reported an optimization that depended
13502         on an integer overflow having undefined behavior, but it turns out
13503         that the argument is a size, which might not fit in 'int' anyway,
13504
13505 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13506
13507         stdio: don't require ignore_value around fwrite
13508
13509         This patch works around libc bug 11959
13510         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
13511         Without this patch, applications must often write
13512         ignore_value (fwrite (...)) even though the ignore_value is
13513         not helpful here.  It's common to write many objects, using
13514         fwrite/printf/etc., and then use ferror to detect output error.
13515
13516         I considered making this patch optional, but decided against it,
13517         because libc is obviously being inconsistent here: there is no
13518         reason libc should insist that user code must inspect fwrite
13519         return's value without also insisting that it inspect printf's,
13520         putchar's, etc.  If user code wants to have a strict style where
13521         all these functions' values are checked (so that ferror need not
13522         be checked), we could add support for that style in a new gnulib
13523         module, but in the meantime it's better to be consistent and to
13524         support common usage.
13525
13526         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
13527         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
13528         that we are compiling in checking mode, and if not C++, and
13529         if not already wrapping fwrite for some other reason.
13530         (fwrite): #define to rpl_fwrite if the latter is defined.
13531
13532 2011-03-20  Bruno Haible  <bruno@clisp.org>
13533
13534         verror: Fix compilation error introduced on 2011-02-13.
13535         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
13536         instead of __attribute__.
13537         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13538
13539 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13540             Bruno Haible  <bruno@clisp.org>
13541
13542         socklen: do not depend on sys_socket
13543         While trying to modify Emacs to use gnulib's socklen module,
13544         I discovered a circular dependency: socklen depends on sys_socket
13545         and vice versa.  Emacs can use socklen, but it does not need
13546         sys_socket because it has its own substitute for sys/socket.h.
13547         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
13548         gl_TYPE_SOCKLEN_T.
13549         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
13550         gl_PREREQ_SYS_H_SOCKET.
13551         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
13552         gl_PREREQ_SYS_H_SOCKET.
13553         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
13554         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
13555         * modules/socklen (Depends-on): Do not depend on sys_socket.
13556         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
13557
13558 2011-03-20  Jim Meyering  <meyering@redhat.com>
13559
13560         maint.mk: sort file names *after* new transformation
13561         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
13562         prefix would have led to an unwarranted failure in GNU parted.
13563         Sort after that transformation.
13564
13565 2011-03-19  Jim Meyering  <meyering@redhat.com>
13566
13567         maint.mk: fix po-file syntax-check rule
13568         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
13569         Patch by Bruno Haible.
13570
13571 2011-03-19  Bruno Haible  <bruno@clisp.org>
13572
13573         socklen: Update comment.
13574         * m4/socklen.m4: Update comment about platforms.
13575
13576 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13577             Bruno Haible  <bruno@clisp.org>
13578
13579         inet_ntop, inet_pton: Simplify.
13580         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
13581         documented to provide socklen_t and we already depend on sys_socket.
13582         * modules/inet_pton (Depends-on): Likewise.
13583         * lib/arpa_inet.in.h: Adjust comment.
13584
13585 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13586             Bruno Haible  <bruno@clisp.org>
13587
13588         netdb: Simplify.
13589         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
13590         documented to provide socklen_t and we already depend on sys_socket.
13591         * lib/netdb.in.h: Adjust comment.
13592
13593 2011-03-19  Bruno Haible  <bruno@clisp.org>
13594
13595         sys_socket, netdb: Document problem with socklen_t.
13596         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
13597         platforms.
13598         * doc/posix-headers/netdb.texi: Likewise.
13599
13600 2011-03-18  Eric Blake  <eblake@redhat.com>
13601
13602         maint.mk: let po check work in VPATH build
13603         * top/maint.mk (po_file): Allow cfg.mk override.
13604         (sc_po_check): Allow VPATH use.
13605         Reported by Jiri Denemark.
13606
13607 2011-03-16  Jim Meyering  <meyering@redhat.com>
13608
13609         maint.mk: allow fine-grained syntax-check exclusion via Make variables
13610         Before, you would have had to create one .x-sc_ file per rule in order
13611         to exempt offending files.  Now, you may instead use a Make variable --
13612         usually defined in cfg.mk -- whose name identifies the affected rule.
13613         * top/maint.mk (_sc_excl): Define.
13614         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
13615         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
13616
13617 2011-03-13  Bruno Haible  <bruno@clisp.org>
13618
13619         ignore-value tests: Avoid warnings.
13620         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
13621         empty for gcc < 3.4.
13622
13623 2011-03-13  Bruno Haible  <bruno@clisp.org>
13624
13625         passfd: Fix link error on Solaris.
13626         * modules/passfd (Description): Correct.
13627         (Depends-on): Add socketlib.
13628         (Link): New section.
13629         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
13630
13631 2011-03-13  Bruno Haible  <bruno@clisp.org>
13632
13633         passfd: Fix link error on AIX 5.2.
13634         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
13635
13636 2011-03-13  Bruno Haible  <bruno@clisp.org>
13637
13638         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
13639         * lib/sys_socket.in.h: Include <stddef.h>.
13640         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
13641         CMSG_FIRSTHDR. Remove unused variable.
13642
13643 2011-03-13  Bruno Haible  <bruno@clisp.org>
13644
13645         passfd: Fix compilation error on OpenBSD.
13646         * lib/passfd.c: Include <sys/uio.h>.
13647
13648 2011-03-13  Bruno Haible  <bruno@clisp.org>
13649
13650         passfd test: Fix warnings.
13651         * tests/test-passfd.c: Include <sys/wait.h>.
13652         (main): Fix typo.
13653
13654 2011-03-13  Bruno Haible  <bruno@clisp.org>
13655
13656         passfd module, part 4, tweaks.
13657         * tests/test-passfd.c: Reorder includes.
13658         (main): Fix perror and printf calls.
13659
13660 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13661
13662         passfd module, part 4.
13663         * modules/passfd-tests: New file.
13664         * tests/test-passfd.c: New file.
13665
13666 2011-03-13  Jim Meyering  <meyering@redhat.com>
13667
13668         Makefile: rely on GNU make; derive syntax-check rule names
13669         Rather than requiring that each sc_ rule be listed as a dependent
13670         of "check", use features of GNU make to derive the list.
13671         * Makefile (syntax-check-rules): Define.
13672         (check): Depend on the new variable, not the hard-coded list.
13673
13674 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
13675             Bruno Haible  <bruno@clisp.org>
13676
13677         passfd module, part 3.
13678         * lib/passfd.h (recvfd): Add a flags argument.
13679         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
13680         (recvfd): Add a flags argument.
13681         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
13682         exists.
13683         * modules/passfd (Depends-on): Add cloexec.
13684         Suggested by Eric Blake.
13685
13686 2011-03-13  Bruno Haible  <bruno@clisp.org>
13687
13688         passfd module, part 2, tweaks.
13689         * modules/passfd (Files): Reorder.
13690         (Depends-on): Remove errno.
13691         (Include): Remove <sys/socket.h>, <sys/un.h>.
13692         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
13693         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
13694         specification header. Include <sys/socket.h> always. Don't include
13695         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
13696         (sendfd): Clarify that it sets errno when it fails.
13697         (recvfd): Fix specification.
13698
13699 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13700
13701         passfd module, part 2.
13702         * modules/passfd: New file.
13703         * lib/passfd.h: New file.
13704         * lib/passfd.c: New file.
13705
13706 2011-03-12  Bruno Haible  <bruno@clisp.org>
13707
13708         wcswidth, mbswidth: Avoid integer overflow.
13709         * lib/wcswidth.c: Include <limits.h>.
13710         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
13711         * lib/mbswidth.c: Include <limits.h>.
13712         (mbsnwidth): Avoid 'int' overflow.
13713         Reported by Jim Meyering.
13714
13715 2011-03-12  Bruno Haible  <bruno@clisp.org>
13716
13717         futimens, utimensat: Avoid endless recursion on Solaris 10.
13718         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
13719         Solaris.
13720         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
13721         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
13722
13723 2011-03-11  Jim Meyering  <meyering@redhat.com>
13724
13725         maint.mk: relax a regexp to accommodate other formatting styles
13726         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
13727         between "ngettext" and the following "(".
13728
13729 2011-03-11  Pádraig Brady <P@draigBrady.com>
13730
13731         maint.mk: suppress a false positive warning
13732         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
13733         diagnostics are marked with ngettext.
13734
13735 2011-03-10  Eric Blake  <eblake@redhat.com>
13736
13737         wchar: add explicit dependencies, for Tru64
13738         * modules/mbmemcasecoll (Depends-on): Add wchar.
13739         * modules/mbtowc (Depends-on): Likewise.
13740         * modules/vasnprintf (Depends-on): Likewise.
13741         * modules/unistdio/u-printf-args (Depends-on): Likewise.
13742         * modules/wctomb (Depends-on): Likewise.
13743         Reported by Peter O'Gorman.
13744
13745 2011-03-08  Bruno Haible  <bruno@clisp.org>
13746
13747         passfd module, part 1, tweaks.
13748         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
13749         Improve indentation. Improve AC_MSG_CHECKING messages.
13750         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
13751         gl_SOCKET_FAMILIES.
13752
13753 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13754
13755         passfd module, part 1.
13756         * m4/afunix.m4: New file.
13757         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
13758         sockets.
13759
13760 2011-03-08  Bruno Haible  <bruno@clisp.org>
13761
13762         regex-quote: New API.
13763         * lib/regex-quote.h: Include <stdbool.h>.
13764         (struct regex_quote_spec): New type.
13765         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13766         New declarations.
13767         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13768         'const struct regex_quote_spec *' argument.
13769         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
13770         (pcre_special): New constant.
13771         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13772         New functions.
13773         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13774         'const struct regex_quote_spec *' argument.
13775         * modules/regex-quote (Depends-on): Add stdbool.
13776         * tests/test-regex-quote.c (check): Update for new API. Add test for
13777         anchored results.
13778         * NEWS: Mention the API change.
13779         Reported by Reuben Thomas and Eric Blake.
13780
13781 2011-03-06  Bruno Haible  <bruno@clisp.org>
13782
13783         regex-quote: Fix creation of POSIX extended regular expressions.
13784         * lib/regex-quote.c (ere_special): Add grouping and alternation
13785         operators.
13786
13787 2011-03-05  Bruno Haible  <bruno@clisp.org>
13788
13789         doc: Improve doc regarding autopoint vs. gnulib.
13790         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
13791         disable autopoint while running autoreconf.
13792         Suggested by Ralf Wildenhues.
13793
13794 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13795
13796         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
13797         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
13798
13799 2011-03-03  Bruce Korb  <bkorb@gnu.org>
13800
13801         parse-duration: remove xalloc.h dependency
13802         * lib/parse-duration.c (parse_period): handle NULL return from
13803         strdup instead of calling xstrdup().
13804         * modules/parse-duration: remove "xalloc" dependency
13805
13806 2011-03-03  Matthew Booth  <mbooth@redhat.com>
13807
13808         bootstrap: honor m4_base when running aclocal
13809         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
13810
13811 2011-03-02  Jim Meyering  <meyering@redhat.com>
13812
13813         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
13814         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
13815         on request from Matt Booth.
13816
13817 2011-03-01  Eric Blake  <eblake@redhat.com>
13818
13819         test-link: work on Hurd
13820         * tests/test-link.h (test_link): Hurd rejects linking directories
13821         with EISDIR instead of the POSIX-mandated EPERM.
13822
13823 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
13824
13825         stdio: simplify by moving files to printf-posix, sigpipe
13826         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
13827         since this symbol is needed only if printf is replaced.
13828         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
13829         Require gl_ASM_SYMBOL_PREFIX.
13830         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
13831         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
13832         (Depends-on): Add 'raise'.
13833         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
13834         * modules/stdio (Files): Remove lib/stdio-write.c,
13835         m4/asm-underscore.m4.
13836         (Depends-on): Remove 'raise'.
13837
13838         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
13839         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
13840         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
13841         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
13842
13843 2011-02-28  Bruno Haible  <bruno@clisp.org>
13844
13845         localcharset: Assume ANSI C behaviour of free().
13846         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
13847         calling free().
13848         Suggested by Simon Josefsson <simon@josefsson.org>.
13849
13850 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
13851             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
13852             Bruno Haible  <bruno@clisp.org>  (tiny change)
13853
13854         On Cygwin, use /proc file system instead of win32 API.
13855         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
13856         Win32 file names.
13857         (DllMain): Simplify by removing Cygwin specific code.
13858         (find_shared_library_fullname): Use Linux specific implementation also
13859         for Cygwin.
13860         (get_shared_library_fullname): Update accordingly.
13861         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
13862         Win32 file names.
13863         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
13864         Cygwin specific code.
13865
13866 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
13867             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
13868
13869         Fix OpenMP flag detection for various Fortran compilers.
13870         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
13871         OpenMP-conditional compilation construct, to force compile
13872         failure with missing OpenMP flag.
13873         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
13874
13875 2011-02-25  Eric Blake  <eblake@redhat.com>
13876
13877         strstr: expand test coverage
13878         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
13879         compilation.
13880         * tests/test-memmem.c (main): Duplicate tests.
13881         * tests/test-strcasestr.c (main): Likewise.
13882         * tests/test-c-strcasestr.c (main): Likewise.
13883
13884 2011-02-25  Jim Meyering  <meyering@redhat.com>
13885
13886         maint.mk: detect missing-NL-at-EOF, too
13887         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
13888         it also detects when a file lacks a newline at EOF.
13889         (require_exactly_one_NL_at_EOF_): Renamed from
13890         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
13891         since people may well have .x-sc_... file names tied to the
13892         existing name.  Suggested by Eric Blake.
13893
13894 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
13895
13896         dirname: move m4/dos.m4 functionality into lib/dosname.h
13897
13898         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
13899         extracts symbols from it, puts them into config.h; but it's much
13900         easier to use the symbols directly.  filename.h already does this,
13901         but it disagrees with dos.m4 in some respects.  This patch
13902         introduces a different include file dosname.h that packages up
13903         dos.m4, and then later we can work on merging filename.h and
13904         dosname.h.  Applications that need only the easy-to-configure
13905         symbols should consider including dosname.h rather than dirname.h.
13906         * NEWS: Mention incompatible changes.
13907         * m4/dos.m4: Remove.
13908         * lib/dosname.h, modules/dosname: New files.
13909         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
13910         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
13911         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
13912         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
13913         Include dosname.h, not dirname.h.
13914         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
13915         Include dosname.h, for definitions of symbols like ISSLASH
13916         that used to be in config.h.
13917         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
13918         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
13919         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13920         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
13921         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
13922         * modules/rmdir (Files): Likewise.
13923         * modules/stat (Files): Likewise.
13924         * modules/unlink (Files): Likewise.
13925         * modules/dirname-lgpl (Depends-on): Add dosname.
13926         * modules/lstat (Depends-on): Likewise.
13927         * modules/openat (Depends-on): Likewise.
13928         * modules/rmdir (Depends-on): Likewise.
13929         * modules/savewd (Depends-on): Likewise.
13930         * modules/stat (Depends-on): Likewise.
13931         * modules/unlink (Depends-on): Likewise.
13932         * modules/openat (Depends-on): Remove dirname-lgpl.
13933         * modules/savewd (Depends-on): Likewise.
13934         * tests/test-dirname.c: Do not use removed symbols like
13935         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
13936         the remaining symbols, e.g., ISSLASH ('\\').
13937
13938 2011-02-25  Eric Blake  <eblake@redhat.com>
13939
13940         strstr: revert patches that introduced bug and pessimization
13941         * lib/str-two-way.h: Add another reference.
13942         (two_way_short_needle, two_way_long_needle): Revert changes from
13943         2011-02-24; they pessimize search speed.
13944         (critical_factorization): Partially revert changes from
13945         2010-06-22; they violate the requirement that the left half of the
13946         needle be smaller than the period of the needle.
13947
13948 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
13949
13950         filenamecat: remove unnecessary dependency on dirname-lgpl
13951         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
13952         is no direct dependency, just an indirect one via filenamecat-lgpl.
13953
13954         remove: remove unnecessary use of m4/dos.m4
13955         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
13956         * modules/remove (FILES): Remove m4/dos.m4.
13957
13958         * lib/openat-proc.c: Don't include dirname.h; not needed.
13959
13960         backupfile: remove unnecessary use of m4/dos.m4
13961         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
13962         of its symbols are used by the backupfile code.  backupfile.c does
13963         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
13964         for the rare case of programs that want all their backup file
13965         names to live within 8+3 limits, and dos.m4 doesn't address that.
13966         * modules/backupfile (Files): Remove m4/dos.m4.
13967
13968 2011-02-24  Jim Meyering  <meyering@redhat.com>
13969
13970         strstr: fix a bug whereby strstr would mistakenly return NULL
13971         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
13972         in period calculation.
13973         (two_way_long_needle): Likewise.
13974         The original problem was reported by Mike Stump in
13975         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
13976         Ralf Wildenhues provided the short needle and haystack.
13977         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
13978         Add a more involved test to trigger the bug in two_way_long_needle.
13979
13980 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
13981
13982         gnulib-tool: remove use of bold display in help screen
13983         * gnulib-tool (func_usage): Do not use bold display anymore in the
13984         help screen.  That was just meant to be a temporary emphasis for a
13985         backward-incompatible change.
13986
13987 2011-02-23  Bruno Haible  <bruno@clisp.org>
13988
13989         Fix misindentation of preprocessor directives.
13990         * lib/argp-namefrob.h: Reindent preprocessor directives.
13991         * lib/getopt_int.h (struct _getopt_data): Likewise.
13992         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
13993         * lib/vasnprintf.c (decode_long_double): Likewise.
13994         * tests/test-argmatch.c: Insert blank lines, for clarity.
13995         * tests/test-exclude.c: Likewise.
13996
13997 2011-02-22  Bruno Haible  <bruno@clisp.org>
13998
13999         ioctl: Fix for MacOS X in 64-bit mode.
14000         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
14001         value.
14002         Suggested by Eric Blake.
14003         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
14004
14005 2011-02-22  Jim Meyering  <meyering@redhat.com>
14006
14007         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
14008         * Makefile (sc_cpp_indent_check): Don't limit the check to files
14009         in lib/.
14010
14011 2011-02-22  Eric Blake  <eblake@redhat.com>
14012
14013         maint: avoid any CDPATH issue
14014         * Makefile (sc_cpp_indent_check): Anchor cd argument.
14015
14016         maint: adjust cpp indentation for my modules, as well
14017         * Makefile (sc_cpp_indent_check): Add my name.
14018         * lib/fbufmode.c: Filter through cppi.
14019         * lib/fpurge.c: Likewise.
14020         * lib/freadable.c: Likewise.
14021         * lib/freading.c: Likewise.
14022         * lib/fwritable.c: Likewise.
14023         * lib/fwriting.c: Likewise.
14024         * lib/sigaction.c: Likewise.
14025
14026 2011-02-22  Jim Meyering  <meyering@redhat.com>
14027
14028         maint: adjust cpp indentation to reflect nesting depth
14029         I.e., in a block of code that begins with an unnested "#if",
14030         put one space between the "#" in column 1 and following token.
14031         For example,
14032         -#include <sys/vfs.h>
14033         +# include <sys/vfs.h>
14034         Do this only in .c files that are part of a module I maintain.
14035         * lib/linkat.c: Filter through cppi.
14036         * lib/nanosleep.c: Likewise.
14037         * lib/openat.c: Likewise.
14038         * lib/openat-die.c: Likewise.
14039         * lib/dup3.c: Likewise.
14040         * lib/fchownat.c: Likewise.
14041         * lib/flock.c: Likewise.
14042         * lib/fsync.c: Likewise.
14043         * lib/fts.c: Likewise.
14044         * lib/getpass.c: Likewise.
14045         * lib/gettimeofday.c: Likewise.
14046         * lib/userspec.c: Likewise.
14047         * Makefile (sc_cpp_indent_check): New rule, to check this.
14048
14049 2011-02-22  Bruno Haible  <bruno@clisp.org>
14050
14051         New module 'wctomb'.
14052         * lib/stdlib.in.h (wctomb): New declaration.
14053         * lib/wctomb.c: New file.
14054         * lib/wctomb-impl.h: New file.
14055         * m4/wctomb.m4: New file.
14056         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
14057         REPLACE_WCTOMB.
14058         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
14059         REPLACE_WCTOMB.
14060         * modules/wctomb: New file.
14061         * tests/test-stdlib-c++.cc: Test signature of wctomb.
14062         * doc/posix-functions/wctomb.texi: Mention the new module.
14063         * modules/wctob (Depends-on): Add wctomb.
14064
14065 2011-02-22  Bruno Haible  <bruno@clisp.org>
14066
14067         New module 'mbtowc'.
14068         * lib/stdlib.in.h (mbtowc): New declaration.
14069         * lib/mbtowc.c: New file.
14070         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
14071         * m4/mbtowc.m4: New file.
14072         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
14073         REPLACE_MBTOWC.
14074         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
14075         REPLACE_MBTOWC.
14076         * modules/mbtowc: New file.
14077         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
14078         * doc/posix-functions/mbtowc.texi: Mention the new module.
14079         * modules/btowc (Depends-on): Add mbtowc.
14080
14081 2011-02-22  Bruno Haible  <bruno@clisp.org>
14082
14083         wcrtomb: Add more tests for native Windows platforms.
14084         * tests/test-wcrtomb-w32-1.sh: New file.
14085         * tests/test-wcrtomb-w32-2.sh: New file.
14086         * tests/test-wcrtomb-w32-3.sh: New file.
14087         * tests/test-wcrtomb-w32-4.sh: New file.
14088         * tests/test-wcrtomb-w32-5.sh: New file.
14089         * tests/test-wcrtomb-w32.c: New file.
14090         * modules/wcrtomb-tests (Files): Add them.
14091         (Makefile.am): Arrange to run these tests.
14092         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
14093         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
14094
14095 2011-02-20  Bruno Haible  <bruno@clisp.org>
14096
14097         wcrtomb: Enhance test.
14098         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
14099
14100 2011-02-20  Bruno Haible  <bruno@clisp.org>
14101
14102         mbrtowc: Tiny optimization.
14103         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
14104
14105 2011-02-20  Jim Meyering  <meyering@redhat.com>
14106
14107         test-exclude.c: remove unmatched #endif
14108         * tests/test-exclude.c: Remove stray #endif, left over from
14109         the change of a week ago.
14110
14111 2011-02-19  Jim Meyering  <meyering@redhat.com>
14112
14113         git-version-gen: skip "-dirty" check when appropriate
14114         * build-aux/git-version-gen: Don't run any git commands when the
14115         version string comes from .tarball-version.  Prior to this, we
14116         would run git update-index --refresh even from a just-unpacked
14117         tarball directory, and that could affect a .git/ directory in a
14118         parent of the build directory.  Reported by Mike Frysinger.
14119
14120 2011-02-19  Bruno Haible  <bruno@clisp.org>
14121
14122         unictype/property-byname: Reduce the size of the 'data' segment.
14123         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
14124
14125 2011-02-19  Bruno Haible  <bruno@clisp.org>
14126
14127         unictype/scripts: Reduce the size of the 'data' segment.
14128         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
14129         '%pic'.
14130         * lib/unictype/scripts_byname.gperf: Regenerated.
14131
14132 2011-02-19  Bruno Haible  <bruno@clisp.org>
14133
14134         stdint: Update documentation.
14135         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
14136
14137 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
14138
14139         stdint: omit redundant check for wchar.h
14140         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
14141         always tests whether wchar.h exists, so remove the now-redundant test.
14142
14143 2011-02-18  Bruno Haible  <bruno@clisp.org>
14144
14145         stdint: Cut dependency to module 'wchar'.
14146         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
14147         include the necessary prerequisites.
14148         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
14149         * modules/stdint (Depends-on): Remove wchar.
14150         (Makefile.am): Substitute HAVE_WCHAR_H.
14151         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
14152
14153 2011-02-18  Eric Blake  <eblake@redhat.com>
14154
14155         longlong: skip, rather than fail, on cross-compilation
14156         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
14157         when cross-compiling; regression from 2011-02-16.
14158
14159 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
14160
14161         * NEWS: Mention 2011-02-08 change to stdlib.
14162
14163 2011-02-17  Bruno Haible  <bruno@clisp.org>
14164
14165         getloadavg: Add comments about platforms.
14166         * m4/getloadavg.m4: Add comment.
14167         * lib/getloadavg.c: Likewise.
14168
14169 2011-02-17  Bruno Haible  <bruno@clisp.org>
14170
14171         getloadavg: Fix link error on Solaris 2.6.
14172         * modules/getloadavg (Link): New section.
14173         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
14174         linking test-getloadavg.
14175         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
14176         getloadavg.
14177
14178 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
14179
14180         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
14181         It was 'int', but this doesn't match the IRIX 6.5 manual.
14182         Suggested by Bruno Haible in
14183         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
14184
14185 2011-02-17  Bruno Haible  <bruno@clisp.org>
14186
14187         havelib: Fix comments.
14188         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
14189         change.
14190
14191 2011-02-17  Bruno Haible  <bruno@clisp.org>
14192
14193         havelib: Update config.rpath.
14194         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
14195
14196 2011-02-17  Bruno Haible  <bruno@clisp.org>
14197
14198         getloadavg test: Add some plausibility checks.
14199         * tests/test-getloadavg.c (check_avg): Print a warning when the value
14200         is improbable.
14201
14202 2011-02-16  Eric Blake  <eblake@redhat.com>
14203
14204         maintainer-makefile: make syntax-check a no-op from tarballs
14205         * top/maint.mk (no-vc-detected): New rule.
14206         (local-checks-available): Use it to avoid hanging if someone tries
14207         'make syntax-check' from a tarball.  Also append to any non-syntax
14208         checks already defined in cfg.mk.
14209
14210 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
14211
14212         longlong: tune, particularly for common case of c99
14213
14214         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
14215         or running anything if c99, or if unsigned long long int does not
14216         work.  In either case, we know the answer without further tests.
14217         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
14218         it at most once, and use its results for both long long int and
14219         unsigned long long int.  This is more likely to be efficient in
14220         the common case where the program wants to check for both long
14221         long int and unsigned long long int.
14222         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
14223         since the answer is already known.
14224
14225 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
14226
14227         getloadavg: set errno
14228         * lib/getloadavg.c: Set errno when returning -1.  If no other
14229         error number looks appropriate, set it to ENOSYS if the getloadavg
14230         looks like it can't possibly ever work, ENOTSUP otherwise.
14231         Suggested by Bruno Haible in
14232         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
14233
14234         getloadavg: trim unused parts and speed up 'configure'
14235         * NEWS: Document this.
14236         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
14237         always compiled if getloadavg is absent.
14238         Move test code to ...
14239         * tests/test-getloadavg.c: New file, containing previous
14240         contents of test from lib/getloadavg.c.  It also contains
14241         suggestions by Bruno Haible in
14242         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
14243         * modules/getloadavg-tests: New file.
14244         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
14245         Do tests in the same order as they're needed for getloadavg.c.
14246         Omit setgid-related tests that generate symbols KMEM_GROUP,
14247         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
14248         Do only the tests that are needed to see whether the system has
14249         getloadavg, moving the other tests into ...
14250         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
14251         NLIST_NAME_UNION; nobody should be using it.  Do not define
14252         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
14253         relevant, as the user of this module shouldn't care how getloadavg
14254         is implemented.
14255
14256         getloadavg: omit unused var
14257         * lib/getloadavg.c (getloadavg): Omit unused local variable.
14258
14259 2011-02-15  Jim Meyering  <meyering@redhat.com>
14260
14261         doc: update users.txt
14262         * users.txt: Update iwhd's URL.
14263
14264 2011-02-13  Bruno Haible  <bruno@clisp.org>
14265
14266         Consistent macro naming for macros that use GCC __attribute__.
14267         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
14268         _ATTRIBUTE_NONNULL_.
14269         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
14270         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
14271         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
14272         ATTRIBUTE_DEPRECATED.
14273         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
14274         ATTRIBUTE_NORETURN.
14275         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14276         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14277         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14278         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14279         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
14280         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
14281         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
14282         ATTRIBUTE_SENTINEL.
14283         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
14284         ATTRIBUTE_RETURN_CHECK.
14285         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
14286         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
14287         ATTRIBUTE_NORETURN.
14288         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
14289         Reported by Paul Eggert.
14290
14291 2011-02-13  Bruno Haible  <bruno@clisp.org>
14292
14293         Don't interfere with a program's definition of __attribute__.
14294         * lib/argp.h (__attribute__): Remove definition.
14295         (_GL_ATTRIBUTE_FORMAT): New macro.
14296         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
14297         * lib/argp-fmtstream.h (__attribute__): Remove definition.
14298         (_GL_ATTRIBUTE_FORMAT): New macro.
14299         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
14300         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
14301         GCC 3 or newer.
14302         * lib/error.h (__attribute__): Remove definition.
14303         (_GL_ATTRIBUTE_FORMAT): New macro.
14304         (error, error_at_line): Use it.
14305         * lib/hash.h (__attribute__): Remove definition.
14306         (ATTRIBUTE_WUR): Update definition. Define always.
14307         * lib/openat.h (__attribute__): Remove definition.
14308         (ATTRIBUTE_NORETURN): Update definition. Define always.
14309         * lib/sigpipe-die.h (__attribute__): Remove definition.
14310         (ATTRIBUTE_NORETURN): Update definition. Define always.
14311         * lib/vasnprintf.h (__attribute__): Remove definition.
14312         (_GL_ATTRIBUTE_FORMAT): New macro.
14313         (asnprintf, vasnprintf): Use it.
14314         * lib/xalloc.h (__attribute__): Remove definition.
14315         (ATTRIBUTE_NORETURN): Update definition. Define always.
14316         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
14317         * lib/xmemdup0.h (__attribute__): Remove definition.
14318         (ATTRIBUTE_NORETURN): Update definition. Define always.
14319         * lib/xprintf.h (__attribute__): Remove definition.
14320         (_GL_ATTRIBUTE_FORMAT): New macro.
14321         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
14322         * lib/xstrtol.h (__attribute__): Remove definition.
14323         (ATTRIBUTE_NORETURN): Update definition. Define always.
14324         * lib/xvasprintf.h (__attribute__): Remove definition.
14325         (_GL_ATTRIBUTE_FORMAT): New macro.
14326         (xasprintf, xvasprintf): Use it.
14327         * tests/test-argmatch.c (__attribute__): Remove definition.
14328         (ATTRIBUTE_NORETURN): Update definition. Define always.
14329         * tests/test-exclude.c (__attribute__): Remove definition.
14330         (ATTRIBUTE_NORETURN): Update definition. Define always.
14331         Reported by Paul Eggert.
14332
14333 2011-02-13  Bruno Haible  <bruno@clisp.org>
14334
14335         mbrtowc: Add more tests for native Windows platforms.
14336         * tests/test-mbrtowc-w32-1.sh: New file.
14337         * tests/test-mbrtowc-w32-2.sh: New file.
14338         * tests/test-mbrtowc-w32-3.sh: New file.
14339         * tests/test-mbrtowc-w32-4.sh: New file.
14340         * tests/test-mbrtowc-w32-5.sh: New file.
14341         * tests/test-mbrtowc-w32.c: New file.
14342         * modules/mbrtowc-tests (Files): Add them.
14343         (Makefile.am): Arrange to run these tests.
14344         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
14345         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
14346
14347 2011-02-13  Bruno Haible  <bruno@clisp.org>
14348
14349         mbrtowc: Work around native Windows bug.
14350         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
14351         guess when no suitable locale for testing was found.
14352         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
14353
14354 2011-02-13  Bruno Haible  <bruno@clisp.org>
14355
14356         mbsinit: Work around mingw bug.
14357         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
14358         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
14359         Windows.
14360         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
14361
14362 2011-02-13  Bruno Haible  <bruno@clisp.org>
14363
14364         mbsinit: Don't crash for a NULL argument.
14365         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
14366         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
14367
14368 2011-02-13  Bruno Haible  <bruno@clisp.org>
14369
14370         Don't interfere with a program's definition of __attribute__.
14371         * lib/stdio.in.h (__attribute__): Remove definition.
14372         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
14373         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
14374         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
14375         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
14376         * lib/string.in.h (__attribute__): Remove definition.
14377         Reported by Paul Eggert.
14378
14379 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14380
14381         stdlib: don't get in the way of non-GCC __attribute__
14382         See thread starting at
14383         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
14384         Revert previous stdlib change, installing the following instead:
14385         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
14386         to get in the way of a non-GCC compiler that supports __attribute__.
14387         (_GL_ATTRIBUTE_RETURN): New macro.
14388         (_Exit): Use it instead of __attribute__.
14389
14390 2011-02-12  Bruno Haible  <bruno@clisp.org>
14391
14392         quotearg test: Avoid test failure on mingw.
14393         * tests/test-quotearg.sh: Convert the locale identifier from native
14394         Windows syntax to Unix syntax.
14395
14396 2011-02-12  Bruno Haible  <bruno@clisp.org>
14397
14398         setlocale: Prefer gnulib's override over libintl's override.
14399         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
14400         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
14401         GNULIB_defined_setlocale is set.
14402
14403 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14404
14405         stdlib: support non-GCC __attribute__
14406
14407         Fix a serious and tricky problem encountered when attempting to
14408         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
14409         5.5, but it crashed due to memory corruption on Solaris 10 with
14410         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
14411         bits that are otherwise zero.  This tagging is optional inside
14412         Emacs but is preferred and is used when __attribute__ ((__aligned
14413         (8))) works, as it does with both recent-enough GCC and with Sun C
14414         5.11.  However, Sun C 5.11 is not GCC and does not #define
14415         __GNUC__ and __GNUC_MINOR__.
14416
14417         When I added the getloadavg module to Emacs, it brought in
14418         stdlib.in.h, which contained this fragment:
14419
14420            #ifndef __attribute__
14421            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
14422            #  define __attribute__(Spec)   /* empty */
14423            # endif
14424            #endif
14425
14426         When files that include <stdlib.h> were compiled with Sun C 5.11,
14427         the above code disabled __attribute__ ((__aligned (8))), which
14428         caused variables to not be properly aligned, which eventually led
14429         to the pointer corruption mentioned above.  (This was a bit hard
14430         to diagnose, unfortunately.)
14431
14432         Several "#define __attribute__(X) /* empty */" code snippets need
14433         to be eradicated from Gnulib to work with non-GCC compilers that
14434         support __attribute__.  The Autoconf way to do this is to test for
14435         each kind of attribute that we want support for, and selectively
14436         enable that in source code.
14437
14438         Fix this problem just for stdlib.h, by adding a test for the
14439         __noreturn__ attribute, and change stdlib.in.h to use that test
14440         when needed.  This technique can be easily generalized to the
14441         other *.in.h files and attributes, and a similar technique can be
14442         used for *.h and *.c files.  This patch is enough to solve the
14443         problem for Emacs + getloadavg, and I thought I'd publish it for
14444         feedback before undertaking further, similar fixes in other
14445         modules.
14446
14447         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
14448         because it's not needed for stdlib.h.  It merely substitutes the
14449         value directly into stdlib.h.  We may well need to #define it, or
14450         similar symbols, for other modules, but it's nice to also have an
14451         option to not #define it for applications like Emacs that do not
14452         need it.
14453
14454         * lib/stdlib.in.h (__attribute__): Do not #define.
14455         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
14456         be defined only if the _Exit module is also used.
14457         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
14458         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
14459         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
14460         platforms.
14461         * modules/_Exit (Files): Add m4/attribute.m4.
14462         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
14463         * m4/attribute.m4: New file.
14464
14465 2011-02-12  Bruno Haible  <bruno@clisp.org>
14466
14467         wcsrtombs: Work around bug on native Windows.
14468         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
14469         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
14470         instead of len.
14471         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
14472
14473 2011-02-12  Bruno Haible  <bruno@clisp.org>
14474
14475         mbsrtowcs: Work around bug on native Windows.
14476         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
14477         against mingw bug.
14478         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
14479
14480 2011-02-12  Bruno Haible  <bruno@clisp.org>
14481
14482         Avoid setlocale bugs in tests.
14483         * modules/btowc (Dependencies): Add setlocale.
14484         * modules/c-strcase (Dependencies): Likewise.
14485         * modules/mbmemcasecmp (Dependencies): Likewise.
14486         * modules/mbmemcasecoll (Dependencies): Likewise.
14487         * modules/mbrtowc (Dependencies): Likewise.
14488         * modules/mbscasecmp (Dependencies): Likewise.
14489         * modules/mbscasestr (Dependencies): Likewise.
14490         * modules/mbschr (Dependencies): Likewise.
14491         * modules/mbscspn (Dependencies): Likewise.
14492         * modules/mbsinit (Dependencies): Likewise.
14493         * modules/mbsncasecmp (Dependencies): Likewise.
14494         * modules/mbsnrtowcs (Dependencies): Likewise.
14495         * modules/mbspbrk (Dependencies): Likewise.
14496         * modules/mbspcasecmp (Dependencies): Likewise.
14497         * modules/mbsrchr (Dependencies): Likewise.
14498         * modules/mbsrtowcs (Dependencies): Likewise.
14499         * modules/mbsspn (Dependencies): Likewise.
14500         * modules/mbsstr (Dependencies): Likewise.
14501         * modules/nl_langinfo (Dependencies): Likewise.
14502         * modules/quotearg (Dependencies): Likewise.
14503         * modules/unicase/locale-language (Dependencies): Likewise.
14504         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
14505         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
14506         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
14507         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
14508         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
14509         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
14510         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
14511         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
14512         * modules/vasnprintf-posix (Dependencies): Likewise.
14513         * modules/wcrtomb (Dependencies): Likewise.
14514         * modules/wcsnrtombs (Dependencies): Likewise.
14515         * modules/wcsrtombs (Dependencies): Likewise.
14516
14517 2011-02-12  Bruno Haible  <bruno@clisp.org>
14518
14519         setlocale: Workaround native Windows bug.
14520         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
14521         succeeds but sets LC_CTYPE to "C", report a failure.
14522         * tests/test-setlocale2.sh: New file.
14523         * tests/test-setlocale2.c: New file.
14524         * modules/setlocale-tests (Files): Add the new files.
14525         (Makefile.am): Enable test-setlocale2.sh test.
14526         * doc/posix-functions/setlocale.texi: Mention workaround.
14527
14528 2011-02-11  Bruno Haible  <bruno@clisp.org>
14529
14530         Tests for module 'setlocale'.
14531         * modules/setlocale-tests: New file.
14532         * tests/test-setlocale1.sh: New file.
14533         * tests/test-setlocale1.c: New file.
14534
14535         New module 'setlocale'.
14536         * lib/locale.in.h (setlocale): New declaration.
14537         * lib/setlocale.c: New file, based on
14538         gettext/gettext-runtime/intl/setlocale.c.
14539         * m4/setlocale.m4: New file.
14540         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
14541         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
14542         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
14543         REPLACE_SETLOCALE.
14544         * modules/setlocale: New file.
14545         * tests/test-locale-c++.cc: Test the declaration of setlocale.
14546         * doc/posix-functions/setlocale.texi: Mention the new module.
14547
14548 2011-02-11  Bruno Haible  <bruno@clisp.org>
14549
14550         Prepare for locale dependent tests on mingw.
14551         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
14552         because it has the wrong locale encoding.
14553         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
14554         French_France.1252 instead of "fr".
14555         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
14556         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
14557         because it has the wrong locale encoding.
14558         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
14559         native Windows, try Turkish_Turkey.65001.
14560         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
14561         Chinese_China.54936.
14562
14563         Prepare for locale dependent tests on mingw.
14564         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
14565         differently.
14566         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
14567         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
14568         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
14569         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
14570
14571 2011-02-11  Eric Blake  <eblake@redhat.com>
14572
14573         strptime: avoid compiler warnings
14574         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
14575         compiler warnings about dead code.
14576         Reported by Daniel P. Berrange.
14577
14578 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
14579
14580         doc: update users.txt
14581         * users.txt: Add rcs.
14582
14583 2011-02-10  John W. Eaton  <jwe@gnu.org>
14584
14585         doc: update users.txt
14586         * users.txt: Add octave.
14587
14588 2011-02-10  Jim Meyering  <meyering@redhat.com>
14589
14590         doc: update users.txt
14591         * users.txt: Add iwhd.
14592
14593 2011-02-09  Bruno Haible  <bruno@clisp.org>
14594
14595         gnulib-tool: Make copyright notice adjustment more robust.
14596         * gnulib-tool (func_import): In sed_transform_main_lib_file,
14597         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
14598         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
14599         License".
14600         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
14601
14602 2011-02-06  Bruno Haible  <bruno@clisp.org>
14603
14604         New module 'towctrans'.
14605         * modules/towctrans: New file.
14606         * lib/wctype.in.h (towctrans): New declaration.
14607         * lib/towctrans.c: New file.
14608         * lib/towctrans-impl.h: New file.
14609         * m4/towctrans.m4: New file.
14610         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
14611         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
14612         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
14613         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
14614         * doc/posix-functions/towctrans.texi: Mention the new module.
14615
14616 2011-02-06  Bruno Haible  <bruno@clisp.org>
14617
14618         New module 'wctrans'.
14619         * modules/wctrans: New file.
14620         * lib/wctype.in.h (wctrans): New declaration.
14621         * lib/wctrans.c: New file.
14622         * lib/wctrans-impl.h: New file.
14623         * m4/wctrans.m4: New file.
14624         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
14625         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
14626         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
14627         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
14628         * doc/posix-functions/wctrans.texi: Mention the new module.
14629
14630 2011-02-06  Bruno Haible  <bruno@clisp.org>
14631
14632         New module 'iswctype'.
14633         * modules/iswctype: New file.
14634         * lib/wctype.in.h (iswctype): New declaration.
14635         * lib/iswctype.c: New file.
14636         * lib/iswctype-impl.h: New file.
14637         * m4/iswctype.m4: New file.
14638         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
14639         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
14640         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
14641         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
14642         * doc/posix-functions/iswctype.texi: Mention the new module and the
14643         HP-UX 11.00 problem.
14644
14645 2011-02-06  Bruno Haible  <bruno@clisp.org>
14646
14647         New module 'wctype'.
14648         * modules/wctype: Change to represent the wctype() substitute.
14649         * lib/wctype.in.h (wctype): New declaration.
14650         * lib/wctype.c: New file.
14651         * lib/wctype-impl.h: New file.
14652         * m4/wctype.m4: New file.
14653         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
14654         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
14655         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
14656         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
14657         * doc/posix-functions/wctype.texi: Mention the new module and the
14658         HP-UX 11.00 problem.
14659
14660 2011-02-06  Bruno Haible  <bruno@clisp.org>
14661
14662         wctype-h: Ensure wctype_t and wctrans_t are defined.
14663         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
14664         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14665         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14666         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
14667         HAVE_WCTRANS_T.
14668         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
14669
14670 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
14671
14672         flock: fix license typo
14673
14674         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
14675         omitted.
14676
14677 2011-02-08  Bruno Haible  <bruno@clisp.org>
14678
14679         Split large sed scripts, for HP-UX sed.
14680         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
14681         to avoid HP-UX limit of 99 commands, in the near future.
14682         * modules/stdlib (Makefile.am): Likewise.
14683         * modules/unistd (Makefile.am): Likewise.
14684         * modules/wchar (Makefile.am): Likewise.
14685         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14686         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
14687         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
14688
14689 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14690             Bruno Haible  <bruno@clisp.org>
14691
14692         stdlib: improve random_r modularization
14693         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
14694         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
14695         you also need the random_r module to get this material right.
14696         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
14697         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
14698         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
14699
14700 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14701
14702         stdlib: don't depend on stdint
14703         * lib/stdlib.in.h: Don't include <stdint.h> merely because
14704         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
14705         be independent of whether stdint.h is needed.
14706         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
14707         here, instead of ...
14708         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
14709         struct random_data should be using the random_r module, not just
14710         the stdlib module (which wouldn't make sense: what package needs
14711         just struct random_data without also needing random_r?).
14712         * modules/stdlib (Depends-on): Remove stdint.
14713
14714         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
14715         See the thread rooted at
14716         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
14717         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
14718         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
14719         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
14720         __VMS)); previously it was always included (via fcntl--.h).
14721         (getloadavg): Do not use c_strtod.  Instead, approximate it by
14722         hand; this is good enough for load averages.  Also, do not use
14723         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
14724         flags directly if available and don't bother otherwise.  (Packages
14725         that need the extra reliability should use the modules that define
14726         these flags on older platforms that lack them.)
14727         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
14728         fcntl-safer.
14729
14730 2011-02-08  Jim Meyering  <meyering@redhat.com>
14731
14732         di-set.h, ino-map.h: add multiple-inclusion guard
14733         Technically, the guard is required only for ino-map.h, due to its
14734         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
14735         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
14736         * lib/ino-map.h: Likewise.
14737
14738 2011-02-06  Bruno Haible  <bruno@clisp.org>
14739
14740         iswblank: Ensure declaration on glibc systems.
14741         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
14742         * modules/iswblank (Dependencies): Add 'extensions'.
14743         * doc/posix-functions/iswblank.texi: Document the glibc problem.
14744
14745 2011-02-06  Bruno Haible  <bruno@clisp.org>
14746
14747         New module 'iswblank'.
14748         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
14749         * modules/iswblank: New file.
14750         * modules/wctype-h (Files): Remove lib/iswblank.c.
14751         (Makefile.am): Substitute GNULIB_ISWBLANK.
14752         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
14753         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
14754         (gl_WCTYPE_H_DEFAULTS): New macro.
14755         (gl_WCTYPE_H): Require it. Remove iswblank related code.
14756         * modules/iswblank-tests: New file.
14757         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
14758         * tests/test-wctype-h.c (main): Remove iswblank tests.
14759         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
14760         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
14761         of 'wctype-h'.
14762         * NEWS: Mention the change.
14763         * modules/mbchar (Depends-on): Add iswblank.
14764
14765 2011-02-08  Bruno Haible  <bruno@clisp.org>
14766
14767         di-set tests: Refactor.
14768         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
14769         unnecessary includes.
14770         (ASSERT): Remove macro.
14771         (main): Make C90 compliant by avoiding variable declaration after
14772         statement.
14773         * modules/di-set-tests (Files): Add tests/macros.h.
14774
14775 2011-02-08  Bruno Haible  <bruno@clisp.org>
14776
14777         ino-map tests: Refactor.
14778         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
14779         unnecessary includes.
14780         (ASSERT): Remove macro.
14781         (main): Make C90 compliant by avoiding variable declaration after
14782         statement.
14783         * modules/ino-map-tests (Files): Add tests/macros.h.
14784
14785 2011-02-08  Jim Meyering  <meyering@redhat.com>
14786
14787         di-set: add "const" to a cast
14788         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
14789         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
14790
14791 2011-02-06  Bruno Haible  <bruno@clisp.org>
14792
14793         Rename module 'wctype' to 'wctype-h'.
14794         * modules/wctype-h: Renamed from modules/wctype.
14795         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
14796         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
14797         (Files, Depends-on, Makefile.am): Update.
14798         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
14799         (Files, Makefile.am): Update.
14800         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
14801         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
14802         * doc/posix-headers/wctype.texi: Update.
14803         * doc/posix-functions/iswalnum.texi: Update.
14804         * doc/posix-functions/iswalpha.texi: Update.
14805         * doc/posix-functions/iswblank.texi: Update.
14806         * doc/posix-functions/iswcntrl.texi: Update.
14807         * doc/posix-functions/iswdigit.texi: Update.
14808         * doc/posix-functions/iswgraph.texi: Update.
14809         * doc/posix-functions/iswlower.texi: Update.
14810         * doc/posix-functions/iswprint.texi: Update.
14811         * doc/posix-functions/iswpunct.texi: Update.
14812         * doc/posix-functions/iswspace.texi: Update.
14813         * doc/posix-functions/iswupper.texi: Update.
14814         * doc/posix-functions/iswxdigit.texi: Update.
14815         * doc/posix-functions/towlower.texi: Update.
14816         * doc/posix-functions/towupper.texi: Update.
14817         * NEWS: Mention the change.
14818         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
14819         * modules/mbchar (Dependencies): Likewise.
14820         * modules/mbswidth (Dependencies): Likewise.
14821         * modules/quotearg (Dependencies): Likewise.
14822         * modules/regex (Dependencies): Likewise.
14823         * modules/wcscasecmp (Dependencies): Likewise.
14824         * modules/wcsncasecmp (Dependencies): Likewise.
14825         * modules/wcwidth (Dependencies): Likewise.
14826
14827 2011-02-06  Bruno Haible  <bruno@clisp.org>
14828
14829         New module 'wcswidth'.
14830         * modules/wcswidth: New file.
14831         * lib/wchar.in.h (wcswidth): New declaration.
14832         * lib/wcswidth.c: New file.
14833         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
14834         * m4/wcswidth.m4: New file.
14835         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
14836         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
14837         REPLACE_WCSWIDTH.
14838         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
14839         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
14840         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
14841         * doc/posix-functions/wcswidth.texi: Mention the new module.
14842
14843 2011-02-06  Bruno Haible  <bruno@clisp.org>
14844
14845         New module 'wcstok'.
14846         * modules/wcstok: New file.
14847         * lib/wchar.in.h (wcstok): New declaration.
14848         * lib/wcstok.c: New file.
14849         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
14850         * m4/wcstok.m4: New file.
14851         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
14852         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
14853         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
14854         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
14855         * doc/posix-functions/wcstok.texi: Mention the new module.
14856
14857 2011-02-06  Bruno Haible  <bruno@clisp.org>
14858
14859         New module 'wcsstr'.
14860         * modules/wcsstr: New file.
14861         * lib/wchar.in.h (wcsstr): New declaration.
14862         * lib/wcsstr.c: New file.
14863         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
14864         * m4/wcsstr.m4: New file.
14865         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
14866         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
14867         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
14868         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
14869         * doc/posix-functions/wcsstr.texi: Mention the new module.
14870
14871 2011-02-06  Bruno Haible  <bruno@clisp.org>
14872
14873         New module 'wcspbrk'.
14874         * modules/wcspbrk: New file.
14875         * lib/wchar.in.h (wcspbrk): New declaration.
14876         * lib/wcspbrk.c: New file.
14877         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
14878         * m4/wcspbrk.m4: New file.
14879         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
14880         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
14881         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
14882         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
14883         * doc/posix-functions/wcspbrk.texi: Mention the new module.
14884
14885 2011-02-06  Bruno Haible  <bruno@clisp.org>
14886
14887         New module 'wcsspn'.
14888         * modules/wcsspn: New file.
14889         * lib/wchar.in.h (wcsspn): New declaration.
14890         * lib/wcsspn.c: New file.
14891         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
14892         * m4/wcsspn.m4: New file.
14893         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
14894         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
14895         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
14896         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
14897         * doc/posix-functions/wcsspn.texi: Mention the new module.
14898
14899 2011-02-06  Bruno Haible  <bruno@clisp.org>
14900
14901         New module 'wcscspn'.
14902         * modules/wcscspn: New file.
14903         * lib/wchar.in.h (wcscspn): New declaration.
14904         * lib/wcscspn.c: New file.
14905         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
14906         * m4/wcscspn.m4: New file.
14907         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
14908         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
14909         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
14910         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
14911         * doc/posix-functions/wcscspn.texi: Mention the new module.
14912
14913 2011-02-06  Bruno Haible  <bruno@clisp.org>
14914
14915         New module 'wcsrchr'.
14916         * modules/wcsrchr: New file.
14917         * lib/wchar.in.h (wcsrchr): New declaration.
14918         * lib/wcsrchr.c: New file.
14919         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
14920         * m4/wcsrchr.m4: New file.
14921         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
14922         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
14923         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
14924         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
14925         * doc/posix-functions/wcsrchr.texi: Mention the new module.
14926
14927 2011-02-06  Bruno Haible  <bruno@clisp.org>
14928
14929         New module 'wcschr'.
14930         * modules/wcschr: New file.
14931         * lib/wchar.in.h (wcschr): New declaration.
14932         * lib/wcschr.c: New file.
14933         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
14934         * m4/wcschr.m4: New file.
14935         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
14936         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
14937         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
14938         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
14939         * doc/posix-functions/wcschr.texi: Mention the new module.
14940
14941 2011-02-06  Bruno Haible  <bruno@clisp.org>
14942
14943         New module 'wcsdup'.
14944         * modules/wcsdup: New file.
14945         * lib/wchar.in.h (wcsdup): New declaration.
14946         * lib/wcsdup.c: New file.
14947         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
14948         * m4/wcsdup.m4: New file.
14949         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
14950         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
14951         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
14952         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
14953         * doc/posix-functions/wcsdup.texi: Mention the new module.
14954
14955 2011-02-06  Bruno Haible  <bruno@clisp.org>
14956
14957         New module 'wcsxfrm'.
14958         * modules/wcsxfrm: New file.
14959         * lib/wchar.in.h (wcsxfrm): New declaration.
14960         * lib/wcsxfrm.c: New file.
14961         * lib/wcsxfrm-impl.h: New file.
14962         * m4/wcsxfrm.m4: New file.
14963         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
14964         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
14965         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
14966         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
14967         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
14968
14969 2011-02-06  Bruno Haible  <bruno@clisp.org>
14970
14971         New module 'wcscoll'.
14972         * modules/wcscoll: New file.
14973         * lib/wchar.in.h (wcscoll): New declaration.
14974         * lib/wcscoll.c: New file.
14975         * lib/wcscoll-impl.h: New file.
14976         * m4/wcscoll.m4: New file.
14977         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
14978         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
14979         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
14980         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
14981         * doc/posix-functions/wcscoll.texi: Mention the new module.
14982
14983 2011-02-06  Bruno Haible  <bruno@clisp.org>
14984
14985         New module 'wcsncasecmp'.
14986         * modules/wcsncasecmp: New file.
14987         * lib/wchar.in.h (wcsncasecmp): New declaration.
14988         * lib/wcsncasecmp.c: New file.
14989         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
14990         * m4/wcsncasecmp.m4: New file.
14991         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
14992         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
14993         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
14994         HAVE_WCSNCASECMP.
14995         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
14996         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
14997
14998 2011-02-06  Bruno Haible  <bruno@clisp.org>
14999
15000         New module 'wcscasecmp'.
15001         * modules/wcscasecmp: New file.
15002         * lib/wchar.in.h (wcscasecmp): New declaration.
15003         * lib/wcscasecmp.c: New file.
15004         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
15005         * m4/wcscasecmp.m4: New file.
15006         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
15007         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
15008         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
15009         HAVE_WCSCASECMP.
15010         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
15011         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
15012
15013 2011-02-05  Bruno Haible  <bruno@clisp.org>
15014
15015         New module 'wcsncmp'.
15016         * modules/wcsncmp: New file.
15017         * lib/wchar.in.h (wcsncmp): New declaration.
15018         * lib/wcsncmp.c: New file.
15019         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
15020         * m4/wcsncmp.m4: New file.
15021         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
15022         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
15023         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
15024         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
15025         * doc/posix-functions/wcsncmp.texi: Mention the new module.
15026
15027 2011-02-05  Bruno Haible  <bruno@clisp.org>
15028
15029         New module 'wcscmp'.
15030         * modules/wcscmp: New file.
15031         * lib/wchar.in.h (wcscmp): New declaration.
15032         * lib/wcscmp.c: New file.
15033         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
15034         * m4/wcscmp.m4: New file.
15035         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
15036         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
15037         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
15038         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
15039         * doc/posix-functions/wcscmp.texi: Mention the new module.
15040
15041 2011-02-05  Bruno Haible  <bruno@clisp.org>
15042
15043         New module 'wcsncat'.
15044         * modules/wcsncat: New file.
15045         * lib/wchar.in.h (wcsncat): New declaration.
15046         * lib/wcsncat.c: New file.
15047         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
15048         * m4/wcsncat.m4: New file.
15049         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
15050         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
15051         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
15052         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
15053         * doc/posix-functions/wcsncat.texi: Mention the new module.
15054
15055 2011-02-05  Bruno Haible  <bruno@clisp.org>
15056
15057         New module 'wcscat'.
15058         * modules/wcscat: New file.
15059         * lib/wchar.in.h (wcscat): New declaration.
15060         * lib/wcscat.c: New file.
15061         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
15062         * m4/wcscat.m4: New file.
15063         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
15064         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
15065         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
15066         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
15067         * doc/posix-functions/wcscat.texi: Mention the new module.
15068
15069 2011-02-05  Bruno Haible  <bruno@clisp.org>
15070
15071         New module 'wcpncpy'.
15072         * modules/wcpncpy: New file.
15073         * lib/wchar.in.h (wcpncpy): New declaration.
15074         * lib/wcpncpy.c: New file.
15075         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
15076         * m4/wcpncpy.m4: New file.
15077         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
15078         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
15079         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
15080         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
15081         * doc/posix-functions/wcpncpy.texi: Mention the new module.
15082
15083 2011-02-05  Bruno Haible  <bruno@clisp.org>
15084
15085         New module 'wcsncpy'.
15086         * modules/wcsncpy: New file.
15087         * lib/wchar.in.h (wcsncpy): New declaration.
15088         * lib/wcsncpy.c: New file.
15089         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
15090         * m4/wcsncpy.m4: New file.
15091         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
15092         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
15093         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
15094         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
15095         * doc/posix-functions/wcsncpy.texi: Mention the new module.
15096
15097 2011-02-05  Bruno Haible  <bruno@clisp.org>
15098
15099         New module 'wcpcpy'.
15100         * modules/wcpcpy: New file.
15101         * lib/wchar.in.h (wcpcpy): New declaration.
15102         * lib/wcpcpy.c: New file.
15103         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
15104         * m4/wcpcpy.m4: New file.
15105         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
15106         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
15107         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
15108         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
15109         * doc/posix-functions/wcpcpy.texi: Mention the new module.
15110
15111 2011-02-05  Bruno Haible  <bruno@clisp.org>
15112
15113         New module 'wcscpy'.
15114         * modules/wcscpy: New file.
15115         * lib/wchar.in.h (wcscpy): New declaration.
15116         * lib/wcscpy.c: New file.
15117         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
15118         * m4/wcscpy.m4: New file.
15119         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
15120         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
15121         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
15122         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
15123         * doc/posix-functions/wcscpy.texi: Mention the new module.
15124
15125 2011-02-05  Bruno Haible  <bruno@clisp.org>
15126
15127         New module 'wcsnlen'.
15128         * modules/wcsnlen: New file.
15129         * lib/wchar.in.h (wcsnlen): New declaration.
15130         * lib/wcsnlen.c: New file.
15131         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
15132         * m4/wcsnlen.m4: New file.
15133         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
15134         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
15135         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
15136         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
15137         * doc/posix-functions/wcsnlen.texi: Mention the new module.
15138
15139 2011-02-05  Bruno Haible  <bruno@clisp.org>
15140
15141         New module 'wcslen'.
15142         * modules/wcslen: New file.
15143         * lib/wchar.in.h (wcslen): New declaration.
15144         * lib/wcslen.c: New file.
15145         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
15146         * m4/wcslen.m4: New file.
15147         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
15148         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
15149         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
15150         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
15151         * doc/posix-functions/wcslen.texi: Mention the new module.
15152
15153 2011-02-05  Bruno Haible  <bruno@clisp.org>
15154
15155         New module 'wmemset'.
15156         * modules/wmemset: New file.
15157         * lib/wchar.in.h (wmemset): New declaration.
15158         * lib/wmemset.c: New file.
15159         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
15160         * m4/wmemset.m4: New file.
15161         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
15162         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
15163         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
15164         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
15165         * doc/posix-functions/wmemset.texi: Mention the new module.
15166
15167 2011-02-05  Bruno Haible  <bruno@clisp.org>
15168
15169         New module 'wmemmove'.
15170         * modules/wmemmove: New file.
15171         * lib/wchar.in.h (wmemmove): New declaration.
15172         * lib/wmemmove.c: New file.
15173         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
15174         * m4/wmemmove.m4: New file.
15175         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
15176         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
15177         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
15178         HAVE_WMEMMOVE.
15179         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
15180         * doc/posix-functions/wmemmove.texi: Mention the new module.
15181
15182 2011-02-05  Bruno Haible  <bruno@clisp.org>
15183
15184         New module 'wmemcpy'.
15185         * modules/wmemcpy: New file.
15186         * lib/wchar.in.h (wmemcpy): New declaration.
15187         * lib/wmemcpy.c: New file.
15188         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
15189         * m4/wmemcpy.m4: New file.
15190         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
15191         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
15192         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
15193         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
15194         * doc/posix-functions/wmemcpy.texi: Mention the new module.
15195
15196 2011-02-05  Bruno Haible  <bruno@clisp.org>
15197
15198         New module 'wmemcmp'.
15199         * modules/wmemcmp: New file.
15200         * lib/wchar.in.h (wmemcmp): New declaration.
15201         * lib/wmemcmp.c: New file.
15202         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
15203         * m4/wmemcmp.m4: New file.
15204         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
15205         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
15206         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
15207         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
15208         * doc/posix-functions/wmemcmp.texi: Mention the new module.
15209
15210 2011-02-07  Jim Meyering  <meyering@redhat.com>
15211
15212         di-set, ino-map: new modules, from coreutils
15213         * lib/di-set.c: New file.
15214         * lib/di-set.h: Likewise.
15215         * lib/ino-map.c: Likewise.
15216         * lib/ino-map.h: Likewise.
15217         * modules/di-set: Likewise.
15218         * modules/di-set-tests: Likewise.
15219         * modules/ino-map: Likewise.
15220         * modules/ino-map-tests: Likewise.
15221         * tests/test-di-set.c: Likewise.
15222         * tests/test-ino-map.c: Likewise.
15223
15224 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
15225
15226         getloadavg: merge minor changes from Emacs
15227
15228         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
15229         (getloadavg): Use memset, not bzero.
15230
15231         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
15232         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
15233         clash (bug#86).
15234
15235 2010-11-14  Bruno Haible  <bruno@clisp.org>
15236
15237         Allow multiple gnulib generated replacements to coexist.
15238         * lib/getopt.in.h (struct option): Avoid identical redefinition.
15239         * lib/inttypes.in.h (imaxdiv_t): Likewise.
15240         * lib/langinfo.in.h (nl_item): Likewise.
15241         * lib/math.in.h (_NaN, NAN): Likewise.
15242         * lib/netdb.in.h (struct addrinfo): Likewise.
15243         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
15244         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
15245         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
15246         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
15247         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
15248         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
15249         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
15250         pthread_mutexattr_init, pthread_mutexattr_settype,
15251         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
15252         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
15253         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
15254         pthread_spin_trylock, pthread_spin_unlock): Likewise.
15255         * lib/sched.in.h (struct sched_param): Likewise.
15256         * lib/se-selinux.in.h (security_class_t, security_context_t,
15257         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
15258         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
15259         lsetfilecon, fsetfilecon, security_check_context,
15260         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
15261         Likewise.
15262         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
15263         Likewise.
15264         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
15265         _gl_function_taking_int_returning_void_t, union sigval,
15266         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
15267         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
15268         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
15269         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
15270         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
15271         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
15272         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
15273         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
15274         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
15275         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
15276         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
15277         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
15278         socklen_t, rpl_fd_isset): Likewise.
15279         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
15280         * lib/sys_time.in.h (struct timeval): Likewise.
15281         * lib/sys_times.in.h (struct tms): Likewise.
15282         * lib/sys_utsname.in.h (struct utsname):
15283         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
15284         * lib/unistd.in.h (getpagesize): Likewise.
15285         * lib/wchar.in.h (mbstate_t): Likewise.
15286         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
15287         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
15288         towlower, towupper): Likewise.
15289         Reported by Sam Steingold <sds@gnu.org>.
15290
15291 2011-02-05  Eric Blake  <eblake@redhat.com>
15292
15293         unsetenv: work around Haiku issues
15294         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
15295         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
15296
15297 2010-12-30  Bruce Korb  <bkorb@gnu.org>
15298
15299         libposix: avoid calling error() within libposix
15300         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
15301         is defined.
15302
15303 2011-02-05  Eric Blake  <eblake@redhat.com>
15304
15305         strerror_r-posix: port to cygwin
15306         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
15307         implementation.
15308         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
15309         * tests/test-strerror_r.c (main): Fix test.
15310         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
15311         issue.
15312
15313 2011-02-05  Bruno Haible  <bruno@clisp.org>
15314
15315         New module 'wmemchr'.
15316         * modules/wmemchr: New file.
15317         * lib/wchar.in.h (wmemchr): New declaration.
15318         * lib/wmemchr.c: New file.
15319         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
15320         * m4/wmemchr.m4: New file.
15321         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
15322         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
15323         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
15324         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
15325         * doc/posix-functions/wmemchr.texi: Mention the new module.
15326
15327 2011-02-04  Eric Blake  <eblake@redhat.com>
15328
15329         fdopendir: detect FreeBSD bug
15330         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
15331         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
15332
15333 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
15334
15335         stdbool: do not define HAVE_STDBOOL_H
15336         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
15337         AC_HEADER_STDBOOL.  All uses changed.  Do not define
15338         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
15339         imported from the latest Autoconf git.  It was motivated by Emacs,
15340         which uses gnulib but does not need HAVE_STDBOOL_H.
15341
15342 2011-02-04  Bruno Haible  <bruno@clisp.org>
15343
15344         wcsnrtombs: Prepare for new module wwcsnrtombs.
15345         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
15346         * lib/wcsnrtombs.c: Include it.
15347         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
15348
15349         wcsrtombs: Prepare for new module wwcsrtombs.
15350         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
15351         * lib/wcsrtombs.c: Include it.
15352         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
15353
15354         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
15355         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
15356         * lib/mbsnrtowcs.c: Include it.
15357         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
15358
15359         mbsrtowcs: Prepare for new module mbsrtowwcs.
15360         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
15361         * lib/mbsrtowcs.c: Include it.
15362         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
15363
15364 2011-02-04  Bruno Haible  <bruno@clisp.org>
15365
15366         vasnprintf: Reduce use of malloc for small format strings.
15367         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
15368         (arguments): Add room for the first 7 arguments.
15369         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
15370         (char_directives, u8_directives, u16_directives, u32_directives): Add
15371         room for the first 7 directives.
15372         * lib/printf-parse.c: Include <string.h>.
15373         (PRINTF_PARSE): Change memory handling code so that it uses the first
15374         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
15375         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
15376         Reported by Pádraig Brady <P@draigbrady.com>.
15377
15378 2011-01-31  Eric Blake  <eblake@redhat.com>
15379
15380         dup2: work around Haiku bug
15381         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
15382         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
15383         * doc/posix-functions/dup2.texi (dup2): Document the bug.
15384         * tests/test-dup2.c (main): Enhance test.
15385
15386 2011-01-31  Simon Josefsson  <simon@josefsson.org>
15387
15388         doc: off_t is not available in eglibc 2.11.2 stdio.h.
15389         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
15390         declared by eglibc 2.11.2.
15391         * lib/stdio.in.h: Likewise.
15392
15393 2011-01-31  Eric Blake  <eblake@redhat.com>
15394
15395         ignore-value: add missing test dependency
15396         * tests/test-ignore-value.c: Revert previous change; stdio.h
15397         provides off_t.
15398         * modules/ignore-value-tests (Depends-on): Add missing dependency.
15399
15400 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
15401
15402         mktime: clarify long_int width checking
15403         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
15404         the top level, to make it clearer that the assumption about
15405         long_int width is being checked.  See
15406         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
15407
15408 2011-01-30  Simon Josefsson  <simon@josefsson.org>
15409
15410         ignore-value: Fix self-test.
15411         * tests/test-ignore-value.c: Include sys/types.h for off_t.
15412
15413 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
15414
15415         TYPE_MAXIMUM: avoid theoretically undefined behavior
15416         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
15417         negative number, which the C Standard says has undefined behavior.
15418         In practice this is not a problem, but might as well do it by the book.
15419         Reported by Rich Felker and Eric Blake; see
15420         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
15421         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
15422         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
15423         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15424         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
15425         * m4/stdint.m4 (gl_STDINT_H): Likewise.
15426         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
15427
15428         mktime: #undef mktime before #defining it
15429         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
15430
15431         mktime: systematically normalize tm_isdst comparisons
15432         * lib/mktime.c (isdst_differ): New function.
15433         (__mktime_internal): Use it systematically for all isdst comparisons.
15434         This completes the fix for libc BZ #6723, and removes the need for
15435         normalizing tm_isdst.  See
15436         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
15437         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
15438
15439         mktime: fix some integer overflow issues and sidestep the rest
15440
15441         This was prompted by a bug report by Benjamin Lindner for MinGW
15442         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
15443         His bug is due to signed integer overflow (0 - INT_MIN), and I
15444         I scanned through mktime.c looking for other integer overflow
15445         problems, fixing all the bugs I found.
15446
15447         Although the C Standard says the resulting code is still not safe
15448         in the presence of integer overflow, in practice it should be good
15449         enough for all real-world two's-complement implementations, except
15450         for debugging environments that deliberately trap on integer
15451         overflow (e.g., gcc -ftrapv).
15452
15453         * lib/mktime.c (WRAPV): New macro.
15454         (SHR): Also check that long_int and time_t shift right in the
15455         usual way, before using the fast-but-unportable method.
15456         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
15457         used.  The code already assumed two's complement, so there's
15458         no need to test for alternatives.  All uses removed.
15459         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
15460         the C standard.  Problem reported by Rich Felker in
15461         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
15462         (twos_complement_arithmetic): Also check long_int and time_t.
15463         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
15464         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
15465         (__mktime_internal): Avoid integer overflow with unary subtraction
15466         in two instances where -1 - X is an adequate replacement for -X,
15467         since the calculations are approximate.
15468
15469 2011-01-29  Eric Blake  <eblake@redhat.com>
15470
15471         mktime: avoid infinite loop
15472         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
15473         type; behavior is still undefined but portable to all known targets.
15474         Reported by Rich Felker.
15475
15476 2011-01-29  Simon Josefsson  <simon@josefsson.org>
15477
15478         rename, unlink, same-inode: Relicense.
15479         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
15480         * modules/unlink (License): Likewise.
15481         * modules/same-inode (License): Likewise.
15482
15483 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
15484
15485         mktime: avoid problems on NetBSD 5 / i386
15486         * lib/mktime.c (long_int): New type.  This works around a problem
15487         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
15488         but time_t is 64 bits, and where I expect the existing code is
15489         wrong in some cases.
15490         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
15491         (ydhms_diff): Bring back the compile-time check for wide-enough
15492         year and yday.
15493
15494         mktime: fix misspelling in comment
15495         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
15496         This merges all recent glibc changes of importance.
15497
15498 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15499
15500         move-if-change: cope with concurrent mv of identical file.
15501         * build-aux/move-if-change (CMPPROG): Accept environment
15502         variable as an override for `cmp'.
15503         (usage): Document CMPPROG.
15504         Adjust comparison to drop stdout.  Cope with failure of mv if
15505         the target file exists and is identical to the source, for
15506         parallel builds.
15507         Report from H.J. Lu against binutils in PR binutils/12283.
15508
15509 2011-01-28  Bruce Korb  <bkorb@gnu.org>
15510
15511         * users.txt: Mention sharutils.
15512
15513 2011-01-28  Simon Josefsson  <simon@josefsson.org>
15514
15515         * users.txt: Mention OATH Toolkit.
15516
15517 2011-01-27  Bruno Haible  <bruno@clisp.org>
15518
15519         Prepare for supporting FreeBSD 10.
15520         * build-aux/config.libpath: Remove handling of freebsd1*.
15521
15522 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
15523
15524         Prepare for supporting FreeBSD 10.
15525         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
15526         match FreeBSD 10.0.
15527
15528 2011-01-27  Bruno Haible  <bruno@clisp.org>
15529
15530         vma-iter, get-rusage-as: Add OpenBSD support.
15531         * modules/vma-iter (configure.ac): Test for mquery.
15532         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
15533         * lib/vma-iter.c: Include <sys/mman.h>.
15534         (vma_iterate): Add an implementation based on mquery().
15535         * lib/resource-ext.h (get_rusage_as): Update comments.
15536         * lib/get-rusage-as.c: Likewise.
15537         * lib/get-rusage-data.c: Likewise.
15538
15539 2011-01-26  Karl Berry  <karl@gnu.org>
15540
15541         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
15542         variables to make it easier to override the makeinfo program used.
15543
15544 2011-01-26  Eric Blake  <eblake@redhat.com>
15545
15546         fcntl: work around Haiku F_DUPFD bugs
15547         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
15548         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
15549         cloexec bit on duplication.
15550         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
15551
15552 2011-01-26  Bruno Haible  <bruno@clisp.org>
15553
15554         Enable memory leak tests on AIX.
15555         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
15556         * tests/test-fprintf-posix3.c (main): Likewise.
15557
15558 2011-01-26  Bruno Haible  <bruno@clisp.org>
15559
15560         Tests for module 'get-rusage-data'.
15561         * modules/get-rusage-data-tests: New file.
15562         * tests/test-get-rusage-data.c: New file.
15563
15564         New module 'get-rusage-data'.
15565         * lib/resource-ext.h (get_rusage_data): New declaration.
15566         * lib/get-rusage-data.c: New file.
15567         * modules/get-rusage-data: New file.
15568
15569 2011-01-25  Bruno Haible  <bruno@clisp.org>
15570
15571         get-rusage-as: Allow for easier testing.
15572         * lib/resource-ext.h (get_rusage_as): Add comment.
15573         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
15574         (main): New function for interactive testing.
15575
15576 2011-01-25  Bruno Haible  <bruno@clisp.org>
15577
15578         vma-iter: Treat Haiku like BeOS.
15579         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
15580         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
15581
15582 2011-01-25  Eric Blake  <eblake@redhat.com>
15583
15584         c-stack: fix regression on cygwin when libsigsegv is present
15585         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
15586
15587 2011-01-24  Bruno Haible  <bruno@clisp.org>
15588
15589         vma-iter: Avoid empty intervals.
15590         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
15591         on an empty interval.
15592
15593 2011-01-24  Jim Meyering  <meyering@redhat.com>
15594
15595         u64: remove unnecessary #include
15596         * lib/u64.h: Don't include <stddef.h>.  It was not used.
15597
15598 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
15599
15600         Allow the user to avoid the HAVE_RAW_DECL_* macros.
15601         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
15602
15603 2011-01-23  Bruno Haible  <bruno@clisp.org>
15604
15605         New module 'vma-iter'.
15606         * lib/vma-iter.h: New file.
15607         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
15608         * modules/vma-iter: New file.
15609         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
15610         for get_rusage_as_via_iterator.
15611         (vma_iterate_callback): New function.
15612         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
15613         * modules/get-rusage-as (Depends-on): Add vma-iter.
15614
15615 2011-01-23  Bruno Haible  <bruno@clisp.org>
15616
15617         uninorm: Tweak includes.
15618         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
15619         Reported by Jim Meyering.
15620
15621 2011-01-23  Bruno Haible  <bruno@clisp.org>
15622
15623         get-rusage-as: Improve on NetBSD.
15624         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
15625         /proc, like on FreeBSD.
15626
15627 2011-01-23  Jim Meyering  <meyering@redhat.com>
15628
15629         xreadlink.h: remove unnecessary #include
15630         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
15631
15632         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
15633         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
15634
15635 2011-01-23  Bruno Haible  <bruno@clisp.org>
15636
15637         get-rusage-as: Fix bug.
15638         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
15639         original limit when aborting the first loop.
15640
15641 2011-01-23  Bruno Haible  <bruno@clisp.org>
15642
15643         wctype: Ensure valid C syntax.
15644         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
15645         unconditionally, instead of gl_NEXT_HEADERS conditionally.
15646
15647 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
15648
15649         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
15650         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
15651         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
15652         as they are needed only for configure's test case.
15653         This removes two unnecessary symbols from config.h.
15654
15655         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
15656         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
15657         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
15658         AC_CHECK_HEADERS_ONCE on a header that we also invoke
15659         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
15660         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
15661         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
15662         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
15663         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
15664         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15665         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
15666         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15667         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15668         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15669         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
15670         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15671         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
15672         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
15673
15674 2011-01-21  Eric Blake  <eblake@redhat.com>
15675
15676         maintainer-makefile: work with older git for submodule check
15677         * top/maint.mk (public-submodule-commit): Rewrite to avoid
15678         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
15679         Reported by Matthias Bolte.
15680
15681         bootstrap: minor portability fixes
15682         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
15683         (usage): Omit leading capital and trailing . on help phrases, per
15684         GNU Coding Standards.
15685         (check_versions, top level): Prefix messages with script name.
15686
15687 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
15688
15689         bootstrap: support --no-git option
15690         * build-aux/bootstrap: Add --no-git option, to be used when
15691         --gnulib-srcdir points to the exact desired checkout.
15692
15693 2011-01-21  Eric Blake  <eblake@redhat.com>
15694
15695         strerror_r-posix: work with glibc 2.13
15696         * lib/strerror_r.c (strerror_r): Fix return type.
15697
15698 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15699             Bruno Haible  <bruno@clisp.org>
15700
15701         uN_strstr: New unit tests.
15702         * modules/unistr/u8-strstr-tests: New file.
15703         * modules/unistr/u16-strstr-tests: New file.
15704         * modules/unistr/u32-strstr-tests: New file.
15705         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
15706         * tests/unistr/test-u8-strstr.c: New file.
15707         * tests/unistr/test-u16-strstr.c: New file.
15708         * tests/unistr/test-u32-strstr.c: New file.
15709
15710 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15711             Bruno Haible  <bruno@clisp.org>
15712
15713         Make uN_strstr functions O(n) worst-case.
15714         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
15715         16-bit and 32-bit unit cases, use the unibyte algorithm from
15716         lib/mbsstr.c.
15717         * lib/unistr/u8-strstr.c: Include <string.h>.
15718         (UNIT_IS_UINT8_T): New macro.
15719         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
15720         (U_STRLEN, U_STRNLEN): New macros.
15721         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
15722         (U_STRLEN, U_STRNLEN): New macros.
15723         * modules/unistr/u8-strstr (Depends-on): Add strstr.
15724         (configure.ac): Update required libunistring version.
15725         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
15726         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
15727         malloca.
15728         (configure.ac): Update required libunistring version.
15729         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
15730         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
15731         malloca.
15732         (configure.ac): Update required libunistring version.
15733
15734 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15735             Bruno Haible  <bruno@clisp.org>
15736
15737         Prepare for faster uN_strstr functions.
15738         * lib/str-kmp.h: Support definable UNITs.
15739         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
15740         needle_len argument.
15741         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
15742         * lib/mbscasestr.c (mbscasestr): Likewise.
15743
15744 2011-01-21  Pádraig Brady <P@draigBrady.com>
15745
15746         malloca-tests: make faster by unsetting MALLOC_PERTURB_
15747         * tests/test-malloca.c (main): Unset the environment variable
15748         to greatly speed up the test.
15749         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
15750         * modules/malloca-tests: Depend on unsetenv.
15751
15752 2011-01-21  Pádraig Brady <P@draigBrady.com>
15753
15754         ignore-value: remove stdint dependency
15755         * lib/ignore-value.h: Remove <stdint.h>
15756         * modules/ignore-value: Remove stdint dependency.
15757
15758 2011-01-21  Jim Meyering  <meyering@redhat.com>
15759
15760         maint.mk: adjust variable name to be consistent with other gl_ vars
15761         * top/maint.mk (gl_public_submodule_commit): Rename the variable
15762         to be lower case.
15763
15764 2011-01-20  Jim Meyering  <meyering@redhat.com>
15765
15766         maint.mk: make "check" depend on public-submodule-commit by default
15767         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
15768
15769 2011-01-20  Bruno Haible  <bruno@clisp.org>
15770
15771         mbfile, mbiter: Complete change from 2008-12-21.
15772         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
15773         * m4/mbiter.m4 (gl_MBITER): Likewise.
15774
15775 2011-01-20  Jim Meyering  <meyering@redhat.com>
15776
15777         init.sh: insert space between each function name and "()"
15778         * tests/init.sh: Make it a little easier to see that a function's
15779         name is "warn_", and not "warn" when looking at the first part of
15780         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
15781
15782 2011-01-20  Jim Meyering  <meyering@redhat.com>
15783
15784         mountlist: clean up code formatting
15785         * lib/mountlist.c (read_file_system_list): Split a long line,
15786         correct bracing style, use NULL in place of "(struct statfs *)0",
15787         don't parenthesize return value, add spaces around "=" and after
15788         ";-in-for-stmt".
15789
15790 2011-01-14  Markus Duft <mduft@gentoo.org>
15791
15792         mountlist: add support for Interix
15793         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
15794         Apply statvfs to all entries of /dev/fs.
15795         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
15796         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
15797
15798 2011-01-20  Jim Meyering  <meyering@redhat.com>
15799
15800         maint.mk: improve the public-submodule-commit rule
15801         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
15802         to suppress printing of its commands... unless V=1.
15803         Add git submodule's --quiet option to suppress printing of e.g.,
15804         "Entering gnulib" output.
15805         "cd" into $(srcdir) before running git submodule.
15806
15807 2011-01-20  Bruno Haible  <bruno@clisp.org>
15808
15809         include_next: Fix bug introduced on 2011-01-18.
15810         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
15811         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
15812         ac_cv_header_... variable if the second argument is not 'check'.
15813         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
15814         gl_NEXT_HEADERS_INTERNAL.
15815
15816 2011-01-20  Bruno Haible  <bruno@clisp.org>
15817
15818         Allow the user to avoid the GNULIB_TEST_* macros.
15819         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
15820         Suggested by Paul Eggert.
15821
15822 2011-01-14  Jim Meyering  <meyering@redhat.com>
15823
15824         bootstrap: avoid failure when there is no .gitmodules file
15825         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
15826         has been assigned to, even when its value is the empty string.
15827         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
15828         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
15829         Reported by John W. Eaton <jwe@gnu.org>.
15830
15831 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
15832
15833         assume <ctype.h>, ..., <time.h> exist
15834         For years gnulib has been assuming the existence of the headers
15835         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
15836         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
15837         them, since they don't appear to be needed.
15838         * README (Portability guidelines): Document this.
15839         * lib/flock.c: Assume <fcntl.h> exists.
15840         * lib/regex_internal.h: Assume <locale.h> exists.
15841         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
15842         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
15843         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
15844         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
15845         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
15846         * m4/regex.m4 (gl_REGEX): Likewise.
15847         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
15848         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
15849         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
15850         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
15851         * tests/test-argp.c: Likewise.
15852         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
15853
15854         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
15855         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
15856         AA_APPLE_UNIVERSAL_BUILD.  See
15857         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
15858         * NEWS: Document this.
15859
15860 2011-01-19  Eric Blake  <eblake@redhat.com>
15861
15862         c-stack: assume stack overflow if SA_SIGINFO unsupported
15863         * lib/c-stack.c (SIGACTION_WORKS): Rename...
15864         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
15865         sigaction will work.
15866         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
15867         behavior match Linux.
15868         * tests/test-c-stack.c (main): Prefer NULL for pointers.
15869
15870         stdbool-tests: accomodate Haiku
15871         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
15872
15873         binary-io: fix O_TEXT on Haiku
15874         * modules/binary-io (Depends-on): Add fcntl-h.
15875         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
15876         than blindly undefining O_TEXT.
15877         Reported by Scott McCreary.
15878
15879 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15880
15881         include_next: do not check for standard headers like stddef.h
15882
15883         I found this problem when modifying Emacs to use gnulib.
15884         I noticed that it added HAVE_STDDEF_H to config.h, even though
15885         gnulib always assumes <stddef.h> exists as per README and this
15886         symbol is unnecessary.
15887         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
15888         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
15889         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
15890         faster for headers like stddef.h that are known to exist.
15891         (gl_CHECK_NEXT_HEADERS): Use it.
15892         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
15893         rather than gl_CHECK_NEXT_HEADERS.
15894         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
15895         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
15896
15897 2011-01-18  Eric Blake  <eblake@redhat.com>
15898
15899         ansi-c++-opt: skip C++ dependency style if C++ is unused
15900         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
15901         tests when we know C++ compilation is not desired.
15902         Reported by Scott McCreary.
15903
15904 2011-01-18  Bruno Haible  <bruno@clisp.org>
15905
15906         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
15907         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
15908         (main): Perform test also when getrlimit and setrlimit don't exist or
15909         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
15910         limiting the address space size using setrlimit, compare the address
15911         space size before and after the the test.
15912         * tests/test-dprintf-posix2.c: Likewise.
15913         * tests/test-fprintf-posix3.sh: Update skip messages.
15914         * tests/test-dprintf-posix2.sh: Likewise.
15915         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
15916         * modules/dprintf-posix-tests (Depends-on): Likewise.
15917         Reported by Bruce Korb <bkorb@gnu.org> and
15918         Gary V. Vaughan <gary@gnu.org>.
15919
15920 2011-01-18  Bruno Haible  <bruno@clisp.org>
15921
15922         get-rusage-as: Improvement for Cygwin.
15923         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
15924         areas that are merely reserved.
15925
15926 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15927
15928         strftime: remove dependencies on multibyte modules
15929
15930         strftime depended on mbrlen, mbsinit, and wchar, but these modules
15931         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
15932         only if __osf__ is defined, and I suspect OSF doesn't need these
15933         other modules.  If my guess is wrong, we'll need to come up with a
15934         variant of strftime that doesn't need the multibyte modules.
15935
15936         I discovered this problem when attempting modify Emacs to use the
15937         strftime module.  With the previous gnulib, this caused Emacs to
15938         need 31 new files, ranging from lib/config.charset to
15939         m4/wint_t.m4.  This was overkill and I expect would be offputting
15940         to the Emacs maintainers.  After this change, only 6 new files are
15941         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
15942         stdbool.m4, and tm_gmtoff.m4.
15943
15944         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
15945         Suggested by Bruno Haible in
15946         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
15947         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
15948         and do not check for wchar.h.
15949         * modules/strftime (Files): Remove m4/mbstate_t.m4.
15950         (Depends-on): Remove mbrlen, mbsinit, wchar.
15951
15952 2011-01-18  Bruno Haible  <bruno@clisp.org>
15953
15954         Tests for module 'get-rusage-as'.
15955         * modules/get-rusage-as-tests: New file.
15956         * tests/test-get-rusage-as.c: New file.
15957
15958         New module 'get-rusage-as'.
15959         * modules/get-rusage-as: New file.
15960         * lib/resource-ext.h: New file.
15961         * lib/get-rusage-as.c: New file.
15962
15963 2011-01-17  Eric Blake  <eblake@redhat.com>
15964
15965         sigaction: relax license from LGPLv3+ to LGPLv2+
15966         * modules/sigaction (License): Relax to LGPLv2+.
15967
15968 2011-01-14  Bruno Haible  <bruno@clisp.org>
15969
15970         filemode: Make function declarations usable in C++ mode.
15971         * lib/filemode.h: Enclose function declarations in extern "C" block.
15972         Reported by John W. Eaton <jwe@gnu.org>.
15973
15974 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
15975
15976         save-cwd: no longer include "xgetcwd.h"
15977         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
15978         This avoids a compilation failure in projects that use save-cwd
15979         without also using the xgetcwd module.
15980
15981 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15982
15983         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
15984         This is so that a program like Emacs, which needs only dtoastr,
15985         does not have to bother with distributing and compiling ftoastr
15986         and ldtoastr.
15987         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
15988         * modules/dtoastr, modules/ldtoastr: New files.
15989         * modules/ftoastr: Now works just for 'float'.
15990         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
15991         (Makefile.am): Remove ftoastr.h (not needed and no effect),
15992         dtoastr.c, ldtoastr.c.
15993
15994 2011-01-11  Jim Meyering  <meyering@redhat.com>
15995
15996         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
15997         There is no need to work around the lack of the fchdir function,
15998         since gnulib can now provide a replacement when required.
15999         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
16000         * modules/save-cwd (Depends-on): Add fchdir.
16001
16002 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
16003
16004         openat, save-cwd: avoid xmalloc
16005
16006         This removes a direct (but undocumented) dependency of openat on
16007         xalloc, along with an indirect dependency via save-cwd.  It also
16008         removes a dependency of save-cwd on xgetcwd, and thereby
16009         indirectly on xalloc.  This change causes the openat substitute
16010         to fall back on save_cwd when memory is tight, and for save_cwd to
16011         fail instead of dying when memory is tight, but that's good enough.
16012         Problem and initial idea for fix reported by Bastien Roucaries in
16013         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
16014
16015         * lib/openat-proc.c: Include stdlib.h (for malloc), not
16016         xalloc.h (for xmalloc).
16017         (openat_proc_name): Use malloc, not xmalloc.
16018         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
16019         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
16020
16021         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
16022         This avoids heap allocation for file names whose lengths are in
16023         the range 512..1023, with the upper bound increasing to at most
16024         4031 depending on the platform's PATH_MAX.  (We do not want
16025         pathmax.h here as it might supply a non-constant PATH_MAX.)
16026         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
16027         Perhaps they should be moved to malloca.h?
16028         (OPENAT_BUFFER_SIZE): Use them.
16029
16030 2011-01-10  Bruno Haible  <bruno@clisp.org>
16031
16032         doc: Update users.txt.
16033         * users.txt: Add recutils.
16034
16035 2011-01-09  Karl Berry  <karl@gnu.org>
16036
16037         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
16038
16039         * doc/configmake.texi: New file.
16040         * doc/gnulib.texi: Include it.
16041         * modules/configmake: Move documentation from here.
16042
16043 2011-01-09  Bruno Haible  <bruno@clisp.org>
16044
16045         Update to Unicode 6.0.0.
16046         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
16047         (get_lbp): Update for Unicode 6.0.0.
16048         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
16049         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
16050         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
16051         U+11001, U+11038..U+11046. Remove U+06DE.
16052         (uc_width): Fix bounds of planes.
16053         * tests/uniwidth/test-uc_width2.sh: Same updates as in
16054         lib/uniwidth/width.c.
16055         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
16056         trailing whitespace removed.
16057         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
16058         without comments, but with the original copyright notice.
16059         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
16060         * lib/unicase/ignorable.h: Likewise.
16061         * lib/unicase/tocasefold.h: Likewise.
16062         * lib/unicase/tolower.h: Likewise.
16063         * lib/unicase/totitle.h: Likewise.
16064         * lib/unicase/toupper.h: Likewise.
16065         * lib/unictype/bidi_of.h: Likewise.
16066         * lib/unictype/blocks.h: Likewise.
16067         * lib/unictype/categ_C.h: Likewise.
16068         * lib/unictype/categ_Cn.h: Likewise.
16069         * lib/unictype/categ_L.h: Likewise.
16070         * lib/unictype/categ_Ll.h: Likewise.
16071         * lib/unictype/categ_Lm.h: Likewise.
16072         * lib/unictype/categ_Lo.h: Likewise.
16073         * lib/unictype/categ_Lu.h: Likewise.
16074         * lib/unictype/categ_M.h: Likewise.
16075         * lib/unictype/categ_Mc.h: Likewise.
16076         * lib/unictype/categ_Me.h: Likewise.
16077         * lib/unictype/categ_Mn.h: Likewise.
16078         * lib/unictype/categ_N.h: Likewise.
16079         * lib/unictype/categ_Nd.h: Likewise.
16080         * lib/unictype/categ_No.h: Likewise.
16081         * lib/unictype/categ_P.h: Likewise.
16082         * lib/unictype/categ_Po.h: Likewise.
16083         * lib/unictype/categ_S.h: Likewise.
16084         * lib/unictype/categ_Sc.h: Likewise.
16085         * lib/unictype/categ_Sk.h: Likewise.
16086         * lib/unictype/categ_Sm.h: Likewise.
16087         * lib/unictype/categ_So.h: Likewise.
16088         * lib/unictype/categ_of.h: Likewise.
16089         * lib/unictype/combining.h: Likewise.
16090         * lib/unictype/ctype_alnum.h: Likewise.
16091         * lib/unictype/ctype_alpha.h: Likewise.
16092         * lib/unictype/ctype_graph.h: Likewise.
16093         * lib/unictype/ctype_lower.h: Likewise.
16094         * lib/unictype/ctype_print.h: Likewise.
16095         * lib/unictype/ctype_punct.h: Likewise.
16096         * lib/unictype/ctype_upper.h: Likewise.
16097         * lib/unictype/decdigit.h: Likewise.
16098         * lib/unictype/digit.h: Likewise.
16099         * lib/unictype/numeric.h: Likewise.
16100         * lib/unictype/pr_alphabetic.h: Likewise.
16101         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
16102         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
16103         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
16104         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
16105         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
16106         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
16107         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
16108         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
16109         * lib/unictype/pr_case_ignorable.h: Likewise.
16110         * lib/unictype/pr_cased.h: Likewise.
16111         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
16112         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
16113         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
16114         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
16115         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
16116         * lib/unictype/pr_combining.h: Likewise.
16117         * lib/unictype/pr_composite.h: Likewise.
16118         * lib/unictype/pr_currency_symbol.h: Likewise.
16119         * lib/unictype/pr_decimal_digit.h: Likewise.
16120         * lib/unictype/pr_deprecated.h: Likewise.
16121         * lib/unictype/pr_format_control.h: Likewise.
16122         * lib/unictype/pr_grapheme_base.h: Likewise.
16123         * lib/unictype/pr_grapheme_extend.h: Likewise.
16124         * lib/unictype/pr_grapheme_link.h: Likewise.
16125         * lib/unictype/pr_id_continue.h: Likewise.
16126         * lib/unictype/pr_id_start.h: Likewise.
16127         * lib/unictype/pr_ideographic.h: Likewise.
16128         * lib/unictype/pr_lowercase.h: Likewise.
16129         * lib/unictype/pr_math.h: Likewise.
16130         * lib/unictype/pr_numeric.h: Likewise.
16131         * lib/unictype/pr_other_alphabetic.h: Likewise.
16132         * lib/unictype/pr_other_id_continue.h: Likewise.
16133         * lib/unictype/pr_other_math.h: Likewise.
16134         * lib/unictype/pr_punctuation.h: Likewise.
16135         * lib/unictype/pr_sentence_terminal.h: Likewise.
16136         * lib/unictype/pr_terminal_punctuation.h: Likewise.
16137         * lib/unictype/pr_unassigned_code_value.h: Likewise.
16138         * lib/unictype/pr_unified_ideograph.h: Likewise.
16139         * lib/unictype/pr_uppercase.h: Likewise.
16140         * lib/unictype/pr_xid_continue.h: Likewise.
16141         * lib/unictype/pr_xid_start.h: Likewise.
16142         * lib/unictype/scripts.h: Likewise.
16143         * lib/unictype/scripts_byname.gperf: Likewise.
16144         * lib/unictype/sy_java_ident.h: Likewise.
16145         * lib/unigbrk/gbrkprop.h: Likewise.
16146         * lib/unilbrk/lbrkprop1.h: Likewise.
16147         * lib/unilbrk/lbrkprop2.h: Likewise.
16148         * lib/uninorm/decomposition-table2.h: Likewise.
16149         * lib/uniwbrk/wbrkprop.h: Likewise.
16150         * tests/unicase/test-cased.c: Likewise.
16151         * tests/unicase/test-ignorable.c: Likewise.
16152         * tests/unicase/test-uc_tolower.c: Likewise.
16153         * tests/unicase/test-uc_totitle.c: Likewise.
16154         * tests/unicase/test-uc_toupper.c: Likewise.
16155         * tests/unictype/test-categ_C.c: Likewise.
16156         * tests/unictype/test-categ_Cn.c: Likewise.
16157         * tests/unictype/test-categ_L.c: Likewise.
16158         * tests/unictype/test-categ_Ll.c: Likewise.
16159         * tests/unictype/test-categ_Lm.c: Likewise.
16160         * tests/unictype/test-categ_Lo.c: Likewise.
16161         * tests/unictype/test-categ_Lu.c: Likewise.
16162         * tests/unictype/test-categ_M.c: Likewise.
16163         * tests/unictype/test-categ_Mc.c: Likewise.
16164         * tests/unictype/test-categ_Me.c: Likewise.
16165         * tests/unictype/test-categ_Mn.c: Likewise.
16166         * tests/unictype/test-categ_N.c: Likewise.
16167         * tests/unictype/test-categ_Nd.c: Likewise.
16168         * tests/unictype/test-categ_No.c: Likewise.
16169         * tests/unictype/test-categ_P.c: Likewise.
16170         * tests/unictype/test-categ_Po.c: Likewise.
16171         * tests/unictype/test-categ_S.c: Likewise.
16172         * tests/unictype/test-categ_Sc.c: Likewise.
16173         * tests/unictype/test-categ_Sk.c: Likewise.
16174         * tests/unictype/test-categ_Sm.c: Likewise.
16175         * tests/unictype/test-categ_So.c: Likewise.
16176         * tests/unictype/test-ctype_alnum.c: Likewise.
16177         * tests/unictype/test-ctype_alpha.c: Likewise.
16178         * tests/unictype/test-ctype_graph.c: Likewise.
16179         * tests/unictype/test-ctype_lower.c: Likewise.
16180         * tests/unictype/test-ctype_print.c: Likewise.
16181         * tests/unictype/test-ctype_punct.c: Likewise.
16182         * tests/unictype/test-ctype_upper.c: Likewise.
16183         * tests/unictype/test-decdigit.h: Likewise.
16184         * tests/unictype/test-digit.h: Likewise.
16185         * tests/unictype/test-numeric.h: Likewise.
16186         * tests/unictype/test-pr_alphabetic.c: Likewise.
16187         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
16188         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
16189         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
16190         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
16191         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
16192         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
16193         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
16194         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
16195         * tests/unictype/test-pr_case_ignorable.c: Likewise.
16196         * tests/unictype/test-pr_cased.c: Likewise.
16197         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
16198         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
16199         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
16200         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
16201         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
16202         * tests/unictype/test-pr_combining.c: Likewise.
16203         * tests/unictype/test-pr_composite.c: Likewise.
16204         * tests/unictype/test-pr_currency_symbol.c: Likewise.
16205         * tests/unictype/test-pr_decimal_digit.c: Likewise.
16206         * tests/unictype/test-pr_deprecated.c: Likewise.
16207         * tests/unictype/test-pr_format_control.c: Likewise.
16208         * tests/unictype/test-pr_grapheme_base.c: Likewise.
16209         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
16210         * tests/unictype/test-pr_grapheme_link.c: Likewise.
16211         * tests/unictype/test-pr_id_continue.c: Likewise.
16212         * tests/unictype/test-pr_id_start.c: Likewise.
16213         * tests/unictype/test-pr_ideographic.c: Likewise.
16214         * tests/unictype/test-pr_lowercase.c: Likewise.
16215         * tests/unictype/test-pr_math.c: Likewise.
16216         * tests/unictype/test-pr_numeric.c: Likewise.
16217         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
16218         * tests/unictype/test-pr_other_id_continue.c: Likewise.
16219         * tests/unictype/test-pr_other_math.c: Likewise.
16220         * tests/unictype/test-pr_punctuation.c: Likewise.
16221         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
16222         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
16223         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
16224         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
16225         * tests/unictype/test-pr_uppercase.c: Likewise.
16226         * tests/unictype/test-pr_xid_continue.c: Likewise.
16227         * tests/unictype/test-pr_xid_start.c: Likewise.
16228         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
16229         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
16230         changes.
16231         * lib/unictype/categ_Cc.h: Likewise.
16232         * lib/unictype/categ_Cf.h: Likewise.
16233         * lib/unictype/categ_Co.h: Likewise.
16234         * lib/unictype/categ_Cs.h: Likewise.
16235         * lib/unictype/categ_Lt.h: Likewise.
16236         * lib/unictype/categ_Nl.h: Likewise.
16237         * lib/unictype/categ_Pc.h: Likewise.
16238         * lib/unictype/categ_Pd.h: Likewise.
16239         * lib/unictype/categ_Pe.h: Likewise.
16240         * lib/unictype/categ_Pf.h: Likewise.
16241         * lib/unictype/categ_Pi.h: Likewise.
16242         * lib/unictype/categ_Ps.h: Likewise.
16243         * lib/unictype/categ_Z.h: Likewise.
16244         * lib/unictype/categ_Zl.h: Likewise.
16245         * lib/unictype/categ_Zp.h: Likewise.
16246         * lib/unictype/categ_Zs.h: Likewise.
16247         * lib/unictype/ctype_blank.h: Likewise.
16248         * lib/unictype/ctype_cntrl.h: Likewise.
16249         * lib/unictype/ctype_digit.h: Likewise.
16250         * lib/unictype/ctype_space.h: Likewise.
16251         * lib/unictype/ctype_xdigit.h: Likewise.
16252         * lib/unictype/mirror.h: Likewise.
16253         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
16254         * lib/unictype/pr_bidi_block_separator.h: Likewise.
16255         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16256         * lib/unictype/pr_bidi_control.h: Likewise.
16257         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16258         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16259         * lib/unictype/pr_bidi_european_digit.h: Likewise.
16260         * lib/unictype/pr_bidi_pdf.h: Likewise.
16261         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16262         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16263         * lib/unictype/pr_dash.h: Likewise.
16264         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16265         * lib/unictype/pr_diacritic.h: Likewise.
16266         * lib/unictype/pr_extender.h: Likewise.
16267         * lib/unictype/pr_hex_digit.h: Likewise.
16268         * lib/unictype/pr_hyphen.h: Likewise.
16269         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16270         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16271         * lib/unictype/pr_ignorable_control.h: Likewise.
16272         * lib/unictype/pr_iso_control.h: Likewise.
16273         * lib/unictype/pr_join_control.h: Likewise.
16274         * lib/unictype/pr_left_of_pair.h: Likewise.
16275         * lib/unictype/pr_line_separator.h: Likewise.
16276         * lib/unictype/pr_logical_order_exception.h: Likewise.
16277         * lib/unictype/pr_non_break.h: Likewise.
16278         * lib/unictype/pr_not_a_character.h: Likewise.
16279         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16280         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16281         * lib/unictype/pr_other_id_start.h: Likewise.
16282         * lib/unictype/pr_other_lowercase.h: Likewise.
16283         * lib/unictype/pr_other_uppercase.h: Likewise.
16284         * lib/unictype/pr_paired_punctuation.h: Likewise.
16285         * lib/unictype/pr_paragraph_separator.h: Likewise.
16286         * lib/unictype/pr_pattern_syntax.h: Likewise.
16287         * lib/unictype/pr_pattern_white_space.h: Likewise.
16288         * lib/unictype/pr_private_use.h: Likewise.
16289         * lib/unictype/pr_quotation_mark.h: Likewise.
16290         * lib/unictype/pr_radical.h: Likewise.
16291         * lib/unictype/pr_soft_dotted.h: Likewise.
16292         * lib/unictype/pr_space.h: Likewise.
16293         * lib/unictype/pr_titlecase.h: Likewise.
16294         * lib/unictype/pr_variation_selector.h: Likewise.
16295         * lib/unictype/pr_white_space.h: Likewise.
16296         * lib/unictype/pr_zero_width.h: Likewise.
16297         * lib/unictype/sy_c_ident.h: Likewise.
16298         * lib/unictype/sy_c_whitespace.h: Likewise.
16299         * lib/unictype/sy_java_whitespace.h: Likewise.
16300         * lib/uninorm/composition-table.gperf: Likewise.
16301         * lib/uninorm/decomposition-table1.h: Likewise.
16302         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
16303         LB8.
16304         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
16305         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
16306         * modules/unictype/*: Bump version number of expected libunistring
16307         version.
16308
16309 2011-01-09  Bruno Haible  <bruno@clisp.org>
16310
16311         Update to Unicode 5.2.0.
16312         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
16313         trailing whitespace removed.
16314
16315 2011-01-09  Bruno Haible  <bruno@clisp.org>
16316
16317         New Unicode character properties, from Unicode 5.2.0.
16318         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
16319         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
16320         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
16321         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
16322         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
16323         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
16324         uc_is_property_cased, uc_is_property_case_ignorable,
16325         uc_is_property_changes_when_lowercased,
16326         uc_is_property_changes_when_uppercased,
16327         uc_is_property_changes_when_titlecased,
16328         uc_is_property_changes_when_casefolded,
16329         uc_is_property_changes_when_casemapped): New declarations.
16330         * lib/unictype/pr_byname.gperf: Add the new properties.
16331         * modules/unictype/property-byname (Depends-on): Depend on the new
16332         properties modules.
16333         * modules/unictype/property-all (Depends-on): Likewise.
16334         * MODULES.html.sh (Unicode string functions): Add
16335         unictype/property-case-ignorable, unictype/property-cased,
16336         unictype/property-changes-when-casefolded,
16337         unictype/property-changes-when-casemapped,
16338         unictype/property-changes-when-lowercased,
16339         unictype/property-changes-when-titlecased,
16340         unictype/property-changes-when-uppercased.
16341
16342         New module 'unictype/property-changes-when-casemapped'.
16343         * modules/unictype/property-changes-when-casemapped: New file.
16344         * lib/unictype/pr_changes_when_casemapped.c: New file.
16345         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
16346         generated by gen-uni-tables.
16347         * modules/unictype/property-changes-when-casemapped-tests: New file.
16348         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
16349         automatically generated by gen-uni-tables.
16350
16351         New module 'unictype/property-changes-when-casefolded'.
16352         * modules/unictype/property-changes-when-casefolded: New file.
16353         * lib/unictype/pr_changes_when_casefolded.c: New file.
16354         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
16355         generated by gen-uni-tables.
16356         * modules/unictype/property-changes-when-casefolded-tests: New file.
16357         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
16358         automatically generated by gen-uni-tables.
16359
16360         New module 'unictype/property-changes-when-titlecased'.
16361         * modules/unictype/property-changes-when-titlecased: New file.
16362         * lib/unictype/pr_changes_when_titlecased.c: New file.
16363         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
16364         generated by gen-uni-tables.
16365         * modules/unictype/property-changes-when-titlecased-tests: New file.
16366         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
16367         automatically generated by gen-uni-tables.
16368
16369         New module 'unictype/property-changes-when-uppercased'.
16370         * modules/unictype/property-changes-when-uppercased: New file.
16371         * lib/unictype/pr_changes_when_uppercased.c: New file.
16372         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
16373         generated by gen-uni-tables.
16374         * modules/unictype/property-changes-when-uppercased-tests: New file.
16375         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
16376         automatically generated by gen-uni-tables.
16377
16378         New module 'unictype/property-changes-when-lowercased'.
16379         * modules/unictype/property-changes-when-lowercased: New file.
16380         * lib/unictype/pr_changes_when_lowercased.c: New file.
16381         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
16382         generated by gen-uni-tables.
16383         * modules/unictype/property-changes-when-lowercased-tests: New file.
16384         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
16385         automatically generated by gen-uni-tables.
16386
16387         New module 'unictype/property-case-ignorable'.
16388         * modules/unictype/property-case-ignorable: New file.
16389         * lib/unictype/pr_case_ignorable.c: New file.
16390         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
16391         by gen-uni-tables.
16392         * modules/unictype/property-case-ignorable-tests: New file.
16393         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
16394         generated by gen-uni-tables.
16395
16396         New module 'unictype/property-cased'.
16397         * modules/unictype/property-cased: New file.
16398         * lib/unictype/pr_cased.c: New file.
16399         * lib/unictype/pr_cased.h: New file, automatically generated by
16400         gen-uni-tables.
16401         * modules/unictype/property-cased-tests: New file.
16402         * tests/unictype/test-pr_cased.c: New file, automatically generated by
16403         gen-uni-tables.
16404
16405 2011-01-09  Bruno Haible  <bruno@clisp.org>
16406
16407         Update to Unicode 5.2.0.
16408         * lib/gen-uni-tables.c (output_predicate, output_category,
16409         output_combclass, output_bidi_category, output_decimal_digit_test,
16410         output_decimal_digit, output_digit_test, output_digit,
16411         output_numeric_test, output_numeric, output_mirror, output_scripts,
16412         output_scripts_byname, output_blocks, output_ident_category): Fix
16413         comment header.
16414         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
16415         get_wbp.
16416         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
16417         items.
16418         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
16419         Changes_When_Lowercased, Changes_When_Uppercased,
16420         Changes_When_Titlecased, Changes_When_Casefolded,
16421         Changes_When_Casemapped.
16422         (is_property_alphabetic, is_property_default_ignorable_code_point):
16423         Update for Unicode 5.2.0.
16424         (is_property_cased, is_property_case_ignorable,
16425         is_property_changes_when_lowercased,
16426         is_property_changes_when_uppercased,
16427         is_property_changes_when_titlecased,
16428         is_property_changes_when_casefolded,
16429         is_property_changes_when_casemapped): New functions.
16430         (output_properties): Output also the properties cased, case_ignorable,
16431         changes_when_lowercased, changes_when_uppercased,
16432         changes_when_titlecased, changes_when_casefolded,
16433         changes_when_casemapped.
16434         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
16435         Unicode TR#11 revision 17 -> 19.
16436         (LBP_CP): New enumeration value.
16437         (LBP_*): Adjust values accordingly.
16438         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
16439         TR#14 revision 22 -> 24.
16440         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
16441         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
16442         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
16443         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
16444         is_WBP_MIDLETTER.
16445         (output_composition_tables): Allow for 24 bits instead of 16 bits in
16446         the code1 and code2 of each composition rule.
16447         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
16448         * lib/unicase/ignorable.h: Likewise.
16449         * lib/unicase/tocasefold.h: Likewise.
16450         * lib/unicase/tolower.h: Likewise.
16451         * lib/unicase/totitle.h: Likewise.
16452         * lib/unicase/toupper.h: Likewise.
16453         * lib/unictype/bidi_of.h: Likewise.
16454         * lib/unictype/blocks.h: Likewise.
16455         * lib/unictype/categ_C.h: Likewise.
16456         * lib/unictype/categ_Cf.h: Likewise.
16457         * lib/unictype/categ_Cn.h: Likewise.
16458         * lib/unictype/categ_L.h: Likewise.
16459         * lib/unictype/categ_Ll.h: Likewise.
16460         * lib/unictype/categ_Lm.h: Likewise.
16461         * lib/unictype/categ_Lo.h: Likewise.
16462         * lib/unictype/categ_Lu.h: Likewise.
16463         * lib/unictype/categ_M.h: Likewise.
16464         * lib/unictype/categ_Mc.h: Likewise.
16465         * lib/unictype/categ_Mn.h: Likewise.
16466         * lib/unictype/categ_N.h: Likewise.
16467         * lib/unictype/categ_Nd.h: Likewise.
16468         * lib/unictype/categ_Nl.h: Likewise.
16469         * lib/unictype/categ_No.h: Likewise.
16470         * lib/unictype/categ_P.h: Likewise.
16471         * lib/unictype/categ_Pd.h: Likewise.
16472         * lib/unictype/categ_Po.h: Likewise.
16473         * lib/unictype/categ_S.h: Likewise.
16474         * lib/unictype/categ_Sc.h: Likewise.
16475         * lib/unictype/categ_So.h: Likewise.
16476         * lib/unictype/categ_of.h: Likewise.
16477         * lib/unictype/combining.h: Likewise.
16478         * lib/unictype/ctype_alnum.h: Likewise.
16479         * lib/unictype/ctype_alpha.h: Likewise.
16480         * lib/unictype/ctype_graph.h: Likewise.
16481         * lib/unictype/ctype_lower.h: Likewise.
16482         * lib/unictype/ctype_print.h: Likewise.
16483         * lib/unictype/ctype_punct.h: Likewise.
16484         * lib/unictype/ctype_upper.h: Likewise.
16485         * lib/unictype/decdigit.h: Likewise.
16486         * lib/unictype/digit.h: Likewise.
16487         * lib/unictype/numeric.h: Likewise.
16488         * lib/unictype/pr_alphabetic.h: Likewise.
16489         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
16490         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
16491         * lib/unictype/pr_bidi_european_digit.h: Likewise.
16492         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
16493         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
16494         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
16495         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
16496         * lib/unictype/pr_combining.h: Likewise.
16497         * lib/unictype/pr_composite.h: Likewise.
16498         * lib/unictype/pr_currency_symbol.h: Likewise.
16499         * lib/unictype/pr_dash.h: Likewise.
16500         * lib/unictype/pr_decimal_digit.h: Likewise.
16501         * lib/unictype/pr_deprecated.h: Likewise.
16502         * lib/unictype/pr_diacritic.h: Likewise.
16503         * lib/unictype/pr_extender.h: Likewise.
16504         * lib/unictype/pr_grapheme_base.h: Likewise.
16505         * lib/unictype/pr_grapheme_extend.h: Likewise.
16506         * lib/unictype/pr_grapheme_link.h: Likewise.
16507         * lib/unictype/pr_id_continue.h: Likewise.
16508         * lib/unictype/pr_id_start.h: Likewise.
16509         * lib/unictype/pr_ideographic.h: Likewise.
16510         * lib/unictype/pr_ignorable_control.h: Likewise.
16511         * lib/unictype/pr_logical_order_exception.h: Likewise.
16512         * lib/unictype/pr_lowercase.h: Likewise.
16513         * lib/unictype/pr_numeric.h: Likewise.
16514         * lib/unictype/pr_other_alphabetic.h: Likewise.
16515         * lib/unictype/pr_punctuation.h: Likewise.
16516         * lib/unictype/pr_sentence_terminal.h: Likewise.
16517         * lib/unictype/pr_terminal_punctuation.h: Likewise.
16518         * lib/unictype/pr_unassigned_code_value.h: Likewise.
16519         * lib/unictype/pr_unified_ideograph.h: Likewise.
16520         * lib/unictype/pr_uppercase.h: Likewise.
16521         * lib/unictype/pr_xid_continue.h: Likewise.
16522         * lib/unictype/pr_xid_start.h: Likewise.
16523         * lib/unictype/pr_zero_width.h: Likewise.
16524         * lib/unictype/scripts.h: Likewise.
16525         * lib/unictype/scripts_byname.gperf: Likewise.
16526         * lib/unictype/sy_java_ident.h: Likewise.
16527         * lib/unigbrk/gbrkprop.h: Likewise.
16528         * lib/unilbrk/lbrkprop1.h: Likewise.
16529         * lib/unilbrk/lbrkprop2.h: Likewise.
16530         * lib/unilbrk/lbrktables.h: Likewise.
16531         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
16532         LBP_CP. Implement rule LB30.
16533         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
16534         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
16535         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
16536         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
16537         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
16538         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
16539         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
16540         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
16541         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
16542         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
16543         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
16544         bits instead of 16 bits in the code1 and code2 of each composition
16545         rule.
16546         (uc_composition): Update for Unicode 5.2.0.
16547         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
16548         * lib/uninorm/decomposition-table2.h: Likewise.
16549         * lib/uniwbrk/wbrkprop.h: Likewise.
16550         * tests/unicase/test-cased.c: Likewise.
16551         * tests/unicase/test-ignorable.c: Likewise.
16552         * tests/unicase/test-uc_tolower.c: Likewise.
16553         * tests/unicase/test-uc_totitle.c: Likewise.
16554         * tests/unicase/test-uc_toupper.c: Likewise.
16555         * tests/unictype/test-categ_C.c: Likewise.
16556         * tests/unictype/test-categ_Cf.c: Likewise.
16557         * tests/unictype/test-categ_Cn.c: Likewise.
16558         * tests/unictype/test-categ_L.c: Likewise.
16559         * tests/unictype/test-categ_Ll.c: Likewise.
16560         * tests/unictype/test-categ_Lm.c: Likewise.
16561         * tests/unictype/test-categ_Lo.c: Likewise.
16562         * tests/unictype/test-categ_Lu.c: Likewise.
16563         * tests/unictype/test-categ_M.c: Likewise.
16564         * tests/unictype/test-categ_Mc.c: Likewise.
16565         * tests/unictype/test-categ_Mn.c: Likewise.
16566         * tests/unictype/test-categ_N.c: Likewise.
16567         * tests/unictype/test-categ_Nd.c: Likewise.
16568         * tests/unictype/test-categ_Nl.c: Likewise.
16569         * tests/unictype/test-categ_No.c: Likewise.
16570         * tests/unictype/test-categ_P.c: Likewise.
16571         * tests/unictype/test-categ_Pd.c: Likewise.
16572         * tests/unictype/test-categ_Po.c: Likewise.
16573         * tests/unictype/test-categ_S.c: Likewise.
16574         * tests/unictype/test-categ_Sc.c: Likewise.
16575         * tests/unictype/test-categ_So.c: Likewise.
16576         * tests/unictype/test-ctype_alnum.c: Likewise.
16577         * tests/unictype/test-ctype_alpha.c: Likewise.
16578         * tests/unictype/test-ctype_graph.c: Likewise.
16579         * tests/unictype/test-ctype_lower.c: Likewise.
16580         * tests/unictype/test-ctype_print.c: Likewise.
16581         * tests/unictype/test-ctype_punct.c: Likewise.
16582         * tests/unictype/test-ctype_upper.c: Likewise.
16583         * tests/unictype/test-decdigit.h: Likewise.
16584         * tests/unictype/test-digit.h: Likewise.
16585         * tests/unictype/test-numeric.h: Likewise.
16586         * tests/unictype/test-pr_alphabetic.c: Likewise.
16587         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
16588         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
16589         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
16590         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
16591         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
16592         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
16593         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
16594         * tests/unictype/test-pr_combining.c: Likewise.
16595         * tests/unictype/test-pr_composite.c: Likewise.
16596         * tests/unictype/test-pr_currency_symbol.c: Likewise.
16597         * tests/unictype/test-pr_dash.c: Likewise.
16598         * tests/unictype/test-pr_decimal_digit.c: Likewise.
16599         * tests/unictype/test-pr_deprecated.c: Likewise.
16600         * tests/unictype/test-pr_diacritic.c: Likewise.
16601         * tests/unictype/test-pr_extender.c: Likewise.
16602         * tests/unictype/test-pr_grapheme_base.c: Likewise.
16603         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
16604         * tests/unictype/test-pr_grapheme_link.c: Likewise.
16605         * tests/unictype/test-pr_id_continue.c: Likewise.
16606         * tests/unictype/test-pr_id_start.c: Likewise.
16607         * tests/unictype/test-pr_ideographic.c: Likewise.
16608         * tests/unictype/test-pr_ignorable_control.c: Likewise.
16609         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
16610         * tests/unictype/test-pr_lowercase.c: Likewise.
16611         * tests/unictype/test-pr_numeric.c: Likewise.
16612         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
16613         * tests/unictype/test-pr_punctuation.c: Likewise.
16614         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
16615         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
16616         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
16617         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
16618         * tests/unictype/test-pr_uppercase.c: Likewise.
16619         * tests/unictype/test-pr_xid_continue.c: Likewise.
16620         * tests/unictype/test-pr_xid_start.c: Likewise.
16621         * tests/unictype/test-pr_zero_width.c: Likewise.
16622         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
16623         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
16624         changed behaviour: line breaking is now disallowed between a letter
16625         or '=' and '('.
16626         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
16627         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
16628         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
16629         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
16630         * tests/uniwidth/test-uc_width2.sh: Same updates as in
16631         lib/uniwidth/width.c.
16632         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
16633         without comments, but with the original copyright notice.
16634         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
16635         changes.
16636         * lib/unictype/categ_Cc.h: Likewise.
16637         * lib/unictype/categ_Co.h: Likewise.
16638         * lib/unictype/categ_Cs.h: Likewise.
16639         * lib/unictype/categ_Lt.h: Likewise.
16640         * lib/unictype/categ_Me.h: Likewise.
16641         * lib/unictype/categ_Pc.h: Likewise.
16642         * lib/unictype/categ_Pe.h: Likewise.
16643         * lib/unictype/categ_Pf.h: Likewise.
16644         * lib/unictype/categ_Pi.h: Likewise.
16645         * lib/unictype/categ_Ps.h: Likewise.
16646         * lib/unictype/categ_Sk.h: Likewise.
16647         * lib/unictype/categ_Sm.h: Likewise.
16648         * lib/unictype/categ_Z.h: Likewise.
16649         * lib/unictype/categ_Zl.h: Likewise.
16650         * lib/unictype/categ_Zp.h: Likewise.
16651         * lib/unictype/categ_Zs.h: Likewise.
16652         * lib/unictype/ctype_blank.h: Likewise.
16653         * lib/unictype/ctype_cntrl.h: Likewise.
16654         * lib/unictype/ctype_digit.h: Likewise.
16655         * lib/unictype/ctype_space.h: Likewise.
16656         * lib/unictype/ctype_xdigit.h: Likewise.
16657         * lib/unictype/mirror.h: Likewise.
16658         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
16659         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
16660         * lib/unictype/pr_bidi_block_separator.h: Likewise.
16661         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
16662         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16663         * lib/unictype/pr_bidi_control.h: Likewise.
16664         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16665         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16666         * lib/unictype/pr_bidi_pdf.h: Likewise.
16667         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16668         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16669         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16670         * lib/unictype/pr_format_control.h: Likewise.
16671         * lib/unictype/pr_hex_digit.h: Likewise.
16672         * lib/unictype/pr_hyphen.h: Likewise.
16673         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16674         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16675         * lib/unictype/pr_iso_control.h: Likewise.
16676         * lib/unictype/pr_join_control.h: Likewise.
16677         * lib/unictype/pr_left_of_pair.h: Likewise.
16678         * lib/unictype/pr_line_separator.h: Likewise.
16679         * lib/unictype/pr_math.h: Likewise.
16680         * lib/unictype/pr_non_break.h: Likewise.
16681         * lib/unictype/pr_not_a_character.h: Likewise.
16682         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16683         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16684         * lib/unictype/pr_other_id_continue.h: Likewise.
16685         * lib/unictype/pr_other_id_start.h: Likewise.
16686         * lib/unictype/pr_other_lowercase.h: Likewise.
16687         * lib/unictype/pr_other_math.h: Likewise.
16688         * lib/unictype/pr_other_uppercase.h: Likewise.
16689         * lib/unictype/pr_paired_punctuation.h: Likewise.
16690         * lib/unictype/pr_paragraph_separator.h: Likewise.
16691         * lib/unictype/pr_pattern_syntax.h: Likewise.
16692         * lib/unictype/pr_pattern_white_space.h: Likewise.
16693         * lib/unictype/pr_private_use.h: Likewise.
16694         * lib/unictype/pr_quotation_mark.h: Likewise.
16695         * lib/unictype/pr_radical.h: Likewise.
16696         * lib/unictype/pr_soft_dotted.h: Likewise.
16697         * lib/unictype/pr_space.h: Likewise.
16698         * lib/unictype/pr_titlecase.h: Likewise.
16699         * lib/unictype/pr_variation_selector.h: Likewise.
16700         * lib/unictype/pr_white_space.h: Likewise.
16701         * lib/unictype/sy_c_ident.h: Likewise.
16702         * lib/unictype/sy_c_whitespace.h: Likewise.
16703         * lib/unictype/sy_java_whitespace.h: Likewise.
16704         * modules/uni*/*: Bump version number of expected libunistring version.
16705         Reported by Simon Josefsson.
16706
16707 2011-01-09  Karl Heuer  <kwzh@gnu.org>
16708
16709         useless-if-before-free: fix typo in --help and make the internal,
16710         automatic version date update process work once again.
16711         --help output contained a NUL character instead of the
16712         backslash-zero that was intended.  Also, the "must lie within
16713         the first 8 lines" line is on line 9, and hence not getting
16714         automatically updated.
16715         * build-aux/useless-if-before-free: Fix the former by adding a
16716         backslash, and the latter by condensing the three lines of what-it-does
16717         to a single line, leaving one line of slack for the future.
16718
16719 2011-01-09  Bruno Haible  <bruno@clisp.org>
16720
16721         uniwidth/width: Fix width of U+1D173..U+1D17A.
16722         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
16723         symbolic_width, output_width_property_test): New functions.
16724         (main): Invoke output_nonspacing_property, output_width_property_test.
16725         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
16726         U+1D173..U+1D17A.
16727         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
16728         1.
16729         * modules/uniwidth/*: Bump version number of expected libunistring
16730         version.
16731         * modules/unilbrk/*: Likewise.
16732
16733 2011-01-08  Bruno Haible  <bruno@clisp.org>
16734
16735         uninorm tests: Preserve copyright of Unicode data file.
16736         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
16737         Mention modifications.
16738
16739 2011-01-08  Bruno Haible  <bruno@clisp.org>
16740
16741         gen-uni-tables: Prepare for Unicode 5.2.0.
16742         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
16743         (debug_output_lbp, output_lbp): Update.
16744
16745 2011-01-08  Bruno Haible  <bruno@clisp.org>
16746
16747         unilbrk: Clarify gen-uni-tables.c code.
16748         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
16749         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
16750         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
16751
16752 2011-01-07  Bruno Haible  <bruno@clisp.org>
16753
16754         strtod: Restore errno when successfully parsing Infinity or NaN.
16755         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
16756         restore the original errno.
16757
16758 2011-01-07  Bruno Haible  <bruno@clisp.org>
16759
16760         remove test: Avoid failure on HP-UX 11.
16761         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
16762
16763 2011-01-07  Bruno Haible  <bruno@clisp.org>
16764
16765         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
16766         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
16767         error code.
16768
16769 2011-01-07  Pádraig Brady <P@draigBrady.com>
16770
16771         ignore-value: fixup comments, and add Eric Blake
16772         as an author since he rewrote the macros.
16773         * lib/ignore-value.h (ignore_value):  State that
16774         we now support aggregates.  Also specify exactly
16775         when the GCC warn_unused_result feature was added.
16776
16777 2011-01-06  Eric Blake  <eblake@redhat.com>
16778
16779         ignore-value: support aggregate types
16780         * lib/ignore-value.h (ignore_value): Provide separate gcc
16781         definition.
16782         * modules/ignore-value-tests: New test module.
16783         * tests/test-ignore-value.c: New test.
16784
16785         maint.mk: improve sc_prohibit_strcmp regex
16786         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
16787         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
16788         definition of STRNEQ.
16789
16790         signal: work around Haiku issue with SIGBUS
16791         * lib/siglist.h: Add comment.
16792         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
16793         strsignal's favoring of SIGSEGV.
16794         * tests/test-signal.c (main): Avoid test failure.
16795         * doc/posix-headers/signal.texi (signal.h): Document the issue.
16796         Reported by Scott McCreary.
16797
16798         maint.mk: add pre-release check to ensure submodule commits are public
16799         * top/maint.mk (public-submodule-commit): New rule.
16800         (submodule-checks): New variable.
16801         (alpha beta stable): Depend on the variable.
16802
16803 2011-01-05  Pádraig Brady <P@draigBrady.com>
16804         and Jim Meyering  <meyering@redhat.com>
16805
16806         ignore-value: make ignore_value more generic; deprecate ignore_ptr
16807         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
16808         (ATTRIBUTE_DEPRECATED): Define.
16809         (_ignore_case): New function.
16810         (ignore_value): New macro, to replace the old function.
16811         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
16812         * modules/ignore-value (Depends-on): Add stdint.
16813
16814 2011-01-04  Eric Blake  <eblake@redhat.com>
16815
16816         doc: regenerate INSTALL
16817         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
16818         @firstparagraphindent support, now that autoconf dropped it.
16819         (INSTALL_PRELUDE): Reinstate old macro.
16820         * doc/install.texi: Resync from autoconf.
16821         * doc/INSTALL: Reflect recent autoconf update.
16822         * doc/INSTALL.ISO: Likewise.
16823         * doc/INSTALL.UTF-8: Likewise.
16824         Reported by Karl Berry.
16825
16826 2011-01-04  Bruce Korb  <address@hidden>
16827
16828         git-version-gen: avoid a sub-shell
16829         * build-aux/git-version-gen: Redirect stderr in `...` via
16830         "exec 2>...", rather than via an added sub-shell.
16831
16832 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
16833
16834         git-version-gen: use (...) rather than sh -c '...'
16835         * build-aux/git-version-gen: Rather than hard-coding a shell's name
16836         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
16837
16838 2011-01-03  Jim Meyering  <meyering@redhat.com>
16839
16840         git-version-gen: convert leading TABs to spaces
16841         * build-aux/git-version-gen: Expand leading TABs.
16842
16843         git-version-gen: handle failed "git rev-list"
16844         * build-aux/git-version-gen: Rather than leaking a "fatal" error
16845         from git and proceeding as if it had succeeded but printed no SHA1
16846         checksums, suppress the diagnostic and handle the failure.
16847         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
16848
16849         git-version-gen: include command name in one more diagnostic
16850         * build-aux/git-version-gen: When the required .tarball-version file
16851         was missing or unreadable, you might see the diagnostic from "cat",
16852         but no trace of the name of the invoking script.  Now, you still see
16853         the diagnostic from cat, but also get one from "git-version-gen: ".
16854         Inspired by a patch from Bruce Korb.
16855
16856         update-copyright: adjust test to match changed code
16857         * tests/test-update-copyright.sh: Change test's expected output
16858         to match new actual output.
16859
16860 2011-01-02  Bruno Haible  <bruno@clisp.org>
16861
16862         getlogin_r: Avoid test failure on HP-UX 11.
16863         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
16864         ERANGE when the second argument is zero.
16865         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
16866         portability problem.
16867
16868 2011-01-02  Bruce Korb  <bkorb@gnu.org>
16869
16870         * build-aux/update-copyright: doc Simon's changes
16871
16872 2011-01-02  Simon Josefsson  <simon@josefsson.org>
16873
16874         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
16875         environment variable.
16876
16877 2011-01-02  Bruno Haible  <bruno@clisp.org>
16878
16879         unigbrk: Avoid gcc warnings.
16880         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
16881         unused variable.
16882         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
16883         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
16884         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
16885         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
16886         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
16887         Change type of first argument to 'const char *'.
16888         (main): Remove unused variable.
16889         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
16890         type of first argument to 'const char *'.
16891         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
16892         Likewise.
16893         (main): Change type of variable 's'.
16894         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
16895         to 'int'.
16896
16897 2011-01-02  Bruno Haible  <bruno@clisp.org>
16898
16899         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
16900         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
16901         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
16902         bug.
16903         * lib/pwrite.c: Undo 2010-12-31 patch.
16904         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
16905
16906 2011-01-02  Bruno Haible  <bruno@clisp.org>
16907
16908         pread: Fix test whether it works.
16909         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
16910
16911 2011-01-02  Bruno Haible  <bruno@clisp.org>
16912
16913         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
16914         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
16915         ends in "6". Don't require a specific month name. Try also the locale
16916         names found on HP-UX 11 and Solaris 7.
16917
16918 2011-01-02  Bruno Haible  <bruno@clisp.org>
16919
16920         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
16921         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
16922         C linkage.
16923         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
16924
16925 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16926
16927         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
16928         for consistency, since the "cluster" term is not used elsewhere.
16929         * lib/unigbrk.in.h: Update name.
16930         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
16931         * lib/unigbrk/u16-grapheme-next.c: Update name.
16932         * lib/unigbrk/u16-grapheme-prev.c: Update name.
16933         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
16934         * lib/unigbrk/u32-grapheme-next.c: Update name.
16935         * lib/unigbrk/u32-grapheme-prev.c: Update name.
16936         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
16937         * lib/unigbrk/u8-grapheme-next.c: Update name.
16938         * lib/unigbrk/u8-grapheme-prev.c: Update name.
16939         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
16940         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
16941         Suggested by Bruno Haible.
16942
16943 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16944
16945         Remove module 'u8-grapheme-len' as too redundant with
16946         'u8-grapheme-next'.
16947         * modules/unigbrk/u8-grapheme-len: Delete file.
16948         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
16949         * lib/unigbrk.in.h: Remove prototype for deleted function.
16950         * lib/unigbrk/u8-grapheme-len.c: Delete file.
16951         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
16952
16953         Remove module 'u16-grapheme-len' as too redundant with
16954         'u16-grapheme-next'.
16955         * modules/unigbrk/u16-grapheme-len: Delete file.
16956         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
16957         * lib/unigbrk.in.h: Remove prototype for deleted function.
16958         * lib/unigbrk/u16-grapheme-len.c: Delete file.
16959         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
16960
16961         Remove module 'u32-grapheme-len' as too redundant with
16962         'u32-grapheme-next'.
16963         * modules/unigbrk/u32-grapheme-len: Delete file.
16964         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
16965         * lib/unigbrk.in.h: Remove prototype for deleted function.
16966         * lib/unigbrk/u32-grapheme-len.c: Delete file.
16967         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
16968
16969         Suggested by Bruno Haible.
16970
16971 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16972
16973         * unigbrk.in.h: Fix typo: "ben" => "been".
16974         Reported by Bruno Haible.
16975
16976 2011-01-01  Jim Meyering  <meyering@redhat.com>
16977
16978         maint: update almost all copyright ranges to include 2011
16979         Run the new "make update-copyright" rule.
16980
16981 2011-01-01  Jim Meyering  <meyering@redhat.com>
16982
16983         maint: update-copyright: exempt doc/INSTALL*
16984         * Makefile (update-copyright): Also exclude doc/INSTALL*,
16985         since they are generated.  Suggested by Bruno Haible.
16986
16987 2011-01-01  Jim Meyering  <meyering@redhat.com>
16988
16989         maint: refine the update-copyright rule
16990         * Makefile (update-copyright): Also exclude any file that includes
16991         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
16992         code that merely generates the comment.
16993
16994 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16995
16996         New module 'u8-grapheme-len'.
16997         * modules/unigbrk/u8-grapheme-len: New file.
16998         * modules/unigbrk/u8-grapheme-len-tests: New file.
16999         * lib/unigbrk.in.h: Add prototype for new function.
17000         * lib/unigbrk/u8-grapheme-len.c: New file.
17001         * tests/unigbrk/test-u8-grapheme-len.c: New file.
17002
17003         New module 'u16-grapheme-len'.
17004         * modules/unigbrk/u16-grapheme-len: New file.
17005         * modules/unigbrk/u16-grapheme-len-tests: New file.
17006         * lib/unigbrk.in.h: Add prototype for new function.
17007         * lib/unigbrk/u16-grapheme-len.c: New file.
17008         * tests/unigbrk/test-u16-grapheme-len.c: New file.
17009
17010         New module 'u32-grapheme-len'.
17011         * modules/unigbrk/u32-grapheme-len: New file.
17012         * modules/unigbrk/u32-grapheme-len-tests: New file.
17013         * lib/unigbrk.in.h: Add prototype for new function.
17014         * lib/unigbrk/u32-grapheme-len.c: New file.
17015         * tests/unigbrk/test-u32-grapheme-len.c: New file.
17016
17017         New module 'u8-grapheme-next'.
17018         * modules/unigbrk/u8-grapheme-next: New file.
17019         * modules/unigbrk/u8-grapheme-next-tests: New file.
17020         * lib/unigbrk.in.h: Add prototype for new function.
17021         * lib/unigbrk/u8-grapheme-next.c: New file.
17022         * tests/unigbrk/test-u8-grapheme-next.c: New file.
17023
17024         New module 'u16-grapheme-next'.
17025         * modules/unigbrk/u16-grapheme-next: New file.
17026         * modules/unigbrk/u16-grapheme-next-tests: New file.
17027         * lib/unigbrk.in.h: Add prototype for new function.
17028         * lib/unigbrk/u16-grapheme-next.c: New file.
17029         * tests/unigbrk/test-u16-grapheme-next.c: New file.
17030
17031         New module 'u32-grapheme-next'.
17032         * modules/unigbrk/u32-grapheme-next: New file.
17033         * modules/unigbrk/u32-grapheme-next-tests: New file.
17034         * lib/unigbrk.in.h: Add prototype for new function.
17035         * lib/unigbrk/u32-grapheme-next.c: New file.
17036         * tests/unigbrk/test-u32-grapheme-next.c: New file.
17037
17038         New module 'u8-grapheme-prev'.
17039         * modules/unigbrk/u8-grapheme-prev: New file.
17040         * modules/unigbrk/u8-grapheme-prev-tests: New file.
17041         * lib/unigbrk.in.h: Add prototype for new function.
17042         * lib/unigbrk/u8-grapheme-prev.c: New file.
17043         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
17044
17045         New module 'u16-grapheme-prev'.
17046         * modules/unigbrk/u16-grapheme-prev: New file.
17047         * modules/unigbrk/u16-grapheme-prev-tests: New file.
17048         * lib/unigbrk.in.h: Add prototype for new function.
17049         * lib/unigbrk/u16-grapheme-prev.c: New file.
17050         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
17051
17052         New module 'u32-grapheme-prev'.
17053         * modules/unigbrk/u32-grapheme-prev: New file.
17054         * modules/unigbrk/u32-grapheme-prev-tests: New file.
17055         * lib/unigbrk.in.h: Add prototype for new function.
17056         * lib/unigbrk/u32-grapheme-prev.c: New file.
17057         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
17058
17059         New module 'u8-grapheme-breaks'.
17060         * modules/unigbrk/u8-grapheme-breaks: New file.
17061         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
17062         * lib/unigbrk.in.h: Add prototype for new function.
17063         * lib/unigbrk/u8-grapheme-breaks.c: New file.
17064         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
17065
17066         New module 'u16-grapheme-breaks'.
17067         * modules/unigbrk/u16-grapheme-breaks: New file.
17068         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
17069         * lib/unigbrk.in.h: Add prototype for new function.
17070         * lib/unigbrk/u16-grapheme-breaks.c: New file.
17071         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
17072
17073         New module 'u32-grapheme-breaks'.
17074         * modules/unigbrk/u32-grapheme-breaks: New file.
17075         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
17076         * lib/unigbrk.in.h: Add prototype for new function.
17077         * lib/unigbrk/u32-grapheme-breaks.c: New file.
17078         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
17079
17080         New module 'ulc-grapheme-breaks'.
17081         * modules/unigbrk/ulc-grapheme-breaks: New file.
17082         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
17083         * m4/locale-ar.m4: New file.
17084         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
17085         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
17086         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
17087
17088 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
17089
17090         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
17091         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
17092         modified how this file was generated before I initially submitted
17093         the module, but failed to regenerate it.  This meant that several
17094         of the level2 entries were wrong.
17095         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
17096         Remove the division-by-2 that is folded into the table now that
17097         gbrkprop.h has been regenerated properly.  Now -1 entries are
17098         handled correctly.
17099
17100         New module 'unigbrk/uc-gbrk-prop-tests'.
17101         * modules/unigbrk/uc-gbrk-prop-tests: New file.
17102         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
17103         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
17104         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
17105
17106 2011-01-01  Bruno Haible  <bruno@clisp.org>
17107
17108         Avoid use of hexadecimal escapes.
17109         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
17110         instead of hexadecimal escapes.
17111
17112 2011-01-01  Jim Meyering  <meyering@redhat.com>
17113
17114         maint: new rule to update copyright year ranges
17115         * Makefile (update-copyright): New rule.
17116
17117         maint: indent with TABs in Makefile
17118         * Makefile: Expand leading sequences of spaces to TABs
17119
17120         version-etc: update the copyright year it reports
17121         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
17122
17123 2010-12-31  Bruno Haible  <bruno@clisp.org>
17124
17125         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
17126         * lib/isfinite.c (zerof, zerod, zerol): New variables.
17127         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
17128         zero.
17129
17130 2010-12-31  Bruno Haible  <bruno@clisp.org>
17131
17132         pwrite: Work around HP-UX 11.11 bug.
17133         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
17134         works and set REPLACE_PWRITE if not.
17135         * lib/pwrite.c (pwrite): Add an implementation that uses the system
17136         function.
17137         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
17138
17139 2010-12-31  Bruno Haible  <bruno@clisp.org>
17140
17141         pread: Work around HP-UX 11 bugs.
17142         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
17143         and set REPLACE_PREAD if not.
17144         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
17145
17146 2010-12-31  Eric Blake  <eblake@redhat.com>
17147
17148         nl_langinfo: fix YESEXPR on Irix 6.5
17149         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
17150         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
17151         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
17152         it.
17153
17154 2010-12-31  Bruno Haible  <bruno@clisp.org>
17155
17156         iconv: Document HP-UX 11 bug.
17157         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
17158
17159 2010-12-31  Bruno Haible  <bruno@clisp.org>
17160
17161         ldexpl: Fix link error on HP-UX 11.
17162         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
17163         LDEXPL_LIBM, using $ISNANL_LIBM.
17164
17165 2010-12-31  Eric Blake  <eblake@redhat.com>
17166
17167         ftello: avoid compilation failure with SunStudio c89
17168         * lib/ftello.c (ftello): Use lseek, not llseek.
17169
17170         tests: avoid failing coreutils tests on cygwin
17171         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
17172         (create_exe_shims_): Return 0 when skipping.
17173
17174 2010-12-31  Bruno Haible  <bruno@clisp.org>
17175
17176         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
17177         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
17178
17179 2010-12-31  Bruno Haible  <bruno@clisp.org>
17180
17181         waitpid: Fix link error in C++ mode.
17182         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
17183
17184 2010-12-31  Bruno Haible  <bruno@clisp.org>
17185
17186         isnan: Use GCC built-ins when possible.
17187         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
17188         __builtin_isnan.
17189         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
17190         (isnan): Define using GCC built-ins for GCC >= 4.0.
17191
17192 2010-12-31  Bruno Haible  <bruno@clisp.org>
17193
17194         isnand: Fix mistake.
17195         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
17196         __builtin_isnand.
17197
17198 2010-12-31  Bruno Haible  <bruno@clisp.org>
17199
17200         open: Avoid C++ error on HP-UX 11.
17201         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
17202
17203 2010-12-31  Bruno Haible  <bruno@clisp.org>
17204
17205         time_r: Add missing declarations on HP-UX 11.
17206         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
17207         instead of HAVE_LOCALTIME_R.
17208         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
17209         HAVE_LOCALTIME_R always.
17210         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
17211         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
17212         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
17213         HAVE_LOCALTIME_R.
17214         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
17215         * doc/posix-functions/localtime_r.texi: Likewise.
17216
17217 2010-12-29  Eric Blake  <eblake@redhat.com>
17218
17219         mountlist: tweak previous commit
17220         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
17221         Reported by Paul Eggert.
17222
17223         mountlist: fix local drive detection on cygwin
17224         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
17225         that works for cygwin.
17226
17227 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
17228
17229         ftoastr, snprintf: ftoastr + snprintf module
17230         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
17231         since the snprintf module now should be good enough here.
17232         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
17233         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
17234         and gl_MODULE_INDICATOR([snprintf]), but the former enables
17235         GNULIB_SNPRINTF only for the test directory, and the latter
17236         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
17237         seems to suffice by itself.
17238
17239 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
17240
17241         alloca: one step towards thread-safety
17242         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
17243         need for a static variable.  All callers changed.  This does not
17244         make the alloca replacement thread-safe, but it's one step.
17245
17246         tests: minor indenting change
17247         * tests/init.sh: Sync from coreutils housekeeping patch
17248         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
17249         to keep lines within 80 columns.
17250
17251 2010-12-28  Jim Meyering  <meyering@redhat.com>
17252
17253         regex: don't infloop on persistent failing calloc
17254         * lib/regexec.c (build_trtable): Return failure indication upon
17255         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
17256         In glibc, this was fixed for version 2.13:
17257         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
17258
17259 2010-12-28  Bruno Haible  <bruno@clisp.org>
17260             Paul Eggert <eggert@cs.ucla.edu>
17261
17262         linkat: Make implementation robust against system behaviour variations.
17263         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
17264         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
17265         way, and to -2 if it needs a generic runtime test.
17266         * lib/linkat.c (solaris_optimized_link_immediate,
17267         solaris_optimized_link_follow): New functions.
17268         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
17269         (check_same_link): Use it.
17270
17271 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
17272
17273         New module 'unigbrk/base'.
17274         * modules/unigbrk/base: New file.
17275         * lib/unigbrk.in.h: New file.
17276
17277         New module 'unigbrk/uc-gbrk-prop'.
17278         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
17279         * modules/unigbrk/uc-gbrk-prop: New file.
17280         * lib/unigbrk/gbrkprop.h: New file.
17281         * lib/unigbrk/uc-gbrk-prop.c: New file.
17282
17283         New module 'unigbrk/uc-is-grapheme-break'.
17284         * modules/unigbrk/uc-is-grapheme-break: New file.
17285         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
17286         * lib/unigbrk/uc-is-grapheme-break.c: New file.
17287         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
17288         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
17289         * tests/unigbrk/GraphemeBreakTest.txt: New file.
17290
17291         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
17292
17293 2010-12-27  Bruno Haible  <bruno@clisp.org>
17294
17295         linkat test: Avoid failure on Solaris 11 2010-11.
17296         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
17297
17298 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
17299
17300         utimens: work around glibc rounding bug on more platforms
17301         * lib/utimens.c (fdutimens): Work around rounding bug even if
17302         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
17303         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
17304
17305 2010-12-27  Bruno Haible  <bruno@clisp.org>
17306
17307         select tests: Improve comments.
17308         * tests/test-select.c (do_select): Add comments.
17309
17310 2010-12-27  Bruno Haible  <bruno@clisp.org>
17311
17312         select tests: Safer way of handling timeout.
17313         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
17314         at every invocation.
17315
17316 2010-12-27  Bruno Haible  <bruno@clisp.org>
17317
17318         select tests: Use 'bool' where appropriate.
17319         * tests/test-select.c (connect_to_socket): Change argument type to
17320         'bool'.
17321
17322 2010-12-27  Bruno Haible  <bruno@clisp.org>
17323
17324         select tests: Use existing modules.
17325         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
17326         (configure.ac): Don't test for unistd.h.
17327         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
17328         declared in <unistd.h>.
17329
17330 2010-12-27  Bruno Haible  <bruno@clisp.org>
17331
17332         mbrtowc: Work around a Solaris 7 bug.
17333         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
17334         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
17335         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
17336         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
17337         MBRTOWC_NULL_ARG1_BUG.
17338         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
17339         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
17340         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
17341         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
17342
17343 2010-12-27  Jim Meyering  <meyering@redhat.com>
17344
17345         read-file.c: tweak syntax
17346         * lib/read-file.c (fread_file): Remove space after "*" in function
17347         definitions.
17348
17349 2010-12-27  Bruno Haible  <bruno@clisp.org>
17350
17351         times test: Avoid gcc warnings on OSF/1.
17352         * tests/test-times.c (main): Cast printf arguments from clock_t to
17353         'long int'.
17354
17355 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
17356
17357         utimens: work around glibc rounding bug on older Linux kernels
17358         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
17359         on Linux with a glibc whose utimes might not work, then work
17360         around a longstanding glibc bug involving rounding rather than
17361         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
17362         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
17363
17364 2010-12-26  Bruno Haible  <bruno@clisp.org>
17365
17366         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
17367         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
17368         _GL_CXXALIAS_SYS.
17369         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17370
17371 2010-12-26  Bruno Haible  <bruno@clisp.org>
17372
17373         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
17374         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
17375         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
17376         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
17377         looking for the declaration.
17378         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
17379         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
17380         problem.
17381         * doc/posix-functions/inet_pton.texi: Likewise.
17382
17383 2010-12-26  Bruno Haible  <bruno@clisp.org>
17384
17385         arpa_inet: Use the common idioms with C++ support.
17386         * lib/arpa_inet.in.h: Include c++defs.h.
17387         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
17388         support.
17389         * modules/arpa_inet (Depends-on): Add c++defs.
17390         (Makefile.am): Substitute the contents of c++defs.h.
17391         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
17392         * modules/arpa_inet-c++-tests: New file.
17393         * tests/test-arpa_inet-c++.cc: New file.
17394
17395 2010-12-25  Bruno Haible  <bruno@clisp.org>
17396
17397         Fix more C++ link errors on Solaris 8.
17398         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
17399         $(LIB_EACCESS).
17400         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
17401         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
17402         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
17403         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
17404         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
17405
17406 2010-12-25  Bruno Haible  <bruno@clisp.org>
17407
17408         printf-posix: Fix link error when a non-GCC compiler is used.
17409         * lib/stdio.in.h (printf): When not using GCC, override printf
17410         correctly.
17411         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17412
17413 2010-12-25  Bruno Haible  <bruno@clisp.org>
17414
17415         strerror_r-posix: Update doc.
17416         * doc/posix-functions/strerror_r.texi: Update doc about the return
17417         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
17418
17419 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
17420
17421         utimens: simplify the logic of the previous change
17422         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
17423         This should not affect whether the test succeeds or fails.
17424
17425         utimens: configure better on hosts with NFS clock skew
17426         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
17427         uses the clock of the local host.  It might use the clock of the
17428         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
17429         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
17430
17431 2010-12-25  Bruno Haible  <bruno@clisp.org>
17432
17433         ptsname test: Avoid failure on Solaris.
17434         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
17435         open a pseudo-terminal; don't use BSD-style ptys.
17436         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
17437
17438 2010-12-25  Bruno Haible  <bruno@clisp.org>
17439
17440         ptsname: Avoid ERANGE failure on some systems.
17441         * lib/ptsname.c (buffer): Increase size.
17442
17443 2010-12-25  Bruno Haible  <bruno@clisp.org>
17444
17445         rename, renameat: Avoid test failures at NFS mounted locations.
17446         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
17447         so that subsequent mkdir calls succeed.
17448
17449 2010-12-25  Bruno Haible  <bruno@clisp.org>
17450
17451         iswblank: Fix C++ link error on Solaris 8.
17452         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
17453         _GL_FUNCDECL_SYS.
17454
17455 2010-12-25  Bruno Haible  <bruno@clisp.org>
17456
17457         unistd: Fix C++ link error on Solaris 8.
17458         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
17459
17460 2010-12-25  Bruno Haible  <bruno@clisp.org>
17461
17462         readlink doc: Mention an old glibc bug.
17463         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
17464
17465 2010-12-25  Bruno Haible  <bruno@clisp.org>
17466
17467         fcntl-h: Fix for use of C++ on glibc systems.
17468         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
17469         also on glibc systems in C++ mode.
17470         Reported by Gary V. Vaughan <gary@gnu.org>.
17471
17472 2010-12-25  Bruno Haible  <bruno@clisp.org>
17473
17474         roundl-ieee: Make it work on OSF/1 5.1 with cc.
17475         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
17476
17477 2010-12-25  Bruno Haible  <bruno@clisp.org>
17478
17479         truncl-ieee: Make it work on OSF/1 5.1 with cc.
17480         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
17481         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
17482         test whether truncl works according to ISO C 99 with IEC 60559.
17483         * m4/truncl-ieee.m4: New file.
17484         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
17485         m4/signbit.m4.
17486         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
17487
17488 2010-12-25  Bruno Haible  <bruno@clisp.org>
17489
17490         ceill-ieee: Make it work on OSF/1 5.1 with cc.
17491         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
17492         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
17493         test whether ceill works according to ISO C 99 with IEC 60559.
17494         * m4/ceill-ieee.m4: New file.
17495         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
17496         m4/signbit.m4.
17497         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
17498
17499 2010-12-25  Bruno Haible  <bruno@clisp.org>
17500
17501         Ensure all prerequisites of <wchar.h> are included.
17502         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
17503         before <wchar.h>.
17504         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
17505         gl_MBRLEN_NUL_RETVAL): Likewise.
17506         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
17507         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
17508         AC_FUNC_MBRTOWC): Likewise.
17509         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17510         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
17511         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17512         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
17513         Likewise.
17514         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
17515         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
17516         (gl_WCHAR_H): Improve comments.
17517         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
17518
17519 2010-12-25  Bruno Haible  <bruno@clisp.org>
17520
17521         strtok_r: Fix C syntax error in autoconf macro.
17522         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
17523         characters in test program.
17524
17525 2010-12-24  Bruno Haible  <bruno@clisp.org>
17526
17527         ceil, trunc, round: Fix gcc warnings.
17528         * lib/ceil.c (MIN): Undefine before redefining.
17529         * lib/trunc.c (MIN): Likewise.
17530         * lib/round.c (MIN): Likewise.
17531         Include <math.h> first.
17532
17533 2010-12-24  Bruno Haible  <bruno@clisp.org>
17534
17535         select tests: Avoid failures on OSF/1 5.1.
17536         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
17537         failure of closing the last socket; it may fail with ECONNRESET.
17538
17539 2010-12-24  Eric Blake  <eblake@redhat.com>
17540
17541         stdint: avoid HP-UX 10.20 preprocessor bug
17542         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
17543         than #if.
17544         * tests/test-floor2.c (main): Likewise.
17545         Reported by Peter O'Gorman.
17546
17547         pipe: make obsoletion transition easier
17548         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
17549         * modules/pipe (Files): Include revived file.
17550         (Include): Drop reference, to mirror getdate's behavior.
17551
17552 2010-12-24  Bruno Haible  <bruno@clisp.org>
17553
17554         sys_socket: Hide mismatch of declarations on NonStop Kernel.
17555         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
17556         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
17557         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17558
17559 2010-12-24  Bruno Haible  <bruno@clisp.org>
17560
17561         gethostname: Ensure declaration on NonStop Kernel.
17562         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
17563         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17564
17565 2010-12-24  Bruno Haible  <bruno@clisp.org>
17566
17567         sys_select: Ensure all necessary types on NonStop Kernel.
17568         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
17569         include <sys/time.h>.
17570         * doc/posix-headers/sys_select.texi: Mention that it's missing on
17571         NonStop Kernel.
17572         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17573
17574 2010-12-24  Bruno Haible  <bruno@clisp.org>
17575
17576         sys_select: Remove unneeded include.
17577         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
17578         have <sys/select.h>.
17579
17580 2010-12-24  Bruno Haible  <bruno@clisp.org>
17581
17582         gethostname: Provide a fallback for HOST_NAME_MAX.
17583         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
17584         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
17585         instead.
17586         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17587
17588 2010-12-24  Bruno Haible  <bruno@clisp.org>
17589
17590         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
17591         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
17592         (SA_RESTART): Likewise.
17593         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17594
17595 2010-12-24  Bruno Haible  <bruno@clisp.org>
17596
17597         signal: Define NSIG.
17598         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
17599         * tests/test-signal.c (nsig): New variable.
17600         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17601
17602 2010-12-24  Bruno Haible  <bruno@clisp.org>
17603
17604         rename, renameat: Avoid test failures on OSF/1 5.1.
17605         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
17606         alternative error codes.
17607         * tests/test-renameat.c (main): Likewise.
17608
17609 2010-12-24  Bruno Haible  <bruno@clisp.org>
17610
17611         *printf: Detect large precisions bug on Solaris 10/SPARC.
17612         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
17613         by Paul Eggert.
17614         * tests/test-snprintf-posix.h (test_function): Add this test code here
17615         too.
17616         * tests/test-sprintf-posix.h (test_function): Likewise.
17617         * tests/test-vasnprintf-posix.c (test_function): Likewise.
17618         * tests/test-vasprintf-posix.c (test_function): Likewise.
17619         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
17620         around by gnulib.
17621         * doc/posix-functions/printf.texi: Likewise.
17622         * doc/posix-functions/snprintf.texi: Likewise.
17623         * doc/posix-functions/sprintf.texi: Likewise.
17624         * doc/posix-functions/vfprintf.texi: Likewise.
17625         * doc/posix-functions/vprintf.texi: Likewise.
17626         * doc/posix-functions/vsnprintf.texi: Likewise.
17627         * doc/posix-functions/vsprintf.texi: Likewise.
17628         * doc/posix-functions/dprintf.texi: Undo last commit.
17629         * doc/posix-functions/vdprintf.texi: Likewise.
17630
17631 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
17632
17633         tests: port test-fdutimensat.c to Solaris 8
17634         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
17635         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
17636         On Solaris 8, it fails with errno == ENOSYS, because there is no
17637         futimens (so it can't use the fd), and there is no lutimens (so it
17638         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
17639
17640         vsnprintf: make more consistent with snprintf; doc fixes
17641
17642         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
17643         the byte count return problem was promoted from the snprintf-posix
17644         to the snprintf module.
17645         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17646         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
17647         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
17648         * tests/test-snprintf.c (main): Check the byte count returned.
17649         * tests/test-vsnprintf.c (main): Likewise.
17650
17651 2010-12-23  Eric Blake  <eblake@redhat.com>
17652
17653         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
17654         * modules/sigpipe (License): Relax license.
17655
17656 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17657
17658         doc: document Solaris printf bug with large float precisions
17659         * doc/posix-functions/dprintf.texi (dprintf):
17660         * doc/posix-functions/fprintf.texi (fprintf):
17661         * doc/posix-functions/printf.texi (printf):
17662         * doc/posix-functions/snprintf.texi (snprintf):
17663         * doc/posix-functions/sprintf.texi (sprintf):
17664         * doc/posix-functions/vdprintf.texi (vdprintf):
17665         * doc/posix-functions/vfprintf.texi (vfprintf):
17666         * doc/posix-functions/vprintf.texi (vprintf):
17667         * doc/posix-functions/vsnprintf.texi (vsnprintf):
17668         * doc/posix-functions/vsprintf.texi (vsprintf):
17669         Mention that these functions mishandle large floating point
17670         precisions on Solaris 10.  The same bug is also present in Solaris
17671         8, and I assume earlier.  This causes "cd gnulib-tests; make
17672         check" to fail on Solaris 8 (and I assume, later) when building
17673         the latest coreutils, in test-vasprintf-posix's call to
17674         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
17675         the wide flavors (e.g., wprintf) so this patch just updates the
17676         documentation for the narrow ones.
17677
17678         test-posixtm.c: add two tests
17679         * tests/test-posixtm.c: Add two tests, to highlight the
17680         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
17681         around this bug; this is merely to document it.
17682
17683 2010-12-22  Bruno Haible  <bruno@clisp.org>
17684
17685         getlogin_r: Work around portability problem on OSF/1.
17686         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
17687         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
17688         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
17689         test for a truncated result.
17690         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
17691         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
17692         * modules/getlogin_r (Depends-on): Add memchr.
17693         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
17694
17695 2010-12-22  Bruno Haible  <bruno@clisp.org>
17696
17697         ptsname: Avoid test failure on OSF/1 5.1.
17698         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
17699         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
17700         (same_slave): New function.
17701         (main): Use it to compare ptsname's result with the expected file name.
17702
17703 2010-12-22  Bruno Haible  <bruno@clisp.org>
17704
17705         Port extended stdio modules to HP NonStop Kernel.
17706         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
17707         macros.
17708         * lib/fbufmode.c: Update comments.
17709         * lib/fflush.c: Likewise.
17710         * lib/fpurge.c: Likewise.
17711         * lib/freadable.c: Likewise.
17712         * lib/freadahead.c: Likewise.
17713         * lib/freading.c: Likewise.
17714         * lib/freadptr.c: Likewise.
17715         * lib/freadseek.c: Likewise.
17716         * lib/fseeko.c: Likewise.
17717         * lib/fseterr.c: Likewise.
17718         * lib/fwritable.c: Likewise.
17719         * lib/fwriting.c: Likewise.
17720         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17721
17722 2010-12-22  Bruno Haible  <bruno@clisp.org>
17723
17724         ttyname_r: Work around bug on OSF/1 5.1.
17725         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
17726         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
17727         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
17728         present.
17729         * lib/ttyname_r.c (ttyname_r): Update comments.
17730
17731 2010-12-22  Bruno Haible  <bruno@clisp.org>
17732
17733         round: Implement result sign according to IEEE 754.
17734         * lib/round.c (MIN, MINUS_ZERO): New macros.
17735         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
17736         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
17737         * tests/test-round-ieee.c (main): Likewise.
17738         * tests/test-roundl-ieee.c (main): Likewise.
17739
17740         trunc: Implement result sign according to IEEE 754.
17741         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
17742         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
17743         * tests/test-trunc2.c: Include minus-zero.h.
17744         (MINUS_ZERO): New macro.
17745         (trunc_reference): Keep in sync with lib/trunc.c.
17746         * tests/test-truncf2.c: Include minus-zero.h.
17747         (MINUS_ZERO): New macro.
17748         (truncf_reference): Keep in sync with lib/trunc.c.
17749         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
17750         * tests/test-trunc-ieee.c (main): Likewise.
17751         * tests/test-truncl-ieee.c (main): Likewise.
17752
17753         ceil: Implement result sign according to IEEE 754.
17754         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
17755         (FUNC): Return -0.0 for -1 < x < 0.
17756         * tests/test-ceil2.c: Include minus-zero.h.
17757         (MINUS_ZERO): New macro.
17758         (ceil_reference): Keep in sync with lib/ceil.c.
17759         * tests/test-ceilf2.c: Include minus-zero.h.
17760         (MINUS_ZERO): New macro.
17761         (ceilf_reference): Keep in sync with lib/ceil.c.
17762         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
17763         * tests/test-ceil-ieee.c (main): Likewise.
17764         * tests/test-ceill-ieee.c (main): Likewise.
17765
17766         floor: Implement result sign according to IEEE 754.
17767         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
17768         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
17769         * tests/test-floorf2.c (floorf_reference): Likewise.
17770         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
17771         * tests/test-floor-ieee.c (main): Likewise.
17772         * tests/test-floorl-ieee.c (main): Likewise.
17773
17774 2010-12-22  Bruno Haible  <bruno@clisp.org>
17775
17776         getaddrinfo: Update doc.
17777         * doc/posix-functions/gai_strerror.texi: Return type is also different
17778         on AIX and HP-UX.
17779
17780 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17781
17782         getaddrinfo, inet_ntop: Update doc for Solaris.
17783         * doc/posix-functions/gai_strerror.texi: Return type is also an
17784         issue on Solaris 9 and earlier.
17785         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
17786         on Solaris 10 and earlier.
17787
17788 2010-12-21  Bruno Haible  <bruno@clisp.org>
17789
17790         New module 'roundl-ieee'.
17791         * modules/roundl-ieee: New file.
17792         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
17793         test whether roundl works according to ISO C 99 with IEC 60559.
17794         * m4/roundl-ieee.m4: New file.
17795         * modules/roundl-ieee-tests: New file.
17796         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
17797         * tests/test-roundl.c (main): Remove signbit tests.
17798         * modules/roundl-tests (Depends-on): Remove signbit.
17799         * doc/posix-functions/roundl.texi: Mention the new module.
17800
17801 2010-12-21  Bruno Haible  <bruno@clisp.org>
17802
17803         New module 'truncl-ieee'.
17804         * modules/truncl-ieee: New file.
17805         * modules/truncl-ieee-tests: New file.
17806         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
17807         * tests/test-truncl.c (main): Remove signbit tests.
17808         * modules/truncl-tests (Depends-on): Remove signbit.
17809         * doc/posix-functions/truncl.texi: Mention the new module.
17810
17811 2010-12-21  Bruno Haible  <bruno@clisp.org>
17812
17813         New module 'ceill-ieee'.
17814         * modules/ceill-ieee: New file.
17815         * modules/ceill-ieee-tests: New file.
17816         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
17817         * tests/test-ceill.c (main): Remove signbit tests.
17818         * modules/ceill-tests (Depends-on): Remove signbit.
17819         * doc/posix-functions/ceill.texi: Mention the new module.
17820
17821 2010-12-21  Bruno Haible  <bruno@clisp.org>
17822
17823         New module 'floorl-ieee'.
17824         * modules/floorl-ieee: New file.
17825         * modules/floorl-ieee-tests: New file.
17826         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
17827         * tests/test-floorl.c (main): Remove signbit tests.
17828         * modules/floorl-tests (Depends-on): Remove signbit.
17829         * doc/posix-functions/floorl.texi: Mention the new module.
17830
17831 2010-12-21  Bruno Haible  <bruno@clisp.org>
17832
17833         New module 'round-ieee'.
17834         * modules/round-ieee: New file.
17835         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
17836         whether round works according to ISO C 99 with IEC 60559.
17837         * m4/round-ieee.m4: New file.
17838         * modules/round-ieee-tests: New file.
17839         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
17840         * tests/test-round1.c (main): Remove signbit tests.
17841         * modules/round-tests (Depends-on): Remove 'signbit'.
17842         * doc/posix-functions/round.texi: Mention the new module.
17843
17844 2010-12-21  Bruno Haible  <bruno@clisp.org>
17845
17846         New module 'trunc-ieee'.
17847         * modules/trunc-ieee: New file.
17848         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
17849         whether trunc works according to ISO C 99 with IEC 60559.
17850         * m4/trunc-ieee.m4: New file.
17851         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
17852         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
17853         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
17854         * modules/trunc-ieee-tests: New file.
17855         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
17856         * tests/test-trunc1.c (main): Remove signbit tests.
17857         * modules/trunc-tests (Depends-on): Remove 'signbit'.
17858         * doc/posix-functions/trunc.texi: Mention the new module.
17859
17860 2010-12-21  Bruno Haible  <bruno@clisp.org>
17861
17862         New module 'ceil-ieee'.
17863         * modules/ceil-ieee: New file.
17864         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
17865         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
17866         ISO C 99 with IEC 60559.
17867         * m4/ceil-ieee.m4: New file.
17868         * modules/ceil (Files): Add lib/ceil.c.
17869         (Depends-on): Add 'float'.
17870         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17871         * lib/math.in.h (ceil): New declaration.
17872         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
17873         REPLACE_CEIL.
17874         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
17875         * modules/ceil-ieee-tests: New file.
17876         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
17877         * tests/test-math-c++.cc: Check the signature of 'ceil'.
17878         * doc/posix-functions/ceil.texi: Mention the new module.
17879
17880 2010-12-21  Bruno Haible  <bruno@clisp.org>
17881
17882         New module 'floor-ieee'.
17883         * modules/floor-ieee: New file.
17884         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
17885         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
17886         ISO C 99 with IEC 60559.
17887         * m4/floor-ieee.m4: New file.
17888         * modules/floor (Files): Add lib/floor.c.
17889         (Depends-on): Add 'float'.
17890         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17891         * lib/math.in.h (floor): New declaration.
17892         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
17893         REPLACE_FLOOR.
17894         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
17895         * modules/floor-ieee-tests: New file.
17896         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
17897         * tests/test-math-c++.cc: Check the signature of 'floor'.
17898         * doc/posix-functions/floor.texi: Mention the new module.
17899
17900 2010-12-21  Bruno Haible  <bruno@clisp.org>
17901
17902         New module 'roundf-ieee'.
17903         * modules/roundf-ieee: New file.
17904         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
17905         test whether roundf works according to ISO C 99 with IEC 60559.
17906         * m4/roundf-ieee.m4: New file.
17907         * modules/roundf-ieee-tests: New file.
17908         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
17909         * tests/test-roundf1.c (main): Remove signbit tests.
17910         * modules/roundf-tests (Depends-on): Remove 'signbit'.
17911         * doc/posix-functions/roundf.texi: Mention the new module.
17912
17913 2010-12-21  Bruno Haible  <bruno@clisp.org>
17914
17915         New module 'truncf-ieee'.
17916         * modules/truncf-ieee: New file.
17917         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
17918         test whether truncf works according to ISO C 99 with IEC 60559.
17919         * m4/truncf-ieee.m4: New file.
17920         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
17921         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
17922         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
17923         * modules/truncf-ieee-tests: New file.
17924         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
17925         * tests/test-truncf1.c (main): Remove signbit tests.
17926         * modules/truncf-tests (Depends-on): Remove 'signbit'.
17927         * doc/posix-functions/truncf.texi: Mention the new module.
17928
17929 2010-12-21  Bruno Haible  <bruno@clisp.org>
17930
17931         New module 'ceilf-ieee'.
17932         * modules/ceilf-ieee: New file.
17933         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
17934         test whether ceilf works according to ISO C 99 with IEC 60559.
17935         * m4/ceilf-ieee.m4: New file.
17936         * modules/ceilf-ieee-tests: New file.
17937         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
17938         * tests/test-ceilf1.c (main): Remove signbit tests.
17939         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
17940         * doc/posix-functions/ceilf.texi: Mention the new module.
17941
17942 2010-12-21  Bruno Haible  <bruno@clisp.org>
17943
17944         New module 'floorf-ieee'.
17945         * modules/floorf-ieee: New file.
17946         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
17947         test whether floorf works according to ISO C 99 with IEC 60559.
17948         * m4/floorf-ieee.m4: New file.
17949         * modules/floorf-ieee-tests: New file.
17950         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
17951         * tests/test-floorf1.c (main): Remove signbit tests.
17952         * modules/floorf-tests (Depends-on): Remove 'signbit'.
17953         * doc/posix-functions/floorf.texi: Mention the new module.
17954
17955 2010-12-21  Bruno Haible  <bruno@clisp.org>
17956
17957         Support for minus zero in autoconf macros.
17958         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
17959         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
17960         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
17961         * tests/minus-zero.h: Update comments.
17962
17963 2010-12-21  Bruno Haible  <bruno@clisp.org>
17964
17965         Tests for module 'ceil'.
17966         * modules/ceil-tests: New file.
17967         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
17968         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
17969
17970 2010-12-21  Bruno Haible  <bruno@clisp.org>
17971
17972         Tests for module 'floor'.
17973         * modules/floor-tests: New file.
17974         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
17975         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
17976
17977 2010-12-21  Bruno Haible  <bruno@clisp.org>
17978
17979         math: Fix indentation.
17980         * lib/math.in.h (floorf): Fix indentation.
17981
17982 2010-12-21  Bruno Haible  <bruno@clisp.org>
17983
17984         Fix cross-compilation guesses on Solaris.
17985         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
17986         not match "solaris2.10".
17987         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17988         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
17989         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
17990
17991 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
17992
17993         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
17994         This fixes a problem observed with the latest coreutils snapshot
17995         that caused a test to fail on Solaris 8.  src/csplit.c's call
17996         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
17997         earlier, instead of returning the number of bytes that would have
17998         been generated; this causes csplit to incorrectly report memory
17999         exhaustion.
18000         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
18001         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
18002         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
18003         comments to match.
18004         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
18005         Fix typo in matching older versions of Solaris: "solaris2.10"
18006         is matched by the shell pattern "solaris2.[0-9]*".  This matters
18007         only for guessing while cross-compiling.
18008         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
18009
18010 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
18011
18012         ftoastr: fix comment again
18013         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
18014         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
18015         Also, simplify example a bit by using flags = 0.
18016
18017 2010-12-20  Bruno Haible  <bruno@clisp.org>
18018
18019         round*, trunc*: Update documentation regarding glibc.
18020         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
18021         * doc/posix-functions/round.texi: Likewise.
18022         * doc/posix-functions/roundl.texi: Likewise.
18023         * doc/posix-functions/truncf.texi: Likewise.
18024         * doc/posix-functions/trunc.texi: Likewise.
18025         * doc/posix-functions/truncl.texi: Likewise.
18026
18027 2010-12-20  Bruno Haible  <bruno@clisp.org>
18028
18029         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
18030         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
18031         * doc/posix-functions/round.texi: Likewise.
18032         * doc/posix-functions/roundl.texi: Likewise.
18033
18034 2010-12-20  Bruno Haible  <bruno@clisp.org>
18035
18036         ttyname_r: Add missing declaration on HP-UX 11.
18037         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
18038         HAVE_TTYNAME_R.
18039         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
18040         declared. Set HAVE_TTYNAME_R always.
18041         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18042         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
18043         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
18044         HAVE_TTYNAME_R.
18045         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
18046
18047 2010-12-20  Bruno Haible  <bruno@clisp.org>
18048
18049         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
18050         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
18051         * doc/posix-functions/getlogin_r.texi: Likewise.
18052         * tests/test-getlogin.c: Include <errno.h>.
18053         (main): Avoid test failure on HP-UX 11.11.
18054         * tests/test-getlogin_r.c (main): Likewise.
18055
18056 2010-12-20  Bruno Haible  <bruno@clisp.org>
18057
18058         getlogin_r: Add missing declaration on HP-UX 11.
18059         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
18060         declared also when it exists as a function.
18061         * doc/posix-functions/getlogin_r.texi: Document this workaround.
18062
18063 2010-12-20  Bruno Haible  <bruno@clisp.org>
18064
18065         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
18066         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
18067         through wcrtomb.
18068
18069 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
18070
18071         ftoastr: fix comment
18072         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
18073         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
18074
18075 2010-12-19  Bruno Haible  <bruno@clisp.org>
18076
18077         isnan: Ensure it is a macro.
18078         * lib/math.in.h (isnan): Define as a macro if not already a macro.
18079         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
18080         Solaris.
18081
18082 2010-12-19  Bruno Haible  <bruno@clisp.org>
18083
18084         ldexpl test: Fix link error on OSF/1 5.1.
18085         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
18086
18087 2010-12-19  Bruno Haible  <bruno@clisp.org>
18088
18089         wctype: Make it work in C++ mode on OSF/1 5.1.
18090         * lib/wctype.in.h (iswblank): Declare but not define here.
18091         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
18092         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
18093         * modules/wctype (Files): Add lib/iswblank.c.
18094
18095 2010-12-19  Bruno Haible  <bruno@clisp.org>
18096
18097         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
18098         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
18099         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
18100
18101 2010-12-19  Bruno Haible  <bruno@clisp.org>
18102
18103         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
18104         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
18105         _POSIX_PII_SOCKET.
18106         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
18107         * doc/posix-functions/recvfrom.texi: Likewise.
18108         * doc/posix-functions/send.texi: Likewise.
18109         * doc/posix-functions/sendto.texi: Likewise.
18110
18111 2010-12-19  Bruno Haible  <bruno@clisp.org>
18112
18113         tcgetsid: Add missing declaration on OSF/1 5.1.
18114         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
18115         HAVE_TCGETSID.
18116         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
18117         Don't set HAVE_TCGETSID.
18118         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
18119         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
18120         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
18121         HAVE_TCGETSID.
18122         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
18123
18124 2010-12-19  Bruno Haible  <bruno@clisp.org>
18125
18126         stdio: Fix problem with popen() declaration on OSF/1 5.1.
18127         * lib/stdio.in.h: During the include_next statement, let recursive
18128         includes of this file include only the system header file.
18129
18130 2010-12-19  Bruno Haible  <bruno@clisp.org>
18131
18132         iconv_open: Fix regression from 2010-12-04.
18133         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
18134         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
18135
18136 2010-12-19  Bruno Haible  <bruno@clisp.org>
18137
18138         stdbool test: Avoid a gcc warning.
18139         * tests/test-stdbool.c (main): Fail if e1 is false.
18140         Reported by Jim Meyering.
18141
18142 2010-12-19  Jim Meyering  <meyering@redhat.com>
18143
18144         setenv: restore to working order
18145         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
18146         mistakenly removed.
18147         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
18148         HAVE_SETENV.
18149         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
18150         HAVE_SETENV.
18151
18152 2010-12-19  Bruno Haible  <bruno@clisp.org>
18153
18154         Document some different function declarations on OSF/1 5.1.
18155         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
18156         * doc/posix-functions/inet_ntop.texi: Likewise.
18157         * doc/posix-functions/gethostname.texi: Likewise.
18158         * lib/unistd.in.h (gethostname): Update comment.
18159
18160 2010-12-19  Bruno Haible  <bruno@clisp.org>
18161
18162         doc: Mention vasprintf-posix module.
18163         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
18164         the 'vasprintf-posix' module.
18165         * doc/glibc-functions/vasprintf.texi: Likewise.
18166
18167 2010-12-19  Bruno Haible  <bruno@clisp.org>
18168
18169         unsetenv: Add missing declaration on OSF/1 5.1.
18170         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
18171         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
18172         Don't set HAVE_UNSETENV. In the test program, set _BSD.
18173         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
18174         not HAVE_UNSETENV.
18175         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
18176         HAVE_UNSETENV.
18177         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
18178
18179 2010-12-19  Bruno Haible  <bruno@clisp.org>
18180
18181         setenv: Add missing declaration on OSF/1 5.1.
18182         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
18183         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
18184         declared. Don't set HAVE_SETENV.
18185         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
18186         not HAVE_SETENV.
18187         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
18188         HAVE_SETENV.
18189         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
18190
18191 2010-12-19  Bruno Haible  <bruno@clisp.org>
18192
18193         nl_langinfo tests: Avoid gcc warning.
18194         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
18195
18196 2010-12-19  Bruno Haible  <bruno@clisp.org>
18197
18198         mknod: Avoid error in C++ mode on OSF/1 with GCC.
18199         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
18200         _GL_CXXALIAS_SYS.
18201
18202 2010-12-19  Bruno Haible  <bruno@clisp.org>
18203
18204         stdbool: Relax test.
18205         * tests/test-stdbool.c (e): Don't require that casts from a variable's
18206         address to 'bool' work in static initializer, for compilers other than
18207         GCC.
18208
18209 2010-12-19  Bruno Haible  <bruno@clisp.org>
18210
18211         ftello: Add missing declaration on OSF/1 5.1.
18212         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
18213         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
18214         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
18215         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
18216         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
18217
18218 2010-12-19  Bruno Haible  <bruno@clisp.org>
18219
18220         fseeko: Add missing declaration on OSF/1 5.1.
18221         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
18222         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
18223         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
18224         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
18225         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
18226
18227 2010-12-19  Bruno Haible  <bruno@clisp.org>
18228
18229         fchdir: Add missing declaration on OSF/1 5.1.
18230         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
18231         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
18232         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
18233         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
18234         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
18235
18236 2010-12-19  Bruno Haible  <bruno@clisp.org>
18237
18238         relocatable-prog-wrapper: Separate from relocatable-prog.
18239         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
18240         uninstall-relocwrapper rule here.
18241         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
18242         Reported by Ian Beckwith <ianb@erislabs.net>.
18243
18244 2010-12-19  Bruno Haible  <bruno@clisp.org>
18245
18246         unistr/u8-mbsnlen: Add missing dependency.
18247         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
18248         Reported by Ian Beckwith <ianb@erislabs.net>.
18249
18250 2010-12-19  Bruno Haible  <bruno@clisp.org>
18251
18252         iconv: Make it possible again to use this module without 'iconv-h'.
18253         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
18254         if it is not defined.
18255         Reported by Ian Beckwith <ianb@erislabs.net>.
18256
18257 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
18258
18259         acl: port to Solaris 8 when copying from tmpfs to ufs
18260         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
18261         error number.  Problem observed on Solaris 8 with latest
18262         coreutils, with "mv A B", where A is on a tmpfs file system and B
18263         is on a ufs file system.  This caused coreutils' mv/part-symlink
18264         test to fail.
18265
18266         tests: set fail=0 at start
18267         * tests/init.sh (setup_): Move fail=0 initialization here ...
18268         (mktempd_): ... from here, so that tests can rely on fail being
18269         set to 0 initially.  This fixes a problem in coreutils; see:
18270         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
18271
18272 2010-12-18  Bruno Haible  <bruno@clisp.org>
18273
18274         memmem-simple: Stylistic changes.
18275         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
18276         Fix preprocessor directive indentation.
18277
18278 2010-12-15  Pádraig Brady <P@draigBrady.com>
18279
18280         memmem, memmem-simple: reorganize and expand empty needle check
18281         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
18282         functional checks to memmem-simple so that one has a fully functional
18283         memmem by using just this module.
18284         Restrict the performance only check to the memmem module.
18285         Also expand the empty needle check to ensure the correct
18286         pointer is returned, not just a non NULL pointer.
18287         * doc/glibc-functions/memmem.texi: Rearrange the portability
18288         documentation to correlate with the rearranged checks.
18289         Clarify exactly how the memmem and memmem-simple modules
18290         relate to each other.
18291
18292 2010-12-15  Pádraig Brady <P@draigBrady.com>
18293             Bruno Haible  <bruno@clisp.org>
18294
18295         Improve cross-compilation guesses for uClibc.
18296         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
18297         that uClibc does not have the glibc bug.
18298         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
18299         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
18300
18301 2010-12-14  Eric Blake  <eblake@redhat.com>
18302
18303         configmake: provide fallbacks for oldest supported autotools
18304         * m4/configmake.m4: New file.
18305         * modules/configmake (Files): Ship it.
18306         (configure.ac): Use it to guarantee fallbacks.
18307
18308 2010-12-13  Pádraig Brady <P@draigBrady.com>
18309
18310         read-file: Improve handling of large files
18311         * lib/read-file.c (fread_file): Minimize realloc()s
18312         for regular files, and better manage sizes around SIZE_MAX.
18313
18314 2010-12-13  Eric Blake  <eblake@redhat.com>
18315
18316         cloexec, fcntl: relax license
18317         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
18318         consent from all contributors.
18319         * modules/fcntl (License): Likewise.
18320
18321 2010-12-10  Bruno Haible  <bruno@clisp.org>
18322
18323         Tests for module 'pipe-posix'.
18324         * modules/pipe-posix-tests: New file.
18325         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
18326
18327 2010-12-10  Bruno Haible  <bruno@clisp.org>
18328
18329         pipe-posix: Make it work in C++ mode.
18330         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
18331         (pipe): Use common idiom, not a macro definition.
18332         * lib/pipe.c: New file.
18333         * m4/pipe.m4: New file.
18334         * modules/pipe-posix (Description): Enhance.
18335         (Files): Add lib/pipe.c, m4/pipe.m4.
18336         (configure.ac): Invoke gl_FUNC_PIPE.
18337         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
18338         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
18339         * tests/test-unistd-c++.cc: Check the signature of pipe.
18340
18341 2010-12-10  Bruno Haible  <bruno@clisp.org>
18342
18343         Rename module 'pipe' to 'spawn-pipe'.
18344         * modules/spawn-pipe: New file, renamed from modules/pipe.
18345         (Files, configure.ac, Makefile.am): Update.
18346         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
18347         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
18348         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
18349         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
18350         "spawn-pipe.h" instead of "pipe.h".
18351         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
18352         to gl_SPAWN_PIPE.
18353         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
18354         (Files, Makefile.am): Update.
18355         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
18356         Update.
18357         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
18358         Include "spawn-pipe.h" instead of "pipe.h".
18359         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
18360         * lib/javacomp.c: Likewise.
18361         * lib/javaversion.c: Likewise.
18362         * lib/pipe-filter-gi.c: Likewise.
18363         * lib/pipe-filter-ii.c: Likewise.
18364         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
18365         * modules/javacomp (Depends-on): Likewise.
18366         * modules/javaversion (Depends-on): Likewise.
18367         * modules/pipe-filter-gi (Depends-on): Likewise.
18368         * modules/pipe-filter-ii (Depends-on): Likewise.
18369         * MODULES.html.sh (Executing programs): Update.
18370         * NEWS: Mention the change.
18371
18372 2010-12-10  Eric Blake  <eblake@redhat.com>
18373
18374         pipe-posix: new module
18375         * modules/pipe-posix: New file.
18376         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
18377         (gl_UNISTD_H): Check for declaration.
18378         * modules/unistd (Makefile.am): Substitute it.
18379         * lib/unistd.in.h (pipe): Provide it for mingw.
18380         * doc/posix-functions/pipe.texi (pipe): Update documentation.
18381         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
18382
18383 2010-12-07  Bruno Haible  <bruno@clisp.org>
18384
18385         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
18386         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
18387         u8_strcmp_gnu.
18388         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
18389
18390 2010-12-06  Bruno Haible  <bruno@clisp.org>
18391
18392         Update internal documentation.
18393         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
18394
18395 2010-12-04  Bruno Haible  <bruno@clisp.org>
18396
18397         Put more information about failed tests into the test return codes.
18398         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
18399         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
18400         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
18401         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
18402         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
18403         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18404         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18405         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
18406         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
18407         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18408         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
18409         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
18410         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
18411         * m4/stdint.m4 (gl_STDINT_H): Likewise.
18412         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
18413         returns a bit mask.
18414         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
18415         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
18416         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
18417         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
18418         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
18419         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
18420         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
18421         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
18422         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
18423         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
18424         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
18425         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
18426         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
18427         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
18428         * m4/link.m4 (gl_FUNC_LINK): Likewise.
18429         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
18430         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
18431         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
18432         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
18433         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
18434         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
18435         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
18436         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
18437         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
18438         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
18439         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
18440         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
18441         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
18442         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
18443         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
18444         gl_PRINTF_PRECISION): Likewise.
18445         * m4/regex.m4 (gl_REGEX): Likewise.
18446         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
18447         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18448         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
18449         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18450         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
18451         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18452         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
18453         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
18454         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
18455         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18456         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
18457         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
18458         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
18459         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
18460         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18461         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
18462         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
18463         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18464         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
18465         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
18466         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
18467         enumerated value.
18468         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
18469
18470 2010-12-04  Bruno Haible  <bruno@clisp.org>
18471
18472         Update for Solaris 11 2010-11.
18473         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
18474         Express, released in November 2010.
18475
18476 2010-12-04  Bruno Haible  <bruno@clisp.org>
18477
18478         nproc: Relax license.
18479         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
18480         and Paul Eggert.
18481         Requested by Ludovic Courtès <ludo@gnu.org>.
18482
18483 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
18484
18485         utimecmp: fine-grained src to nearby coarse-grained dest
18486
18487         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
18488         and the source is on a file system with higher-resolution time
18489         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
18490         not work, and the time stamps are close together, the algorithm to
18491         determine the exact resolution from the read-back mtime was buggy:
18492         it had a "!=" where it should have had an "==".  This bug has been
18493         in the code ever since it was introduced to gnulib.
18494         Problem reported by Dan Jacobson in
18495         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
18496
18497 2010-11-30  Bruno Haible  <bruno@clisp.org>
18498
18499         strerror_r-posix: Fix autoconf test.
18500         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
18501
18502 2010-11-28  Bruno Haible  <bruno@clisp.org>
18503             Paul Eggert  <eggert@cs.ucla.edu>
18504
18505         Tests for module 'getdomainname'.
18506         * modules/getdomainname-tests: New file.
18507         * tests/test-getdomainname.c: New file, based on
18508         tests/test-gethostname.c.
18509
18510 2010-11-28  Bruno Haible  <bruno@clisp.org>
18511             Paul Eggert  <eggert@cs.ucla.edu>
18512
18513         getdomainname: Use the system function when possible.
18514         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
18515         (getdomainname): Replace if needed. Provide the declaration if it is
18516         missing. Don't use _GL_CXXALIAS_SYS_CAST.
18517         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
18518         (getdomainname): When the system has getdomainname, call the system
18519         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
18520         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
18521         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
18522         found in libnsl. Look for the declaration also in <netdb.h>. Replace
18523         the function if its second argument is of type 'int' or if it is found
18524         in libnsl.
18525         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
18526         <sys/systeminfo.h> and sysinfo().
18527         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
18528         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18529         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
18530         HAVE_GETDOMAINNAME.
18531         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
18532         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
18533         * doc/glibc-functions/getdomainname.texi: Document the problems with
18534         the getdomainname declaration.
18535
18536 2010-11-28  Bruno Haible  <bruno@clisp.org>
18537
18538         sys_socket: Ensure ss_family field on AIX.
18539         * lib/sys_socket.in.h (ss_family): New macro definition.
18540         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
18541         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
18542         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
18543         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
18544         * modules/sys_socket (Makefile.am): Substitute
18545         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
18546         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
18547
18548 2010-11-27  Bruno Haible  <bruno@clisp.org>
18549
18550         readline: Improve configure output.
18551         * m4/readline.m4 (gl_FUNC_READLINE): Make the
18552         "checking for readline..." result understandable.
18553
18554 2010-11-27  Bruno Haible  <bruno@clisp.org>
18555
18556         *printf-posix: Detect a bug on Solaris 10/x86.
18557         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
18558         for floating-point output.
18559         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
18560         directive.
18561         * tests/test-snprintf-posix.h (test_function): Likewise.
18562         * tests/test-sprintf-posix.h (test_function): Likewise.
18563         * tests/test-vasprintf-posix.c (test_function): Likewise.
18564         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
18565         * doc/posix-functions/printf.texi: Likewise.
18566         * doc/posix-functions/snprintf.texi: Likewise.
18567         * doc/posix-functions/sprintf.texi: Likewise.
18568         * doc/posix-functions/vfprintf.texi: Likewise.
18569         * doc/posix-functions/vprintf.texi: Likewise.
18570         * doc/posix-functions/vsnprintf.texi: Likewise.
18571         * doc/posix-functions/vsprintf.texi: Likewise.
18572         * doc/glibc-functions/obstack_printf.texi: Likewise.
18573         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
18574
18575 2010-11-27  Bruno Haible  <bruno@clisp.org>
18576
18577         Fix link error when module libunistring-optional is in use.
18578         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
18579         * modules/striconveha-tests (Makefile.am): Likewise.
18580
18581 2010-11-27  Bruno Haible  <bruno@clisp.org>
18582
18583         regex: Mention link dependencies.
18584         * modules/regex (Link): New section.
18585         * modules/rpmatch (Link): Likewise.
18586         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
18587
18588 2010-11-27  Bruno Haible  <bruno@clisp.org>
18589
18590         ftoastr: Fix compilation error on Solaris.
18591         * lib/ftoastr.c: Include <config.h>.
18592
18593 2010-11-27  Bruno Haible  <bruno@clisp.org>
18594
18595         getloadavg: Update documentation.
18596         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
18597
18598 2010-11-27  Bruno Haible  <bruno@clisp.org>
18599
18600         sys_socket: Fix test whether the functions are declared.
18601         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
18602         not <sys/select.h>.
18603
18604 2010-11-27  Bruno Haible  <bruno@clisp.org>
18605
18606         getpass: Make sure to get system declaration on some platforms.
18607         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
18608         gl_USE_SYSTEM_EXTENSIONS.
18609         * modules/getpass (Depends-on): Add extensions.
18610
18611 2010-11-26  Bruno Haible  <bruno@clisp.org>
18612
18613         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
18614         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
18615         'iconv' module is present.
18616         (ICONV_CONST): New macro.
18617         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
18618         ICONV_CONST.
18619         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
18620         set ICONV_CONST.
18621         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
18622         here.
18623         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
18624         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
18625         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
18626         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
18627         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
18628         present.
18629
18630 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
18631
18632         ftoastr: comment fix
18633         * lib/ftoastr.c: "little" -> "little or no" in comment
18634
18635 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
18636
18637         stdint: port to GCC 4.3 + OSX + Octave
18638         On this platform, stdint.h is buggy and defines int64_t to long
18639         long int.  The replacement defined it to long int, causing
18640         problems with C++ style name mangling.  Instead, trust the system
18641         definition if INT64_MAX is defined, and likewise for the unsigned
18642         variant.   Problem reported by Jarno Rajahalme in
18643         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
18644         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
18645         and don't mess with int64_t and INT64_MAX in this case.
18646         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
18647
18648 2010-11-24  Bruno Haible  <bruno@clisp.org>
18649
18650         doc: Corrections regarding MacOS X 10.4 and 10.5.
18651         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
18652         MacOS X.
18653         Reported by Simon Josefsson.
18654
18655 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
18656
18657         Uninstall ".bin" files installed by relocwrapper.
18658         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
18659         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
18660         unless it is already there.
18661
18662 2010-11-21  Bruno Haible  <bruno@clisp.org>
18663
18664         Update for NetBSD 5.0.
18665         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18666         NetBSD; the test fails on NetBSD 5.0.
18667         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18668         about NetBSD.
18669
18670 2010-11-21  Bruno Haible  <bruno@clisp.org>
18671
18672         Update for HP-UX 11.23 and HP-UX 11.31.
18673         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
18674         HP-UX.
18675
18676 2010-11-21  Bruno Haible  <bruno@clisp.org>
18677
18678         Update for MacOS X 10.5.
18679         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18680         MacOS X; the test fails on MacOS X 10.5.8.
18681         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18682         about MacOS X.
18683
18684 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
18685
18686         bootstrap: add bootstrap_sync option.
18687         See discussion at
18688         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
18689         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
18690         * build-aux/bootstrap: Accept --bootstrap-sync to update
18691         bootstrap if it is not identical to the local gnulib's
18692         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
18693         enable this by default.  Accept --no-bootstrap-sync to disable
18694         it.
18695
18696 2010-11-20  Bruno Haible  <bruno@clisp.org>
18697
18698         Ensure that <features.h> is included before __GLIBC__ is tested.
18699         * lib/printf-parse.h: Include <features.h>.
18700         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
18701         Reported by Mike Frysinger <vapier@gentoo.org>.
18702
18703         Ensure that <features.h> is included before __GLIBC__ is tested.
18704         * lib/wchar.in.h: Include <features.h>.
18705         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
18706         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
18707         Reported by Mike Frysinger <vapier@gentoo.org>.
18708
18709         Ensure that <features.h> is included before __GLIBC__ is tested.
18710         * lib/arpa_inet.in.h: Include <features.h>.
18711         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
18712         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
18713         Reported by Mike Frysinger <vapier@gentoo.org>.
18714
18715         Ensure that <features.h> is included before __GLIBC__ is tested.
18716         * build-aux/link-warning.h: Include <features.h>.
18717         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
18718         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
18719         Reported by Mike Frysinger <vapier@gentoo.org>.
18720
18721         Ensure that <features.h> is included before __GLIBC__ is tested.
18722         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
18723         Reported by Mike Frysinger <vapier@gentoo.org>.
18724
18725 2010-11-20  Bruno Haible  <bruno@clisp.org>
18726
18727         memmem: Fix autoconf test.
18728         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
18729
18730 2010-11-20  Bruno Haible  <bruno@clisp.org>
18731
18732         Port to uClibc.
18733         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
18734         * lib/fcntl.in.h: Likewise.
18735         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
18736         * lib/mbrtowc.c (mbrtowc): Likewise.
18737         * lib/relocatable.c (find_shared_library_fullname): Likewise.
18738         * lib/strerror_r.c: Likewise.
18739         * lib/unistr/u8-strnlen.c: Likewise.
18740         * lib/vasnprintf.c (decimal_point_char): Likewise.
18741         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
18742         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
18743         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
18744         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
18745         * tests/test-sigaction.c (handler, main): Likewise.
18746         * lib/freading.h: Treat uClibc like a non-glibc platform.
18747         * lib/freading.c: Likewise.
18748         * lib/gettext.h: Likewise.
18749         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
18750         Likewise.
18751         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
18752         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
18753         * lib/propername.c (proper_name_utf8): Likewise.
18754         * lib/spawn.in.h: Likewise.
18755         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
18756         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
18757         mem_cd_iconveh_internal): Likewise.
18758         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
18759         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
18760         strstr, strcasestr): Likewise.
18761         * lib/unicodeio.c (unicode_to_mb): Likewise.
18762         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
18763         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
18764         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
18765         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
18766         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
18767         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
18768         * lib/unistr/u8-stpncpy.c: Likewise.
18769         * lib/vasnprintf.c (VASNPRINTF): Likewise.
18770         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
18771         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18772         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18773         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
18774         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
18775         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
18776         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
18777         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
18778         Likewise.
18779         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18780         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18781         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
18782         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18783         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
18784         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18785         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18786         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
18787         * tests/test-getopt.h (OPTIND_MIN): Likewise.
18788         * tests/test-striconveha.c (main): Likewise.
18789         * tests/test-vasnprintf-posix.c (test_function): Likewise.
18790         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
18791         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
18792         * doc/posix-functions/getline.texi: Likewise.
18793         Reported by Mike Frysinger <vapier@gentoo.org>.
18794
18795 2010-11-20  Bruno Haible  <bruno@clisp.org>
18796
18797         nproc: Fix condition.
18798         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
18799         HAVE_PTHREAD_AFFINITY_NP.
18800
18801 2010-11-20  Bruno Haible  <bruno@clisp.org>
18802
18803         Fix a comment.
18804         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
18805
18806 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
18807
18808         ftoastr: don't assume snprintf
18809         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
18810         Implement a subset of snprintf here, by using sprintf safely.
18811         * modules/ftoastr (Depends-on): Remove snprintf.
18812
18813 2010-11-19  Jim Meyering  <meyering@redhat.com>
18814
18815         test-rename.h: fix compilation failure
18816         * tests/test-rename.h (test_rename): Add omitted "}".
18817
18818 2010-11-17  Jim Meyering  <meyering@redhat.com>
18819
18820         maint.mk: add a URL discussing the no-@acronym policy
18821         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
18822
18823 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
18824
18825         ftoastr: depend on snprintf, improve comments
18826         * lib/ftoastr.c: Also mention Loitsch's draft.
18827         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
18828         needed in the current implementation, but it might simplify
18829         speeding up the code later.
18830         * modules/ftoastr: Depend on snprintf; this improves portability.
18831         Suggested by Bruno Haible in the same email.
18832
18833         ftoastr: port to hosts lacking strtof and strtold
18834         Problem reported by Bruno Haible in
18835         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
18836         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
18837         environment and strtold (and presumably strtof) are not available.
18838         * modules/ftoastr (Files): Add m4/c-strtod.m4.
18839         (configure.ac): Require gl_C99_STRTOLD.
18840
18841 2010-11-18  Bruno Haible  <bruno@clisp.org>
18842
18843         c-strtold: Avoid link error on AIX 7.
18844         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
18845         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
18846         (gl_C_STRTOLD): Test whether strtold_l exists.
18847         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18848
18849 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
18850
18851         intprops: new macro INT_BITS_STRLEN_BOUND
18852         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
18853         ftoastr.h.  This exposes an internal of intprops.h that was formerly
18854         not exposed.  Also, it uses a slightly tighter bound than before;
18855         though this makes no practical difference, we might as well be as
18856         tight as we easily can.
18857
18858         ftoastr: new module, for lossless conversion of floats to short strings
18859         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
18860         * modules/ftoastr: New files.
18861
18862 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
18863
18864         bootstrap: port to Solaris sed
18865         * build-aux/bootstrap (get_version): Port to Solaris sed.
18866         See Ralf Wildenhues's note in
18867         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
18868
18869 2010-11-14  Jim Meyering  <meyering@redhat.com>
18870
18871         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
18872         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
18873         and move definition closer to sole use.
18874
18875 2010-11-13  Jim Meyering  <meyering@redhat.com>
18876
18877         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
18878         Now we require at least autoconf-2.59, which means the work-around
18879         is no longer needed.
18880         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
18881         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18882         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
18883         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
18884         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
18885
18886 2010-11-13  Bruno Haible  <bruno@clisp.org>
18887
18888         rename, renameat: Avoid test failures at NFS mounted locations.
18889         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
18890         functions.
18891         (test_rename): Use assert_nonexistent.
18892         * tests/test-rename.c: Include <dirent.h>.
18893         * tests/test-renameat.c: Likewise.
18894         Reported by Gary V. Vaughan <gary@gnu.org>.
18895
18896         rename, renameat: Document Linux bug with NFS
18897         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
18898         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
18899         * doc/posix-functions/renameat.texi: Likewise.
18900         Suggested by Eric Blake.
18901
18902 2010-11-13  Bruno Haible  <bruno@clisp.org>
18903
18904         rename test: Add comments.
18905         * tests/test-rename.h (test_rename): Add structure and comments.
18906
18907 2010-11-13  Eric Blake  <eblake@redhat.com>
18908
18909         maintainer-makefile: cover a few more files
18910         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
18911         scripts generated within C files, for libvirt.
18912
18913 2010-11-13  Bruno Haible  <bruno@clisp.org>
18914
18915         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
18916         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
18917         character, return the number of bytes that belong together, not always
18918         1.
18919         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
18920         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
18921         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
18922         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
18923         number of bytes of an invalid character.
18924         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
18925         (main): Invoke it.
18926         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
18927         results.
18928         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
18929         malformed byte sequences.
18930         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
18931         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
18932         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
18933         Reported by Ben Pfaff and Paolo Bonzini.
18934
18935 2010-11-13  Bruno Haible  <bruno@clisp.org>
18936
18937         openat: Work around glibc bug with fchownat() and empty file names.
18938         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
18939         (gl_FUNC_FCHOWNAT): Invoke it.
18940         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
18941         * doc/posix-functions/fchownat.texi: Document the glibc bug.
18942         Reported by Gary V. Vaughan <gary@gnu.org>.
18943
18944 2010-11-13  Bruno Haible  <bruno@clisp.org>
18945
18946         openat: Ensure autoconf macro ordering.
18947         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
18948         gl_USE_SYSTEM_EXTENSIONS.
18949         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
18950
18951 2010-11-13  Bruno Haible  <bruno@clisp.org>
18952
18953         Update comments.
18954         * lib/unistr/u8-check.c: Update file name in comments.
18955         * lib/unistr/u8-mblen.c: Likewise.
18956         * lib/unistr/u8-prev.c: Likewise.
18957         * lib/unistr/u8-strmblen.c: Likewise.
18958         * lib/unistr/u8-strmbtouc.c: Likewise.
18959
18960 2010-11-13  Jim Meyering  <meyering@redhat.com>
18961
18962         tests: avoid test failure on Solaris 10 due to lack of PATH export
18963         * tests/test-update-copyright.sh: Don't forget to export PATH.
18964
18965         init.sh: ensure that IFS is defined, just in case...
18966         * tests/init.sh (setup_): Ensure that IFS is defined,
18967         so that saving and restoring it works as expected.  This
18968         appears to be useful at least for an old version of dash
18969         from a long time ago (RH 6).  See here for details:
18970         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
18971
18972         maint.mk: tighten "test a == b" check
18973         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
18974         test to files that contain something like #!/bin/sh.
18975         Without this, coreutils would get two false positives in
18976         the comments of C source files.
18977
18978 2010-11-12  Eric Blake  <eblake@redhat.com>
18979
18980         bootstrap: fix typo in previous attempt
18981         * build-aux/bootstrap (buildreq): Correct the grouping.
18982         Reported by Paul Eggert.
18983
18984         maintainer-makefile: prohibit test x == x
18985         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
18986         Based on a report by Matthias Bolte.
18987
18988         bootstrap: allow FreeBSD gzip
18989         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
18990         which has no '.' and goes to stderr.
18991         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
18992         Reported by Matthias Bolte.
18993
18994         maintainer-makefile: check for i18n setup
18995         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
18996         will likely work.
18997
18998 2010-11-12  Bruno Haible  <bruno@clisp.org>
18999
19000         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
19001         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
19002         * lib/nanosleep.c (nanosleep): Likewise.
19003
19004 2010-11-11  Bruno Haible  <bruno@clisp.org>
19005
19006         fcntl-h: Fix for use of C++ on glibc systems.
19007         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
19008         also on glibc systems in C++ mode.
19009         Reported by Gary V. Vaughan <gary@gnu.org>.
19010
19011 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
19012
19013         mknod: avoid false failure with dash
19014         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
19015
19016 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
19017
19018         unlink: Fix "is it should" typo in diagnostic.
19019         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
19020         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
19021
19022 2010-11-11  Bruno Haible  <bruno@clisp.org>
19023
19024         Tests for module 'strerror_r-posix'.
19025         * modules/strerror_r-posix-tests: New file.
19026         * tests/test-strerror_r.c: New file.
19027         * tests/test-string-c++.cc: Check the signature of strerror_r.
19028
19029         New module 'strerror_r-posix'.
19030         * lib/string.in.h (strerror_r): New declaration.
19031         * lib/strerror_r.c: New file.
19032         * m4/strerror_r.m4: New file.
19033         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
19034         of strerror_r.
19035         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
19036         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
19037         * modules/strerror_r-posix: New file.
19038         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
19039         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
19040         * doc/posix-functions/strerror_r.texi: Mention the new module and the
19041         portability problems.
19042
19043 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
19044
19045         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
19046         line is also considered for output. Quoted function name in shell
19047         command, so temporary files for functions like MyClass::operator()
19048         are removed correctly without errors.
19049
19050 2010-11-09  Bruno Haible  <bruno@clisp.org>
19051
19052         * doc/posix-functions/strerror.texi: List more failing platforms.
19053
19054         * doc/posix-functions/strerror.texi: Add a comment.
19055
19056 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
19057
19058         fdopendir: fix bug on MacOS X when low on file descriptors
19059
19060         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
19061         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
19062         All callers changed.
19063         (fdopendir): Invoke save_cwd at the top level, not after using
19064         multiple dup() calls to use up file descriptors.  Then retry
19065         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
19066         less than the maximum number of open file descriptors, because
19067         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
19068         on Mac OS X 10.6.4 for tar 1.24
19069         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
19070         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
19071         and for tar 1.25
19072         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
19073
19074 2010-11-07  Bruno Haible  <bruno@clisp.org>
19075
19076         vasnprintf: Support I flag on glibc systems.
19077         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
19078         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
19079         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
19080         snprintf function.
19081         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
19082         glibc systems.
19083         * tests/test-vasnprintf-posix3.c: New file.
19084         * modules/vasnprintf-posix-tests (Files): Add it.
19085         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
19086
19087 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
19088
19089         [html] Fix copy/paste bug: Use unique name for compiler warnings.
19090         * MODULES.html.sh: For compiler warnings, use name
19091         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
19092
19093 2010-11-05  Eric Blake  <eblake@redhat.com>
19094
19095         ceil, floor: avoid spurious failure with icc
19096         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
19097         [denormals-as-zero] when optimizing without -mieee-fp option.
19098         * tests/test-floorf2.c (floorf_reference): Likewise.
19099         * tests/test-ceilf1.c (dummy): New function.
19100         (main): Use it to outsmart icc's optimization.
19101         * tests/test-floorf1.c (dummy, main): Likewise.
19102
19103         tests: require working signbit
19104         * modules/ceilf-tests (Depends-on): Add signbit.
19105         * modules/ceill-tests (Depends-on): Likewise.
19106         * modules/floorf-tests (Depends-on): Likewise.
19107         * modules/floorl-tests (Depends-on): Likewise.
19108         * modules/round-tests (Depends-on): Likewise.
19109         * modules/roundf-tests (Depends-on): Likewise.
19110         * modules/roundl-tests (Depends-on): Likewise.
19111         * modules/trunc-tests (Depends-on): Likewise.
19112         * modules/truncf-tests (Depends-on): Likewise.
19113         * modules/truncl-tests (Depends-on): Likewise.
19114
19115         strtod: work around icc bug
19116         * lib/strtod.c (minus_zero): Define to working value.
19117         (strtod): Use it to avoid icc bug.
19118
19119         copysign: enhance tests
19120         * modules/copysign-tests (Files): Add minus-zero.h.
19121         * tests/test-copysign.c (main): Also test zeros.
19122
19123 2010-11-04  Eric Blake  <eblake@redhat.com>
19124
19125         ceil, floor, round, trunc: enhance tests of -0
19126         * tests/test-ceilf1.c (main): Ensure correct sign of result.
19127         * tests/test-ceill.c (main): Likewise.
19128         * tests/test-floorf1.c (main): Likewise.
19129         * tests/test-floorl.c (main): Likewise.
19130         * tests/test-round1.c (main): Likewise.
19131         * tests/test-roundf1.c (main): Likewise.
19132         * tests/test-roundl.c (main): Likewise.
19133         * tests/test-trunc1.c (main): Likewise.
19134         * tests/test-truncf1.c (main): Likewise.
19135         * tests/test-truncl.c (main): Likewise.
19136
19137 2010-11-04  Eric Blake  <eblake@redhat.com>
19138
19139         frexp, tests: work around ICC bug with -zero
19140         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
19141         works with more compilers.
19142         * tests/minus-zero.h: New file.
19143         * modules/ceilf-tests (Files): Include it.
19144         * modules/ceill-tests (Files): Likewise.
19145         * modules/floorf-tests (Files): Likewise.
19146         * modules/floorl-tests (Files): Likewise.
19147         * modules/frexp-nolibm-tests (Files): Likewise.
19148         * modules/frexp-tests (Files): Likewise.
19149         * modules/frexpl-nolibm-tests (Files): Likewise.
19150         * modules/frexpl-tests (Files): Likewise.
19151         * modules/isnan-tests (Files): Likewise.
19152         * modules/isnand-nolibm-tests (Files): Likewise.
19153         * modules/isnand-tests (Files): Likewise.
19154         * modules/isnanf-nolibm-tests (Files): Likewise.
19155         * modules/isnanf-tests (Files): Likewise.
19156         * modules/isnanl-nolibm-tests (Files): Likewise.
19157         * modules/isnanl-tests (Files): Likewise.
19158         * modules/round-tests (Files): Likewise.
19159         * modules/roundf-tests (Files): Likewise.
19160         * modules/roundl-tests (Files): Likewise.
19161         * modules/ldexpl-tests (Files): Likewise.
19162         * modules/signbit-tests (Files): Likewise.
19163         * modules/snprintf-posix-tests (Files): Likewise.
19164         * modules/sprintf-posix-tests (Files): Likewise.
19165         * modules/strtod-tests (Files): Likewise.
19166         * modules/trunc-tests (Files): Likewise.
19167         * modules/truncf-tests (Files): Likewise.
19168         * modules/truncl-tests (Files): Likewise.
19169         * modules/vsnprintf-posix-tests (Files): Likewise.
19170         * modules/vsprintf-posix-tests (Files): Likewise.
19171         * modules/vasnprintf-posix-tests (Files): Likewise.
19172         * modules/vasprintf-posix-tests (Files): Likewise.
19173         * tests/test-ceilf1.c (main): Use it.
19174         * tests/test-ceill.c (main): Likewise.
19175         * tests/test-floorf1.c (main): Likewise.
19176         * tests/test-floorl.c (main): Likewise.
19177         * tests/test-frexp.c (main): Likewise.
19178         * tests/test-frexpl.c (main): Likewise.
19179         * tests/test-isnan.c (main): Likewise.
19180         * tests/test-isnand.h (main): Likewise.
19181         * tests/test-isnanf.h (main): Likewise.
19182         * tests/test-isnanl.h (main): Likewise.
19183         * tests/test-ldexpl.c (main): Likewise.
19184         * tests/test-round.c (main): Likewise.
19185         * tests/test-roundf.c (main): Likewise.
19186         * tests/test-roundl.c (main): Likewise.
19187         * tests/test-signbit.c (test_signbitf, test_signbitd)
19188         (test_signbitl): Likewise.
19189         * tests/test-snprintf-posix.h (test_function): Likewise.
19190         * tests/test-sprintf-posix.h (test_function): Likewise.
19191         * tests/test-strtod.c (main): Likewise.
19192         * tests/test-trunc1.c (main): Likewise.
19193         * tests/test-truncf1.c (main): Likewise.
19194         * tests/test-truncl.c (main): Likewise.
19195
19196         isnanl: work around icc bug
19197         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
19198
19199 2010-11-03  Eric Blake  <eblake@redhat.com>
19200
19201         tests: fix compiler warnings
19202         * tests/test-getopt.h (test_getopt): Fix condition.
19203         * tests/test-getopt_long.h (test_getopt_long): Likewise.
19204         * tests/test-pipe2.c (main): Likewise.
19205         * tests/test-quotearg-simple.c (main): Avoid icc warning.
19206
19207         utimens: fix broken m4 test
19208         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
19209
19210 2010-10-28  Bruno Haible  <bruno@clisp.org>
19211
19212         posix_spawn*, getdtablesize: Relax license.
19213         * modules/posix_spawn (License): Change to LGPLv2+.
19214         * modules/posix_spawnp (License): Likewise.
19215         * modules/posix_spawn-internal (License): Likewise.
19216         * modules/posix_spawnattr_init (License): Likewise.
19217         * modules/posix_spawnattr_getflags (License): Likewise.
19218         * modules/posix_spawnattr_setflags (License): Likewise.
19219         * modules/posix_spawnattr_getpgroup (License): Likewise.
19220         * modules/posix_spawnattr_setpgroup (License): Likewise.
19221         * modules/posix_spawnattr_getschedparam (License): Likewise.
19222         * modules/posix_spawnattr_setschedparam (License): Likewise.
19223         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
19224         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
19225         * modules/posix_spawnattr_getsigdefault (License): Likewise.
19226         * modules/posix_spawnattr_setsigdefault (License): Likewise.
19227         * modules/posix_spawnattr_getsigmask (License): Likewise.
19228         * modules/posix_spawnattr_setsigmask (License): Likewise.
19229         * modules/posix_spawnattr_destroy (License): Likewise.
19230         * modules/posix_spawn_file_actions_init (License): Likewise.
19231         * modules/posix_spawn_file_actions_addclose (License): Likewise.
19232         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
19233         * modules/posix_spawn_file_actions_addopen (License): Likewise.
19234         * modules/posix_spawn_file_actions_destroy (License): Likewise.
19235         * modules/getdtablesize (License): Likewise.
19236         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
19237
19238 2010-10-26  Bruno Haible  <bruno@clisp.org>
19239
19240         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
19241         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
19242         Cygwin and mingw.
19243         Suggested by Eric Blake.
19244
19245 2010-10-26  Bruno Haible  <bruno@clisp.org>
19246
19247         stdio: Work around compilation error due to renameat() on Solaris 10.
19248         * lib/stdio.in.h: Include <unistd.h> on Solaris.
19249         * lib/renameat.c: Don't include <unistd.h> here.
19250         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
19251         Reported by Paul Eggert and Eric Blake.
19252
19253 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
19254
19255         renameat: port to Solaris 10, which declares renameat in unistd.h
19256
19257         * lib/renameat.c: Include unistd.h before stdio.h, because
19258         Solaris 10 declares renameat in unistd.h.  Problem encountered
19259         when building GNU tar 1.24 on Solaris 10.
19260
19261 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
19262
19263         fdopendir: fix C89 compilation
19264         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
19265         compilers.
19266
19267 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
19268
19269         inttostr: simplify by removing unnecessary redundancy
19270         * lib/anytostr.c: Don't include verify.h.
19271         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
19272         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
19273         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
19274         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
19275         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
19276         Likewise.
19277         * modules/inttostr (Depends-on): Remove 'verify'.
19278
19279 2010-10-23  Bruno Haible  <bruno@clisp.org>
19280
19281         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
19282         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
19283         Reported by Eric Blake.
19284
19285 2010-10-23  Bruno Haible  <bruno@clisp.org>
19286
19287         Tests: Fix LOCALE_JA on MirBSD 10.
19288         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
19289         to an UTF-8 locale.
19290         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
19291         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19292         Reported by Eric Blake.
19293
19294 2010-10-21  Bruno Haible  <bruno@clisp.org>
19295
19296         nl_langinfo test: Avoid test failure on NetBSD 5.
19297         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
19298         Reported by Eric Blake.
19299
19300 2010-10-21  Eric Blake  <eblake@redhat.com>
19301
19302         c-stack: work around libsigsegv 2.8 bug
19303         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
19304         overflow on at least PowerPC64.
19305
19306 2010-10-17  Bruno Haible  <bruno@clisp.org>
19307
19308         userspec: Drop redundant file.
19309         * modules/userspec (Files): Remove lib/inttostr.h.
19310
19311 2010-10-17  Bruno Haible  <bruno@clisp.org>
19312
19313         nl_langinfo tests: Silence some warnings.
19314         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
19315         Reported by Jim Meyering.
19316
19317 2010-10-17  Bruno Haible  <bruno@clisp.org>
19318
19319         Make use of GCC's attribute __alloc_size__.
19320         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
19321         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
19322         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
19323         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
19324         __alloc_size__.
19325         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
19326         Suggested by Jim Meyering.
19327
19328 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
19329
19330         bootstrap: anchor .gitignore entries.
19331         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
19332         with...
19333         (insert_vc_ignore): ... this new function, which prepends `/' to
19334         all .gitignore entries before passing them to
19335         insert_sorted_if_absent.
19336
19337 2010-10-16  Bruno Haible  <bruno@clisp.org>
19338
19339         nextafter: Fix configure check.
19340         * modules/nextafter (configure.ac): Correct expected prototype.
19341
19342 2010-10-16  Bruno Haible  <bruno@clisp.org>
19343
19344         termios: Update documentation.
19345         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
19346
19347 2010-10-16  Bruno Haible  <bruno@clisp.org>
19348
19349         tests: Make them compile with TinyCC.
19350         * tests/test-strstr.c (main): Remove parentheses around array
19351         initializer.
19352
19353 2010-10-15  Eric Blake  <eblake@redhat.com>
19354
19355         ignore-value: make header idempotent
19356         * lib/ignore-value.h: Add double-inclusion guards.
19357         Reported by Stefan Berger.
19358
19359 2010-10-15  Jim Meyering  <meyering@redhat.com>
19360
19361         GNUmakefile: handle "stable" target, not "major"
19362         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
19363         lists in maint.mk and announce-gen.  Without this, "make stable"
19364         would fail to ensure that $(VERSION) is up to date.
19365
19366 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
19367
19368         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
19369         & co.
19370
19371 2010-10-14  Bruno Haible  <bruno@clisp.org>
19372
19373         vasnprintf: Don't set errno to 0.
19374         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
19375         block that sets it to 0.
19376         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
19377
19378 2010-10-14  Bruno Haible  <bruno@clisp.org>
19379
19380         socketlib: Fix.
19381         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
19382         gl_PREREQ_SYS_H_WINSOCK2.
19383         Reported by Ian Beckwith <ianb@erislabs.net>.
19384
19385 2010-10-13  Jim Meyering  <meyering@redhat.com>
19386
19387         test-select-stdin.c: avoid warn_unused_result warnings
19388         * tests/test-select-stdin.c: Include "macros.h".
19389         ASSERT that read and fflush succeed.
19390
19391 2010-10-13  Jim Meyering  <meyering@redhat.com>
19392
19393         git-version-gen: do require git-VC'd files in cwd
19394         * build-aux/git-version-gen: Reject a git version string
19395         if there are no commits associated with the current directory.
19396         This avoids an unlikely false-positive (unrelated dir whose parent
19397         repository also contains a tag matching v*), as pointed out
19398         by Giuseppe Scrivano in
19399         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
19400
19401 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
19402
19403         argv-iter: omit nonconforming declaration
19404         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
19405         enum arg_iter_err declaration, which doesn't conform to C99.
19406         Solaris 10 cc warns about this.
19407
19408 2010-10-13  Eric Blake  <eblake@redhat.com>
19409
19410         termios: fix compilation on mingw
19411         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
19412         (gl_TERMIOS_H): Adjust it on mingw.
19413         * modules/termios (Makefile.am): Substitute new key.
19414         * lib/termios.in.h (includes): Make include_next conditional.
19415         * doc/posix-headers/termios.texi (termios.h): Update
19416         documentation.
19417         Reported by Daniel P. Berrange.
19418
19419 2010-10-13  Jim Meyering  <meyering@redhat.com>
19420
19421         git-version-gen: don't require that .git/ be in the current dir
19422         * build-aux/git-version-gen: Adjust this script so that it works
19423         when run from any working directory beneath the top-level .git/-
19424         containing directory.  Inspired by a patch from Giuseppe Scrivano,
19425         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
19426
19427         test-select: avoid warn_unused_result warnings
19428         * tests/test-select.c: Include "macros.h".
19429         ASSERT that each call to read, write, and pipe succeeds.
19430         While not technically required, also check each "close".
19431         * modules/select-tests (Files): Add tests/macros.h.
19432
19433         test-symlinkat: remove declaration of unused local
19434         * tests/test-symlinkat.c (main): Remove unused local, "buf".
19435
19436         test-inttostr: avoid shadowing warnings
19437         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
19438         and use malloc rather than the stack for the same reason as
19439         mentioned in the comment justifying the other allocation.
19440
19441 2010-10-11  Bruno Haible  <bruno@clisp.org>
19442
19443         stdlib: Allow multiple gnulib generated replacements to coexist.
19444         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
19445         Reported by Sam Steingold <sds@gnu.org>.
19446
19447 2010-10-11  Jim Meyering  <meyering@redhat.com>
19448
19449         fix a documentation typo
19450         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
19451
19452 2010-10-11  Eric Blake  <eblake@redhat.com>
19453
19454         futimens: work around Solaris 11 bug
19455         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
19456         * tests/test-futimens.h (test_futimens): Enhance, rather than
19457         weaken test.
19458         * doc/posix-functions/futimens.texi (futimens): Document the bug.
19459
19460 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
19461
19462         Indentation.
19463         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
19464         higher-level operators more to the left.
19465
19466 2010-10-11  Jim Meyering  <meyering@redhat.com>
19467
19468         test-futimens: avoid unwarranted test failure on Solaris 5.11
19469         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
19470         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
19471         because it tries to dereference the NULL name argument.
19472
19473 2010-10-11  Bruno Haible  <bruno@clisp.org>
19474
19475         Indentation.
19476         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
19477         indentation.
19478
19479 2010-10-11  Jim Meyering  <meyering@redhat.com>
19480
19481         spawn.in.h: make indentation consistent with parentheses
19482         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
19483         Make indentation consistent with parentheses.
19484
19485 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
19486
19487         Fix mismatched parens in previous commit
19488         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
19489         parens.
19490
19491 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
19492
19493         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
19494
19495         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
19496         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
19497         * lib/malloca.c: Include "verify.h".
19498         (verify1): Remove, replacing with a verify call.
19499         * lib/relocwrapper.c (verify1): Likewise.
19500         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
19501         Likewise.
19502         * modules/malloca (Depends-on): Add 'verify'.
19503         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
19504         * modules/vasnprintf (Depends-on): Add 'verify'.
19505         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
19506         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
19507         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
19508         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
19509         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
19510         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
19511         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
19512
19513         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
19514
19515         Formerly the style was sometimes 2*X - 1, because the C standard
19516         was wrongly thought to disallow ?: in integral constant expressions.
19517         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
19518         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
19519         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
19520         * lib/stdint.in.h (_verify_intmax_size): Likewise.
19521         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
19522         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
19523         verify that time_t cannot be floating.
19524
19525 2010-10-08  Eric Blake  <eblake@redhat.com>
19526
19527         time: enforce recent POSIX ruling that time_t is integral
19528         * lib/time.in.h (__time_t_must_be_integral): Detect any
19529         problematic systems, allowing the rest of gnulib to assume POSIX.
19530
19531 2010-10-08  Jim Meyering  <meyering@redhat.com>
19532
19533         fdopendir: fix a bug on systems lacking openat and /proc support
19534         OpenBSD 4.7 is one such system.  The most noticeable effect was
19535         failure of any application making nontrivial use of fts: rm, du,
19536         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
19537           ./rm: traversal failed: `a': Bad file descriptor
19538         Debugging that, you see that even though FD 6 was closed just
19539         prior to the opendir call in fd_clone_opendir, its resulting
19540         dir->dd_fd was 8, rather than the expected value of 6:
19541
19542         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
19543         93                close (fd);
19544         (gdb) n
19545         94                dir = fd_clone_opendir (dupfd);
19546         (gdb) n
19547         95                saved_errno = errno;
19548         (gdb) p dir->dd_fd
19549         $11 = 8
19550
19551         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
19552         The problem is that on OpenBSD, fd_clone_opendir has to resort
19553         to using the old-style save/restore CWD mechanism, due to its
19554         lack of openat/proc support, and *that* would steal the FD (6)
19555         that opendir was supposed to use.
19556
19557         The fix is to squirrel away the desired FD so that save_cwd uses a
19558         different one, and then free the dest FD right before calling opendir.
19559         That guarantees opendir will use the required file descriptor.
19560
19561         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
19562
19563 2010-10-08  Bruno Haible  <bruno@clisp.org>
19564
19565         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
19566         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
19567
19568 2010-10-08  Bruno Haible  <bruno@clisp.org>
19569
19570         nanosleep: Make replacement POSIX compliant.
19571         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
19572         is out of range.
19573         Reported by Jim Meyering.
19574
19575 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
19576
19577         bootstrap: add hook for altering gnulib.mk, for Bison
19578         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
19579         the Bison bootstrapping process can rewrite file names and variables
19580         in this file before later parts of 'bootstrap' use the file.
19581         Bison wants to include lib/gnulib.mk from the top-level makefile,
19582         so it needs the file names in this file to be relative to the top
19583         level, not relative to lib; plus it needs variable names to be
19584         rewritten.
19585         (slurp): Use the new function.
19586
19587         bootstrap: reformat for readability
19588         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
19589
19590 2010-10-08  Eric Blake  <eblake@redhat.com>
19591
19592         docs: update cygwin progress
19593         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
19594         1.7.7.
19595         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
19596         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
19597         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
19598         * doc/posix-functions/carg.texi (carg): Likewise.
19599         * doc/posix-functions/cargf.texi (cargf): Likewise.
19600         * doc/posix-functions/casin.texi (casin): Likewise.
19601         * doc/posix-functions/casinf.texi (casinf): Likewise.
19602         * doc/posix-functions/casinh.texi (casinh): Likewise.
19603         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
19604         * doc/posix-functions/catan.texi (catan): Likewise.
19605         * doc/posix-functions/catanf.texi (catanf): Likewise.
19606         * doc/posix-functions/catanh.texi (catanh): Likewise.
19607         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
19608         * doc/posix-functions/ccos.texi (ccos): Likewise.
19609         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
19610         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
19611         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
19612         * doc/posix-functions/cexp.texi (cexp): Likewise.
19613         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
19614         * doc/posix-functions/cimag.texi (cimag): Likewise.
19615         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
19616         * doc/posix-functions/clog.texi (clog): Likewise.
19617         * doc/posix-functions/clogf.texi (clogf): Likewise.
19618         * doc/posix-functions/conj.texi (conj): Likewise.
19619         * doc/posix-functions/conjf.texi (conjf): Likewise.
19620         * doc/posix-functions/cpow.texi (cpow): Likewise.
19621         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
19622         * doc/posix-functions/cproj.texi (cproj): Likewise.
19623         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
19624         * doc/posix-functions/creal.texi (creal): Likewise.
19625         * doc/posix-functions/crealf.texi (crealf): Likewise.
19626         * doc/posix-functions/csin.texi (csin): Likewise.
19627         * doc/posix-functions/csinf.texi (csinf): Likewise.
19628         * doc/posix-functions/csinh.texi (csinh): Likewise.
19629         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
19630         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
19631         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
19632         * doc/posix-functions/ctan.texi (ctan): Likewise.
19633         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
19634         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
19635         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
19636         * doc/posix-headers/complex.texi (complex.h): Likewise.
19637
19638 2010-10-07  Jim Meyering  <meyering@redhat.com>
19639
19640         parse-datetime: avoid compilation failure on OpenBSD 4.7
19641         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
19642         This works around a compilation failure on OpenBSD 4.7:
19643         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
19644
19645 2010-10-07  Eric Blake  <eblake@redhat.com>
19646
19647         docs: update cygwin progress
19648         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
19649         1.7.6.
19650         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
19651         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
19652         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
19653         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
19654         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
19655         Likewise.
19656         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
19657         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
19658         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
19659         Likewise.
19660         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
19661         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
19662         Likewise.
19663         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
19664         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
19665         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
19666         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
19667         Likewise.
19668         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
19669         Likewise.
19670         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
19671
19672         docs: update parse-datetime history
19673         * doc/parse-datetime.texi (Authors of parse_datetime): Better
19674         documentation of this function's history and alternatives.
19675
19676         cygwin: use more robust version check
19677         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
19678         exclude an eventual cygwin 1.9.1.
19679         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19680         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19681         (gl_FUNC_STRCASESTR): Likewise.
19682         Reported by Bruno Haible.
19683
19684 2010-10-06  Bruno Haible  <bruno@clisp.org>
19685
19686         string, sys_select: Avoid #including large headers unless necessary.
19687         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
19688         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
19689         OSF/1, BeOS, Haiku.
19690         Reported by Jim Meyering.
19691
19692 2010-10-05  Eric Blake  <eblake@redhat.com>
19693
19694         memmem, strstr, strcasestr: fix bug with long periodic needle
19695         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
19696         periodic needle having false positive.
19697         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
19698         and cygwin 1.7.7.
19699         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
19700         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19701         (gl_FUNC_STRCASESTR): Likewise.
19702         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19703         * tests/test-memmem.c (main): Expose the bug.
19704         * tests/test-strcasestr.c (main): Likewise.
19705         * tests/test-strstr.c (main): Likewise.
19706         * tests/test-c-strcasestr.c (main): Likewise.
19707         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
19708         * doc/posix-functions/strstr.texi (strstr): Likewise.
19709         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
19710         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
19711
19712 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19713
19714         parse-datetime: do some more renaming
19715         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
19716         parse_datetime, not get_date.  Mention the renaming.
19717         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
19718         in comments.
19719         * m4/bison.m4: Likewise.
19720
19721 2010-10-05  Eric Blake  <eblake@redhat.com>
19722
19723         parse-datetime: better name than get_date
19724         * NEWS: Reword the deprecation notice.
19725         * modules/get_date: Rename to modules/parse-datetime.
19726         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
19727         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
19728         * lib/get_date.y: Rename to lib/parse-datetime.y.
19729         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
19730         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
19731         * doc/getdate.texi: Provide fallback wrapper.
19732         * lib/getdate.h: Move guts, and wrap...
19733         * lib/parse-datetime.h: ...new file.
19734         * lib/parse-datetime.y (get_date): Rename...
19735         (parse_datetime): ...to this.
19736         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
19737         (gl_PARSE_DATETIME): ...to this.
19738         * doc/posix-functions/getdate.texi (get_date): Provide fallback
19739         documentation.
19740         * modules/getdate (Files): Provide fallback docs and header.
19741         (Notice, Depends-on): Update references.
19742         * tests/test-parse-datetime.c: Likewise.
19743         * DEPENDENCIES: Likewise.
19744         * MODULES.html.sh (Date and time <time.h>): Likewise.
19745         * doc/parse-datetime.texi (Date input formats)
19746         (Authors of parse_datetime): Likewise.
19747         * modules/parse-datetime (Files, configure.ac, Makefile.am)
19748         (Include): Likewise.
19749         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
19750         * gnulib-tool: Likewise.
19751         * m4/bison.m4 (gl_BISON): Likewise.
19752         Suggested by Bruno Haible.
19753
19754 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19755
19756         more ports to Solaris tr, which needs [] around ranges
19757         * gnulib-tool: Solaris tr needs [] around ranges.
19758         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
19759         * tests/test-pipe-filter-gi1.c (main): Likewise.
19760         * tests/test-pipe-filter-ii1.c (main): Likewise.
19761
19762 2010-10-05  Eric Blake  <eblake@redhat.com>
19763
19764         bootstrap: fix Solaris regression
19765         * build-aux/bootstrap (check_versions): Solaris tr still needs []
19766         around ranges.
19767         Reported by Pádraig Brady.
19768
19769         bootstrap: work with pkg-config
19770         * build-aux/bootstrap (check_versions): Also transliterate - in
19771         prerequisite name.
19772         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
19773         prerequisites that were already found, to avoid confusion.
19774         Reported by Justin Clift.
19775
19776         faccessat: remove unused wrappers
19777         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
19778         presence of these wrappers dragged in -lgen on Solaris.
19779         Reported by Clemens Brogi; fix suggested by Paul Eggert.
19780
19781 2010-10-05  Jim Meyering  <meyering@redhat.com>
19782
19783         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
19784         * Makefile (sc_pragma_columns): New syntax-check rule.
19785
19786 2010-10-04  Bruno Haible  <bruno@clisp.org>
19787
19788         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
19789         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
19790         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
19791         Reported by Bruce Korb and Eric Blake.
19792
19793 2010-10-04  Bruno Haible  <bruno@clisp.org>
19794
19795         threadlib: Make option --with-libpth-prefix work.
19796         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
19797         use $LIBPTH, not just -lpth.
19798
19799 2010-10-04  Bruno Haible  <bruno@clisp.org>
19800
19801         Avoid line length limitation from HP NonStop system header files.
19802         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
19803         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
19804         * lib/ctype.in.h: Likewise.
19805         * lib/dirent.in.h: Likewise.
19806         * lib/errno.in.h: Likewise.
19807         * lib/fcntl.in.h: Likewise.
19808         * lib/float.in.h: Likewise.
19809         * lib/getopt.in.h: Likewise.
19810         * lib/iconv.in.h: Likewise.
19811         * lib/inttypes.in.h: Likewise.
19812         * lib/langinfo.in.h: Likewise.
19813         * lib/locale.in.h: Likewise.
19814         * lib/math.in.h: Likewise.
19815         * lib/netdb.in.h: Likewise.
19816         * lib/netinet_in.in.h: Likewise.
19817         * lib/poll.in.h: Likewise.
19818         * lib/pthread.in.h: Likewise.
19819         * lib/pty.in.h: Likewise.
19820         * lib/sched.in.h: Likewise.
19821         * lib/se-selinux.in.h: Likewise.
19822         * lib/search.in.h: Likewise.
19823         * lib/signal.in.h: Likewise.
19824         * lib/spawn.in.h: Likewise.
19825         * lib/stdarg.in.h: Likewise.
19826         * lib/stddef.in.h: Likewise.
19827         * lib/stdint.in.h: Likewise.
19828         * lib/stdio.in.h: Likewise.
19829         * lib/stdlib.in.h: Likewise.
19830         * lib/string.in.h: Likewise.
19831         * lib/strings.in.h: Likewise.
19832         * lib/sys_file.in.h: Likewise.
19833         * lib/sys_ioctl.in.h: Likewise.
19834         * lib/sys_select.in.h: Likewise.
19835         * lib/sys_socket.in.h: Likewise.
19836         * lib/sys_stat.in.h: Likewise.
19837         * lib/sys_time.in.h: Likewise.
19838         * lib/sys_times.in.h: Likewise.
19839         * lib/sys_utsname.in.h: Likewise.
19840         * lib/sys_wait.in.h: Likewise.
19841         * lib/sysexits.in.h: Likewise.
19842         * lib/termios.in.h: Likewise.
19843         * lib/time.in.h: Likewise.
19844         * lib/unistd.in.h: Likewise.
19845         * lib/wchar.in.h: Likewise.
19846         * lib/wctype.in.h: Likewise.
19847         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
19848         * modules/ctype (Makefile.am): Likewise.
19849         * modules/dirent (Makefile.am): Likewise.
19850         * modules/errno (Makefile.am): Likewise.
19851         * modules/fcntl-h (Makefile.am): Likewise.
19852         * modules/float (Makefile.am): Likewise.
19853         * modules/getopt-posix (Makefile.am): Likewise.
19854         * modules/iconv-h (Makefile.am): Likewise.
19855         * modules/inttypes (Makefile.am): Likewise.
19856         * modules/langinfo (Makefile.am): Likewise.
19857         * modules/locale (Makefile.am): Likewise.
19858         * modules/math (Makefile.am): Likewise.
19859         * modules/netdb (Makefile.am): Likewise.
19860         * modules/netinet_in (Makefile.am): Likewise.
19861         * modules/poll-h (Makefile.am): Likewise.
19862         * modules/pthread (Makefile.am): Likewise.
19863         * modules/pty (Makefile.am): Likewise.
19864         * modules/sched (Makefile.am): Likewise.
19865         * modules/search (Makefile.am): Likewise.
19866         * modules/selinux-h (Makefile.am): Likewise.
19867         * modules/signal (Makefile.am): Likewise.
19868         * modules/spawn (Makefile.am): Likewise.
19869         * modules/stdarg (Makefile.am): Likewise.
19870         * modules/stddef (Makefile.am): Likewise.
19871         * modules/stdint (Makefile.am): Likewise.
19872         * modules/stdio (Makefile.am): Likewise.
19873         * modules/stdlib (Makefile.am): Likewise.
19874         * modules/string (Makefile.am): Likewise.
19875         * modules/strings (Makefile.am): Likewise.
19876         * modules/sys_file (Makefile.am): Likewise.
19877         * modules/sys_ioctl (Makefile.am): Likewise.
19878         * modules/sys_select (Makefile.am): Likewise.
19879         * modules/sys_socket (Makefile.am): Likewise.
19880         * modules/sys_stat (Makefile.am): Likewise.
19881         * modules/sys_time (Makefile.am): Likewise.
19882         * modules/sys_times (Makefile.am): Likewise.
19883         * modules/sys_utsname (Makefile.am): Likewise.
19884         * modules/sys_wait (Makefile.am): Likewise.
19885         * modules/sysexits (Makefile.am): Likewise.
19886         * modules/termios (Makefile.am): Likewise.
19887         * modules/time (Makefile.am): Likewise.
19888         * modules/unistd (Makefile.am): Likewise.
19889         * modules/wchar (Makefile.am): Likewise.
19890         * modules/wctype (Makefile.am): Likewise.
19891
19892 2010-10-04  Bruno Haible  <bruno@clisp.org>
19893
19894         read-file tests: Avoid a test failure on NonStop Kernel.
19895         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
19896         a regular file.
19897         Reported by Joachim Schmitz <schmitz@hp.com>.
19898
19899 2010-10-03  Bruno Haible  <bruno@clisp.org>
19900
19901         gnulib-tool: Fixes for --create-testdir with --libtool.
19902         * gnulib-tool (func_get_automake_snippet): Don't augment
19903         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
19904         an executable.
19905         (func_create_testdir): Handle module 'alloca' like func_import.
19906         Reported by Bruce Korb <bruce.korb@gmail.com>.
19907
19908 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
19909
19910         Avoid some lines longer than 80 characters.
19911         * lib/stdint.in.h: Break long comment lines.
19912         * lib/math.in.h: Likewise.
19913         (_GL_NUM_UINT_WORDS): New macro, for readability.
19914         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
19915         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
19916         * lib/stdlib.in.h: Likewise.
19917         * lib/spawn.in.h: Likewise.
19918         * lib/sys_socket.in.h: Update an URL.
19919         * lib/sys_stat.in.h: Break long line.
19920
19921 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
19922
19923         Improve pmccabe2html.
19924         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
19925         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
19926         when the sources change. Remove the line in the HTML about "Used
19927         ranges" (which implied that there might be other unused ranges),
19928         rename "Resume" to "Summary" (easier to understand for more users).
19929         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
19930         styles, and some unnecessary blank lines.
19931
19932 2010-10-03  Bruno Haible  <bruno@clisp.org>
19933             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
19934
19935         acl: Add support for ACLs on NonStop Kernel.
19936         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
19937         Check whether the function aclsort() exists.
19938         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
19939         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
19940         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19941         (acl_nontrivial [HAVE_ACLSORT]: New function.
19942         (file_has_acl): Implement for NonStop Kernel.
19943         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19944         (qset_acl): Implement for NonStop Kernel.
19945         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
19946         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19947         (main): Implement for NonStop Kernel.
19948         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
19949         Kernel. Handle this flavor.
19950         * tests/test-set-mode-acl.sh: Likewise.
19951         * tests/test-copy-acl.sh: Likewise.
19952         * tests/test-copy-file.sh: Likewise.
19953
19954 2010-10-03  Bruno Haible  <bruno@clisp.org>
19955
19956         Info about ACLs on NonStop Kernel.
19957         * doc/acl-resources.txt: Add info about NonStop Kernel.
19958         References by Joachim Schmitz <schmitz@hp.com>.
19959
19960 2010-10-02  Bruno Haible  <bruno@clisp.org>
19961
19962         Define missing EDQUOT on NonStop Kernel.
19963         * lib/errno.in.h (EDQUOT): Assign a value if missing.
19964         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
19965         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
19966         missing.
19967         * doc/posix-headers/errno.texi: Mention the NSK bug.
19968         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
19969         Reported by Joachim Schmitz <schmitz@hp.com>.
19970
19971 2010-10-02  Bruno Haible  <bruno@clisp.org>
19972
19973         Update doc for POSIX:2008.
19974         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
19975         Update URL of POSIX specification.
19976
19977 2010-10-02  Bruno Haible  <bruno@clisp.org>
19978
19979         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
19980         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
19981         from gnulib, not from Automake.
19982
19983 2010-10-02  Bruno Haible  <bruno@clisp.org>
19984
19985         New module 'system-posix'.
19986         * modules/system-posix: New file.
19987         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
19988         module is present.
19989         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
19990         GNULIB_SYSTEM_POSIX.
19991         * modules/stdlib (Depends-on): Remove sys_wait.
19992         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
19993         * doc/posix-functions/system.texi: Mention the new module.
19994         * doc/posix-headers/stdlib.texi: Likewise.
19995         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
19996         define test_sys_wait_macros to a no-op.
19997         Reported by Sam Steingold <sds@gnu.org>.
19998
19999 2010-09-30  Bruno Haible  <bruno@clisp.org>
20000
20001         More renaming from 'getdate' to 'get_date'.
20002         * doc/get_date.texi: Renamed from doc/getdate.texi.
20003         * modules/get_date (Files): Update.
20004         * MODULES.html.sh (Date and time <time.h>): Update.
20005         * DEPENDENCIES: Update.
20006         * gnulib-tool: Update comment.
20007         * m4/bison.m4 (gl_BISON): Likewise.
20008         * m4/get_date.m4 (gl_GET_DATE): Likewise.
20009
20010 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
20011
20012         bootstrap: support ACLOCAL_FLAGS during aclocal
20013         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
20014         can add additional -I dir for third-party .m4 files.
20015
20016 2010-09-30  Eric Blake  <eblake@redhat.com>
20017
20018         bootstrap: use glibtoolize on MacOS
20019         * build-aux/bootstrap (check_versions): Convert libtool into
20020         libtoolize.
20021         (tool search): Move libtool check earlier, and look for
20022         glibtoolize for MacOS.
20023         (gnulib_tool_options): Auto-add --libtool when appropriate.
20024         Reported by Justin Clift.
20025
20026         poll: fix typo that broke test on MacOS
20027         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
20028         Reported by Justin Clift.
20029
20030         getdate: rename to get_date
20031         Note: getdate.h is not renamed, to minimize client impact.
20032         * modules/getdate: Mark obsolete.  Move old contents...
20033         * modules/get_date: ...to new module name.
20034         * modules/getdate-tests: Move...
20035         * modules/get_date-tests: ...here.
20036         * m4/getdate.m4: Move...
20037         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
20038         * lib/getdate.y: Move...
20039         * lib/get_date.y: ...here.
20040         * tests/test-getdate.c: Move...
20041         * tests/test-get_date.c: ...here.
20042         * doc/posix-functions/getdate.texi (getdate): Update name.
20043         * NEWS: Mention the change.
20044
20045 2010-09-29  Bruno Haible  <bruno@clisp.org>
20046
20047         Separate the module 'waitpid' from the module 'sys_wait'.
20048         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
20049         present.
20050         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
20051         gl_MODULE_INDICATOR_FOR_TESTS.
20052         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
20053         * modules/sys_wait (Depends-on): Remove waitpid.
20054         (Makefile.am): Substitute GNULIB_WAITPID.
20055         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
20056         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
20057         signature only if the 'waitpid' module is present.
20058         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
20059         * NEWS: Mention the change.
20060         * modules/grantpt (Depends-on): Add waitpid.
20061         * modules/wait-process (Depends-on): Likewise.
20062
20063 2010-09-29  Bruno Haible  <bruno@clisp.org>
20064
20065         More tests for module 'sys_wait'.
20066         * modules/sys_wait-c++-tests: New file.
20067         * tests/test-sys_wait-c++.cc: New file.
20068         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
20069         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
20070
20071 2010-09-29  Bruno Haible  <bruno@clisp.org>
20072
20073         New module 'waitpid'.
20074         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
20075         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
20076         Don't include <process.h>.
20077         (waitpid): Declare only, using modern idiom.
20078         * m4/waitpid.m4: New file.
20079         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
20080         * modules/waitpid: New file.
20081         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
20082         (Makefile.am): Update.
20083         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
20084
20085 2010-09-28  Bruno Haible  <bruno@clisp.org>
20086
20087         poll: Assume ANSI C.
20088         * lib/poll.c (poll): Use an ANSI C declaration.
20089
20090 2010-09-28  Bruno Haible  <bruno@clisp.org>
20091
20092         poll-h: Create poll.h on all platforms.
20093         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
20094         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
20095         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
20096         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
20097         (gl_REPLACE_POLL_H): Don't set POLL_H.
20098         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
20099         * modules/poll-h (Depends-on): Add include_next.
20100         (Makefile.am): Create poll.h unconditionally. Substitute also
20101         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
20102
20103 2010-09-28  Bruno Haible  <bruno@clisp.org>
20104
20105         Tests for module 'poll-h'.
20106         * modules/poll-h-c++-tests: New file.
20107         * tests/test-poll-h-c++.cc: New file.
20108
20109         Tests for module 'poll-h'.
20110         * modules/poll-h-tests: New file.
20111         * tests/test-poll-h.c: New file.
20112
20113 2010-09-28  Bruno Haible  <bruno@clisp.org>
20114
20115         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
20116         * modules/poll-h (Depends-on): Add 'extensions'.
20117
20118 2010-09-28  Bruno Haible  <bruno@clisp.org>
20119
20120         New module 'poll-h'.
20121         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
20122         (poll): Use modern idiom.
20123         * modules/poll-h: New file.
20124         * modules/poll (Files): Remove lib/poll.in.h.
20125         (Depends-on): Add poll-h.
20126         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
20127         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
20128         * m4/poll_h.m4: New file.
20129         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
20130         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
20131         and invoke gl_REPLACE_POLL_H.
20132         * lib/poll.c: Use common idiom.
20133         * tests/test-poll.c: Likewise.
20134         * doc/posix-headers/poll.texi: Mention the poll-h module.
20135         Suggested by Eric Blake.
20136
20137 2010-09-26  Bruno Haible  <bruno@clisp.org>
20138
20139         sys_wait: Implement WSTOPSIG.
20140         * lib/sys_wait.in.h (WSTOPSIG): New macro.
20141         Reported by Simon Josefsson.
20142
20143 2010-09-26  Simon Josefsson  <simon@josefsson.org>
20144
20145         stdlib, sys_wait: Avoid compilation error on mingw.
20146         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
20147
20148 2010-09-26  Bruno Haible  <bruno@clisp.org>
20149
20150         stdlib tests: Avoid code duplication.
20151         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
20152         * modules/sys_wait-tests (Files): Likewise.
20153         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
20154         * tests/test-stdlib.c: Include test-sys_wait.h.
20155         (main): Invoke test_sys_wait_macros.
20156         * tests/test-sys_wait.c: Include test-sys_wait.h.
20157         (main): Invoke test_sys_wait_macros.
20158
20159 2010-09-25  Simon Josefsson  <simon@josefsson.org>
20160
20161         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
20162         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
20163         sure Windows sockets are working before calling getaddrinfo.
20164         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
20165         * doc/gnulib.texi (Windows sockets): Fix typo.
20166
20167 2010-09-25  Bruno Haible  <bruno@clisp.org>
20168
20169         Tests for module 'regex-quote'.
20170         * modules/regex-quote-tests: New file.
20171         * tests/test-regex-quote.c: New file.
20172
20173         New module 'regex-quote'.
20174         * lib/regex-quote.h: New file.
20175         * lib/regex-quote.c: New file.
20176         * modules/regex-quote: New file.
20177         Suggested by Reuben Thomas <rrt@sc3d.org>.
20178
20179 2010-09-24  Bruno Haible  <bruno@clisp.org>
20180
20181         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
20182         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
20183
20184 2010-09-23  Bruno Haible  <bruno@clisp.org>
20185
20186         setenv: Relax license.
20187         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
20188         Blake.
20189         Requested by Eric Blake.
20190
20191 2010-09-22  Bruno Haible  <bruno@clisp.org>
20192
20193         termios: Relax license.
20194         * modules/termios (License): Change to LGPLv2+.
20195         Requested by Eric Blake.
20196
20197 2010-09-22  Bruno Haible  <bruno@clisp.org>
20198
20199         threadlib: Allow the package to change the default to 'no'.
20200         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
20201         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
20202         Reported by Paul Eggert.
20203
20204 2010-09-22  Pádraig Brady  <P@draigbrady.com>
20205             Bruno Haible  <bruno@clisp.org>
20206
20207         Fix endless loop in mbmemcasecoll.
20208         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
20209         byte.
20210         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
20211
20212 2010-09-22  Bruno Haible  <bruno@clisp.org>
20213
20214         Tests for module 'memcoll'.
20215         * modules/memcoll-tests: New file.
20216         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
20217
20218         memcoll, xmemcoll: Clarify size vs. length.
20219         * modules/memcoll.c (memcoll0): Clarify specification.
20220         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
20221         passed to collate_error.
20222
20223 2010-09-22  Bruno Haible  <bruno@clisp.org>
20224
20225         Tests for module 'memcasecmp'.
20226         * modules/memcasecmp-tests: New file.
20227         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
20228
20229 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
20230
20231         * lib/pthread.in.h: Add split double-inclusion guard, and include
20232         system <pthread.h> if there is one.  Use @@-style as in other
20233         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
20234         pthread.h doesn't.
20235         (pthread_mutexattr_destroy, pthread_mutexattr_init):
20236         (pthread_mutexattr_settype, pthread_mutex_trylock):
20237         New static inline functions, if there's no system <pthread.h>.
20238         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
20239         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
20240         Approximate with mutexes if the system lacks spinlocks, as in
20241         MacOS.
20242         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
20243         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
20244         @@-style.  Check for spinlocks separately.
20245         (gl_PTHREAD_DEFAULTS): New macro.
20246         * modules/pthread: Redo to use a more typical style for in.h files.
20247
20248 2010-09-21  Eric Blake  <eblake@redhat.com>
20249
20250         net_if: enhance tests
20251         * tests/test-net_if.c (main): Move signature checks earlier.
20252         Print failures to stderr.
20253         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
20254         Document the bug that we do not yet fix.
20255
20256 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
20257
20258         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
20259         about gnulib, not GSS.
20260
20261 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
20262
20263         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
20264         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
20265         for Emacs.
20266         * build-aux/pmccabe2html: Make Makefile.am example code more
20267         cut-and-paste friendly.
20268
20269 2010-09-21  Simon Josefsson  <simon@josefsson.org>
20270
20271         * tests/test-net_if.c: New file.
20272         * modules/net_if-tests: New file.
20273
20274 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
20275
20276         pthread: add pthread_spin_destroy
20277         * lib/pthread.in.h (pthread_spin_destroy): New function.
20278
20279 2010-09-19  Bruno Haible  <bruno@clisp.org>
20280
20281         gnulib-tool: Fix --help output.
20282         * gnulib-tool (func_usage): Fix help message.
20283         Reported by Reuben Thomas <rrt@sc3d.org>.
20284
20285 2010-09-18  Jim Meyering  <meyering@redhat.com>
20286
20287         maint.mk: avoid unexpanded \n in two diagnostics
20288         * top/maint.mk (sc_prohibit_always_true_header_tests):
20289         Don't use a literal \n in a halt=... assignment.  It would not be
20290         expanded, and the two \n bytes would appear in the diagnostic output
20291         rather than the desired newline.  Use halt=$$(printf ... instead.
20292         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
20293
20294 2010-09-18  Bruno Haible  <bruno@clisp.org>
20295
20296         netinet_in: Doc tweak.
20297         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
20298         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20299
20300 2010-09-18  Jim Meyering  <meyering@redhat.com>
20301
20302         init.sh: correct an outdated comment
20303         * tests/init.sh (create_exe_shims_):  s/function/alias/
20304
20305         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
20306         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
20307         a file named "*.exe" is removed between the glob expansion and the
20308         processing of that oddly named file.
20309
20310 2010-09-17  Eric Blake  <eblake@redhat.com>
20311
20312         mirbsd: add some more support
20313         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
20314         in BSD family.
20315         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
20316         devices as OpenBSD.
20317         * m4/host-os.m4 (mirbsd): Add MirBSD.
20318
20319         tests: fix unportable assumption on sys/wait.h
20320         * tests/test-sys_wait.c (main): Relax test.
20321         * tests/test-stdlib.c (main): Likewise.
20322
20323         init.sh: accomodate directory with no .exes
20324         * tests/init.sh: Accomodate directory containing only scripts.
20325
20326         tests: avoid compiler warning
20327         * tests/test-stdlib.c (main): Use the variable.
20328
20329         fdutimens, fdutimensat: update signature, again
20330         * lib/utimens.h (gl_futimens): Delete, and move signature...
20331         (fdutimens): ...here.
20332         (fdutimensat): Rearrange signature.
20333         (lutimensat): Rename variable for clarity.
20334         * lib/fdutimensat.c (fdutimensat): Update signature.
20335         * lib/utimens.c (fdutimens): Likewise.
20336         (gl_futimens): Delete.
20337         (utimens, lutimens): Update callers.
20338         * lib/futimens.c (futimens): Likewise.
20339         * tests/test-fdutimensat.c: Likewise.
20340         * tests/test-utimens.c: Likewise.
20341         * tests/test-futimens.h: Update comment.
20342         * NEWS: Mention this.
20343         Suggested by Paul Eggert.
20344
20345 2010-09-17  Bruno Haible  <bruno@clisp.org>
20346
20347         Take over the maintenance of some older macros from Autoconf.
20348         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
20349         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
20350         GNU Autoconf.
20351         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
20352         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
20353
20354 2010-09-17  Eric Blake  <eblake@redhat.com>
20355
20356         fdutimensat: drop atflag validation
20357         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
20358         with valid fd, to close a race scenario where futimens is
20359         unsupported and FILE was replaced by a symlink.
20360         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
20361         accordingly.
20362         Suggested by Paul Eggert.
20363
20364 2010-09-16  Bruno Haible  <bruno@clisp.org>
20365
20366         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
20367         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
20368
20369 2010-09-16  Bruno Haible  <bruno@clisp.org>
20370
20371         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
20372         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
20373         login_tty exists.
20374         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20375
20376 2010-09-16  Bruno Haible  <bruno@clisp.org>
20377
20378         login_tty: Make the replacement code work on BSD systems.
20379         * lib/login_tty.c: Include <sys/ioctl.h>.
20380         (login_tty): Use ioctl TIOCSCTTY when available.
20381         * modules/login_tty (Depends-on): Add sys_ioctl.
20382         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20383
20384 2010-09-16  Bruno Haible  <bruno@clisp.org>
20385
20386         login_tty: Stricter unit test.
20387         * modules/login_tty-tests (Depends-on): Add tcgetsid.
20388         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
20389         and tcgetsid() after login_tty.
20390         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20391
20392 2010-09-16  Bruno Haible  <bruno@clisp.org>
20393
20394         New module 'tcgetsid'.
20395         * lib/tcgetsid.c: New file.
20396         * m4/tcgetsid.m4: New file.
20397         * modules/tcgetsid: New file.
20398         * modules/termios (Depends-on): Add c++defs, warn-on-use.
20399         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
20400         GNULIB_TCGETSID, HAVE_TCGETSID.
20401         * lib/termios.in.h: Include <sys/types.h>.
20402         (tcgetsid): New declaration.
20403         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
20404         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
20405         * doc/posix-functions/tcgetsid.texi: Mention the new module.
20406         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
20407
20408 2010-09-16  Bruno Haible  <bruno@clisp.org>
20409
20410         Tests for module 'termios'.
20411         * modules/termios-c++-tests: New file.
20412         * modules/termios-tests: New file.
20413         * tests/test-termios-c++.cc: New file.
20414         * tests/test-termios.c: New file.
20415
20416         New module 'termios'.
20417         * modules/termios: New file.
20418         * lib/termios.in.h: New file.
20419         * m4/termios_h.m4: New file.
20420         * doc/posix-headers/termios.texi: Mention the new module.
20421
20422 2010-09-16  Eric Blake  <eblake@redhat.com>
20423
20424         fdutimensat: add an atflag parameter
20425         * lib/fdutimensat.c (fdutimensat): Add new parameter.
20426         * lib/utimens.h (fdutimensat): Update prototype.
20427         * tests/test-fdutimensat.c: Adjust test to match.
20428         * NEWS: Document the change.
20429         Suggested by Paul Eggert.
20430
20431 2010-09-16  Bruno Haible  <bruno@clisp.org>
20432
20433         Fix typos in comments.
20434         * lib/striconveh.h: Fix typo in comment.
20435         * lib/login_tty.c (login_tty): Likewise.
20436
20437 2010-09-15  Bruno Haible  <bruno@clisp.org>
20438
20439         stdlib: clarify MirBSD WEXITSTATUS bug
20440         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
20441         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
20442
20443 2010-09-15  Eric Blake  <eblake@redhat.com>
20444
20445         stdlib: work around MirBSD WEXITSTATUS bug
20446         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
20447         * modules/stdlib (Depends-on): Add sys_wait.
20448         * tests/test-sys_wait.c (main): Enhance test.
20449         * tests/test-stdlib.c (main): Likewise.
20450         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
20451
20452         docs: mention MacOS issue with WEXITSTATUS(constant)
20453         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
20454         issue.
20455         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
20456
20457         strnlen: add tests
20458         * modules/strnlen-tests: New file.
20459         * tests/test-strnlen.c: Likewise.
20460
20461 2010-09-14  Bruno Haible  <bruno@clisp.org>
20462
20463         unistr/base: Avoid link errors when module 'libunistring' is also used.
20464         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
20465         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
20466         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
20467         Declare also when HAVE_LIBUNISTRING is set.
20468         Reported by Pádraig Brady <P@draigbrady.com>.
20469
20470 2010-09-14  Eric Blake  <eblake@redhat.com>
20471
20472         test-rawmemchr: make more robust
20473         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
20474         (Depends-on, configure.ac): Add needed prerequisites to use it.
20475         * modules/memchr-tests (Files, Depends-on, configure.ac):
20476         Likewise, to avoid implicit reliance on memchr module prereqs.
20477         * tests/test-memchr.c (main): Ensure proper masking.
20478         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
20479         reads.
20480
20481         memchr: detect glibc Alpha bug
20482         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
20483         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
20484         Alpha.
20485         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
20486         * tests/test-memchr.c (main): Enhance test.
20487         Reported by Nelson H. F. Beebe.
20488
20489 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20490
20491         fts, getcwd, glob: audit for dirfd returning -1
20492         * lib/fts.c (opendir): Remove #define; no longer used.
20493         (opendirat): New arg PDIR_FD.  All callers changed.
20494         (fts_build, _opendir2): Use new opendirat to avoid the need for
20495         dirfd, or for checking whether dirfd returns a negative value.
20496         Don't use opendir; always use openat followed by fdopendir.
20497         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
20498         it.
20499         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
20500         returns -1 here.
20501         * modules/fts (Depends-on): Remove dirfd.
20502         * modules/getcwd (Depends-on): Likewise.
20503
20504 2010-09-13  Eric Blake  <eblake@redhat.com>
20505
20506         float: fix broken MirBSD header
20507         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
20508         * doc/posix-headers/float.texi (float.h): Document it.
20509
20510 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20511
20512         fts: use O_NOFOLLOW to avoid race condition when opening a directory
20513         * lib/fts.c (opendirat): New arg extra_flags.
20514         (__opendir2): Use it to avoid following symlinks when opening
20515         a directory, if symlinks are not supposed to be followed.  See
20516         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
20517
20518         fdopendir: preserve argument fd before returning
20519         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
20520         (fdopendir_with_dup, fd_clone_opendir): New static functions.
20521         (fdopendir): Use them, arranging for FD to be open to the same
20522         directory that it was when it started.  (It might be temporarily
20523         closed while fdopendir is running, so this not thread- or
20524         signal-safe.)  Be careful to do the right thing even when file
20525         descriptors are scarce and dup fails with errno == EMFILE.  See
20526         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
20527
20528 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
20529
20530         regex: Pass the system regex if its only problem is 32-bit regoff_t.
20531         * NEWS: Document change.
20532         * m4/regex.m4: Disable test for regoff_t size.
20533
20534 2010-09-13  Jim Meyering  <meyering@redhat.com>
20535
20536         fts: don't operate on an invalid file descriptor after failed dup
20537         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
20538         negative file descriptor.
20539
20540 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
20541
20542         savedir: add streamsavedir, deprecate fdsavedir
20543         * NEWS: Mention deprecation of fdsavedir.
20544         * lib/savedir.c (streamsavedir): New extern function, whose name
20545         ends in "savedir" to be consistent with the others.  This differs
20546         from savedirstream in that it doesn't close its argument.  The
20547         next version of GNU tar will use this instead of fdsavedir, to
20548         avoid some race conditions and conserve file descriptors.
20549         (savedirstream): Reimplement as a wrapper around streamsavedir.
20550         (fdsavedir): Add a comment deprecating this function.  As far as
20551         I know, only GNU tar used it, and GNU tar doesn't need it any more.
20552         * lib/savedir.h (streamsavedir): New decl.
20553         (fdsavedir): Add a comment deprecating this.
20554
20555 2010-09-10  Bruno Haible  <bruno@clisp.org>
20556
20557         langinfo: Fix last commit.
20558         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
20559         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
20560         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20561
20562 2010-09-10  Bruno Haible  <bruno@clisp.org>
20563
20564         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
20565         * lib/progreloc.c (O_EXEC): Define fallback.
20566
20567 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
20568
20569         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
20570         * NEWS: Document recent changes to fcntl-h.
20571         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
20572         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
20573         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
20574         Similarly for O_SEARCH; this last was already true, but not documented.
20575         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
20576         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
20577         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
20578         Likewise.
20579         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
20580         is zero, not whether it is defined.
20581         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
20582         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
20583         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
20584
20585 2010-09-10  Bruno Haible  <bruno@clisp.org>
20586
20587         langinfo, nl_langinfo: Fix for IRIX 5.3.
20588         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
20589         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
20590         HAVE_LANGINFO_YESEXPR.
20591         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
20592         HAVE_LANGINFO_YESEXPR.
20593         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
20594         HAVE_LANGINFO_T_FMT_AMPM is 0.
20595         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
20596         HAVE_LANGINFO_YESEXPR is 0.
20597         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
20598         NOEXPR.
20599         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
20600         * doc/posix-functions/nl_langinfo.texi: Likewise.
20601         Reported by Eric Blake.
20602
20603 2010-09-10  Bruno Haible  <bruno@clisp.org>
20604
20605         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
20606         * doc/glibc-functions/login_tty.texi: Mention the include file problem
20607         on FreeBSD 8.0 and OpenBSD 4.6.
20608         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
20609         * m4/pty_h.m4 (gl_PTY_H): Likewise.
20610         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
20611         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
20612         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
20613         ac_includes_default.
20614         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20615
20616 2010-09-09  Eric Blake  <eblake@redhat.com>
20617
20618         strsignal: work around NetBSD bug
20619         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
20620         * lib/string.in.h (includes): Likewise.
20621         * doc/posix-functions/strsignal.texi (strsignal): Document the
20622         bug.
20623         Reported by Nelson H. F. Beebe.
20624
20625         gnulib-tool: work with NetBSD /bin/sh
20626         * gnulib-tool (func_cache_var, func_cache_lookup_module)
20627         (func_get_description, func_get_comment, func_get_status)
20628         (func_get_notice, func_get_applicability, func_get_filelist)
20629         (func_get_dependencies, func_get_autoconf_early_snippet)
20630         (func_get_autoconf_snippet, func_get_automake_snippet)
20631         (func_get_include_directive, func_get_link_directive)
20632         (func_get_license, func_get_maintainer, func_import): Avoid
20633         shell syntax errors from parsing syntax extensions.
20634
20635 2010-09-09  Bruno Haible  <bruno@clisp.org>
20636
20637         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20638         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
20639         a reliable way to determine whether the 'alias' command works.
20640
20641 2010-09-08  Jim Meyering  <meyering@redhat.com>
20642
20643         init.sh: penalize a set-x-impaired shell; don't disqualify it
20644         * tests/init.sh: Too many shells corrupt application stderr when
20645         you set -x, so we can't afford to disqualify them, since at least
20646         on Irix-6.5, that would disqualify all bourne shells.
20647         Instead, use a two-pass approach.
20648         On the first pass, try to find a shell that meets the stricter
20649         condition that set -x does not corrupt stderr.
20650         If no shell meets the stricter condition, retest each candidate
20651         shell, but without that extra condition.  Finally, when
20652         VERBOSE=yes is requested and set -x might cause trouble, simply
20653         issue a warning and refrain from enabling debug output.
20654
20655 2010-09-08  Eric Blake  <eblake@redhat.com>
20656
20657         unsetenv: fix OpenBSD bug
20658         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
20659         * doc/posix-functions/unsetenv.texi (unsetenv): Update
20660         documentation.
20661         Reported by Jim Meyering.
20662
20663         strtod: work around IRIX 6.5 bug
20664         * lib/strtod.c (strtod): Reparse number on shorter string if
20665         exponent parse was invalid.
20666         * tests/test-strtod.c (main): Add check for "0x1p 2".
20667         Reported by Tom G. Christensen.
20668
20669         getopt: optimize previous patch
20670         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
20671         empty variable.  Speed up awk script.
20672         Reported by Paolo Bonzini.
20673
20674 2010-09-08  Jim Meyering  <meyering@redhat.com>
20675
20676         test.sh: disqualify shells for which set -x corrupts stderr
20677         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
20678         and OpenBSD 4.7.  They make it so with "set -x", environment settings
20679         appear in stderr output.  For example, this command:
20680             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
20681         prints "P=1" on those two systems:
20682
20683 2010-09-08  Bruno Haible  <bruno@clisp.org>
20684
20685         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20686         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
20687         commands, because some shells ignore redirections when there is an
20688         error in the command lookup.
20689         Reported by Eric Blake.
20690
20691 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
20692
20693         * lib/regex.h: Fix a mention of `regex_compile' (should be
20694         `re_compile_pattern').
20695         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
20696         (re_set_registers): Correct name of parameter in comment.
20697
20698         * doc/regex.texi: Add documentation for missing syntax flags.
20699         Remove commented-out documentation of defunct syntax option
20700         RE_NO_EMPTY_ALTS.
20701         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
20702         Add documentation of re_set_registers.
20703         Document trick to re-use a pattern buffer by setting fastmap manually.
20704         Update documentation of struct re_pattern_buffer per public members.
20705         Uncomment documentation of equivalence class operators and
20706         collating symbol operators, since they are now implemented,
20707         Explain leftmost-longest matching in relation to alternatives.
20708         Tidy documentation of substring matching.
20709         Remove POSIX documentation, which is done better in
20710         glibc, and refer the reader there. Keep BSD API documentation, as
20711         that is not readily available elsewhere.
20712
20713 2010-09-07  Eric Blake  <eblake@redhat.com>
20714
20715         getopt: handle POSIXLY_CORRECT set but not exported
20716         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
20717         export state of POSIXLY_CORRECT, due to bash set -o posix.
20718         Reported by Dustin J. Mitchell.
20719
20720 2010-09-05  Bruno Haible  <bruno@clisp.org>
20721
20722         gnulib-tool: Highlight the changed options.
20723         * gnulib-tool (func_usage): Display the --import, --add-import,
20724         --remove-import explanations in bold font.
20725
20726 2010-09-06  Karl Berry  <karl@gnu.org>
20727
20728         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
20729
20730 2010-09-05  Bruno Haible  <bruno@clisp.org>
20731
20732         uniwidth/width: Update comment.
20733         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
20734         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
20735
20736 2010-09-05  Bruno Haible  <bruno@clisp.org>
20737
20738         isinf, isnan: Relax license.
20739         * modules/isinf (License): Change from GPL to LGPL, with consent from
20740         Ben Pfaff.
20741         * modules/isnan (License): Likewise.
20742         Requested by Ludovic Courtès.
20743
20744 2010-09-04  Bruno Haible  <bruno@clisp.org>
20745
20746         gnulib-tool: Help migration from --import to --add-import or --update.
20747         * gnulib-tool: Emit a verbose error message when --import is used
20748         without any module name.
20749
20750 2010-09-04  Bruno Haible  <bruno@clisp.org>
20751
20752         Update doc about gnulib-tool.
20753         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
20754         'gnulib-tool --update' in more detail.
20755         Reported by Eric Blake.
20756
20757 2010-09-04  Bruno Haible  <bruno@clisp.org>
20758
20759         gnulib-tool: Change --import. New options --add/remove-import.
20760         * gnulib-tool: New options --add-import, --remove-import.
20761         (func_usage): Document them.
20762         (have_associative): Define always.
20763         (func_import): In import mode, don't merge the specified settings with
20764         the cached settings. Implement remove-import mode.
20765         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
20766         Explain when to use them versus --import.
20767         (Simple update): Use --add-import instead of --import.
20768         * NEWS: Mention the change.
20769
20770 2010-09-04  Bruno Haible  <bruno@clisp.org>
20771
20772         * doc/gnulib-tool.texi (Initial import): Update paragraph about
20773         separate gnulib.mk.
20774
20775 2010-09-04  Bruno Haible  <bruno@clisp.org>
20776
20777         gnulib-tool: Don't talk about CVS any more.
20778         * gnulib-tool (func_usage, func_import): Write "version control"
20779         instead of CVS.
20780
20781 2010-09-04  Jim Meyering  <meyering@redhat.com>
20782
20783         maint.mk: avoid obscure sc_copyright_check failure in coreutils
20784         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
20785         false positives (whose names may be ill-chosen) when searching
20786         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
20787         would cause a false-positive.
20788
20789         avoid coreutils "make distcheck" failure
20790         Coreutils tests with an absolute build directory name that contains
20791         a space.  Not quoting this directory name caused a failure.
20792         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
20793         * tests/test-vc-list-files-cvs.sh: Likewise.
20794
20795 2010-09-04  Bruno Haible  <bruno@clisp.org>
20796
20797         gnulib-tool: Avoid error when run in a package without Makefile.am.
20798         * gnulib-tool: When collecting the m4dirs in a package that does not
20799         have a Makefile.am, eliminate those directories that contain no
20800         gnulib-cache.m4. Fix expression that counts these directories.
20801
20802 2010-09-04  Bruno Haible  <bruno@clisp.org>
20803
20804         update-copyright test: Improve output when perl is missing or too old.
20805         * tests/test-update-copyright.sh: Move test of Perl version down after
20806         the test whether Perl exists. Provide an explanation relating Perl's
20807         error message to Automake's SKIP: message.
20808
20809 2010-09-04  Bruno Haible  <bruno@clisp.org>
20810
20811         Don't augment PATH in TESTS_ENVIRONMENT.
20812         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
20813         set abs_aux_dir instead of augmenting PATH.
20814         * modules/vc-list-files-tests (Makefile.am): Likewise.
20815         * tests/test-update-copyright.sh: Augment PATH here.
20816         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
20817         path_prepend_.
20818         * tests/test-vc-list-files-git.sh: Likewise.
20819
20820 2010-09-04  Jim Meyering  <meyering@redhat.com>
20821
20822         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
20823         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
20824
20825 2010-09-04  Bruno Haible  <bruno@clisp.org>
20826
20827         strdup: Fix compilation error in C++ mode.
20828         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
20829         the macro.
20830
20831 2010-09-04  Bruno Haible  <bruno@clisp.org>
20832
20833         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
20834         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
20835         macro into a function.
20836         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20837
20838 2010-09-04  Bruno Haible  <bruno@clisp.org>
20839
20840         Set PATH_SEPARATOR the same way autoconf does.
20841         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
20842         the value of PATH_SEPARATOR the same way autoconf-generated configure
20843         scripts do.
20844         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
20845         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
20846
20847 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20848
20849         Set PATH_SEPARATOR the same way autoconf does.
20850         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
20851         the same way autoconf-generated configure scripts do.
20852         * posix-modules: Likewise.
20853
20854 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
20855
20856         hash: fix safe_hasher const typo
20857         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
20858         const; otherwise, there is a type error later.
20859
20860 2010-09-02  Jim Meyering  <meyering@redhat.com>
20861
20862         test-update-copyright.sh: require perl 5.8.0
20863         * tests/test-update-copyright.sh: Require 5.8.0,
20864         which Tom G. Christensen has confirmed is adequate,
20865         while 5.6.1 is not.
20866
20867 2010-09-02  Eric Blake  <eblake@redhat.com>
20868
20869         tests: init.sh improvements for re-exec'ing with zsh
20870         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
20871         -vx through shell re-exec.
20872         Reported by Tom G. Christensen.
20873
20874         wctype: fix typo in previous commit
20875         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
20876         Reported by Ludovic Courtès.
20877
20878 2010-09-02  Jim Meyering  <meyering@redhat.com>
20879
20880         test-update-copyright.sh: skip test if Perl is too old
20881         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
20882         Reported by Tom G. Christensen.
20883
20884 2010-09-02  Bruno Haible  <bruno@clisp.org>
20885
20886         wctype: Avoid compilation error on IRIX 6.5.30.
20887         * lib/wctype.in.h (iswblank): Declare with a replacement if
20888         REPLACE_ISWBLANK is set.
20889         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
20890         declared. Set REPLACE_ISWBLANK.
20891         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
20892         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
20893         * doc/posix-headers/wctype.texi: Likewise.
20894         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20895
20896 2010-09-01  Bruno Haible  <bruno@clisp.org>
20897
20898         New module 'socketlib'.
20899         * modules/socketlib: New file.
20900         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
20901         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
20902         * modules/sockets (Depends-on): Add socketlib.
20903         Suggested by Sam Steingold <sds@gnu.org>.
20904
20905 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
20906
20907         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
20908
20909         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
20910         when one needs search access to a directory but not read access.
20911         On systems where it is available, it works in some cases where
20912         O_RDONLY does not, namely on directories that are searchable but
20913         not readable, and which need only to be searchable.  If O_SEARCH
20914         is not available, fall back to the traditional method of using
20915         O_RDONLY.
20916
20917         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
20918         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
20919         when opening a directory that needs only to be searchable.
20920         * lib/chdir-safer.c (chdir_no_follow): Likewise.
20921         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
20922         * lib/openat-proc.c (openat_proc_name): Likewise.
20923         * lib/openat.c (openat_needs_fchdir): Likewise.
20924         * lib/save-cwd.c (save_cwd): Likewise.
20925         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
20926
20927 2010-08-28  Bruno Haible  <bruno@clisp.org>
20928
20929         New module 'host-cpu-c-abi'.
20930         * modules/host-cpu-c-abi: New file.
20931         * m4/host-cpu-c-abi.m4: New file, based on part of
20932         clisp/src/m4/general.m4.
20933         Requested by Sam Steingold <sds@gnu.org>.
20934
20935 2010-08-31  Eric Blake  <eblake@redhat.com>
20936         and Jim Meyering  <meyering@redhat.com>
20937
20938         hash: factor, and guard against misbehaving hasher function
20939         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
20940         of table->hasher's return value.  Also protect against a hash value
20941         so large that adding it to table->bucket results in a NULL pointer.
20942         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
20943         Use it in place of open-coded check-and-abort.
20944
20945 2010-08-30  Bruno Haible  <bruno@clisp.org>
20946
20947         hash: silence spurious clang warning
20948         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
20949         Reported by Eric Blake.
20950
20951 2010-08-30  Eric Blake  <eblake@redhat.com>
20952
20953         strstr, memmem, strcasestr: avoid leaked shell message
20954         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
20955         FreeBSD.
20956         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20957         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
20958
20959         tests: silence clang warning
20960         * tests/test-malloca.c (do_allocation): Avoid dead store.
20961
20962 2010-08-29  Bruno Haible  <bruno@clisp.org>
20963
20964         gettext: Fix recent mistake.
20965         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
20966
20967 2010-08-29  Bruno Haible  <bruno@clisp.org>
20968
20969         selinux-h: Offer a --without-selinux option.
20970         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
20971         --without-selinux was specified, skip all tests and define
20972         HAVE_SELINUX_SELINUX_H to 0.
20973         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
20974         set LIB_SELINUX to empty.
20975         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
20976         gl_LIBSELINUX. If --without-selinux was specified, replace
20977         selinux/context.h.
20978         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
20979
20980 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20981             Bruno Haible  <bruno@clisp.org>
20982
20983         Make the module 'realloc-gnu' work again on AIX and OSF/1.
20984         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
20985         of HAVE_REALLOC.
20986         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
20987         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
20988         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
20989         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20990
20991 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20992             Bruno Haible  <bruno@clisp.org>
20993
20994         Make the module 'calloc-gnu' work again on AIX and OSF/1.
20995         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
20996         HAVE_CALLOC.
20997         * lib/xmalloc.c: Update accordingly.
20998         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
20999         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
21000         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
21001
21002 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21003             Bruno Haible  <bruno@clisp.org>
21004
21005         Make the module 'malloc-gnu' work again on AIX and OSF/1.
21006         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
21007         HAVE_MALLOC.
21008         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
21009         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
21010         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
21011
21012 2010-08-29  Bruno Haible  <bruno@clisp.org>
21013
21014         Update modules list.
21015         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
21016         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
21017         (String handling <string.h>): Add astrxfrm.
21018         (File system functions): Add readlinkat.
21019
21020 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21021
21022         Tests for module 'realloc-gnu'.
21023         * modules/realloc-gnu-tests: New file.
21024         * tests/test-realloc-gnu.c: New file.
21025
21026         Tests for module 'calloc-gnu'.
21027         * modules/calloc-gnu-tests: New file.
21028         * tests/test-calloc-gnu.c: New file.
21029
21030         Tests for module 'malloc-gnu'.
21031         * modules/malloc-gnu-tests: New file.
21032         * tests/test-malloc-gnu.c: New file.
21033
21034 2010-08-28  Bruno Haible  <bruno@clisp.org>
21035
21036         Rename module 'realloc' -> 'realloc-gnu'.
21037         * modules/realloc-gnu: New file, copied from modules/realloc.
21038         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
21039         obsolete.
21040         * modules/mgetgroups (Depends-on): Update.
21041         * doc/posix-functions/realloc.texi: Update.
21042         * NEWS: Mention the change.
21043
21044         Rename module 'calloc' -> 'calloc-gnu'.
21045         * modules/calloc-gnu: New file, copied from modules/calloc.
21046         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
21047         obsolete.
21048         * doc/posix-functions/calloc.texi: Update.
21049         * NEWS: Mention the change.
21050
21051         Rename module 'malloc' -> 'malloc-gnu'.
21052         * modules/malloc-gnu: New file, copied from modules/malloc.
21053         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
21054         obsolete.
21055         * modules/argp (Depends-on): Update.
21056         * modules/regex (Depends-on): Update.
21057         * doc/posix-functions/malloc.texi: Update.
21058         * NEWS: Mention the change.
21059
21060 2010-08-28  Eric Blake  <eblake@redhat.com>
21061
21062         pread, pwrite: add missing dependency
21063         * modules/pread (Depends-on): Add extensions.
21064         * modules/pwrite (Depends-on): Likewise.
21065
21066 2010-08-28  Bruno Haible  <bruno@clisp.org>
21067
21068         unistr/u*-strchr: Fix tests dependencies.
21069         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
21070         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
21071         Reported by Ian Beckwith <ianb@erislabs.net>.
21072
21073 2010-08-28  Bruno Haible  <bruno@clisp.org>
21074
21075         read-file: Don't occupy too much unused memory.
21076         * lib/read-file.c (fread_file): Shrink the buffer at the end.
21077
21078 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
21079             Eric Blake  <eblake@redhat.com>
21080             Bruno Haible  <bruno@clisp.org>
21081
21082         read-file: Avoid memory reallocations with regular files.
21083         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
21084         (fread_file): With regular files, use the remaining length as the
21085         initial buffer size.  Check against overflow.
21086         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
21087         sys_stat.
21088
21089 2010-08-28  Bruno Haible  <bruno@clisp.org>
21090
21091         ftello: Relax license.
21092         * modules/ftello (License): Relax to LGPLv2+.
21093         Reported by Eric Blake.
21094
21095 2010-08-28  Bruno Haible  <bruno@clisp.org>
21096
21097         Avoid relocwrapper link errors due to gnulib replacement functions.
21098         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
21099         function.
21100         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21101
21102 2010-08-28  Bruno Haible  <bruno@clisp.org>
21103
21104         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
21105         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
21106         defined.
21107         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
21108         Suggested by Eric Blake.
21109
21110 2010-08-28  Bruno Haible  <bruno@clisp.org>
21111
21112         sys_socket, netdb: Ensure socklen_t gets defined.
21113         * modules/sys_socket (Depends-on): Add socklen.
21114         * modules/netdb (Depends-on): Likewise.
21115         * modules/getaddrinfo (Depends-on): Remove socklen.
21116         * modules/getsockopt (Depends-on): Likewise.
21117         * modules/setsockopt (Depends-on): Likewise.
21118         * tests/test-sys_socket.c: Check that socklen_t is defined.
21119         * tests/test-netdb.c: Likewise.
21120         * m4/socklen.m4: Update comments.
21121         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21122
21123 2010-08-27  Eric Blake  <eblake@redhat.com>
21124
21125         login_tty: add missing dependency
21126         * modules/login_tty (Depends-on): Add pty.
21127
21128 2010-08-26  Eric Blake  <eblake@redhat.com>
21129
21130         lib-symbol-versions: fix m4 quoting
21131         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
21132         format for AC_LINK_IFELSE.
21133
21134         glob: fix compile test
21135         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
21136
21137         btowc: fix missing file
21138         * modules/btowc (Files): Also ship locale-fr.m4.
21139
21140         lseek: fix link test
21141         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
21142         AC_LINK_IFELSE.
21143
21144         include_next: silence autoconf 2.68 warning
21145         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
21146         AC_COMPILE_IFELSE as special.
21147         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
21148         autoconf < 2.68.
21149
21150         acl: fix compilation test
21151         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
21152         AC_COMPILE_IFELSE.
21153
21154 2010-08-26  Bruno Haible  <bruno@clisp.org>
21155
21156         Modernize AC_TRY_RUN invocations.
21157         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
21158         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
21159         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
21160         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
21161         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
21162         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
21163         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
21164         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
21165         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21166         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
21167         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
21168         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
21169         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
21170         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
21171         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
21172         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
21173         gl_MBRLEN_NUL_RETVAL): Likewise.
21174         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
21175         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
21176         Likewise.
21177         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
21178         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
21179         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
21180         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
21181         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
21182         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
21183         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
21184         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
21185         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
21186         Likewise.
21187         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
21188         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
21189         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
21190         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
21191         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21192         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
21193         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
21194         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
21195         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
21196         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
21197
21198 2010-08-26  Bruno Haible  <bruno@clisp.org>
21199
21200         Modernize AC_TRY_LINK invocations.
21201         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
21202         AC_TRY_LINK.
21203         * m4/argp.m4 (gl_ARGP): Likewise.
21204         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
21205         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
21206         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
21207         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
21208         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
21209         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
21210         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
21211         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
21212         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
21213         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
21214         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
21215         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
21216         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
21217         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21218         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
21219         * m4/hostent.m4 (gl_HOSTENT): Likewise.
21220         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
21221         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
21222         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
21223         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
21224         Likewise.
21225         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
21226         Likewise.
21227         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
21228         Likewise.
21229         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
21230         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
21231         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
21232         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
21233         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
21234         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
21235         * m4/servent.m4 (gl_SERVENT): Likewise.
21236         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
21237         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
21238         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
21239         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
21240         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
21241         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
21242         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
21243         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21244         * modules/tsearch-tests (configure.ac): Likewise.
21245
21246 2010-08-26  Bruno Haible  <bruno@clisp.org>
21247
21248         Modernize AC_TRY_COMPILE invocations.
21249         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
21250         AC_TRY_COMPILE.
21251         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
21252         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
21253         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
21254         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
21255         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
21256         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
21257         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
21258         * m4/lock.m4 (gl_LOCK): Likewise.
21259         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
21260         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
21261         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
21262         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
21263         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
21264         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
21265         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
21266         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
21267         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
21268         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
21269         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
21270         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
21271         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
21272         extraneous semicolon.
21273
21274 2010-08-26  Jim Meyering  <meyering@redhat.com>
21275
21276         stat-time: relax license LGPL
21277         * modules/stat-time (License): Change from GPL to LGPL,
21278         with consent from all contributors, for use in libguile.
21279         Requested by Ludovic Courtès.
21280
21281 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
21282
21283         poll: return immediately on POLLHUP.
21284         * lib/poll.c (poll): Always set timeout before wait_timeout is
21285         computed.
21286
21287 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21288
21289         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
21290         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
21291         rmdir ("dir/.//"), unlinkat.
21292
21293 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21294
21295         stdbool: avoid spurious failure with modern xlc
21296         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
21297
21298 2010-08-24  Bruno Haible  <bruno@clisp.org>
21299
21300         getloadavg: simplify code
21301         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
21302         gl_have_func. Update comments.
21303
21304 2010-08-24  Eric Blake  <eblake@redhat.com>
21305
21306         getloadavg: don't define SVR4 on cygwin
21307         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
21308         only define SVR4 when -lkvm is required.
21309         Reported by Yaakov Selkowitz.
21310
21311 2010-08-24  Bruno Haible  <bruno@clisp.org>
21312
21313         priv-set: fix comment
21314         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
21315
21316 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
21317
21318         priv-set: fix comments
21319         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
21320         to match code, as suggested by David Bartley in:
21321         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
21322
21323 2010-08-23  Eric Blake  <eblake@redhat.com>
21324
21325         stdbool: avoid rejecting clang
21326         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
21327         * tests/test-stdbool.c: Enable more tests if using the system
21328         <stdbool.h> instead of the gnulib replacement.
21329         (main): Move xlc bug test to a runtime test for all compilers.
21330         Reported by Anders Kaseorg.
21331
21332         argz: fix shell quoting issue
21333         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
21334         Reported by Charles Wilson.
21335
21336 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
21337             Erik Faye-Lund <kusmabite@gmail.com>
21338
21339         poll, select: handle ERROR_BROKEN_PIPE.
21340         * lib/poll.c (win32_compute_revents): Return POLLHUP when
21341         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
21342         * lib/select.c (win32_compute_revents): Do not mark a pipe
21343         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
21344
21345 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
21346
21347         fts: allow compilation with C++
21348         * lib/fts_.h: Specify extern "C" linkage with C++.
21349
21350 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21351
21352         Fix gnulib-tool sed script de-commentation for AIX sed.
21353         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
21354         sed.
21355
21356 2010-08-17  Eric Blake  <eblake@redhat.com>
21357
21358         test-stddef: test for (some) offsetof bugs
21359         * tests/test-stddef.c: Enhance test to ensure correct type of
21360         offsetof.
21361         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
21362         that we are not fixing at this time.
21363
21364 2010-08-15  Bruno Haible  <bruno@clisp.org>
21365
21366         stpncpy: Allow stpncpy to be defined as a macro.
21367         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
21368         if it's already correctly declared.
21369         * lib/string.in.h (stpncpy): Undefine before redefining.
21370         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
21371
21372 2010-08-14  Bruno Haible  <bruno@clisp.org>
21373
21374         Rename module 'memxfrm' to 'amemxfrm'.
21375         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
21376         (amemxfrm): Renamed from memxfrm.
21377         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
21378         (amemxfrm): Renamed from memxfrm.
21379         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
21380         * NEWS: Mention the change.
21381         * MODULES.html.sh (String handling <string.h>): Update.
21382         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
21383         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
21384         * lib/unicase/u16-casexfrm.c: Likewise.
21385         * lib/unicase/u32-casexfrm.c: Likewise.
21386         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
21387         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
21388         * lib/uninorm/u16-normxfrm.c: Likewise.
21389         * lib/uninorm/u32-normxfrm.c: Likewise.
21390         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
21391         memxfrm.
21392         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
21393         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
21394         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
21395         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
21396         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
21397         Suggested by Paul Eggert.
21398
21399 2010-08-14  Bruno Haible  <bruno@clisp.org>
21400
21401         Tests for module 'astrxfrm'.
21402         * modules/astrxfrm-tests: New file.
21403         * tests/test-astrxfrm.c: New file.
21404
21405         New module 'astrxfrm'.
21406         * lib/astrxfrm.h: New file.
21407         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
21408         * modules/astrxfrm: New file.
21409
21410 2010-08-14  Reuben Thomas <rrt@sc3d.org>
21411
21412         regex: Tweak doc.
21413         * doc/regex.texi (Overview): Don't mention regex.c.
21414         (GNU Regular Expression Compiling): Likewise.
21415         (Match-end-of-line Operator): Mention 'not_eol'.
21416
21417 2010-08-14  Brian Gough  <bjg@gnu.org>
21418             Bruno Haible  <bruno@clisp.org>
21419
21420         git-merge-changelog: add doc relating to use with bzr and hg.
21421         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
21422
21423 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
21424
21425         pthread: fix pthread.h creation for srcdir != builddir
21426         * modules/pthread (Makefile.am): Fix the rule to work also in a
21427         non-srcdir build.
21428
21429 2010-08-13  Karl Berry  <karl@gnu.org>
21430
21431         * doc/regex.texi (Predefined Syntaxes): @smallexample.
21432         * doc/posix-*/*: force line break before @url of POSIX
21433         specifications.
21434         Suggested by Werner Lemberg.
21435
21436 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
21437
21438         strtod: fix const diagnostic
21439         * lib/strtod.c (strtod): Don't assign const char * to char *,
21440         as this elicits a warning from GCC when warnings are enabled.
21441
21442 2010-08-10  Pádraig Brady <P@draigbrady.com>
21443         and Eric Blake  <eblake@redhat.com>
21444
21445         copy-acl: ignore ENOTSUP on HP-UX
21446         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
21447         so that it is available for HP-UX.
21448         * lib/copy-acl.c (qcopy_acl): Use it.
21449         Reported by Patrick M. Callahan.
21450
21451 2010-08-10  Eric Blake  <eblake@redhat.com>
21452
21453         open, chown: relax license
21454         * modules/open (License): Change to LGPLv2+, with consent by all
21455         authors, for use in augeas.
21456         * modules/chown (License): Likewise.
21457         * modules/lchown (Likewise): Likewise.
21458         Requested by Adam Stokes.
21459
21460 2010-08-09  Karl Berry  <karl@gnu.org>
21461
21462         * build-aux/ar-lib: new file, import from Automake.
21463         * config/srclist.txt: autocheck for updates.
21464
21465 2010-08-09  Eric Blake  <eblake@redhat.com>
21466
21467         readlinkat: adjust client modules
21468         * modules/areadlinkat (Depends-on): Use readlinkat, not
21469         symlinkat.
21470         * modules/areadlinkat-with-size (Depends-on): Likewise.
21471
21472         mknod: be more vocal about danger of running tests as root
21473         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
21474         root, since that is just asking for problems.
21475         Suggested by Bruno Haible, based on a report by Rainer Tammer.
21476
21477         readlinkat: split into its own module
21478         * modules/symlinkat: Split readlinkat...
21479         * modules/readlinkat: ...into separate module.
21480         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
21481         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
21482         * lib/symlinkat.c (readlinkat): Move...
21483         * lib/readlinkat.c: ...into new file.
21484         * modules/symlinkat-tests: Split readlinkat test...
21485         * modules/readlinkat-tests: ...into separate module.
21486         * tests/test-symlinkat.c: Split...
21487         * tests/test-readlinkat.c: ...into new file.
21488         * NEWS: Document the split.
21489         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
21490         * lib/unistd.in.h (readlinkat): Likewise.
21491         Suggested by Bruno Haible.
21492
21493 2010-08-08  Bruno Haible  <bruno@clisp.org>
21494
21495         memxfrm: Speed up.
21496         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
21497         that usually only one call to strxfrm is necessary for each string
21498         part.
21499         Reported by Paul Eggert <eggert@cs.ucla.edu>.
21500
21501 2010-08-07  Karl Berry  <karl@gnu.org>
21502
21503         * doc/posix-headers/limits.texi,
21504         * doc/posix-functions/malloc.texi,
21505         * doc/posix-functions/strsignal.texi: missing @item.
21506         * doc/ld-version-script.texi: spurious leading i.
21507         * doc/regex.texi (Interval Operators): no commas inside @var.
21508
21509 2010-08-01  Bruno Haible  <bruno@clisp.org>
21510
21511         Integrate the regex documentation.
21512         * doc/gnulib.texi: Define 'cn' index.
21513         (Regular expressions): New a chapter that includes regex.texi and
21514         regexprops-generic.texi.
21515         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
21516         syntax.
21517
21518         Whitespace cleanup.
21519         * doc/regex.texi: Remove trailing spaces.
21520
21521         Add regex documentation.
21522         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
21523         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
21524         Written by Kathy A. Hargreaves and Karl Berry.
21525
21526 2010-08-01  Bruno Haible  <bruno@clisp.org>
21527
21528         link: Update documentation.
21529         * doc/posix-functions/link.texi: Update regarding Solaris.
21530
21531 2010-07-31  Bruno Haible  <bruno@clisp.org>
21532
21533         Update modules list.
21534         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
21535         (String handling <string.h>): Add memcmp2, memxfrm.
21536         (Container data structures): Add xlist, xsublist, xoset.
21537         (Core language properties): Add alignof, unused-parameter.
21538         (Process control, Numeric conversion functions <stdlib.h>): Renamed
21539         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
21540         (Unibyte characters <ctype.h>): New section.
21541         (String handling <string.h>): New section.
21542         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
21543         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
21544         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
21545         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
21546         tan, tanh, tanl, y0, y1, yn.
21547         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
21548         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
21549         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
21550         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
21551         unlockpt, vdprintf, vdprintf-posix.
21552         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
21553         (File system functions): Add concat-filename, sys_file, sys_ioctl,
21554         xconcat-filename.
21555         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
21556         getdtablesize, pipe2, pipe2-safer.
21557         (Security): New section.
21558         (Networking functions): Add accept4.
21559         (Signal handling): Add sigpipe.
21560         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
21561         mbmemcasecoll.
21562         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
21563         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
21564         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
21565         pipe-filter-ii.
21566         (Misc): Add argp-version-etc, login_tty, parse-duration.
21567
21568 2010-07-31  Bruno Haible  <bruno@clisp.org>
21569
21570         Improve doc in MODULES.html.
21571         * modules/linkat (Description): Add the word "function".
21572         * modules/mkfifo (Description): Likewise.
21573         * modules/mknod (Description): Likewise.
21574         * modules/remove (Description): Likewise.
21575         * modules/renameat (Description): Likewise.
21576         * modules/stat (Description): Likewise.
21577         * modules/symlink (Description): Likewise.
21578         * modules/unlink (Description): Likewise.
21579
21580 2010-07-31  Bruno Haible  <bruno@clisp.org>
21581
21582         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
21583         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
21584         option --enable/disable-c++ instead of --enable/disable-cxx.
21585         * NEWS: Mention the change.
21586
21587 2010-07-31  Bruno Haible  <bruno@clisp.org>
21588
21589         readlink, areadlink: Relax test a bit.
21590         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
21591         alternative to ENOTDIR.
21592         * tests/test-areadlink.h (test_areadlink): Likewise.
21593         Reported by Rainer Tammer.
21594
21595 2010-07-31  Bruno Haible  <bruno@clisp.org>
21596
21597         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
21598         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
21599         character, perform the search using U_STRCHR.
21600         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
21601         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
21602         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
21603         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
21604         Suggested by Paolo Bonzini.
21605
21606 2010-07-31  Bruno Haible  <bruno@clisp.org>
21607
21608         unistr/u*-strstr: Fix dependencies.
21609         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
21610         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
21611         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
21612
21613 2010-07-31  Bruno Haible  <bruno@clisp.org>
21614
21615         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
21616         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
21617         the beginning of the loop.
21618         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
21619         cases in 'switch' statement.
21620
21621         unistr/u8-strchr: Fix several bugs.
21622         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
21623         the string. When not found, return NULL, not a pointer near the end.
21624
21625         More tests for unistr/u8-strchr.
21626         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
21627         that the function does not read past the first occurrence of the byte
21628         being searched.
21629         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
21630         * tests/unistr/test-u16-strchr.c (main): New function.
21631         * tests/unistr/test-u32-strchr.c (main): New function.
21632
21633 2010-07-31  Bruno Haible  <bruno@clisp.org>
21634
21635         posix-modules: Ignore backup files of documentation files.
21636         * posix-modules: grep only through files named *.texi.
21637
21638 2010-07-31  Bruno Haible  <bruno@clisp.org>
21639
21640         symlinkat: Fix documentation.
21641         * doc/posix-functions/readlinkat.texi: Fix module name.
21642
21643 2010-07-31  Bruno Haible  <bruno@clisp.org>
21644
21645         fchownat: Replace also when chown has the trailing slash bug.
21646         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
21647         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
21648         introduced on 2010-04-10.
21649         Reported by Rainer Tammer.
21650
21651 2010-07-31  Bruno Haible  <bruno@clisp.org>
21652
21653         linkat: Work around AIX 7.1 bug.
21654         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
21655         whether linkat handles trailing slash correctly. If not, replace linkat
21656         and define LINKAT_TRAILING_SLASH_BUG.
21657         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
21658         check whether (fd1,file1) points to a directory if file1 or file2 ends
21659         in a slash. Code taken from lib/link.c.
21660         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
21661         Reported by Rainer Tammer.
21662
21663 2010-07-31  Bruno Haible  <bruno@clisp.org>
21664
21665         Correctly determine whether pow is available in libc on AIX 7 with xlc.
21666         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
21667         This disables an xlc optimization that was causing wrong test results.
21668         Reported by Rainer Tammer.
21669
21670 2010-07-31  Bruno Haible  <bruno@clisp.org>
21671
21672         iconv: Work around AIX 6.1..7.1 bug.
21673         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
21674         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
21675         cross-compiling, guess no on all versions of AIX.
21676         Reported by Rainer Tammer.
21677
21678 2010-07-31  Bruno Haible  <bruno@clisp.org>
21679
21680         readlink: Relax test a bit.
21681         * tests/test-readlink.h (test_readlink): Allow different errno value
21682         when readlink is called with a file name that ends in / and refers to
21683         a file.
21684         Suggested by Eric Blake.
21685         Reported by Rainer Tammer.
21686
21687 2010-07-31  Bruno Haible  <bruno@clisp.org>
21688
21689         copysign: Does not require -lm on glibc systems.
21690         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
21691         gl_COMMON_DOUBLE_MATHFUNC.
21692         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
21693
21694 2010-07-31  Bruno Haible  <bruno@clisp.org>
21695
21696         duplocale: Work around AIX 7.1 bug.
21697         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
21698         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
21699         * lib/duplocale.c (rpl_duplocale): Update comment.
21700         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
21701         Reported by Rainer Tammer.
21702
21703 2010-07-30  Bruno Haible  <bruno@clisp.org>
21704
21705         dirfd: Avoid link error on AIX 7.1.
21706         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
21707         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
21708         exist, set REPLACE_DIRFD.
21709         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
21710         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
21711         * doc/posix-functions/dirfd.texi: Update.
21712         Reported by Rainer Tammer.
21713
21714 2010-07-30  Eric Blake  <eblake@redhat.com>
21715
21716         strtod: next round of AIX fixes
21717         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
21718         exponent.
21719         * tests/test-strtod.c (main): Enhance tests.
21720         * doc/posix-functions/strtod.texi (strtod): Document next bug.
21721         Reported by Rainer Tammer.
21722
21723         futimens: fix configure check
21724         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
21725         Reported by Bruno Haible.
21726
21727 2010-07-30  Bruno Haible  <bruno@clisp.org>
21728
21729         getline: Update regarding AIX.
21730         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
21731         Reported by Rainer Tammer.
21732
21733 2010-07-30  Bruno Haible  <bruno@clisp.org>
21734
21735         wcwidth: Drop replacement on AIX 7.
21736         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
21737         AIX 7.
21738         Reported by Rainer Tammer.
21739
21740 2010-07-30  Bruno Haible  <bruno@clisp.org>
21741
21742         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
21743         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
21744         a 'char *'.
21745         Reported by Rainer Tammer.
21746
21747 2010-07-30  Bruno Haible  <bruno@clisp.org>
21748
21749         unlink: Update regarding AIX.
21750         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
21751         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
21752         Reported by Rainer Tammer.
21753
21754 2010-07-30  Bruno Haible  <bruno@clisp.org>
21755
21756         symlink: Update regarding AIX.
21757         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
21758         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
21759         Reported by Rainer Tammer.
21760
21761 2010-07-30  Bruno Haible  <bruno@clisp.org>
21762
21763         strndup: Update regarding AIX.
21764         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
21765         AIX 7.
21766         Reported by Rainer Tammer.
21767
21768 2010-07-30  Bruno Haible  <bruno@clisp.org>
21769
21770         stat: Update regarding AIX.
21771         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
21772         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
21773         Reported by Rainer Tammer.
21774
21775 2010-07-30  Bruno Haible  <bruno@clisp.org>
21776
21777         truncl: Fix autoconf test.
21778         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
21779         whether truncl works.
21780         Reported by Rainer Tammer.
21781
21782 2010-07-30  Bruno Haible  <bruno@clisp.org>
21783
21784         round: Update regarding AIX.
21785         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
21786         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
21787         Reported by Rainer Tammer.
21788
21789 2010-07-30  Bruno Haible  <bruno@clisp.org>
21790
21791         rename: Update regarding AIX.
21792         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
21793         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
21794         Reported by Rainer Tammer.
21795
21796 2010-07-30  Bruno Haible  <bruno@clisp.org>
21797
21798         printf.m4: Update regarding AIX.
21799         * m4/printf.m4: Update comments regarding AIX.
21800         Reported by Rainer Tammer.
21801
21802 2010-07-30  Bruno Haible  <bruno@clisp.org>
21803
21804         iconv: Update regarding AIX.
21805         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
21806         AIX 7.
21807         Reported by Rainer Tammer.
21808
21809 2010-07-30  Bruno Haible  <bruno@clisp.org>
21810
21811         getopt: Update regarding AIX.
21812         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
21813         no on AIX.
21814         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
21815         Reported by Rainer Tammer.
21816
21817 2010-07-30  Bruno Haible  <bruno@clisp.org>
21818
21819         ldexpl; Update regarding AIX.
21820         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
21821         on AIX 7.
21822         Reported by Rainer Tammer.
21823
21824 2010-07-30  Bruno Haible  <bruno@clisp.org>
21825
21826         frexpl: Update regarding AIX.
21827         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
21828         on AIX 7.
21829         Reported by Rainer Tammer.
21830
21831 2010-07-30  Bruno Haible  <bruno@clisp.org>
21832
21833         open, fopen: Update regarding AIX.
21834         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
21835         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
21836         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
21837         * doc/posix-functions/fopen.texi: Likewise.
21838         Reported by Rainer Tammer.
21839
21840 2010-07-30  Bruno Haible  <bruno@clisp.org>
21841
21842         chown: Update doc regarding AIX.
21843         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
21844         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
21845         Reported by Rainer Tammer.
21846
21847 2010-07-30  Eric Blake  <eblake@redhat.com>
21848
21849         strtod: fix bug in replacement function on AIX
21850         * lib/strtod.c (strtod): Special case broken "0x" parse in
21851         underlying strtod.
21852         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
21853         * doc/posix-functions/strtod.texi (strtod): Likewise.
21854         Reported by Rainer Tammer.
21855
21856 2010-07-30  Bruno Haible  <bruno@clisp.org>
21857
21858         mbrlen: Fix cross-compilation guess for AIX.
21859         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
21860         guess. Leftover from 2008-12-22.
21861
21862 2010-07-30  Bruno Haible  <bruno@clisp.org>
21863
21864         mbrtowc: Fix cross-compilation guess for AIX.
21865         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
21866         guess. Leftover from 2008-12-21.
21867
21868 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
21869
21870         init.sh: work around trap limitation of some shells
21871         * tests/init.sh (setup_): Move exit trap outside of shell function.
21872
21873 2010-07-29  Eric Blake  <eblake@redhat.com>
21874
21875         strtod: aid debugging
21876         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
21877         understanding why strtod is rejected.
21878
21879 2010-07-28  Bruno Haible  <bruno@clisp.org>
21880
21881         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
21882         * lib/unistr/u8-chr.c: Include <string.h>.
21883         * tests/unistr/test-u8-chr.c: Likewise.
21884         * tests/unistr/test-u16-chr.c: Likewise.
21885         * tests/unistr/test-u32-chr.c: Likewise.
21886         * tests/unistr/test-u8-strchr.c: Likewise.
21887         * tests/unistr/test-u16-strchr.c: Likewise.
21888         * tests/unistr/test-u32-strchr.c: Likewise.
21889         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
21890         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
21891         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
21892         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
21893
21894 2010-07-28  Bruno Haible  <bruno@clisp.org>
21895
21896         Use spaces for indentation, not tabs.
21897         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
21898
21899 2010-07-27  Bruno Haible  <bruno@clisp.org>
21900
21901         mbspcasecmp: Fix function specification.
21902         * lib/string.in.h (mbspcasecmp): Fix specification comment.
21903         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
21904         Reported by Eric Blake <eblake@redhat.com>.
21905
21906 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
21907
21908         timespec: use cast and not conditional, as truncation isn't possible
21909         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
21910         instead of a conditional.  Comment about the situation in more detail.
21911         This undoes most of the 2009-10-29 patch.
21912
21913 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
21914
21915         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
21916         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
21917         * lib/unistr/u8-strchr.c: Likewise.
21918         * modules/unistr/u8-chr: Depend on memchr.
21919
21920         unistr/u*-strchr: add tests
21921         * modules/unistr/u8-strchr-tests: New file.
21922         * modules/unistr/u16-strchr-tests: New file.
21923         * modules/unistr/u32-strchr-tests: New file.
21924         * tests/unistr/test-strchr.h: New file.
21925         * tests/unistr/test-u8-strchr.c: New file.
21926         * tests/unistr/test-u16-strchr.c: New file.
21927         * tests/unistr/test-u32-strchr.c: New file.
21928
21929         unistr/u*-chr: test multibyte sequences more
21930         * tests/unistr/test-chr.h: Do complete testing of the characters in the
21931         test vector.
21932         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
21933         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
21934         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
21935
21936         unistr/u*-chr: test multibyte sequences
21937         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
21938
21939         unistr/u*-chr: prepare for multibyte tests
21940         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
21941         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
21942         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
21943         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
21944         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
21945         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
21946
21947 2010-07-18  Bruno Haible  <bruno@clisp.org>
21948
21949         unistr/u8-strchr: Optimize non-ASCII argument case.
21950         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
21951         because the first byte often matches anyway.
21952         Reported by Pádraig Brady <P@draigbrady.com>.
21953
21954 2010-07-15  Karl Berry  <karl@gnu.org>
21955
21956         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
21957
21958 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
21959
21960         getcwd: on Solaris, work better if ancestors are inaccessible
21961         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
21962         buffer and size, try again with a large buffer.  This works better
21963         on Solaris, since its getcwd succeeds even if the path to the root
21964         is inaccessible, and this is helpful in common cases such as .zfs
21965         hidden directories.  Problem reported by J Chapman Flack in
21966         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
21967         Use system getcwd if it's declared, not merely if it's partly
21968         working; use the partly-working test only to avoid needless effort
21969         if the system getcwd fails.
21970         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
21971         comment that was already obsolete and is now even more obsolete.
21972         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
21973         now might call strdup.
21974
21975 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
21976
21977         pthread: Add enough so that coreutils/src/sort.c compiles.
21978         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
21979         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
21980         gnulib. Include <sched.h> and <time.h>, as per POSIX.
21981         Include <sys/types.h>, in case it defines pthread_t.
21982         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
21983         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
21984         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
21985         (pthread_rwlockattr_t, pthread_spinlock_t):
21986         New typedefs, if HAVE_PTHREAD_T is not defined.
21987         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
21988         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
21989         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
21990         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
21991         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
21992         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
21993         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
21994         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
21995         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
21996         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
21997         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
21998         New macros.
21999         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
22000         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
22001         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
22002         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
22003         (pthread_spin_unlock): New dummy functions.
22004         (pthread_create): Return EAGAIN; don't set errno.
22005         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
22006         require AC_C_INLINE.
22007         * modules/pthread (Depends-on): Add sched, time.
22008         (pthread.h): Use AM_V_GEN.
22009
22010 2010-07-13  Bruno Haible  <bruno@clisp.org>
22011
22012         striconveh: Don't malloc memory if the result buffer is sufficient.
22013         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
22014         buffer if its size is sufficient.
22015         Reported by Ludovic Courtès <ludo@gnu.org>.
22016
22017 2010-07-13  Bruno Haible  <bruno@clisp.org>
22018
22019         strtod: Add safety check.
22020         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
22021
22022 2010-07-12  Bruno Haible  <bruno@clisp.org>
22023
22024         Unify tests that set gl_cv_func_ldexpl_no_libm.
22025         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
22026         gl_FUNC_LDEXPL.
22027         (gl_FUNC_LDEXPL): Invoke it.
22028         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
22029
22030 2010-07-12  Bruno Haible  <bruno@clisp.org>
22031
22032         Unify tests that set gl_cv_func_ldexp_no_libm.
22033         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
22034         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
22035         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
22036         (configure.ac): Simply invoke gl_FUNC_LDEXP.
22037         * modules/strtod (Files): Add m4/ldexp.m4.
22038
22039 2010-07-12  Bruno Haible  <bruno@clisp.org>
22040
22041         Unify tests that set gl_cv_func_frexpl_no_libm.
22042         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
22043         gl_FUNC_FREXPL_NO_LIBM.
22044         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
22045         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
22046
22047 2010-07-12  Bruno Haible  <bruno@clisp.org>
22048
22049         Unify tests that set gl_cv_func_frexp_no_libm.
22050         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
22051         gl_FUNC_FREXP_NO_LIBM.
22052         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
22053         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
22054
22055 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
22056
22057         memcoll: clarify sizes versus lengths, document better, and tweak perf
22058         * lib/memcoll.c (strcoll_loop, memcoll0):
22059         Improve quality of descriptive comments.  Name variables
22060         consistently as to whether they are lengths (which do not include
22061         terminating null) versus sizes (which do).
22062         * lib/xmemcoll.c (xmemcoll0): Likewise.
22063         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
22064         returned when s1size == 0; this is easier to compile and saves
22065         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
22066
22067 2010-07-12  Bruno Haible  <bruno@clisp.org>
22068
22069         Tests for module '_Exit'.
22070         * modules/_Exit-tests: New file.
22071         * tests/test-_Exit.sh: New file.
22072         * tests/test-_Exit.c: New file.
22073
22074         New module '_Exit'.
22075         * lib/stdlib.in.h (__attribute__): New macro.
22076         (_Exit): New declaration.
22077         * lib/_Exit.c: New file.
22078         * m4/_Exit.m4: New file.
22079         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
22080         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
22081         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
22082         * modules/_Exit: New file.
22083         * tests/test-stdlib-c++.cc (_Exit): Check signature.
22084         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
22085
22086 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
22087
22088         strtod: make it more-accurate typically, and don't require libm
22089         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
22090         Include limits.h.  Don't include string.h.
22091         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
22092         (locale_isspace): New function, so that no casts are needed to
22093         check whether *s is a space.
22094         (ldexp): Provide an unused dummy if not available.
22095         (scale_radix_exp, parse_number, underlying_strtod): New functions.
22096         (strtod): Use them.  This implementation prefers to use the
22097         underlying strtod if available, falling back on our own code
22098         only to fix known bugs.  This is more likely to produce an
22099         accurate result.  Also, it avoids the use of libm functions.
22100         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
22101         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
22102         was absent, but it caused a test failure with coreutils.
22103         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
22104         with libm.
22105         * modules/strtod (Makefile.am, Link): libm is no longer needed.
22106         * modules/strtod-tests (Makefile.am): Likewise.
22107
22108 2010-07-11  Pádraig Brady  <P@draigBrady.com>
22109             Bruno Haible  <bruno@clisp.org>
22110
22111         unistr/u8-strchr: Optimize ASCII argument case.
22112         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
22113
22114 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
22115
22116         (x)memcoll: minor tweaks
22117         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
22118         is after the type that it qualifies.
22119         (memcoll0): Likewise.
22120         * lib/memcoll.h (memcoll0): Likewise.
22121         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
22122         * lib/xmemcoll.h (xmemcoll0): Likewise.
22123         * lib/memcoll.c (memcoll0): Correct the comment.  This function
22124         differs from memcoll in that the NUL byte is part of the argument.
22125         Omit the abort-checks, as performance is a real issue here.  Plus,
22126         the checks were wrong anyway (an off-by-one error).  Omit local
22127         variable 'diff', as it's a bit clearer that way.
22128         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
22129         no longer needed.
22130
22131 2010-07-08  Chen Guo <chenguo4@yahoo.com>
22132
22133         (x)memcoll: speedup when input is known to be NUL delimited
22134         * lib/memcoll.c: Include stdlib.
22135         (memcoll0): New function.
22136         (strcoll_loop): New function, refactored for use in both memcoll
22137         and memcoll0.
22138         * lib/memcoll.h (memcoll0): Add prototype.
22139         * lib/xmemcoll.c (xmemcoll0): New function.
22140         (collate_error): New function, refactored for use in both xmemcoll
22141         and xmemcoll0.
22142         * lib/xmemcoll.h (xmemcoll0): Add prototype.
22143         * m4/memcoll.m4: add inline invocation.
22144
22145 2010-07-06  Pádraig Brady  <P@draigBrady.com>
22146
22147         * build-aux/bootstrap: Remove any local translations
22148         from the translation project synchronization directory,
22149         so that local only translations are not distributed.
22150
22151 2010-07-04  Bruno Haible  <bruno@clisp.org>
22152
22153         fsusage: Clarify which code applies to which platforms.
22154         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
22155         platform.
22156         * lib/fsusage.c (get_fs_usage): Likewise.
22157
22158 2010-07-04  Bruno Haible  <bruno@clisp.org>
22159
22160         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
22161         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
22162         Reported by Martin Lambers <marlam@marlam.de>.
22163
22164 2010-07-04  Jim Meyering  <meyering@redhat.com>
22165
22166         hash: once again explicitly disallow insertion of NULL
22167         * lib/hash.c (hash_insert0): Reinstate just-removed test:
22168         inserting a NULL pointer cannot work with these functions.
22169         Add a comment with details.
22170         This reverts part of the 2010-07-01 commit, 5bef1a35
22171         "hash: extend module to deal with non-pointer keys".
22172
22173 2010-07-01  Bruno Haible  <bruno@clisp.org>
22174
22175         stdbool: Update doc.
22176         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
22177         Info from Christian Weisgerber <naddy@mips.inka.de>.
22178
22179 2010-07-01  Jim Meyering  <meyering@redhat.com>
22180
22181         hash: extend module to deal with non-pointer keys
22182         * lib/hash.c (hash_insert0): New interface, much like hash_insert
22183         but that allows insertion of non-pointer entries.
22184         Do not disallow an ENTRY value of NULL.
22185         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
22186         * lib/hash.h (hash_insert0): Declare.
22187
22188 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
22189
22190         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
22191         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
22192         not present (i.e. with autoconf 2.59 and when using gettextize, not
22193         gnulib), require AC_GNU_SOURCE instead.
22194
22195 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
22196
22197         idpriv-drop: Fix tests.
22198         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
22199         not to the test-idpriv-droptemp program.
22200
22201 2010-06-29  Bruno Haible  <bruno@clisp.org>
22202
22203         string: Fix syntax error with g++ 2.96.
22204         * lib/string.in.h (__pure__): Remove definition.
22205         (_GL_ATTRIBUTE_PURE): New macro.
22206         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
22207         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
22208         Reported by Christian Weisgerber <naddy@mips.inka.de>.
22209
22210 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
22211
22212         unitypes: Fix bug introduced on 2010-05-18.
22213         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
22214
22215 2010-06-22  Eric Blake  <eblake@redhat.com>
22216
22217         memmem: slight optimization
22218         * lib/str-two-way.h (critical_factorization): Update comments.
22219         Reduce work during factorization phase.
22220         Reported by Carlos Bueno <carlos@bueno.org>.
22221
22222 2010-06-21  Bruno Haible  <bruno@clisp.org>
22223
22224         Fix HAVE_CALLOC_POSIX misnomer.
22225         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
22226         !HAVE_CALLOC_POSIX.
22227         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
22228         HAVE_CALLOC_POSIX.
22229         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
22230         instead of HAVE_CALLOC_POSIX.
22231         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
22232         HAVE_CALLOC_POSIX.
22233
22234         Use modern idiom for calloc() replacement.
22235         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
22236         AC_FUNC_CALLOC.
22237         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
22238         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
22239         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22240         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
22241         (gl_REPLACE_CALLOC): New macro.
22242
22243 2010-06-21  Bruno Haible  <bruno@clisp.org>
22244
22245         Fix HAVE_REALLOC_POSIX misnomer.
22246         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
22247         !HAVE_REALLOC_POSIX.
22248         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
22249         HAVE_REALLOC_POSIX.
22250         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
22251         instead of HAVE_REALLOC_POSIX.
22252         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
22253         HAVE_REALLOC_POSIX.
22254
22255         Use modern idiom for realloc() replacement.
22256         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
22257         AC_FUNC_REALLOC.
22258         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
22259         Autoconf's AC_FUNC_REALLOC.
22260         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22261         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
22262         (gl_REPLACE_REALLOC): New macro.
22263         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
22264
22265 2010-06-21  Bruno Haible  <bruno@clisp.org>
22266
22267         Fix HAVE_MALLOC_POSIX misnomer.
22268         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
22269         !HAVE_MALLOC_POSIX.
22270         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
22271         HAVE_MALLOC_POSIX.
22272         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
22273         instead of HAVE_MALLOC_POSIX.
22274         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
22275         HAVE_MALLOC_POSIX.
22276
22277         Use modern idiom for malloc() replacement.
22278         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
22279         AC_FUNC_MALLOC.
22280         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
22281         Autoconf's AC_FUNC_MALLOC.
22282         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22283         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
22284         (gl_REPLACE_MALLOC): New macro.
22285         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
22286
22287 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
22288
22289         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
22290         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
22291         This macro takes 3 arguments, not 4.
22292
22293 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
22294
22295         ipv6: fix detection under mingw
22296         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
22297         in6_addr.
22298
22299 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
22300
22301         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
22302         that strtod() works when cross-compiling to a glibc version known
22303         to work.
22304
22305 2010-06-15  Bruno Haible  <bruno@clisp.org>
22306
22307         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
22308
22309 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
22310
22311         select: Correct timeout.
22312         * lib/select.c (rpl_select): Compute wait_timeout correctly.
22313
22314 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
22315
22316         git-version-gen: init shell var to avoid env var influence
22317         * build-aux/git-version-gen (v): Init shell var to empty.
22318
22319 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
22320
22321         priv-set: Don't assume that priv.h exists merely because getppriv does.
22322         See Jan Andersen's bug report about AIX 5L in
22323         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
22324         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
22325         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
22326         * lib/priv-set.h: Likewise.
22327         * tests/test-priv-set.c: Likewise.
22328
22329 2010-06-13  Bruno Haible  <bruno@clisp.org>
22330
22331         relocatable: Make it easier to test whether to install wrappers.
22332         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
22333         RELOCATABLE_VIA_WRAPPER.
22334
22335 2010-06-13  Bruno Haible  <bruno@clisp.org>
22336
22337         gnulib-tool: Display specified modules and dependencies differently.
22338         * gnulib-tool (func_show_module_list): New function.
22339         (func_import, func_create_testdir): Invoke it.
22340         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
22341
22342 2010-06-13  Bruno Haible  <bruno@clisp.org>
22343
22344         gnulib-tool: Align code of func_import and func_create_testdir.
22345         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
22346         specified_modules.
22347
22348 2010-06-12  Jim Meyering  <meyering@redhat.com>
22349
22350         test-inttostr: avoid spurious failure on Solaris 9
22351         * tests/test-inttostr.c (main): Skip the test when snprintf fails
22352         to accept "%ju".  Reported by Bruno Haible.
22353
22354 2010-06-11  Jim Meyering  <meyering@redhat.com>
22355
22356         test-sys_socket: mark variables as used more readably
22357         * tests/test-sys_socket.c (main): Mark otherwise unused variables
22358         as "used" explicitly via (void) statement casts.  This is more
22359         readable than using them in an artificial return expression.
22360         Suggestion from Bruno Haible.
22361
22362 2010-06-11  Bruno Haible  <bruno@clisp.org>
22363
22364         Avoid some more warnings from "gcc -Wwrite-strings".
22365         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
22366         to 'const char *'.
22367         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
22368         * tests/test-c-strcasestr.c (main): Likewise.
22369         * tests/test-mbscasestr1.c (main): Likewise.
22370         * tests/test-mbscasestr2.c (main): Likewise.
22371         * tests/test-memmem.c (main): Likewise.
22372         * tests/test-strstr.c (main): Likewise.
22373         * tests/test-strcasestr.c (main): Likewise.
22374
22375 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22376
22377         init.sh: change framework_failure_ to fail with status 99, not 1
22378         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
22379         automake's parallel-tests rule that this is an unexpected failure,
22380         even if the test is listed in XFAIL_TESTS.
22381
22382 2010-06-11  Jim Meyering  <meyering@redhat.com>
22383
22384         test-inttostr: avoid warnings about 4-6KB literal strings
22385         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
22386         Include "macros.h", for its definition of ASSERT.
22387         (CK): s/assert/ASSERT/
22388         * modules/inttostr-tests (Files): Add macros.h.
22389
22390         init.sh: don't use $ME_ or skip_ before they are defined
22391         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
22392         their first uses.  Also hoist their companions: warn_, fail_,
22393         framework_failure_, $stderr_fileno.  Prompted by a patch from
22394         Stefano Lattarini.
22395
22396         test-sys_socket: avoid set-but-not-used warnings from gcc
22397         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
22398         avoid warning about set-but-not-used variables.
22399
22400         test-xvasprintf: avoid 'const' discard warnings
22401         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
22402         "const" when assigning from literal strings.
22403         (test_xasprintf): Add "void" in function argument list to placate
22404         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
22405
22406         tests: avoid compilation warnings in argmatch and exclude tests...
22407         in packages that define ARGMATCH_DIE_DECL, like coreutils.
22408         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
22409         Since it always exits, declare with the "noreturn" attribute.
22410         * tests/test-argmatch.c: Likewise.
22411
22412         tests: avoid 'const' discard warnings in mbsstr tests
22413         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
22414         * tests/test-mbsstr2.c (main): Likewise.
22415
22416         test-verify: avoid warning from gcc's -Wmissing-declarations
22417         * tests/test-verify.c (function): Declare to be static.
22418
22419         test-inttostr.c: include <string.h> for use of strcmp
22420         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
22421
22422         test-linkat: avoid failed assertion on "other" architectures
22423         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
22424         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
22425         sparc: https://bugs.launchpad.net/bugs/591968
22426
22427 2010-06-11  Jim Meyering  <meyering@redhat.com>
22428
22429         printf.m4: avoid autoconf's "Expanded Before Required" warning
22430         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
22431         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
22432         autoconf warning.
22433
22434 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
22435
22436         Replacement header templates are now named with ".in", not "_".
22437         * doc/gnulib-intro.texi: Correct.
22438
22439 2010-06-10  Jim Meyering  <meyering@redhat.com>
22440
22441         inttostr-tests: depend on snprintf, not snprintf-posix
22442         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
22443         snprintf-posix, to avoid this aclocal failure:
22444           missing file gnulib-tests/vasnprintf.c
22445           configure.ac:45: error: expected source file, required through \
22446           AC_LIBSOURCES, not found
22447
22448 2010-06-10  Jim Meyering  <meyering@redhat.com>
22449
22450         inttostr: add a new function, inttostr, and tests
22451         The namesake function was not available.  The existence of the
22452         template file, inttostr.c makes its addition nontrivial.
22453         * lib/anytostr.c: Rename from inttostr.c.
22454         (anytostr): Rename from inttostr.
22455         * lib/inttostr.c: New file.
22456         * modules/inttostr (Files): Add anytostr.c.
22457         (Makefile.am): Set lib_SOURCES instead of ...
22458         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
22459         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
22460         * lib/offtostr.c: Likewise.
22461         * lib/uinttostr.c: Likewise.
22462         * lib/umaxtostr.c: Likewise.
22463         * modules/inttostr-tests: New file.
22464         * tests/test-inttostr.c: New file.  Test these functions.
22465
22466 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
22467             Bruno Haible  <bruno@clisp.org>
22468
22469         Add "Extending Gnulib" chapter to manual.
22470         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
22471         chapter.
22472         (Extending Gnulib): New chapter.
22473         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
22474         chapter.
22475
22476 2010-06-09  Bruno Haible  <bruno@clisp.org>
22477
22478         Avoid relocwrapper link errors due to gnulib replacement functions.
22479         * lib/areadlink.c: Use the system's malloc, realloc functions.
22480         (areadlink): Set errno to ENOMEM explicitly.
22481         * modules/areadlink (Depends-on): Remove malloc-posix.
22482         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22483
22484 2010-06-09  Bruno Haible  <bruno@clisp.org>
22485
22486         Avoid relocwrapper link errors due to gnulib replacement functions.
22487         * lib/canonicalize-lgpl.c: Use the system's malloc function.
22488         * lib/malloca.c: Likewise.
22489         * lib/relocatable.c: Likewise.
22490         * lib/progreloc.c: Use the system's malloc, sprintf functions.
22491         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
22492         * lib/setenv.c: Use the system's malloc, realloc functions.
22493         * lib/strerror.c: Use the system's sprintf function.
22494         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22495
22496 2010-06-04  Bruno Haible  <bruno@clisp.org>
22497
22498         Prefer documented low-level autoconf macro names.
22499         * m4/lib-link.m4: Use m4_translit instead of translit.
22500         * m4/environ.m4: Likewise.
22501         * m4/mathfunc.m4: Likewise.
22502         * m4/onceonly.m4: Likewise.
22503         * m4/stdint.m4: Likewise.
22504         Suggested by Eric Blake.
22505
22506 2010-06-04  Martin Lambers  <marlam@marlam.de>
22507             Bruno Haible  <bruno@clisp.org>
22508
22509         havelib: Allow library names with '+' characters.
22510         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
22511         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
22512
22513 2010-06-09  Bruno Haible  <bruno@clisp.org>
22514
22515         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
22516         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
22517         realloc failed.
22518
22519 2010-06-08  Peter Simons  <simons@cryp.to>
22520
22521         maint.mk: make the news-check rule more configurable
22522         * top/maint.mk (news-check-lines-spec): New variable.
22523         (news-check): Use "sed -n 1,10p" in place of "head".
22524
22525 2010-06-07  Jim Meyering  <meyering@redhat.com>
22526
22527         do-release-commit-and-tag: fix typo in --help
22528         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
22529
22530         regex: avoid new dead-code warning with gcc-4.6.0
22531         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
22532         if-block containing a while-loop.  It's been unused for at least
22533         5 years.
22534
22535 2010-06-05  Bruno Haible  <bruno@clisp.org>
22536
22537         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
22538         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
22539
22540 2010-06-04  Bruno Haible  <bruno@clisp.org>
22541
22542         Update to GNU gettext 0.18.1.
22543         * modules/gettext (configure.ac): Require gettext infrastructure from
22544         version 0.18.1.
22545
22546 2010-06-03  Bruno Haible  <bruno@clisp.org>
22547
22548         Don't use AC_LIBOBJ with file names in subdirectories.
22549         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
22550         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
22551         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
22552         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
22553         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
22554         gl_LIBUNISTRING_LIBSOURCE.
22555         (Makefile.am): Augment lib_SOURCES here, conditionally.
22556         * NEWS: Drop requirement for Automake option 'subdir-objects'.
22557
22558 2010-06-03  Bruno Haible  <bruno@clisp.org>
22559
22560         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
22561         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
22562         expansion does not end with a newline.
22563         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
22564         unnecessary newline.
22565
22566 2010-06-03  Bruno Haible  <bruno@clisp.org>
22567
22568         Reduce dependencies.
22569         * tests/test-quotearg.h: New file, extracted from
22570         tests/test-quotearg.c.
22571         * tests/test-quotearg-simple.c: New file, extracted from
22572         tests/test-quotearg.c.
22573         * tests/test-quotearg.c: Don't include <ctype.h>.
22574         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
22575         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
22576         use_quote_double_quotes, use_quotearg_colon): Moved to
22577         tests/test-quotearg.h.
22578         (results_g, flag_results, custom_quotes, custom_results): Moved
22579         to tests/test-quotearg-simple.c.
22580         (main): Moved the part that does not depend on gettext to
22581         tests/test-quotearg-simple.c. Return 77 if the test cannot be
22582         performed.
22583         * modules/quotearg-simple: New file.
22584         * modules/quotearg-simple-tests: New file.
22585         * modules/quotearg (Depends-on): Add quotearg-simple.
22586         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
22587         (Files): Add tests/test-quotearg.h.
22588         Reported by Paolo Bonzini.
22589
22590 2010-06-03  Bruno Haible  <bruno@clisp.org>
22591
22592         Reduce dependencies.
22593         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
22594
22595 2010-06-03  Bruno Haible  <bruno@clisp.org>
22596
22597         time: Undefine more broken macros.
22598         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
22599         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
22600         Reported by Eric Blake.
22601
22602 2010-06-03  Bruno Haible  <bruno@clisp.org>
22603
22604         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
22605         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
22606         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
22607         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
22608         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
22609         Reported by Ludovic Courtès <ludo@gnu.org>.
22610
22611 2010-06-02  Eric Blake  <eblake@redhat.com>
22612
22613         time: work with mingw + pthreads-win32 library
22614         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
22615         if timespec is defined only in pthread.h.
22616         * modules/time (Makefile.am): Substitute it.
22617         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
22618         <pthread.h>, when needed.
22619         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
22620         from the library.
22621
22622 2010-05-31  Bruno Haible  <bruno@clisp.org>
22623
22624         Avoid expanding two macros in the wrong order.
22625         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
22626         gl_LIBUNISTRING if it is defined.
22627         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
22628         autoconf >= 2.64.
22629         Reported by Ludovic Courtès <ludo@gnu.org>.
22630
22631 2010-05-27  Jim Meyering  <meyering@redhat.com>
22632
22633         maint.mk: also prohibit "#undef" of always-defined symbols
22634         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
22635         Allow more than one space before the symbol name.
22636         (sc_prohibit_always-defined_macros): Use grep's -E, now that
22637         the regexp uses alternation.
22638
22639 2010-05-26  Eric Blake  <eblake@redhat.com>
22640
22641         maint.mk: avoid echo -e
22642         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
22643         Convert all uses of echo -* to printf.
22644         Reported by Matthias Bolte.
22645
22646 2010-05-25  Bruno Haible  <bruno@clisp.org>
22647
22648         Update to GNU gettext 0.18, part 2.
22649         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
22650         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
22651
22652 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22653
22654         Add missing include in test-pwrite.c.
22655         * tests/test-pwrite.c: Include string.h, for strcmp.
22656
22657 2010-05-24  Bruno Haible  <bruno@clisp.org>
22658
22659         * NEWS: Mention requirement for Automake option 'subdir-objects'.
22660
22661 2010-05-24  Bruno Haible  <bruno@clisp.org>
22662
22663         Don't use conversion with transliteration in u{8,16,32}_strcoll.
22664         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
22665         iconveh_error argument.
22666         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
22667         U_STRCONV_TO_LOCALE.
22668         * lib/unistr/u16-strcoll.c: Likewise.
22669         * lib/unistr/u32-strcoll.c: Likewise.
22670         * modules/unistr/u8-strcoll (Depends-on): Add
22671         uniconv/u8-strconv-to-enc, localcharset. Remove
22672         uniconv/u8-strconv-to-locale.
22673         (configure.ac): Bump version number.
22674         * modules/unistr/u16-strcoll (Depends-on): Add
22675         uniconv/u16-strconv-to-enc, localcharset. Remove
22676         uniconv/u16-strconv-to-locale.
22677         (configure.ac): Bump version number.
22678         * modules/unistr/u32-strcoll (Depends-on): Add
22679         uniconv/u32-strconv-to-enc, localcharset. Remove
22680         uniconv/u32-strconv-to-locale.
22681         (configure.ac): Bump version number.
22682
22683 2010-05-24  Bruno Haible  <bruno@clisp.org>
22684
22685         Avoid a test failure on NetBSD 5.0.
22686         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
22687         an iconv() bug.
22688
22689 2010-05-24  Bruno Haible  <bruno@clisp.org>
22690
22691         Adjust #include directive style.
22692         * modules/regex (Includes): Recommend to write <regex.h>.
22693
22694 2010-05-24  Bruno Haible  <bruno@clisp.org>
22695
22696         regex: Don't require alloca.
22697         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
22698         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
22699         only inside if (0).
22700
22701 2010-05-23  Jim Meyering  <meyering@redhat.com>
22702
22703         test-renameat.c: include <sys/stat.h>
22704         * tests/test-renameat.c: Include <sys/stat.h>; required for
22705         definition of S_IS* macros.
22706
22707 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
22708
22709         Update maintainer documentation for 'relocatable-prog' module.
22710         * doc/relocatable-maint.texi: Update.
22711         Comments by Bruno Haible.
22712
22713 2010-05-23  Bruno Haible  <bruno@clisp.org>
22714
22715         git-merge-changelog: Enable --split-merged-entry by default.
22716         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
22717         (usage): Don't mention this option any more.
22718         Reported by Ralf Wildenhues.
22719
22720 2010-05-23  Jim Meyering  <meyering@redhat.com>
22721
22722         test-pwrite: do not leave behind a test file named "out"
22723         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
22724         The trivial-looking use of init.sh is really necessary.
22725         It ensures that the temporary file, "out", is created in
22726         a temporary directory, and removed upon termination.
22727         * tests/test-pwrite.sh: Re-add file.
22728         * modules/pwrite-tests: Reference it.
22729
22730 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22731
22732         Fix output redirection buglet in init.sh.
22733         * tests/init.sh: Fix redirection of stderr.
22734
22735 2010-05-20  Simon Josefsson  <simon@josefsson.org>
22736
22737         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
22738
22739 2010-05-17  Simon Josefsson  <simon@josefsson.org>
22740
22741         * modules/valgrind-tests: New file.
22742         * m4/valgrind-tests.m4: New file.
22743         * doc/valgrind-tests.texi: New file.
22744         * doc/gnulib.texi (Running self-tests under valgrind): New
22745         section.
22746
22747 2010-05-19  Bruno Haible  <bruno@clisp.org>
22748
22749         Clean up dead code in recent commit.
22750         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
22751         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
22752         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
22753         Suggested by Paolo Bonzini.
22754
22755 2010-05-19  Bruno Haible  <bruno@clisp.org>
22756
22757         Avoid valgrind error reports from libunistring.
22758         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
22759         * modules/libunistring (Files): Add it.
22760         * modules/libunistring-optional (Files): Likewise.
22761
22762 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
22763             Bruno Haible  <bruno@clisp.org>
22764
22765         New module 'libunistring-optional'.
22766         * modules/libunistring-optional: New file.
22767         * m4/libunistring-base.m4: New file.
22768         * m4/libunistring-optional.m4: New file.
22769         * lib/unicase.in.h: Renamed from lib/unicase.h.
22770         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
22771         * lib/unictype.in.h: Renamed from lib/unictype.h.
22772         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
22773         * lib/uniname.in.h: Renamed from lib/uniname.h.
22774         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
22775         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
22776         * lib/unistr.in.h: Renamed from lib/unistr.h.
22777         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
22778         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
22779         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
22780         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
22781         gl_LIBUNISTRING. If the library was found, determine the installed
22782         version and set LIBUNISTRING_VERSION.
22783         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
22784         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
22785         handle a configuration option --with-included-libunistring.
22786         * modules/libunistring (Files): Add m4/absolute-header.m4.
22787         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
22788         Add m4/libunistring-base.m4.
22789         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22790         (Makefile.am): Build unicase.h from unicase.in.h.
22791         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
22792         Add m4/libunistring-base.m4.
22793         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22794         (Makefile.am): Build uniconv.h from uniconv.in.h.
22795         * modules/unictype/base (Files): Use unictype.in.h instead of
22796         unictype.h. Add m4/libunistring-base.m4.
22797         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22798         (Makefile.am): Build unictype.h from unictype.in.h.
22799         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
22800         Add m4/libunistring-base.m4.
22801         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22802         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
22803         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
22804         Add m4/libunistring-base.m4.
22805         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22806         (Makefile.am): Build uniname.h from uniname.in.h.
22807         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
22808         Add m4/libunistring-base.m4.
22809         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22810         (Makefile.am): Build uninorm.h from uninorm.in.h.
22811         * modules/unistdio/base (Files): Use unistdio.in.h instead of
22812         unistdio.h. Add m4/libunistring-base.m4.
22813         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22814         (Makefile.am): Build unistdio.h from unistdio.in.h.
22815         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
22816         Add m4/libunistring-base.m4.
22817         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22818         (Makefile.am): Build unistr.h from unistr.in.h.
22819         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
22820         Add m4/libunistring-base.m4.
22821         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22822         (Makefile.am): Build unitypes.h from unitypes.in.h.
22823         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
22824         Add m4/libunistring-base.m4.
22825         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22826         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
22827         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
22828         uniwidth.h. Add m4/libunistring-base.m4.
22829         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22830         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
22831         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
22832         instead of augmenting lib_SOURCES.
22833         * modules/unicase/empty-suffix-context: Likewise.
22834         * modules/unicase/locale-language: Likewise.
22835         * modules/unicase/tolower: Likewise.
22836         * modules/unicase/totitle: Likewise.
22837         * modules/unicase/toupper: Likewise.
22838         * modules/unicase/u8-casecmp: Likewise.
22839         * modules/unicase/u8-casecoll: Likewise.
22840         * modules/unicase/u8-casefold: Likewise.
22841         * modules/unicase/u8-casexfrm: Likewise.
22842         * modules/unicase/u8-ct-casefold: Likewise.
22843         * modules/unicase/u8-ct-tolower: Likewise.
22844         * modules/unicase/u8-ct-totitle: Likewise.
22845         * modules/unicase/u8-ct-toupper: Likewise.
22846         * modules/unicase/u8-is-cased: Likewise.
22847         * modules/unicase/u8-is-casefolded: Likewise.
22848         * modules/unicase/u8-is-lowercase: Likewise.
22849         * modules/unicase/u8-is-titlecase: Likewise.
22850         * modules/unicase/u8-is-uppercase: Likewise.
22851         * modules/unicase/u8-prefix-context: Likewise.
22852         * modules/unicase/u8-suffix-context: Likewise.
22853         * modules/unicase/u8-tolower: Likewise.
22854         * modules/unicase/u8-totitle: Likewise.
22855         * modules/unicase/u8-toupper: Likewise.
22856         * modules/unicase/u16-casecmp: Likewise.
22857         * modules/unicase/u16-casecoll: Likewise.
22858         * modules/unicase/u16-casefold: Likewise.
22859         * modules/unicase/u16-casexfrm: Likewise.
22860         * modules/unicase/u16-ct-casefold: Likewise.
22861         * modules/unicase/u16-ct-tolower: Likewise.
22862         * modules/unicase/u16-ct-totitle: Likewise.
22863         * modules/unicase/u16-ct-toupper: Likewise.
22864         * modules/unicase/u16-is-cased: Likewise.
22865         * modules/unicase/u16-is-casefolded: Likewise.
22866         * modules/unicase/u16-is-lowercase: Likewise.
22867         * modules/unicase/u16-is-titlecase: Likewise.
22868         * modules/unicase/u16-is-uppercase: Likewise.
22869         * modules/unicase/u16-prefix-context: Likewise.
22870         * modules/unicase/u16-suffix-context: Likewise.
22871         * modules/unicase/u16-tolower: Likewise.
22872         * modules/unicase/u16-totitle: Likewise.
22873         * modules/unicase/u16-toupper: Likewise.
22874         * modules/unicase/u32-casecmp: Likewise.
22875         * modules/unicase/u32-casecoll: Likewise.
22876         * modules/unicase/u32-casefold: Likewise.
22877         * modules/unicase/u32-casexfrm: Likewise.
22878         * modules/unicase/u32-ct-casefold: Likewise.
22879         * modules/unicase/u32-ct-tolower: Likewise.
22880         * modules/unicase/u32-ct-totitle: Likewise.
22881         * modules/unicase/u32-ct-toupper: Likewise.
22882         * modules/unicase/u32-is-cased: Likewise.
22883         * modules/unicase/u32-is-casefolded: Likewise.
22884         * modules/unicase/u32-is-lowercase: Likewise.
22885         * modules/unicase/u32-is-titlecase: Likewise.
22886         * modules/unicase/u32-is-uppercase: Likewise.
22887         * modules/unicase/u32-prefix-context: Likewise.
22888         * modules/unicase/u32-suffix-context: Likewise.
22889         * modules/unicase/u32-tolower: Likewise.
22890         * modules/unicase/u32-totitle: Likewise.
22891         * modules/unicase/u32-toupper: Likewise.
22892         * modules/unicase/ulc-casecmp: Likewise.
22893         * modules/unicase/ulc-casecoll: Likewise.
22894         * modules/unicase/ulc-casexfrm: Likewise.
22895         * modules/uniconv/u8-conv-from-enc: Likewise.
22896         * modules/uniconv/u8-conv-to-enc: Likewise.
22897         * modules/uniconv/u8-strconv-from-enc: Likewise.
22898         * modules/uniconv/u8-strconv-from-locale: Likewise.
22899         * modules/uniconv/u8-strconv-to-enc: Likewise.
22900         * modules/uniconv/u8-strconv-to-locale: Likewise.
22901         * modules/uniconv/u16-conv-from-enc: Likewise.
22902         * modules/uniconv/u16-conv-to-enc: Likewise.
22903         * modules/uniconv/u16-strconv-from-enc: Likewise.
22904         * modules/uniconv/u16-strconv-from-locale: Likewise.
22905         * modules/uniconv/u16-strconv-to-enc: Likewise.
22906         * modules/uniconv/u16-strconv-to-locale: Likewise.
22907         * modules/uniconv/u32-conv-from-enc: Likewise.
22908         * modules/uniconv/u32-conv-to-enc: Likewise.
22909         * modules/uniconv/u32-strconv-from-enc: Likewise.
22910         * modules/uniconv/u32-strconv-from-locale: Likewise.
22911         * modules/uniconv/u32-strconv-to-enc: Likewise.
22912         * modules/uniconv/u32-strconv-to-locale: Likewise.
22913         * modules/unictype/bidicategory-byname: Likewise.
22914         * modules/unictype/bidicategory-name: Likewise.
22915         * modules/unictype/bidicategory-of: Likewise.
22916         * modules/unictype/bidicategory-test: Likewise.
22917         * modules/unictype/block-list: Likewise.
22918         * modules/unictype/block-test: Likewise.
22919         * modules/unictype/category-C: Likewise.
22920         * modules/unictype/category-Cc: Likewise.
22921         * modules/unictype/category-Cf: Likewise.
22922         * modules/unictype/category-Cn: Likewise.
22923         * modules/unictype/category-Co: Likewise.
22924         * modules/unictype/category-Cs: Likewise.
22925         * modules/unictype/category-L: Likewise.
22926         * modules/unictype/category-Ll: Likewise.
22927         * modules/unictype/category-Lm: Likewise.
22928         * modules/unictype/category-Lo: Likewise.
22929         * modules/unictype/category-Lt: Likewise.
22930         * modules/unictype/category-Lu: Likewise.
22931         * modules/unictype/category-M: Likewise.
22932         * modules/unictype/category-Mc: Likewise.
22933         * modules/unictype/category-Me: Likewise.
22934         * modules/unictype/category-Mn: Likewise.
22935         * modules/unictype/category-N: Likewise.
22936         * modules/unictype/category-Nd: Likewise.
22937         * modules/unictype/category-Nl: Likewise.
22938         * modules/unictype/category-No: Likewise.
22939         * modules/unictype/category-P: Likewise.
22940         * modules/unictype/category-Pc: Likewise.
22941         * modules/unictype/category-Pd: Likewise.
22942         * modules/unictype/category-Pe: Likewise.
22943         * modules/unictype/category-Pf: Likewise.
22944         * modules/unictype/category-Pi: Likewise.
22945         * modules/unictype/category-Po: Likewise.
22946         * modules/unictype/category-Ps: Likewise.
22947         * modules/unictype/category-S: Likewise.
22948         * modules/unictype/category-Sc: Likewise.
22949         * modules/unictype/category-Sk: Likewise.
22950         * modules/unictype/category-Sm: Likewise.
22951         * modules/unictype/category-So: Likewise.
22952         * modules/unictype/category-Z: Likewise.
22953         * modules/unictype/category-Zl: Likewise.
22954         * modules/unictype/category-Zp: Likewise.
22955         * modules/unictype/category-Zs: Likewise.
22956         * modules/unictype/category-and: Likewise.
22957         * modules/unictype/category-and-not: Likewise.
22958         * modules/unictype/category-byname: Likewise.
22959         * modules/unictype/category-name: Likewise.
22960         * modules/unictype/category-none: Likewise.
22961         * modules/unictype/category-of: Likewise.
22962         * modules/unictype/category-or: Likewise.
22963         * modules/unictype/category-test: Likewise.
22964         * modules/unictype/combining-class: Likewise.
22965         * modules/unictype/ctype-alnum: Likewise.
22966         * modules/unictype/ctype-alpha: Likewise.
22967         * modules/unictype/ctype-blank: Likewise.
22968         * modules/unictype/ctype-cntrl: Likewise.
22969         * modules/unictype/ctype-digit: Likewise.
22970         * modules/unictype/ctype-graph: Likewise.
22971         * modules/unictype/ctype-lower: Likewise.
22972         * modules/unictype/ctype-print: Likewise.
22973         * modules/unictype/ctype-punct: Likewise.
22974         * modules/unictype/ctype-space: Likewise.
22975         * modules/unictype/ctype-upper: Likewise.
22976         * modules/unictype/ctype-xdigit: Likewise.
22977         * modules/unictype/decimal-digit: Likewise.
22978         * modules/unictype/digit: Likewise.
22979         * modules/unictype/mirror: Likewise.
22980         * modules/unictype/numeric: Likewise.
22981         * modules/unictype/property-alphabetic: Likewise.
22982         * modules/unictype/property-ascii-hex-digit: Likewise.
22983         * modules/unictype/property-bidi-arabic-digit: Likewise.
22984         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
22985         * modules/unictype/property-bidi-block-separator: Likewise.
22986         * modules/unictype/property-bidi-boundary-neutral: Likewise.
22987         * modules/unictype/property-bidi-common-separator: Likewise.
22988         * modules/unictype/property-bidi-control: Likewise.
22989         * modules/unictype/property-bidi-embedding-or-override: Likewise.
22990         * modules/unictype/property-bidi-eur-num-separator: Likewise.
22991         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
22992         * modules/unictype/property-bidi-european-digit: Likewise.
22993         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
22994         * modules/unictype/property-bidi-left-to-right: Likewise.
22995         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
22996         * modules/unictype/property-bidi-other-neutral: Likewise.
22997         * modules/unictype/property-bidi-pdf: Likewise.
22998         * modules/unictype/property-bidi-segment-separator: Likewise.
22999         * modules/unictype/property-bidi-whitespace: Likewise.
23000         * modules/unictype/property-byname: Likewise.
23001         * modules/unictype/property-combining: Likewise.
23002         * modules/unictype/property-composite: Likewise.
23003         * modules/unictype/property-currency-symbol: Likewise.
23004         * modules/unictype/property-dash: Likewise.
23005         * modules/unictype/property-decimal-digit: Likewise.
23006         * modules/unictype/property-default-ignorable-code-point: Likewise.
23007         * modules/unictype/property-deprecated: Likewise.
23008         * modules/unictype/property-diacritic: Likewise.
23009         * modules/unictype/property-extender: Likewise.
23010         * modules/unictype/property-format-control: Likewise.
23011         * modules/unictype/property-grapheme-base: Likewise.
23012         * modules/unictype/property-grapheme-extend: Likewise.
23013         * modules/unictype/property-grapheme-link: Likewise.
23014         * modules/unictype/property-hex-digit: Likewise.
23015         * modules/unictype/property-hyphen: Likewise.
23016         * modules/unictype/property-id-continue: Likewise.
23017         * modules/unictype/property-id-start: Likewise.
23018         * modules/unictype/property-ideographic: Likewise.
23019         * modules/unictype/property-ids-binary-operator: Likewise.
23020         * modules/unictype/property-ids-trinary-operator: Likewise.
23021         * modules/unictype/property-ignorable-control: Likewise.
23022         * modules/unictype/property-iso-control: Likewise.
23023         * modules/unictype/property-join-control: Likewise.
23024         * modules/unictype/property-left-of-pair: Likewise.
23025         * modules/unictype/property-line-separator: Likewise.
23026         * modules/unictype/property-logical-order-exception: Likewise.
23027         * modules/unictype/property-lowercase: Likewise.
23028         * modules/unictype/property-math: Likewise.
23029         * modules/unictype/property-non-break: Likewise.
23030         * modules/unictype/property-not-a-character: Likewise.
23031         * modules/unictype/property-numeric: Likewise.
23032         * modules/unictype/property-other-alphabetic: Likewise.
23033         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
23034         * modules/unictype/property-other-grapheme-extend: Likewise.
23035         * modules/unictype/property-other-id-continue: Likewise.
23036         * modules/unictype/property-other-id-start: Likewise.
23037         * modules/unictype/property-other-lowercase: Likewise.
23038         * modules/unictype/property-other-math: Likewise.
23039         * modules/unictype/property-other-uppercase: Likewise.
23040         * modules/unictype/property-paired-punctuation: Likewise.
23041         * modules/unictype/property-paragraph-separator: Likewise.
23042         * modules/unictype/property-pattern-syntax: Likewise.
23043         * modules/unictype/property-pattern-white-space: Likewise.
23044         * modules/unictype/property-private-use: Likewise.
23045         * modules/unictype/property-punctuation: Likewise.
23046         * modules/unictype/property-quotation-mark: Likewise.
23047         * modules/unictype/property-radical: Likewise.
23048         * modules/unictype/property-sentence-terminal: Likewise.
23049         * modules/unictype/property-soft-dotted: Likewise.
23050         * modules/unictype/property-space: Likewise.
23051         * modules/unictype/property-terminal-punctuation: Likewise.
23052         * modules/unictype/property-test: Likewise.
23053         * modules/unictype/property-titlecase: Likewise.
23054         * modules/unictype/property-unassigned-code-value: Likewise.
23055         * modules/unictype/property-unified-ideograph: Likewise.
23056         * modules/unictype/property-uppercase: Likewise.
23057         * modules/unictype/property-variation-selector: Likewise.
23058         * modules/unictype/property-white-space: Likewise.
23059         * modules/unictype/property-xid-continue: Likewise.
23060         * modules/unictype/property-xid-start: Likewise.
23061         * modules/unictype/property-zero-width: Likewise.
23062         * modules/unictype/scripts: Likewise.
23063         * modules/unictype/syntax-c-ident: Likewise.
23064         * modules/unictype/syntax-c-whitespace: Likewise.
23065         * modules/unictype/syntax-java-ident: Likewise.
23066         * modules/unictype/syntax-java-whitespace: Likewise.
23067         * modules/unilbrk/u8-possible-linebreaks: Likewise.
23068         * modules/unilbrk/u8-width-linebreaks: Likewise.
23069         * modules/unilbrk/u16-possible-linebreaks: Likewise.
23070         * modules/unilbrk/u16-width-linebreaks: Likewise.
23071         * modules/unilbrk/u32-possible-linebreaks: Likewise.
23072         * modules/unilbrk/u32-width-linebreaks: Likewise.
23073         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
23074         * modules/unilbrk/ulc-width-linebreaks: Likewise.
23075         * modules/uniname/uniname: Likewise.
23076         * modules/uninorm/canonical-decomposition: Likewise.
23077         * modules/uninorm/composition: Likewise.
23078         * modules/uninorm/decomposing-form: Likewise.
23079         * modules/uninorm/decomposition: Likewise.
23080         * modules/uninorm/filter: Likewise.
23081         * modules/uninorm/nfc: Likewise.
23082         * modules/uninorm/nfd: Likewise.
23083         * modules/uninorm/nfkc: Likewise.
23084         * modules/uninorm/nfkd: Likewise.
23085         * modules/uninorm/u8-normalize: Likewise.
23086         * modules/uninorm/u8-normcmp: Likewise.
23087         * modules/uninorm/u8-normcoll: Likewise.
23088         * modules/uninorm/u8-normxfrm: Likewise.
23089         * modules/uninorm/u16-normalize: Likewise.
23090         * modules/uninorm/u16-normcmp: Likewise.
23091         * modules/uninorm/u16-normcoll: Likewise.
23092         * modules/uninorm/u16-normxfrm: Likewise.
23093         * modules/uninorm/u32-normalize: Likewise.
23094         * modules/uninorm/u32-normcmp: Likewise.
23095         * modules/uninorm/u32-normcoll: Likewise.
23096         * modules/uninorm/u32-normxfrm: Likewise.
23097         * modules/unistdio/u8-asnprintf: Likewise.
23098         * modules/unistdio/u8-asprintf: Likewise.
23099         * modules/unistdio/u8-snprintf: Likewise.
23100         * modules/unistdio/u8-sprintf: Likewise.
23101         * modules/unistdio/u8-u8-asnprintf: Likewise.
23102         * modules/unistdio/u8-u8-asprintf: Likewise.
23103         * modules/unistdio/u8-u8-snprintf: Likewise.
23104         * modules/unistdio/u8-u8-sprintf: Likewise.
23105         * modules/unistdio/u8-u8-vasnprintf: Likewise.
23106         * modules/unistdio/u8-u8-vasprintf: Likewise.
23107         * modules/unistdio/u8-u8-vsnprintf: Likewise.
23108         * modules/unistdio/u8-u8-vsprintf: Likewise.
23109         * modules/unistdio/u8-vasnprintf: Likewise.
23110         * modules/unistdio/u8-vasprintf: Likewise.
23111         * modules/unistdio/u8-vsnprintf: Likewise.
23112         * modules/unistdio/u8-vsprintf: Likewise.
23113         * modules/unistdio/u16-asnprintf: Likewise.
23114         * modules/unistdio/u16-asprintf: Likewise.
23115         * modules/unistdio/u16-snprintf: Likewise.
23116         * modules/unistdio/u16-sprintf: Likewise.
23117         * modules/unistdio/u16-u16-asnprintf: Likewise.
23118         * modules/unistdio/u16-u16-asprintf: Likewise.
23119         * modules/unistdio/u16-u16-snprintf: Likewise.
23120         * modules/unistdio/u16-u16-sprintf: Likewise.
23121         * modules/unistdio/u16-u16-vasnprintf: Likewise.
23122         * modules/unistdio/u16-u16-vasprintf: Likewise.
23123         * modules/unistdio/u16-u16-vsnprintf: Likewise.
23124         * modules/unistdio/u16-u16-vsprintf: Likewise.
23125         * modules/unistdio/u16-vasnprintf: Likewise.
23126         * modules/unistdio/u16-vasprintf: Likewise.
23127         * modules/unistdio/u16-vsnprintf: Likewise.
23128         * modules/unistdio/u16-vsprintf: Likewise.
23129         * modules/unistdio/u32-asnprintf: Likewise.
23130         * modules/unistdio/u32-asprintf: Likewise.
23131         * modules/unistdio/u32-snprintf: Likewise.
23132         * modules/unistdio/u32-sprintf: Likewise.
23133         * modules/unistdio/u32-u32-asnprintf: Likewise.
23134         * modules/unistdio/u32-u32-asprintf: Likewise.
23135         * modules/unistdio/u32-u32-snprintf: Likewise.
23136         * modules/unistdio/u32-u32-sprintf: Likewise.
23137         * modules/unistdio/u32-u32-vasnprintf: Likewise.
23138         * modules/unistdio/u32-u32-vasprintf: Likewise.
23139         * modules/unistdio/u32-u32-vsnprintf: Likewise.
23140         * modules/unistdio/u32-u32-vsprintf: Likewise.
23141         * modules/unistdio/u32-vasnprintf: Likewise.
23142         * modules/unistdio/u32-vasprintf: Likewise.
23143         * modules/unistdio/u32-vsnprintf: Likewise.
23144         * modules/unistdio/u32-vsprintf: Likewise.
23145         * modules/unistdio/ulc-asnprintf: Likewise.
23146         * modules/unistdio/ulc-asprintf: Likewise.
23147         * modules/unistdio/ulc-fprintf: Likewise.
23148         * modules/unistdio/ulc-snprintf: Likewise.
23149         * modules/unistdio/ulc-sprintf: Likewise.
23150         * modules/unistdio/ulc-vasnprintf: Likewise.
23151         * modules/unistdio/ulc-vasprintf: Likewise.
23152         * modules/unistdio/ulc-vfprintf: Likewise.
23153         * modules/unistdio/ulc-vsnprintf: Likewise.
23154         * modules/unistdio/ulc-vsprintf: Likewise.
23155         * modules/unistr/u8-check: Likewise.
23156         * modules/unistr/u8-chr: Likewise.
23157         * modules/unistr/u8-cmp: Likewise.
23158         * modules/unistr/u8-cmp2: Likewise.
23159         * modules/unistr/u8-cpy: Likewise.
23160         * modules/unistr/u8-cpy-alloc: Likewise.
23161         * modules/unistr/u8-endswith: Likewise.
23162         * modules/unistr/u8-mblen: Likewise.
23163         * modules/unistr/u8-mbsnlen: Likewise.
23164         * modules/unistr/u8-mbtouc: Likewise.
23165         * modules/unistr/u8-mbtouc-unsafe: Likewise.
23166         * modules/unistr/u8-mbtoucr: Likewise.
23167         * modules/unistr/u8-move: Likewise.
23168         * modules/unistr/u8-next: Likewise.
23169         * modules/unistr/u8-prev: Likewise.
23170         * modules/unistr/u8-set: Likewise.
23171         * modules/unistr/u8-startswith: Likewise.
23172         * modules/unistr/u8-stpcpy: Likewise.
23173         * modules/unistr/u8-stpncpy: Likewise.
23174         * modules/unistr/u8-strcat: Likewise.
23175         * modules/unistr/u8-strchr: Likewise.
23176         * modules/unistr/u8-strcmp: Likewise.
23177         * modules/unistr/u8-strcoll: Likewise.
23178         * modules/unistr/u8-strcpy: Likewise.
23179         * modules/unistr/u8-strcspn: Likewise.
23180         * modules/unistr/u8-strdup: Likewise.
23181         * modules/unistr/u8-strlen: Likewise.
23182         * modules/unistr/u8-strmblen: Likewise.
23183         * modules/unistr/u8-strmbtouc: Likewise.
23184         * modules/unistr/u8-strncat: Likewise.
23185         * modules/unistr/u8-strncmp: Likewise.
23186         * modules/unistr/u8-strncpy: Likewise.
23187         * modules/unistr/u8-strnlen: Likewise.
23188         * modules/unistr/u8-strpbrk: Likewise.
23189         * modules/unistr/u8-strrchr: Likewise.
23190         * modules/unistr/u8-strspn: Likewise.
23191         * modules/unistr/u8-strstr: Likewise.
23192         * modules/unistr/u8-strtok: Likewise.
23193         * modules/unistr/u8-to-u16: Likewise.
23194         * modules/unistr/u8-to-u32: Likewise.
23195         * modules/unistr/u8-uctomb: Likewise.
23196         * modules/unistr/u16-check: Likewise.
23197         * modules/unistr/u16-chr: Likewise.
23198         * modules/unistr/u16-cmp: Likewise.
23199         * modules/unistr/u16-cmp2: Likewise.
23200         * modules/unistr/u16-cpy: Likewise.
23201         * modules/unistr/u16-cpy-alloc: Likewise.
23202         * modules/unistr/u16-endswith: Likewise.
23203         * modules/unistr/u16-mblen: Likewise.
23204         * modules/unistr/u16-mbsnlen: Likewise.
23205         * modules/unistr/u16-mbtouc: Likewise.
23206         * modules/unistr/u16-mbtouc-unsafe: Likewise.
23207         * modules/unistr/u16-mbtoucr: Likewise.
23208         * modules/unistr/u16-move: Likewise.
23209         * modules/unistr/u16-next: Likewise.
23210         * modules/unistr/u16-prev: Likewise.
23211         * modules/unistr/u16-set: Likewise.
23212         * modules/unistr/u16-startswith: Likewise.
23213         * modules/unistr/u16-stpcpy: Likewise.
23214         * modules/unistr/u16-stpncpy: Likewise.
23215         * modules/unistr/u16-strcat: Likewise.
23216         * modules/unistr/u16-strchr: Likewise.
23217         * modules/unistr/u16-strcmp: Likewise.
23218         * modules/unistr/u16-strcoll: Likewise.
23219         * modules/unistr/u16-strcpy: Likewise.
23220         * modules/unistr/u16-strcspn: Likewise.
23221         * modules/unistr/u16-strdup: Likewise.
23222         * modules/unistr/u16-strlen: Likewise.
23223         * modules/unistr/u16-strmblen: Likewise.
23224         * modules/unistr/u16-strmbtouc: Likewise.
23225         * modules/unistr/u16-strncat: Likewise.
23226         * modules/unistr/u16-strncmp: Likewise.
23227         * modules/unistr/u16-strncpy: Likewise.
23228         * modules/unistr/u16-strnlen: Likewise.
23229         * modules/unistr/u16-strpbrk: Likewise.
23230         * modules/unistr/u16-strrchr: Likewise.
23231         * modules/unistr/u16-strspn: Likewise.
23232         * modules/unistr/u16-strstr: Likewise.
23233         * modules/unistr/u16-strtok: Likewise.
23234         * modules/unistr/u16-to-u32: Likewise.
23235         * modules/unistr/u16-to-u8: Likewise.
23236         * modules/unistr/u16-uctomb: Likewise.
23237         * modules/unistr/u32-check: Likewise.
23238         * modules/unistr/u32-chr: Likewise.
23239         * modules/unistr/u32-cmp: Likewise.
23240         * modules/unistr/u32-cmp2: Likewise.
23241         * modules/unistr/u32-cpy: Likewise.
23242         * modules/unistr/u32-cpy-alloc: Likewise.
23243         * modules/unistr/u32-endswith: Likewise.
23244         * modules/unistr/u32-mblen: Likewise.
23245         * modules/unistr/u32-mbsnlen: Likewise.
23246         * modules/unistr/u32-mbtouc: Likewise.
23247         * modules/unistr/u32-mbtouc-unsafe: Likewise.
23248         * modules/unistr/u32-mbtoucr: Likewise.
23249         * modules/unistr/u32-move: Likewise.
23250         * modules/unistr/u32-next: Likewise.
23251         * modules/unistr/u32-prev: Likewise.
23252         * modules/unistr/u32-set: Likewise.
23253         * modules/unistr/u32-startswith: Likewise.
23254         * modules/unistr/u32-stpcpy: Likewise.
23255         * modules/unistr/u32-stpncpy: Likewise.
23256         * modules/unistr/u32-strcat: Likewise.
23257         * modules/unistr/u32-strchr: Likewise.
23258         * modules/unistr/u32-strcmp: Likewise.
23259         * modules/unistr/u32-strcoll: Likewise.
23260         * modules/unistr/u32-strcpy: Likewise.
23261         * modules/unistr/u32-strcspn: Likewise.
23262         * modules/unistr/u32-strdup: Likewise.
23263         * modules/unistr/u32-strlen: Likewise.
23264         * modules/unistr/u32-strmblen: Likewise.
23265         * modules/unistr/u32-strmbtouc: Likewise.
23266         * modules/unistr/u32-strncat: Likewise.
23267         * modules/unistr/u32-strncmp: Likewise.
23268         * modules/unistr/u32-strncpy: Likewise.
23269         * modules/unistr/u32-strnlen: Likewise.
23270         * modules/unistr/u32-strpbrk: Likewise.
23271         * modules/unistr/u32-strrchr: Likewise.
23272         * modules/unistr/u32-strspn: Likewise.
23273         * modules/unistr/u32-strstr: Likewise.
23274         * modules/unistr/u32-strtok: Likewise.
23275         * modules/unistr/u32-to-u16: Likewise.
23276         * modules/unistr/u32-to-u8: Likewise.
23277         * modules/unistr/u32-uctomb: Likewise.
23278         * modules/uniwbrk/u8-wordbreaks: Likewise.
23279         * modules/uniwbrk/u16-wordbreaks: Likewise.
23280         * modules/uniwbrk/u32-wordbreaks: Likewise.
23281         * modules/uniwbrk/ulc-wordbreaks: Likewise.
23282         * modules/uniwbrk/wordbreak-property: Likewise.
23283         * modules/uniwidth/u8-strwidth: Likewise.
23284         * modules/uniwidth/u8-width: Likewise.
23285         * modules/uniwidth/u16-strwidth: Likewise.
23286         * modules/uniwidth/u16-width: Likewise.
23287         * modules/uniwidth/u32-strwidth: Likewise.
23288         * modules/uniwidth/u32-width: Likewise.
23289         * modules/uniwidth/width: Likewise.
23290         * modules/unicase/cased-tests (Makefile.am): Link all test programs
23291         with $(LIBUNISTRING).
23292         * modules/unicase/ignorable-tests: Likewise.
23293         * modules/unicase/locale-language-tests: Likewise.
23294         * modules/unicase/tolower-tests: Likewise.
23295         * modules/unicase/totitle-tests: Likewise.
23296         * modules/unicase/toupper-tests: Likewise.
23297         * modules/unicase/u8-casecmp-tests: Likewise.
23298         * modules/unicase/u8-casecoll-tests: Likewise.
23299         * modules/unicase/u8-casefold-tests: Likewise.
23300         * modules/unicase/u8-is-cased-tests: Likewise.
23301         * modules/unicase/u8-is-casefolded-tests: Likewise.
23302         * modules/unicase/u8-is-lowercase-tests: Likewise.
23303         * modules/unicase/u8-is-titlecase-tests: Likewise.
23304         * modules/unicase/u8-is-uppercase-tests: Likewise.
23305         * modules/unicase/u8-tolower-tests: Likewise.
23306         * modules/unicase/u8-totitle-tests: Likewise.
23307         * modules/unicase/u8-toupper-tests: Likewise.
23308         * modules/unicase/u16-casecmp-tests: Likewise.
23309         * modules/unicase/u16-casecoll-tests: Likewise.
23310         * modules/unicase/u16-casefold-tests: Likewise.
23311         * modules/unicase/u16-is-cased-tests: Likewise.
23312         * modules/unicase/u16-is-casefolded-tests: Likewise.
23313         * modules/unicase/u16-is-lowercase-tests: Likewise.
23314         * modules/unicase/u16-is-titlecase-tests: Likewise.
23315         * modules/unicase/u16-is-uppercase-tests: Likewise.
23316         * modules/unicase/u16-tolower-tests: Likewise.
23317         * modules/unicase/u16-totitle-tests: Likewise.
23318         * modules/unicase/u16-toupper-tests: Likewise.
23319         * modules/unicase/u32-casecmp-tests: Likewise.
23320         * modules/unicase/u32-casecoll-tests: Likewise.
23321         * modules/unicase/u32-casefold-tests: Likewise.
23322         * modules/unicase/u32-is-cased-tests: Likewise.
23323         * modules/unicase/u32-is-casefolded-tests: Likewise.
23324         * modules/unicase/u32-is-lowercase-tests: Likewise.
23325         * modules/unicase/u32-is-titlecase-tests: Likewise.
23326         * modules/unicase/u32-is-uppercase-tests: Likewise.
23327         * modules/unicase/u32-tolower-tests: Likewise.
23328         * modules/unicase/u32-totitle-tests: Likewise.
23329         * modules/unicase/u32-toupper-tests: Likewise.
23330         * modules/unicase/ulc-casecmp-tests: Likewise.
23331         * modules/unicase/ulc-casecoll-tests: Likewise.
23332         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
23333         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
23334         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
23335         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
23336         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
23337         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
23338         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
23339         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
23340         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
23341         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
23342         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
23343         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
23344         * modules/unictype/bidicategory-byname-tests: Likewise.
23345         * modules/unictype/bidicategory-name-tests: Likewise.
23346         * modules/unictype/bidicategory-of-tests: Likewise.
23347         * modules/unictype/bidicategory-test-tests: Likewise.
23348         * modules/unictype/block-list-tests: Likewise.
23349         * modules/unictype/block-of-tests: Likewise.
23350         * modules/unictype/block-test-tests: Likewise.
23351         * modules/unictype/category-C-tests: Likewise.
23352         * modules/unictype/category-Cc-tests: Likewise.
23353         * modules/unictype/category-Cf-tests: Likewise.
23354         * modules/unictype/category-Cn-tests: Likewise.
23355         * modules/unictype/category-Co-tests: Likewise.
23356         * modules/unictype/category-Cs-tests: Likewise.
23357         * modules/unictype/category-L-tests: Likewise.
23358         * modules/unictype/category-Ll-tests: Likewise.
23359         * modules/unictype/category-Lm-tests: Likewise.
23360         * modules/unictype/category-Lo-tests: Likewise.
23361         * modules/unictype/category-Lt-tests: Likewise.
23362         * modules/unictype/category-Lu-tests: Likewise.
23363         * modules/unictype/category-M-tests: Likewise.
23364         * modules/unictype/category-Mc-tests: Likewise.
23365         * modules/unictype/category-Me-tests: Likewise.
23366         * modules/unictype/category-Mn-tests: Likewise.
23367         * modules/unictype/category-N-tests: Likewise.
23368         * modules/unictype/category-Nd-tests: Likewise.
23369         * modules/unictype/category-Nl-tests: Likewise.
23370         * modules/unictype/category-No-tests: Likewise.
23371         * modules/unictype/category-P-tests: Likewise.
23372         * modules/unictype/category-Pc-tests: Likewise.
23373         * modules/unictype/category-Pd-tests: Likewise.
23374         * modules/unictype/category-Pe-tests: Likewise.
23375         * modules/unictype/category-Pf-tests: Likewise.
23376         * modules/unictype/category-Pi-tests: Likewise.
23377         * modules/unictype/category-Po-tests: Likewise.
23378         * modules/unictype/category-Ps-tests: Likewise.
23379         * modules/unictype/category-S-tests: Likewise.
23380         * modules/unictype/category-Sc-tests: Likewise.
23381         * modules/unictype/category-Sk-tests: Likewise.
23382         * modules/unictype/category-Sm-tests: Likewise.
23383         * modules/unictype/category-So-tests: Likewise.
23384         * modules/unictype/category-Z-tests: Likewise.
23385         * modules/unictype/category-Zl-tests: Likewise.
23386         * modules/unictype/category-Zp-tests: Likewise.
23387         * modules/unictype/category-Zs-tests: Likewise.
23388         * modules/unictype/category-and-not-tests: Likewise.
23389         * modules/unictype/category-and-tests: Likewise.
23390         * modules/unictype/category-byname-tests: Likewise.
23391         * modules/unictype/category-name-tests: Likewise.
23392         * modules/unictype/category-none-tests: Likewise.
23393         * modules/unictype/category-of-tests: Likewise.
23394         * modules/unictype/category-or-tests: Likewise.
23395         * modules/unictype/category-test-withtable-tests: Likewise.
23396         * modules/unictype/combining-class-tests: Likewise.
23397         * modules/unictype/ctype-alnum-tests: Likewise.
23398         * modules/unictype/ctype-alpha-tests: Likewise.
23399         * modules/unictype/ctype-blank-tests: Likewise.
23400         * modules/unictype/ctype-cntrl-tests: Likewise.
23401         * modules/unictype/ctype-digit-tests: Likewise.
23402         * modules/unictype/ctype-graph-tests: Likewise.
23403         * modules/unictype/ctype-lower-tests: Likewise.
23404         * modules/unictype/ctype-print-tests: Likewise.
23405         * modules/unictype/ctype-punct-tests: Likewise.
23406         * modules/unictype/ctype-space-tests: Likewise.
23407         * modules/unictype/ctype-upper-tests: Likewise.
23408         * modules/unictype/ctype-xdigit-tests: Likewise.
23409         * modules/unictype/decimal-digit-tests: Likewise.
23410         * modules/unictype/digit-tests: Likewise.
23411         * modules/unictype/mirror-tests: Likewise.
23412         * modules/unictype/numeric-tests: Likewise.
23413         * modules/unictype/property-alphabetic-tests: Likewise.
23414         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
23415         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
23416         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
23417         * modules/unictype/property-bidi-block-separator-tests: Likewise.
23418         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
23419         * modules/unictype/property-bidi-common-separator-tests: Likewise.
23420         * modules/unictype/property-bidi-control-tests: Likewise.
23421         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
23422         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
23423         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
23424         * modules/unictype/property-bidi-european-digit-tests: Likewise.
23425         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
23426         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
23427         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
23428         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
23429         * modules/unictype/property-bidi-pdf-tests: Likewise.
23430         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
23431         * modules/unictype/property-bidi-whitespace-tests: Likewise.
23432         * modules/unictype/property-byname-tests: Likewise.
23433         * modules/unictype/property-combining-tests: Likewise.
23434         * modules/unictype/property-composite-tests: Likewise.
23435         * modules/unictype/property-currency-symbol-tests: Likewise.
23436         * modules/unictype/property-dash-tests: Likewise.
23437         * modules/unictype/property-decimal-digit-tests: Likewise.
23438         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
23439         * modules/unictype/property-deprecated-tests: Likewise.
23440         * modules/unictype/property-diacritic-tests: Likewise.
23441         * modules/unictype/property-extender-tests: Likewise.
23442         * modules/unictype/property-format-control-tests: Likewise.
23443         * modules/unictype/property-grapheme-base-tests: Likewise.
23444         * modules/unictype/property-grapheme-extend-tests: Likewise.
23445         * modules/unictype/property-grapheme-link-tests: Likewise.
23446         * modules/unictype/property-hex-digit-tests: Likewise.
23447         * modules/unictype/property-hyphen-tests: Likewise.
23448         * modules/unictype/property-id-continue-tests: Likewise.
23449         * modules/unictype/property-id-start-tests: Likewise.
23450         * modules/unictype/property-ideographic-tests: Likewise.
23451         * modules/unictype/property-ids-binary-operator-tests: Likewise.
23452         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
23453         * modules/unictype/property-ignorable-control-tests: Likewise.
23454         * modules/unictype/property-iso-control-tests: Likewise.
23455         * modules/unictype/property-join-control-tests: Likewise.
23456         * modules/unictype/property-left-of-pair-tests: Likewise.
23457         * modules/unictype/property-line-separator-tests: Likewise.
23458         * modules/unictype/property-logical-order-exception-tests: Likewise.
23459         * modules/unictype/property-lowercase-tests: Likewise.
23460         * modules/unictype/property-math-tests: Likewise.
23461         * modules/unictype/property-non-break-tests: Likewise.
23462         * modules/unictype/property-not-a-character-tests: Likewise.
23463         * modules/unictype/property-numeric-tests: Likewise.
23464         * modules/unictype/property-other-alphabetic-tests: Likewise.
23465         * modules/unictype/property-other-default-ignorable-code-point-tests:
23466         Likewise.
23467         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
23468         * modules/unictype/property-other-id-continue-tests: Likewise.
23469         * modules/unictype/property-other-id-start-tests: Likewise.
23470         * modules/unictype/property-other-lowercase-tests: Likewise.
23471         * modules/unictype/property-other-math-tests: Likewise.
23472         * modules/unictype/property-other-uppercase-tests: Likewise.
23473         * modules/unictype/property-paired-punctuation-tests: Likewise.
23474         * modules/unictype/property-paragraph-separator-tests: Likewise.
23475         * modules/unictype/property-pattern-syntax-tests: Likewise.
23476         * modules/unictype/property-pattern-white-space-tests: Likewise.
23477         * modules/unictype/property-private-use-tests: Likewise.
23478         * modules/unictype/property-punctuation-tests: Likewise.
23479         * modules/unictype/property-quotation-mark-tests: Likewise.
23480         * modules/unictype/property-radical-tests: Likewise.
23481         * modules/unictype/property-sentence-terminal-tests: Likewise.
23482         * modules/unictype/property-soft-dotted-tests: Likewise.
23483         * modules/unictype/property-space-tests: Likewise.
23484         * modules/unictype/property-terminal-punctuation-tests: Likewise.
23485         * modules/unictype/property-test-tests: Likewise.
23486         * modules/unictype/property-titlecase-tests: Likewise.
23487         * modules/unictype/property-unassigned-code-value-tests: Likewise.
23488         * modules/unictype/property-unified-ideograph-tests: Likewise.
23489         * modules/unictype/property-uppercase-tests: Likewise.
23490         * modules/unictype/property-variation-selector-tests: Likewise.
23491         * modules/unictype/property-white-space-tests: Likewise.
23492         * modules/unictype/property-xid-continue-tests: Likewise.
23493         * modules/unictype/property-xid-start-tests: Likewise.
23494         * modules/unictype/property-zero-width-tests: Likewise.
23495         * modules/unictype/scripts-tests: Likewise.
23496         * modules/unictype/syntax-c-ident-tests: Likewise.
23497         * modules/unictype/syntax-c-whitespace-tests: Likewise.
23498         * modules/unictype/syntax-java-ident-tests: Likewise.
23499         * modules/unictype/syntax-java-whitespace-tests: Likewise.
23500         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
23501         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
23502         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
23503         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
23504         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
23505         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
23506         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
23507         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
23508         * modules/uniname/uniname-tests: Likewise.
23509         * modules/uninorm/canonical-decomposition-tests: Likewise.
23510         * modules/uninorm/compat-decomposition-tests: Likewise.
23511         * modules/uninorm/composition-tests: Likewise.
23512         * modules/uninorm/decomposing-form-tests: Likewise.
23513         * modules/uninorm/decomposition-tests: Likewise.
23514         * modules/uninorm/filter-tests: Likewise.
23515         * modules/uninorm/nfc-tests: Likewise.
23516         * modules/uninorm/nfd-tests: Likewise.
23517         * modules/uninorm/nfkc-tests: Likewise.
23518         * modules/uninorm/nfkd-tests: Likewise.
23519         * modules/uninorm/u8-normcmp-tests: Likewise.
23520         * modules/uninorm/u8-normcoll-tests: Likewise.
23521         * modules/uninorm/u16-normcmp-tests: Likewise.
23522         * modules/uninorm/u16-normcoll-tests: Likewise.
23523         * modules/uninorm/u32-normcmp-tests: Likewise.
23524         * modules/uninorm/u32-normcoll-tests: Likewise.
23525         * modules/unistdio/u8-asnprintf-tests: Likewise.
23526         * modules/unistdio/u8-vasnprintf-tests: Likewise.
23527         * modules/unistdio/u8-vasprintf-tests: Likewise.
23528         * modules/unistdio/u8-vsnprintf-tests: Likewise.
23529         * modules/unistdio/u8-vsprintf-tests: Likewise.
23530         * modules/unistdio/u16-asnprintf-tests: Likewise.
23531         * modules/unistdio/u16-vasnprintf-tests: Likewise.
23532         * modules/unistdio/u16-vasprintf-tests: Likewise.
23533         * modules/unistdio/u16-vsnprintf-tests: Likewise.
23534         * modules/unistdio/u16-vsprintf-tests: Likewise.
23535         * modules/unistdio/u32-asnprintf-tests: Likewise.
23536         * modules/unistdio/u32-vasnprintf-tests: Likewise.
23537         * modules/unistdio/u32-vasprintf-tests: Likewise.
23538         * modules/unistdio/u32-vsnprintf-tests: Likewise.
23539         * modules/unistdio/u32-vsprintf-tests: Likewise.
23540         * modules/unistdio/ulc-asnprintf-tests: Likewise.
23541         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
23542         * modules/unistdio/ulc-vasprintf-tests: Likewise.
23543         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
23544         * modules/unistdio/ulc-vsprintf-tests: Likewise.
23545         * modules/unistr/u8-check-tests: Likewise.
23546         * modules/unistr/u8-chr-tests: Likewise.
23547         * modules/unistr/u8-cmp-tests: Likewise.
23548         * modules/unistr/u8-cmp2-tests: Likewise.
23549         * modules/unistr/u8-cpy-alloc-tests: Likewise.
23550         * modules/unistr/u8-cpy-tests: Likewise.
23551         * modules/unistr/u8-mblen-tests: Likewise.
23552         * modules/unistr/u8-mbsnlen-tests: Likewise.
23553         * modules/unistr/u8-mbtouc-tests: Likewise.
23554         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
23555         * modules/unistr/u8-mbtoucr-tests: Likewise.
23556         * modules/unistr/u8-move-tests: Likewise.
23557         * modules/unistr/u8-next-tests: Likewise.
23558         * modules/unistr/u8-prev-tests: Likewise.
23559         * modules/unistr/u8-set-tests: Likewise.
23560         * modules/unistr/u8-stpcpy-tests: Likewise.
23561         * modules/unistr/u8-stpncpy-tests: Likewise.
23562         * modules/unistr/u8-strcat-tests: Likewise.
23563         * modules/unistr/u8-strcmp-tests: Likewise.
23564         * modules/unistr/u8-strcoll-tests: Likewise.
23565         * modules/unistr/u8-strcpy-tests: Likewise.
23566         * modules/unistr/u8-strdup-tests: Likewise.
23567         * modules/unistr/u8-strlen-tests: Likewise.
23568         * modules/unistr/u8-strmblen-tests: Likewise.
23569         * modules/unistr/u8-strmbtouc-tests: Likewise.
23570         * modules/unistr/u8-strncat-tests: Likewise.
23571         * modules/unistr/u8-strncmp-tests: Likewise.
23572         * modules/unistr/u8-strncpy-tests: Likewise.
23573         * modules/unistr/u8-strnlen-tests: Likewise.
23574         * modules/unistr/u8-to-u16-tests: Likewise.
23575         * modules/unistr/u8-to-u32-tests: Likewise.
23576         * modules/unistr/u8-uctomb-tests: Likewise.
23577         * modules/unistr/u16-check-tests: Likewise.
23578         * modules/unistr/u16-chr-tests: Likewise.
23579         * modules/unistr/u16-cmp-tests: Likewise.
23580         * modules/unistr/u16-cmp2-tests: Likewise.
23581         * modules/unistr/u16-cpy-alloc-tests: Likewise.
23582         * modules/unistr/u16-cpy-tests: Likewise.
23583         * modules/unistr/u16-mblen-tests: Likewise.
23584         * modules/unistr/u16-mbsnlen-tests: Likewise.
23585         * modules/unistr/u16-mbtouc-tests: Likewise.
23586         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
23587         * modules/unistr/u16-mbtoucr-tests: Likewise.
23588         * modules/unistr/u16-move-tests: Likewise.
23589         * modules/unistr/u16-next-tests: Likewise.
23590         * modules/unistr/u16-prev-tests: Likewise.
23591         * modules/unistr/u16-set-tests: Likewise.
23592         * modules/unistr/u16-stpcpy-tests: Likewise.
23593         * modules/unistr/u16-stpncpy-tests: Likewise.
23594         * modules/unistr/u16-strcat-tests: Likewise.
23595         * modules/unistr/u16-strcmp-tests: Likewise.
23596         * modules/unistr/u16-strcoll-tests: Likewise.
23597         * modules/unistr/u16-strcpy-tests: Likewise.
23598         * modules/unistr/u16-strdup-tests: Likewise.
23599         * modules/unistr/u16-strlen-tests: Likewise.
23600         * modules/unistr/u16-strmblen-tests: Likewise.
23601         * modules/unistr/u16-strmbtouc-tests: Likewise.
23602         * modules/unistr/u16-strncat-tests: Likewise.
23603         * modules/unistr/u16-strncmp-tests: Likewise.
23604         * modules/unistr/u16-strncpy-tests: Likewise.
23605         * modules/unistr/u16-strnlen-tests: Likewise.
23606         * modules/unistr/u16-to-u32-tests: Likewise.
23607         * modules/unistr/u16-to-u8-tests: Likewise.
23608         * modules/unistr/u16-uctomb-tests: Likewise.
23609         * modules/unistr/u32-check-tests: Likewise.
23610         * modules/unistr/u32-chr-tests: Likewise.
23611         * modules/unistr/u32-cmp-tests: Likewise.
23612         * modules/unistr/u32-cmp2-tests: Likewise.
23613         * modules/unistr/u32-cpy-alloc-tests: Likewise.
23614         * modules/unistr/u32-cpy-tests: Likewise.
23615         * modules/unistr/u32-mblen-tests: Likewise.
23616         * modules/unistr/u32-mbsnlen-tests: Likewise.
23617         * modules/unistr/u32-mbtouc-tests: Likewise.
23618         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
23619         * modules/unistr/u32-mbtoucr-tests: Likewise.
23620         * modules/unistr/u32-move-tests: Likewise.
23621         * modules/unistr/u32-next-tests: Likewise.
23622         * modules/unistr/u32-prev-tests: Likewise.
23623         * modules/unistr/u32-set-tests: Likewise.
23624         * modules/unistr/u32-stpcpy-tests: Likewise.
23625         * modules/unistr/u32-stpncpy-tests: Likewise.
23626         * modules/unistr/u32-strcat-tests: Likewise.
23627         * modules/unistr/u32-strcmp-tests: Likewise.
23628         * modules/unistr/u32-strcoll-tests: Likewise.
23629         * modules/unistr/u32-strcpy-tests: Likewise.
23630         * modules/unistr/u32-strdup-tests: Likewise.
23631         * modules/unistr/u32-strlen-tests: Likewise.
23632         * modules/unistr/u32-strmblen-tests: Likewise.
23633         * modules/unistr/u32-strmbtouc-tests: Likewise.
23634         * modules/unistr/u32-strncat-tests: Likewise.
23635         * modules/unistr/u32-strncmp-tests: Likewise.
23636         * modules/unistr/u32-strncpy-tests: Likewise.
23637         * modules/unistr/u32-strnlen-tests: Likewise.
23638         * modules/unistr/u32-to-u16-tests: Likewise.
23639         * modules/unistr/u32-to-u8-tests: Likewise.
23640         * modules/unistr/u32-uctomb-tests: Likewise.
23641         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
23642         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
23643         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
23644         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
23645         * modules/uniwidth/u8-strwidth-tests: Likewise.
23646         * modules/uniwidth/u8-width-tests: Likewise.
23647         * modules/uniwidth/u16-strwidth-tests: Likewise.
23648         * modules/uniwidth/u16-width-tests: Likewise.
23649         * modules/uniwidth/u32-strwidth-tests: Likewise.
23650         * modules/uniwidth/u32-width-tests: Likewise.
23651         * modules/uniwidth/width-tests: Likewise.
23652
23653 2010-05-18  Richard Jones  <rjones@redhat.com>
23654
23655         doc: users.txt: list hivex
23656         * users.txt: Add hivex.
23657
23658 2010-05-18  Richard Jones  <rjones@redhat.com>
23659
23660         doc: users.txt: list febootstrap
23661         * users.txt: Add febootstrap.
23662
23663 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
23664
23665         bootstrap: fix an error when gnulib is not used as a git submodule
23666         * build-aux/bootstrap (gnulib_path): If its length is zero then
23667         assign "gnulib" to it.
23668         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
23669
23670 2010-05-16  Bruno Haible  <bruno@clisp.org>
23671
23672         Avoid autoconf warnings about AM_ICONV.
23673         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
23674         2.64.
23675
23676 2010-05-16  Bruno Haible  <bruno@clisp.org>
23677
23678         absolute-header: Make the macro usable in more situations.
23679         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
23680         from gl_ABSOLUTE_HEADER.
23681         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
23682
23683 2010-05-16  James Youngman  <jay@gnu.org>
23684
23685         doc: update users.txt
23686         * users.txt: Add CSSC.
23687
23688 2010-05-16  Jim Meyering  <meyering@redhat.com>
23689
23690         init.sh: fix an error in the previous change; add more comments
23691         * tests/init.sh: Compare exit code in loop against 9, not 2.
23692         Patch by Bruno Haible.
23693         Make the two tests more similar by adding an empty "then" clause.
23694         Add comments.
23695
23696         init.sh: avoid unnecessary shell re-exec
23697         * tests/init.sh: Improve the re-exec-required check to first test the
23698         current shell.  If it passes the test, do not search for a shell that
23699         does pass, and do not re-exec.  This test is particularly contorted to
23700         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
23701         of $(...) evokes a syntax error and causes immediate shell exit with
23702         status 2.  Bruno Haible reported that the re-exec made it impossible
23703         to single-step through any init.sh-using script.
23704
23705 2010-05-16  Bruno Haible  <bruno@clisp.org>
23706
23707         Fix collision between gnulib's and libintl's printf replacements.
23708         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
23709         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
23710         (printf): When using GNU C, map the __printf__ function to rpl_printf
23711         via __asm__. When not using GNU C, define rpl_printf instead of
23712         __printf__.
23713         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
23714         commit.
23715         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
23716         commit.
23717         * m4/asm-underscore.m4: New file.
23718         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
23719         * modules/stdio (Files): Add m4/asm-underscore.m4.
23720         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
23721         Reported by Ben Pfaff.
23722
23723 2010-05-16  Bruno Haible  <bruno@clisp.org>
23724
23725         verify: Avoid skipping the test on openSUSE 11.0.
23726         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
23727
23728 2010-05-13  Bruno Haible  <bruno@clisp.org>
23729
23730         Avoid useless warnings from G++.
23731         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
23732         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
23733         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23734
23735 2010-05-11  Jim Meyering  <meyering@redhat.com>
23736
23737         maint.mk: tweak preceding change
23738         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
23739         regexps tighter by anchoring at EOL, and make the new group "shy"
23740         for slightly decreased overhead.
23741
23742 2010-05-11  Eric Blake  <eblake@redhat.com>
23743
23744         maint.mk: gnulib doesn't guarantee NSIG
23745         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
23746
23747 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23748
23749         test-pwrite.c: Remove unused variable declaration.
23750         * tests/test-pwrite.c (main): Remove read_buf declaration.
23751
23752         Remove useless test-pwrite.sh file.
23753         * tests/test-pwrite.sh: Delete file.
23754         * modules/pwrite-tests: Remove references.
23755         Reported by Bruno Haible.
23756
23757 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23758
23759         init.sh: fix a typo
23760         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
23761
23762 2010-05-10  Jim Meyering  <meyering@redhat.com>
23763
23764         maint.mk: avoid using a temporary file in the always-defined-macros check
23765         * top/maint.mk (.re-defmac): Remove rule.
23766         (gl_trap_): Remove definition.
23767         (sc_prohibit_always-defined_macros): Rewrite not to create and
23768         depend on a temporary file.  Instead, depend on GNU grep's ability
23769         to read a list of regular expressions from stdin when given "-f -".
23770
23771 2010-05-09  Bruno Haible  <bruno@clisp.org>
23772
23773         Update to GNU gettext 0.18, part 1.
23774         * m4/gettext.m4: Update to GNU gettext 0.18.
23775         * m4/intl.m4: Likewise.
23776         * m4/po.m4: Likewise.
23777         * modules/gettext (Files): Add m4/fcntl-o.m4.
23778         (configure.ac): Require gettext infrastructure from version 0.18.
23779
23780 2010-05-09  Jim Meyering  <meyering@redhat.com>
23781
23782         init.sh: enable MALLOC_PERTURB_
23783         * tests/init.sh: Enable glibc's malloc-perturbing option.
23784
23785         maint.mk: improve sc_cross_check_PATH_usage_in_tests
23786         With my recent change in init.sh from the two-line form:
23787             -#   : ${srcdir=.}
23788             -#   . "$srcdir/init.sh"; path_prepend_ .
23789             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
23790         I noticed that using the one-line form would cause this test
23791         to fail with a false-positive, or to stop working altogether,
23792         depending on whether help-version changed or all the tests did.
23793         * top/maint.mk (_hv_regex): Remove this definition.
23794         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
23795         (_hv_regex_strong): Use a stronger regex to check for conformance.
23796         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
23797         Give a separate diagnostic for lack of conforming use.
23798
23799         maint.mk: prohibit definition of symbols defined by gnulib
23800         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
23801         definition of symbols defined by gnulib.
23802
23803 2010-05-09  Bruno Haible  <bruno@clisp.org>
23804
23805         acl: Avoid test failure on Cygwin-hosted mingw.
23806         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
23807
23808 2010-05-09  Bruno Haible  <bruno@clisp.org>
23809
23810         error: Use system's fcntl function.
23811         * lib/error.c (fcntl): Undefine.
23812
23813 2010-05-09  Jim Meyering  <meyering@redhat.com>
23814
23815         verify: adjust formatting to be more consistent
23816         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
23817         argument-list '('s, and after one comma.
23818
23819 2010-05-09  Bruno Haible  <bruno@clisp.org>
23820
23821         error: More reliable output on mingw.
23822         * lib/error.c: Include <windows.h>.
23823         (is_open): New function.
23824         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
23825         defined.
23826
23827 2010-05-09  Bruno Haible  <bruno@clisp.org>
23828
23829         vasnprintf: Fix syntax errors in libintl build on mingw.
23830         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
23831         pad_ourselves and prec_ourselves after use.
23832
23833 2010-05-08  Bruno Haible  <bruno@clisp.org>
23834
23835         * lib/config.charset: Update comments for Cygwin 1.7.
23836         * lib/localcharset.c: Likewise.
23837
23838 2010-05-07  Jim Meyering  <meyering@redhat.com>
23839
23840         init.sh: improve comments
23841         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
23842         . "${srcdir=.}/init.sh"; path_prepend_ .
23843         Add a note about path_prepend_ and the alternative of using
23844         TESTS_ENVIRONMENT.
23845
23846 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
23847
23848         exclude: Unescape hashed patterns in wildcard mode.
23849         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
23850         to the hash list.
23851         * tests/test-exclude8.sh: New test case.
23852         * modules/exclude-tests: Add new test.
23853
23854 2010-05-05  Eric Blake  <eblake@redhat.com>
23855
23856         verify: automate tests
23857         * modules/verify-tests: New module.
23858         * tests/test-verify.sh: New file.
23859         * tests/test-verify.c: Guard each negative test with a unique id.
23860         Also avoid warning about unused left hand of comma expressions.
23861
23862 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
23863
23864         Further improvements to verify.h, suggested by Eric Blake.
23865         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
23866         the GL_* versions, to avoid collision with OpenGL.
23867         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
23868         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
23869         than testing merely whether it's defined.
23870
23871         Modify verify.h to pacify gcc -Wredundant_decls.
23872         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
23873         These use the prefix "GL_" since they're likely to be useful elsewhere.
23874         We may need to break them out into a different .h file.
23875         (__COUNTER__): Define to 0 if the compiler doesn't support it.
23876         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
23877         of verify_function__.
23878
23879 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23880
23881         Tests for module pwrite.
23882         * modules/pwrite-tests: New file.
23883         * tests/test-pwrite.sh: New file.
23884         * tests/test-pwrite.c: New file.
23885
23886         New module pwrite.
23887         * lib/unistd.in.h (pwrite): New declaration.
23888         * lib/pwrite.c: New file, from glibc with modifications.
23889         * m4/pwrite.m4: New file.
23890         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
23891         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
23892         REPLACE_PWRITE.
23893         * modules/pwrite: New file.
23894         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
23895         REPLACE_PWRITE.
23896         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
23897         * doc/posix-functions/pwrite.texi: Mention the new module.
23898
23899 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23900
23901         pread: Update documentation.
23902         * doc/posix-functions/pread.texi: Mention the 'pread' module.
23903
23904 2010-05-04  Eric Blake  <eblake@redhat.com>
23905
23906         docs: update cygwin progress
23907         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
23908         this bug.
23909         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
23910         Added in cygwin 1.7.2.
23911         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
23912         Likewise.
23913         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
23914         Likewise.
23915         * doc/glibc-functions/dup3.texi (dup3): Likewise.
23916         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
23917         * doc/glibc-functions/accept4.texi (accept4): Likewise.
23918         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
23919         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
23920         Mention nproc module.
23921         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
23922         bug in cygwin 1.7.5 addition.
23923         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
23924         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
23925         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
23926         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
23927         1.7.5.
23928         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
23929         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
23930         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
23931         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
23932         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
23933         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
23934         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
23935         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
23936         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
23937         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
23938         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
23939         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
23940         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
23941         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
23942         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
23943         Likewise.
23944         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
23945         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
23946         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
23947         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
23948         Likewise.
23949         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
23950         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
23951         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
23952         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
23953         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
23954         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
23955         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
23956         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
23957         Likewise.
23958         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
23959         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
23960         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
23961         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
23962         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
23963         Likewise.
23964         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
23965         Likewise.
23966         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
23967         Likewise.
23968         * doc/glibc-functions/xdrrec_endofrecord.texi
23969         (xdrrec_endofrecord): Likewise.
23970         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
23971         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
23972         Likewise.
23973         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
23974         Likewise.
23975
23976 2010-05-04  Jim Meyering  <meyering@redhat.com>
23977
23978         gendocs.sh: make its "-s FILE" option more useful
23979         * build-aux/gendocs.sh: When honoring the -s FILE option, update
23980         $PACKAGE to reflect the probably-different basename of "FILE".
23981
23982 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
23983
23984         bootstrap: don't ignore download_po_files failure
23985         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
23986         failure.
23987
23988 2010-05-03  Jim Meyering  <meyering@redhat.com>
23989
23990         maint.mk: allow to pass options to gendocs.sh
23991         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
23992         (gendocs_options_): New overridable variable.
23993
23994         gnu-web-doc-update: don't ignore configure or build failure
23995         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
23996
23997         announce-gen: backslash-escape '@'s in --help output
23998         * build-aux/announce-gen: Fix syntax errors.
23999
24000         maint.mk, announce-gen: allow project-specific announcement mail headers
24001         * top/maint.mk (translation_project_): Define default.
24002         (announcement_Cc_, announcement_mail_headers_): Likewise.
24003         (announcement): Invoke announce-gen with new --mail-headers option.
24004         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
24005
24006         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
24007         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
24008         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
24009         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
24010         line in the "err2" output file when running "make check" in verbose
24011         mode (i.e., with set -x enabled).
24012
24013 2010-05-03  Bruno Haible  <bruno@clisp.org>
24014
24015         wctob: Fix for weird platforms.
24016         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
24017         argument value.
24018
24019 2010-05-03  Jim Meyering  <meyering@redhat.com>
24020
24021         maint.mk: prohibit unwarranted use of <strings.h>
24022         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
24023         strings.h in a file that does not also use strcasecmp, strncasecmp,
24024         ffs or ffsll.
24025
24026         maint.mk: remove obsolete comments
24027         * top/maint.mk: Remove stale, commented-out rules.
24028
24029 2010-05-02  Bruno Haible  <bruno@clisp.org>
24030
24031         wcwidth: Declare also when it's aliased.
24032         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
24033         macro.
24034
24035 2010-05-02  Bruno Haible  <bruno@clisp.org>
24036
24037         Fix regression from 2010-04-25.
24038         * gnulib-tool (func_modules_transitive_closure): Check the status of
24039         all modules, not only of the tests that are of the form foo-tests where
24040         foo is a module.
24041
24042 2010-05-02  Bruno Haible  <bruno@clisp.org>
24043
24044         wctob: Work around nasty Cygwin 1.7.2 bug.
24045         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
24046         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
24047
24048 2010-05-01  Bruno Haible  <bruno@clisp.org>
24049
24050         fpurge: Sharper test.
24051         * tests/test-fpurge.c (main): Add one more ftell check.
24052         * modules/fpurge-tests (Depends-on): Add ftell.
24053         Suggested by Eric Blake.
24054
24055 2010-05-01  Bruno Haible  <bruno@clisp.org>
24056
24057         ftello: Another test.
24058         * tests/test-ftello3.c: New file.
24059         * modules/ftello-tests (Files): Add it.
24060         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
24061         MOSTLYCLEANFILES.
24062
24063         ftell: Another test.
24064         * tests/test-ftell3.c: New file.
24065         * modules/ftell-tests (Files): Add it.
24066         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
24067         MOSTLYCLEANFILES.
24068
24069 2010-05-01  Bruno Haible  <bruno@clisp.org>
24070
24071         ftell, ftello: Work around Solaris bug.
24072         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
24073         * lib/ftello.c: Include stdio-impl.h.
24074         (ftello): On Solaris, when _IOWRT is set, compute the result without
24075         looking at _IOREAD.
24076         * modules/ftello (Files): Add lib/stdio-impl.h.
24077         * doc/posix-functions/ftell.texi: Mention Solaris bug.
24078         * doc/posix-functions/ftello.texi: Likewise.
24079         Reported by Eric Blake.
24080
24081 2010-05-01  Bruno Haible  <bruno@clisp.org>
24082
24083         freading: Adapt to special meaning of _IOREAD flag on Solaris.
24084         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
24085         the _IOWRT flag is also set.
24086
24087 2010-05-01  Bruno Haible  <bruno@clisp.org>
24088
24089         Fix doc about a HP-UX stdio bug.
24090         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
24091         * doc/posix-functions/ftello.texi: Likewise.
24092
24093 2010-05-01  Bruno Haible  <bruno@clisp.org>
24094
24095         lseek test: Fix failure on Solaris.
24096         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
24097         output.
24098
24099 2010-04-30  Jim Meyering  <meyering@redhat.com>
24100
24101         bootstrap: don't ignore failure to generate po*/Makevars
24102         * build-aux/bootstrap (with_gettext): Don't ignore failure
24103         to create po/Makevars or runtime-po/Makevars.
24104
24105 2010-04-29  Eric Blake  <eblake@redhat.com>
24106
24107         headers: relax license to LGPLv2+
24108         * modules/fcntl-h (License): Relax license.
24109         * modules/getopt-posix (License): Likewise.
24110         * modules/locale (License): Likewise.
24111         * modules/math (License): Likewise.
24112         * modules/pty (License): Likewise.
24113         * modules/sched (License): Likewise.
24114         * modules/search (License): Likewise.
24115         * modules/spawn (License): Likewise.
24116         * modules/stdarg (License): Likewise.
24117         * modules/sysexits (License): Likewise.
24118
24119 2010-04-29  Jim Meyering  <meyering@redhat.com>
24120
24121         inttypes: relax license to LGPLv2+
24122         * modules/inttypes (License): Relax license.
24123
24124 2010-04-29  Simon Josefsson  <simon@josefsson.org>
24125
24126         * top/maint.mk (indent): Run twice to produce idempotent results.
24127
24128 2010-04-28  Bruno Haible  <bruno@clisp.org>
24129
24130         getdate: Generate getdate.c in the source directory.
24131         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
24132         MOSTLYCLEANFILES.
24133         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
24134
24135 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
24136
24137         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
24138         is not declared as a const *; avoid warnings in that case.
24139
24140 2010-04-28  Eric Blake  <eblake@redhat.com>
24141
24142         canonicalize-lgpl: avoid compiler warning
24143         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
24144         declaration' / 'extraneous semicolon' warning with some compilers.
24145         Reported by Andreas Gruenbacher.
24146
24147 2010-04-28  Jim Meyering  <meyering@redhat.com>
24148
24149         init.sh: ensure a more reliable exit status when exiting via trap
24150         * tests/init.sh (setup_): Don't rely on $? in signal handler.
24151         Inspired by patches from Dmitry V. Levin.
24152         Also trap on signal 3 (SIGQUIT).
24153
24154 2010-04-27  Bruno Haible  <bruno@clisp.org>
24155
24156         Update doc about utimes().
24157         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
24158         'utimens' module.
24159         Reported by Andreas Gruenbacher <agruen@suse.de>.
24160
24161 2010-04-27  Eric Blake  <eblake@redhat.com>
24162
24163         full-read, full-write: relax license
24164         * modules/full-read (License): Drop to LGPLv2+.
24165         * modules/full-write (License): Likewise.
24166         * modules/safe-read (License): Likewise.
24167         * modules/safe-write (License): Likewise.
24168
24169         pthread: mention library for linking
24170         * modules/pthread (Link): Mention $(LIB_PTHREAD).
24171
24172 2010-04-27  Jim Meyering  <meyering@redhat.com>
24173
24174         maint.mk: fix a bug introduced in last change
24175         * top/maint.mk (gl_assured_headers_): Now that all names are on
24176         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
24177         is not anchored to end of word, it should be adequate.
24178
24179         maint.mk: avoid side-effect in latest syntax-check
24180         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
24181         to run commands via $(shell...), and hence to incur cost only when
24182         the new rule is actually run.
24183
24184         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
24185         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
24186         and use that to create a regexp used to detect all #if HAVE_..._H uses.
24187         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
24188         (gl_assured_headers_, az_, AZ_): Define.
24189         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
24190
24191 2010-04-26  Jim Meyering  <jim@meyering.net>
24192             Bruno Haible  <bruno@clisp.org>
24193
24194         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
24195         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
24196         Prompted by an exchange with Gilles Espinasse.
24197
24198 2010-04-26  Jim Meyering  <meyering@redhat.com>
24199
24200         git-version-gen: aesthetic tweak
24201         * build-aux/git-version-gen: Use "$nl" rather than a literal,
24202         so that the command remains on a single line.
24203
24204 2010-04-26  Eric Blake  <eblake@redhat.com>
24205
24206         git-version-gen: allow use on EBCDIC hosts
24207         * build-aux/git-version-gen (dirty): Use literal rather than tying
24208         ourselves to ascii.
24209         Reported by Steve Goetze.
24210
24211 2010-04-25  Bruno Haible  <bruno@clisp.org>
24212
24213         netdb: Add support for GNULIB_POSIXCHECK.
24214         * lib/netdb.in.h: Include warn-on-use.h.
24215         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
24216         functions are used when GNULIB_POSIXCHECK is defined and the
24217         getaddrinfo module is not in use.
24218         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
24219         freeaddrinfo, gai_strerror, getnameinfo are declared.
24220         * modules/netdb (Depends-on): Add warn-on-use.
24221         (Makefile.am): Include warn-on-use.h in netdb.h.
24222
24223 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
24224
24225         build: avoid "make check" failure without .git/ directory
24226         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
24227         there is no .git/ directory.
24228
24229 2010-04-25  Bruno Haible  <bruno@clisp.org>
24230
24231         ptsname: Fix misuse of ttyname_r.
24232         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
24233         of errno.
24234
24235 2010-04-25  Bruno Haible  <bruno@clisp.org>
24236
24237         ttyname_r: Make it work on Solaris 10.
24238         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
24239         if the system function has the POSIX declaration. Test whether the
24240         function fails if the buffer is less than 128 bytes large.
24241         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
24242         system's ttyname_r function. Provide a reasonably large buffer.
24243         * modules/ttyname_r (Depends-on): Add extensions.
24244         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
24245
24246 2010-04-25  Bruno Haible  <bruno@clisp.org>
24247
24248         Use the 'extensions' module for some more functions on Solaris.
24249         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
24250         module.
24251         * doc/posix-functions/ctime_r.texi: Likewise.
24252         * doc/posix-functions/getgrgid_r.texi: Likewise.
24253         * doc/posix-functions/getgrnam_r.texi: Likewise.
24254         * doc/posix-functions/getpwnam_r.texi: Likewise.
24255         * doc/posix-functions/getpwuid_r.texi: Likewise.
24256         * doc/posix-functions/readdir_r.texi: Likewise.
24257         * doc/posix-functions/sigwait.texi: Likewise.
24258         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
24259         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
24260
24261 2010-04-25  Bruno Haible  <bruno@clisp.org>
24262
24263         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
24264         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
24265         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
24266         * lib/ttyname_r.c: Include <limits.h>.
24267         (ttyname_r): Define using the system's ttyname_r function, if it exists
24268         and not on Solaris.
24269         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
24270         set.
24271         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
24272         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
24273         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
24274         Reported by Simon Josefsson.
24275
24276 2010-04-25  Bruno Haible  <bruno@clisp.org>
24277
24278         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
24279         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
24280         * doc/posix-functions/ctime_r.texi: Likewise.
24281         * doc/posix-functions/getgrgid_r.texi: Likewise.
24282         * doc/posix-functions/getgrnam_r.texi: Likewise.
24283         * doc/posix-functions/getlogin_r.texi: Likewise.
24284         * doc/posix-functions/getpwnam_r.texi: Likewise.
24285         * doc/posix-functions/getpwuid_r.texi: Likewise.
24286         * doc/posix-functions/readdir_r.texi: Likewise.
24287         * doc/posix-functions/sigwait.texi: Likewise.
24288         * doc/posix-functions/ttyname_r.texi: Likewise.
24289         Reported by Simon Josefsson.
24290
24291 2010-04-25  Bruno Haible  <bruno@clisp.org>
24292
24293         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
24294         * gnulib-tool (func_usage): Document that --with-*-tests options apply
24295         also to --create-testdir.
24296         (func_acceptable): Don't consider the status of *-tests modules here.
24297         (func_modules_transitive_closure): Consider it here, before including a
24298         test module.
24299         (func_import, func_create_testdir): Set inc_all_direct_tests,
24300         inc_all_indirect_tests.
24301         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
24302         --create-testdir and --create-megatestdir.
24303
24304 2010-04-25  Bruno Haible  <bruno@clisp.org>
24305
24306         gnulib-tool: Add --without-*-tests options.
24307         * gnulib-tool (func_usage): Document the --without-*-tests options.
24308         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
24309         excl_unportable_tests): New variables.
24310         Fail if they are specified with --import or --update.
24311         (func_acceptable): Respect the excl_*_tests variables.
24312         (func_import): Set the excl_*_tests variables to empty.
24313
24314 2010-04-25  Simon Josefsson  <simon@josefsson.org>
24315             Bruno Haible  <bruno@clisp.org>
24316
24317         Work around a MacOS X 10.4 bug with openpty.
24318         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
24319         * tests/test-openpty.c (main): Close the master side explicitly.
24320
24321 2010-04-25  Bruno Haible  <bruno@clisp.org>
24322
24323         strnlen: Fix a C++ test error on MacOS X and Solaris.
24324         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
24325         the function is not declared.
24326         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
24327         Simon Josefsson.
24328
24329 2010-04-24  Bruno Haible  <bruno@clisp.org>
24330
24331         Avoid a gcc warning.
24332         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
24333         of correct type for %08lx directive.
24334         Reported by Eric Blake.
24335
24336 2010-04-24  Bruno Haible  <bruno@clisp.org>
24337
24338         vasnprintf: Correct errno value in case of out-of-memory.
24339         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
24340         or sprintf. Use the errno value from SNPRINTF or sprintf.
24341         Reported by Ian Beckwith <ianb@erislabs.net>.
24342
24343 2010-04-24  Bruno Haible  <bruno@clisp.org>
24344
24345         ansi-c++-opt: Find correct compiler when cross-compiling.
24346         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
24347         AC_CHECK_PROGS.
24348         Reported by Simon Josefsson.
24349
24350 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
24351
24352         vc-list-files: Add support for subversion
24353         * build-aux/vc-list-files: Use "svn list" to generate the list of
24354         files controlled by subversion.
24355
24356 2010-04-23  Jim Meyering  <meyering@redhat.com>
24357
24358         vc-list-files tests: convert to use init.sh
24359         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
24360         path_prepend_.
24361         Use Exit, not exit.
24362         Use skip_ rather than open coding it.
24363         Remove trap set-up and compare definitions.
24364         * tests/test-vc-list-files-git.sh: Likewise.
24365         * modules/vc-list-files-tests (Files): Add tests/init.sh.
24366
24367 2010-04-22  Simon Josefsson  <simon@josefsson.org>
24368
24369         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
24370         backup files.
24371
24372 2010-04-21  Simon Josefsson  <simon@josefsson.org>
24373
24374         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
24375
24376 2010-04-20  Eric Blake  <eblake@redhat.com>
24377
24378         tests: be robust to ignored SIGPIPE
24379         * tests/test-select-in.sh: Consume all output.
24380         * tests/test-lseek.sh: Check correct exit status, while avoiding
24381         EPIPE.
24382
24383 2010-04-20  Simon Josefsson  <simon@josefsson.org>
24384             Bruno Haible  <bruno@clisp.org>
24385
24386         visibility: Don't use -fvisibility if it leads to a warning.
24387         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
24388         yes, don't pretend that visibility works if it leads to a warning.
24389         Reported by Mike Gran <spk121@yahoo.com>.
24390
24391 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
24392
24393         * build-aux/bootstrap: Use "git -h" for testing for supported options
24394         instead of "git --help".  The short-form option only shows a summary,
24395         and doesn't layout the full man page.  Grep for the full option name
24396         in the summary, too.
24397
24398 2010-04-19  Bruno Haible  <bruno@clisp.org>
24399
24400         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
24401         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
24402         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
24403         mention of RELOCATABLE_STRIP.
24404         Reported by Sylvain Beucler <beuc@beuc.net>.
24405
24406 2010-04-19  Bruno Haible  <bruno@clisp.org>
24407
24408         * lib/diffseq.h: Fix typo in comment.
24409         Reported by Eric Blake.
24410
24411 2010-04-19  Bruno Haible  <bruno@clisp.org>
24412
24413         ioctl: Move autoconf macro to a .m4 file.
24414         * m4/ioctl.m4: New file, extracted from modules/ioctl.
24415         * modules/ioctl (Files): Add it.
24416         (configure.ac): Simply invoke gl_FUNC_IOCTL.
24417         Reported by Ian Beckwith <ianb@erislabs.net>.
24418
24419 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
24420             Bruno Haible  <bruno@clisp.org>
24421
24422         diffseq: Accommodate use-case with abstract arrays.
24423         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
24424         is not defined.
24425         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
24426         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
24427
24428 2010-04-18  Bruno Haible  <bruno@clisp.org>
24429
24430         * doc/posix-headers/stdbool.texi: More precise wording.
24431
24432 2010-04-17  Jim Meyering  <meyering@redhat.com>
24433
24434         maint.mk: use gnu-style indentation in an embedded perl script
24435         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
24436         Rename variable: s/two/last_two_bytes/
24437
24438 2010-04-16  Eric Blake  <eblake@redhat.com>
24439
24440         test-stdbool: skip test that fails with Solaris CC
24441         * tests/test-stdbool.c (f): Skip test that causes compilation
24442         error under buggy C++ compiler.
24443         * lib/stdbool.in.h: Document the limitation.
24444         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
24445
24446         setenv: allow compilation with C++
24447         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
24448         register keyword.
24449
24450         stdint: allow test to pass with C++
24451         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
24452
24453         getopt: allow compilation with C++
24454         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
24455         struct.
24456         * lib/getopt.c (_getopt_internal_r): Use correct type.
24457         Reported by Dagobert Michelson, via Joel E. Denny.
24458
24459 2010-04-16  Bruno Haible  <bruno@clisp.org>
24460
24461         Override netdb.h always.
24462         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
24463         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
24464         Reported by Ludovic Courtès <ludo@gnu.org>.
24465
24466 2010-04-15  Bruno Haible  <bruno@clisp.org>
24467
24468         openpty: Fix mistake from 2010-03-21.
24469         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
24470         Reported by Simon Josefsson.
24471
24472 2010-04-15  Eric Blake  <eblake@redhat.com>
24473
24474         test-forkpty: fix expected signature
24475         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
24476         Reported by Simon Josefsson.
24477
24478 2010-04-15  Jim Meyering  <meyering@redhat.com>
24479
24480         maint.mk: texinfo_suffix_re_: correct the default regexp
24481         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
24482
24483         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
24484         make it configurable via texinfo_suffix_re_.
24485
24486 2010-04-14  Eric Blake  <eblake@redhat.com>
24487
24488         strtok_r: relax license to LGPLv2+
24489         * modules/strtok_r (License): Relax license.
24490         Reported by Matthias Bolte.
24491
24492 2010-04-14  Simon Josefsson  <simon@josefsson.org>
24493
24494         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
24495         version 1.4.4 by default instead of requiring the libgcrypt
24496         version used during build.  This makes it possible to use the
24497         application with older but still binary compatible libgcrypt
24498         versions.
24499
24500 2010-04-13  Eric Blake  <eblake@redhat.com>
24501
24502         getopt-gnu: match recent glibc fixes and posix ruling
24503         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
24504         '+' handling, when requesting extensions.
24505         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
24506         'W;' handling.
24507         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
24508         * doc/posix-functions/getopt.texi (getopt): Document this.
24509         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
24510         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24511         Likewise.
24512
24513         getopt: merge bug fixes from glibc
24514         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
24515         diagnostics.  Honor '+:' correctly.  Reject ';'.
24516
24517         getopt-posix: detect MacOS bug
24518         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
24519         optind when missing a required argument.
24520         * doc/posix-functions/getopt.texi (getopt): Document the bug.
24521         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
24522         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24523         Likewise.
24524
24525         getopt-posix: avoid spurious failure on Solaris
24526         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
24527         an indicator that setting optind=1 is sufficient for reset.
24528
24529         getopt-posix: avoid spurious failure on FreeBSD
24530         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
24531         in POSIX mode, since the m4 test uses it.
24532
24533         gnulib-tool: silence warning on BSD sh
24534         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
24535
24536 2010-04-13  Jim Meyering  <meyering@redhat.com>
24537
24538         doc: users.txt: GNU patch now uses gnulib
24539         * users.txt: Add patch.
24540
24541 2010-04-12  Jim Meyering  <meyering@redhat.com>
24542
24543         maint.mk: generate more concise timing data for syntax-check rules
24544         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
24545         " done" from each line that reports a syntax-check test duration.
24546
24547 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
24548
24549         git-version-gen: use "git update-index..." rather than "git status"
24550         * build-aux/git-version-gen: Use git update-index --refresh, not
24551         "git status".  With some versions of git, "git status" would fail
24552         to update the index and result in an unwarranted "-dirty" suffix.
24553
24554 2010-04-11  Jim Meyering  <meyering@redhat.com>
24555
24556         openat: correct formatting (no semantic change)
24557         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
24558         Suggested by Bruno Haible.
24559
24560 2010-04-11  Bruno Haible  <bruno@clisp.org>
24561
24562         Stricter declaration checking in testdirs.
24563         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24564         If for_tests is true, augment AM_CPPFLAGS to define
24565         GNULIB_STRICT_CHECKING.
24566         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
24567         GNULIB_STRICT_CHECKING is defined, verify that the function is
24568         declared.
24569
24570 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
24571             Bruno Haible  <bruno@clisp.org>
24572
24573         libunistring: Improve configure output.
24574         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
24575         Don't say "consider installing GNU libunistring" when checking again
24576         with libiconv.
24577
24578 2010-04-11  Bruno Haible  <bruno@clisp.org>
24579
24580         libunistring: Correct value of $LTLIBUNISTRING.
24581         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
24582         correct the value of $LTLIBUNISTRING.
24583
24584 2010-04-11  Bruno Haible  <bruno@clisp.org>
24585
24586         havelib: Add static libraries to LIBS in the right order.
24587         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
24588         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
24589
24590 2010-04-11  Bruno Haible  <bruno@clisp.org>
24591
24592         libunistring: Detect libunistring also when it depends on libiconv.
24593         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
24594         the second AC_LIB_HAVE_LINKFLAGS invocation.
24595
24596 2010-04-11  James Youngman  <jay@gnu.org>
24597
24598         close-stream: declare local scalars to be "const"
24599         * lib/close-stream.c (close_stream): Make boolean variables const
24600         to document the fact that we set but do not change them.
24601
24602 2010-04-11  Bruno Haible  <bruno@clisp.org>
24603
24604         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
24605
24606 2010-04-11  Jim Meyering  <meyering@redhat.com>
24607
24608         maint.mk: don't include dist-check.mk
24609         * top/maint.mk: Remove bogus include directive.
24610
24611         maint.mk: improve empty-line-at-EOF check
24612         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
24613         solution, rather than tail+Perl-based one.  The latter would read
24614         a few kilobytes from the end of each file, and did not handle empty
24615         files properly.
24616
24617         maint.mk: print the elapsed time for each syntax-check rule
24618         * top/maint.mk (sc_m_rules_): Save start time in a file.
24619         (sc_z_rules_): New rules: remove temp file and print elapsed time.
24620         (local-check): Interpose the .z rules
24621
24622 2010-04-11  Jim Meyering  <meyering@redhat.com>
24623
24624         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
24625         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
24626         empty file with one that ends in an empty line.
24627
24628 2010-04-10  Bruno Haible  <bruno@clisp.org>
24629
24630         mkdir: Make it work on mingw64.
24631         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
24632         * lib/mkdir.c: Update comment.
24633         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
24634
24635 2010-04-10  Bruno Haible  <bruno@clisp.org>
24636
24637         Don't override improved macro from newer autoconf.
24638         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
24639         autoconf >= 2.62.
24640         Reported by Joel E. Denny <jdenny@clemson.edu>.
24641
24642 2010-04-10  Jim Meyering  <meyering@redhat.com>
24643
24644         maint.mk: new syntax-check rule: prohibit empty lines at end of file
24645         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
24646
24647         maint.mk: correct a diagnostic
24648         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
24649         in diagnostic; now use $prohibit.
24650
24651 2010-04-10  Bruno Haible  <address@hidden>
24652
24653         fchownat: Fix a C++ test error on Solaris 8.
24654         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
24655         the function does not exist.
24656
24657 2010-04-10  Bruno Haible  <bruno@clisp.org>
24658
24659         vasnprintf: Add more tests.
24660         * tests/test-vasnprintf-posix.c: Include <errno.h>.
24661         (test_function): Test converting an invalid wide string.
24662
24663         vasnprintf: Correct handling of unconvertible wide string arguments.
24664         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
24665         VASNPRINTF.
24666         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
24667         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
24668         smaller than the expected maximum need for the directive. Set errno to
24669         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
24670         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
24671         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
24672         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
24673         * modules/vasnprintf (Files): Add m4/printf.m4.
24674         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24675
24676 2010-04-10  Bruno Haible  <bruno@clisp.org>
24677
24678         vasnprintf: Fix crash in %ls directive.
24679         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
24680         string is passed as argument to %ls, with no precision and no width.
24681         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24682
24683 2010-04-10  Bruno Haible  <bruno@clisp.org>
24684
24685         vasnprintf: Fix multiple test failures on mingw.
24686         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
24687         _snprintf, or snwprintf, not _snwprintf.
24688
24689 2010-04-10  Bruno Haible  <bruno@clisp.org>
24690
24691         write: Fix a C++ test error on mingw.
24692         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
24693
24694 2010-04-10  Bruno Haible  <bruno@clisp.org>
24695
24696         vasnprintf test: Reduce code duplication.
24697         * tests/test-vasnprintf.c (test_function): New function, extracted from
24698         test_vasnprintf.
24699         (test_vasnprintf, test_asnprintf): Invoke it.
24700
24701 2010-04-10  Bruno Haible  <bruno@clisp.org>
24702
24703         strnlen: Fix warning in C++ mode on MacOS X.
24704         * lib/string.in.h (strnlen): Use the modern idiom.
24705         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
24706         defining strnlen as a macro already in <config.h>.
24707         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24708         REPLACE_STRNLEN.
24709         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
24710         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24711
24712 2010-04-08  James Youngman  <jay@gnu.org>
24713
24714         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
24715         the example.
24716
24717 2010-04-09  Jim Meyering  <meyering@redhat.com>
24718
24719         maint.mk: print better diagnostic when there is no $(_hv_file)
24720         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
24721         announce that when $(_hv_file) (aka help-version) does not exist.
24722
24723         init.sh: run tr in the "C" locale to avoid multibyte interpretation
24724         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
24725         not try to interpret its random input bytes.  Jarno Rajahalme reported
24726         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
24727         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
24728         (mktempd_): Likewise, just in case.
24729
24730         ftruncate: add two years to projected module removal date: 2012
24731         * m4/ftruncate.m4: Adjust comments.
24732
24733         ftruncate: mark module as obsolete; even MinGW provides it, now
24734         * modules/ftruncate (Status): Obsolete.
24735         (Notice): Say that.
24736         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
24737         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
24738
24739 2010-04-08  Bruno Haible  <bruno@clisp.org>
24740
24741         Fix side effects from tests-related modules.
24742         * modules/dprintf-posix (Comment): New section.
24743         * modules/fprintf-posix (Comment): Likewise.
24744         * modules/obstack-printf-posix (Comment): Likewise.
24745         * modules/printf-posix (Comment): Likewise.
24746         * modules/snprintf-posix (Comment): Likewise.
24747         * modules/sprintf-posix (Comment): Likewise.
24748         * modules/vasnprintf-posix (Comment): Likewise.
24749         * modules/vasprintf-posix (Comment): Likewise.
24750         * modules/vdprintf-posix (Comment): Likewise.
24751         * modules/vfprintf-posix (Comment): Likewise.
24752         * modules/vprintf-posix (Comment): Likewise.
24753         * modules/vsnprintf-posix (Comment): Likewise.
24754         * modules/vsprintf-posix (Comment): Likewise.
24755         * modules/xprintf-posix (Comment): Likewise.
24756         * modules/xvasprintf-posix (Comment): Likewise.
24757         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
24758         * modules/floorf-tests (Depends-on): Likewise.
24759         * modules/round-tests (Depends-on): Likewise.
24760         * modules/roundf-tests (Depends-on): Likewise.
24761         * modules/trunc-tests (Depends-on): Likewise.
24762         * modules/truncf-tests (Depends-on): Likewise.
24763         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
24764         'fprintf-posix' module is not present.
24765         * tests/test-floorf2.c (check): Likewise.
24766         * tests/test-trunc2.c (check): Likewise.
24767         * tests/test-truncf2.c (check): Likewise.
24768         * tests/test-round2.c (equal): Likewise.
24769         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24770
24771 2010-04-07  Karl Berry  <karl@gnu.org>
24772
24773         * config/srclist.txt,
24774         * config/srclistvars.sh,
24775         * config/srclist-update: doc fixes.
24776
24777 2010-04-07  Jim Meyering  <meyering@redhat.com>
24778
24779         maint.mk: add a PATH crosschecking syntax-check rule
24780         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
24781         Useful if you use a test like the one in help-version (coreutils,
24782         diffutils, grep, gzip) that ensures $(VERSION) matches what is
24783         printed by prog --version.
24784
24785 2010-04-06  Bruno Haible  <bruno@clisp.org>
24786
24787         Fix link error on mingw.
24788         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
24789         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
24790
24791 2010-04-06  Bruno Haible  <bruno@clisp.org>
24792
24793         Assume rmdir exists.
24794         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
24795
24796 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
24797
24798         doc: update users.txt
24799         * users.txt: Add gcal.
24800
24801 2010-04-06  Jim Meyering  <meyering@redhat.com>
24802
24803         init.sh: simply unset TMPDIR rather than risking env -i
24804         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
24805         although it probably works fine on all Unix-based systems, some
24806         systems (Cygwin?) cannot tolerate a totally cleared environment.
24807         Suggestion from Eric Blake.
24808
24809 2010-04-06  Jim Meyering  <meyering@redhat.com>
24810
24811         init.sh: portability fix: use env's POSIX-specified -i option not -u
24812         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
24813         than unportable env -u.  Solaris 5.11's env lacks support for -u.
24814
24815 2010-04-05  Bruno Haible  <bruno@clisp.org>
24816
24817         btowc: Work around Cygwin 1.7.2 bug.
24818         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
24819         does not map NUL to 0.
24820         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
24821
24822 2010-04-05  Bruno Haible  <bruno@clisp.org>
24823
24824         Make the multithread modules work on Cygwin 1.7.2.
24825         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
24826         imported symbols can be declared weak, so that it returns "no" on
24827         Cygwin 1.7.2.
24828
24829 2010-04-05  Bruno Haible  <bruno@clisp.org>
24830
24831         Use the module 'strncat'.
24832         * modules/unistr/u8-strncat (Depends-on): Add strncat.
24833
24834         Tests for module 'strncat'.
24835         * modules/strncat-tests: New file.
24836         * tests/test-strncat.c: New file.
24837
24838         New module 'strncat'.
24839         * lib/string.in.h (strncat): New declaration.
24840         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
24841         * m4/strncat.m4: New file, based on m4/memchr.m4.
24842         * modules/strncat: New file.
24843         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
24844         is declared.
24845         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
24846         REPLACE_STRNCAT.
24847         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
24848         REPLACE_STRNCAT.
24849         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
24850         module.
24851         * tests/test-string-c++.cc: Check signature of strncat.
24852
24853 2010-04-05  Jim Meyering  <meyering@redhat.com>
24854
24855         xstrtoumax-tests: convert to use init.sh
24856         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
24857         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24858         Use Exit, not exit.
24859         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24860
24861         xstrtoimax-tests: convert to use init.sh
24862         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
24863         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24864         Use Exit, not exit.
24865         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24866
24867 2010-04-05  Bruno Haible  <bruno@clisp.org>
24868
24869         sys_socket: Avoid #define replacements in C++ mode.
24870         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
24871         warning to the function if possible, rather than #defining the symbol
24872         to a dysfunctional alias.
24873
24874 2010-04-05  Bruno Haible  <bruno@clisp.org>
24875
24876         fseeko: Fix C++ test error on mingw.
24877         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
24878         gl_FUNC_FSEEKO.
24879         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
24880         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
24881         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
24882         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
24883
24884 2010-04-05  Bruno Haible  <bruno@clisp.org>
24885
24886         duplocale: Improve test output.
24887         * tests/test-duplocale.c (main): Print reason for skipped test.
24888
24889 2010-04-05  Bruno Haible  <bruno@clisp.org>
24890
24891         Assume rmdir exists.
24892         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
24893         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
24894
24895 2010-04-05  Bruno Haible  <bruno@clisp.org>
24896
24897         Fix link error on Solaris 8 with cc.
24898         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
24899
24900 2010-04-05  Bruno Haible  <bruno@clisp.org>
24901
24902         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24903         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
24904
24905 2010-04-05  Bruno Haible  <bruno@clisp.org>
24906
24907         vasprintf: Update documentation.
24908         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
24909
24910 2010-04-05  Bruno Haible  <bruno@clisp.org>
24911
24912         ptsname: Improve test.
24913         * tests/test-ptsname.c (main): Also try the various master names of BSD
24914         systems.
24915
24916 2010-04-05  Bruno Haible  <bruno@clisp.org>
24917
24918         memchr: Avoid a possible C++ test error.
24919         * lib/string.in.h (memchr): Provide declaration if function is missing.
24920         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
24921         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
24922         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
24923         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
24924
24925 2010-04-05  Bruno Haible  <bruno@clisp.org>
24926
24927         strtok_r: Improve idiom.
24928         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
24929         AC_LIBOBJ is used.
24930
24931 2010-04-05  Bruno Haible  <bruno@clisp.org>
24932
24933         strdup: Improve idiom.
24934         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
24935         AC_LIBOBJ is used.
24936         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
24937         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
24938         when AC_LIBOBJ is used.
24939
24940 2010-04-05  Bruno Haible  <bruno@clisp.org>
24941
24942         mbsinit, mbrtowc, wcrtomb: Improve idioms.
24943         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
24944         don't set REPLACE_MBSINIT to 1.
24945         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
24946         don't set REPLACE_MBRTOWC to 1.
24947         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
24948         exist, don't set REPLACE_MBSRTOWCS to 1.
24949         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
24950         exist, don't set REPLACE_MBSNRTOWCS to 1.
24951         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
24952         don't set REPLACE_WCRTOMB to 1.
24953         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
24954         exist, don't set REPLACE_WCSRTOMBS to 1.
24955         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
24956         exist, don't set REPLACE_WCSNRTOMBS to 1.
24957
24958 2010-04-05  Bruno Haible  <bruno@clisp.org>
24959
24960         ldexpl: Improve idiom.
24961         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
24962         make sure to set HAVE_DECL_LDEXPL to 0.
24963
24964 2010-04-05  Jim Meyering  <meyering@redhat.com>
24965
24966         xstrtol-tests: convert to use init.sh
24967         * modules/xstrtol-tests (Files): Add tests/init.sh.
24968         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24969         Use Exit, not exit.
24970         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24971
24972         atexit-tests: convert to use init.sh
24973         * modules/atexit-tests (Files): Add tests/init.sh.
24974         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24975         Use Exit, not exit.
24976         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24977
24978         init.sh: fix typo
24979         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
24980
24981         init.sh: make it easier for a test script to write to the tty, ...
24982         when using automake's parallel-tests mode.
24983         * tests/init.sh (stderr_fileno_): Define overridable variable.
24984         (warn_): New function, to use it.
24985         (fail_, skip_, framework_failure_): Use warn_.
24986
24987 2010-04-04  Bruno Haible  <bruno@clisp.org>
24988
24989         btowc: Avoid warning.
24990         * lib/btowc.c: Include <stdlib.h>.
24991         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
24992
24993 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24994             Bruno Haible  <bruno@clisp.org>
24995
24996         wchar: Port to NetBSD 1.5.
24997         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
24998         * lib/wctype.in.h (WEOF): Likewise.
24999
25000 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
25001             Bruno Haible  <bruno@clisp.org>
25002
25003         Port extended stdio to NetBSD 1.5.
25004         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
25005         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
25006         older.
25007
25008 2010-04-04  Bruno Haible  <bruno@clisp.org>
25009
25010         string: Remove unused substitution.
25011         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
25012         HAVE_DECL_STRERROR.
25013         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
25014
25015 2010-04-04  Bruno Haible  <bruno@clisp.org>
25016
25017         strtod: Avoid a possible C++ test error.
25018         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
25019         set REPLACE_STRTOD.
25020
25021 2010-04-04  Bruno Haible  <bruno@clisp.org>
25022
25023         strerror: Update documentation.
25024         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
25025
25026 2010-04-04  Bruno Haible  <bruno@clisp.org>
25027
25028         stdio: Fix some C++ test errors on Solaris 8 with GCC.
25029         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
25030         _GL_CXXALIAS_SYS_CAST.
25031
25032 2010-04-04  Bruno Haible  <bruno@clisp.org>
25033
25034         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
25035         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
25036         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
25037         REPLACE_FREXPL to 1.
25038         * doc/posix-functions/frexpl.texi: Update documentation.
25039
25040 2010-04-04  Bruno Haible  <bruno@clisp.org>
25041
25042         math: Fix some C++ test errors on Solaris 8 and Cygwin.
25043         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
25044
25045 2010-04-04  Bruno Haible  <bruno@clisp.org>
25046
25047         Implement nanosleep for native Windows.
25048         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
25049
25050 2010-04-04  Bruno Haible  <bruno@clisp.org>
25051
25052         math: Fix some C++ test errors on Solaris 8.
25053         * lib/math.in.h (truncf, trunc): Use simpler idiom.
25054
25055 2010-04-04  Bruno Haible  <bruno@clisp.org>
25056
25057         math: Fix some C++ test errors on Cygwin.
25058         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
25059         truncl): Provide declaration if the system does not have it.
25060         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
25061         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
25062         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
25063         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
25064         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
25065         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
25066         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
25067         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
25068         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
25069         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
25070         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
25071         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
25072         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
25073         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
25074         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
25075         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
25076         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
25077         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
25078         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
25079         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
25080         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
25081         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
25082
25083 2010-04-04  Bruno Haible  <bruno@clisp.org>
25084
25085         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
25086         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
25087         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
25088         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
25089         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
25090         * m4/isinf.m4 (gl_ISINF): Likewise.
25091         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
25092
25093 2010-04-04  Bruno Haible  <bruno@clisp.org>
25094
25095         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
25096         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
25097
25098 2010-04-04  Bruno Haible  <bruno@clisp.org>
25099
25100         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
25101         * modules/tmpfile (configure.ac): Update.
25102
25103         tmpfile: Fix C++ test error on mingw.
25104         * lib/stdio.in.h (tmpfile): New declaration.
25105         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
25106         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
25107         * modules/tmpfile (Depends-on): Add stdio.
25108         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
25109         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
25110         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
25111         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
25112         REPLACE_TMPFILE.
25113         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
25114
25115 2010-04-04  Bruno Haible  <bruno@clisp.org>
25116
25117         ioctl: Fix C++ test error on mingw.
25118         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
25119         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
25120         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
25121
25122 2010-04-03  Bruno Haible  <bruno@clisp.org>
25123
25124         wcwidth: Fix C++ test error on mingw.
25125         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
25126         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
25127         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
25128
25129 2010-04-03  Bruno Haible  <bruno@clisp.org>
25130
25131         nanosleep: Fix C++ test error on mingw.
25132         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
25133         * lib/time.in.h (nanosleep): Use modern idiom.
25134         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
25135         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
25136         REPLACE_NANOSLEEP to 1.
25137         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
25138         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
25139
25140 2010-04-03  Bruno Haible  <bruno@clisp.org>
25141
25142         strptime: Fix C++ test error on mingw.
25143         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
25144         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
25145         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
25146         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
25147         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
25148         not REPLACE_STRPTIME.
25149         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
25150         REPLACE_STRPTIME.
25151
25152 2010-04-03  Bruno Haible  <bruno@clisp.org>
25153
25154         timegm: Fix C++ test error on mingw.
25155         * lib/time.in.h (timegm): Use modern idiom.
25156         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
25157         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
25158         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
25159         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
25160
25161 2010-04-03  Bruno Haible  <bruno@clisp.org>
25162
25163         timegm: Assume declaration if function exists.
25164         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
25165         if it exists. Don't clobber ac_cv_func_timegm.
25166
25167 2010-04-03  Bruno Haible  <bruno@clisp.org>
25168
25169         time_r: Fix C++ test error on mingw.
25170         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
25171         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
25172         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
25173         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
25174         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
25175
25176 2010-04-03  Bruno Haible  <bruno@clisp.org>
25177
25178         time_r: Minor updates.
25179         * modules/time_r (Description): Mention the provided functions.
25180         * lib/time_r.c: Don't include <string.h>.
25181         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
25182         * doc/posix-functions/localtime_r.texi: Likewise.
25183
25184 2010-04-03  Bruno Haible  <bruno@clisp.org>
25185
25186         time: Fix regression introduced on 2010-03-08.
25187         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
25188         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
25189
25190 2010-04-03  Jim Meyering  <meyering@redhat.com>
25191
25192         maint.mk: don't silently disable project-specific syntax-check rules
25193         * top/maint.mk (_prohibit_regexp): Define, to help people realize
25194         that they need to convert their project-specific syntax-check rules
25195         to use the new _sc_search_regexp.
25196
25197 2010-04-03  Bruno Haible  <bruno@clisp.org>
25198
25199         fchdir: Fix regression introduced on 2010-03-08.
25200         * lib/unistd.in.h (fchdir): Fix declaration.
25201         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
25202         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
25203         REPLACE_FCHDIR.
25204         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
25205         REPLACE_FCHDIR.
25206
25207 2010-04-03  Bruno Haible  <bruno@clisp.org>
25208
25209         getpagesize: Fix C++ test error on mingw.
25210         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
25211         system does not declare the function.
25212         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
25213         declared.
25214         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25215         HAVE_DECL_GETPAGESIZE.
25216         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
25217
25218 2010-04-03  Bruno Haible  <bruno@clisp.org>
25219
25220         stdio: Make C++ tests work on mingw.
25221         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
25222         does not declare the function.
25223
25224 2010-04-03  Bruno Haible  <bruno@clisp.org>
25225
25226         ftello: Fix C++ test error on mingw.
25227         * lib/stdio.in.h (ftello): Use modern idiom.
25228         * lib/ftello.c (ftello): Renamed from rpl_ftello.
25229         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
25230         is missing and that it needs to be replaced.
25231         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
25232         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
25233         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
25234
25235 2010-04-03  Bruno Haible  <bruno@clisp.org>
25236
25237         fseeko: Fix C++ test error on mingw.
25238         * lib/stdio.in.h (fseeko): Use modern idiom.
25239         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
25240         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
25241         is missing and that it needs to be replaced.
25242         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
25243         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
25244         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
25245
25246 2010-04-03  Bruno Haible  <bruno@clisp.org>
25247
25248         mkstemp: Fix C++ test error on mingw.
25249         * lib/stdlib.in.h (mkstemp): Use modern idiom.
25250         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
25251         function is missing and that it needs to be replaced.
25252         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
25253         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
25254
25255 2010-04-03  Bruno Haible  <bruno@clisp.org>
25256
25257         stpncpy: Fix C++ test error on mingw.
25258         * lib/string.in.h (stpncpy): Use modern idiom.
25259         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
25260         function is missing and that it needs to be replaced.
25261         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25262         REPLACE_STPNCPY.
25263         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
25264
25265 2010-04-03  Bruno Haible  <bruno@clisp.org>
25266
25267         sys_stat: Fix C++ test error on mingw.
25268         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
25269         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
25270
25271 2010-04-03  Bruno Haible  <bruno@clisp.org>
25272
25273         pty: Update doc.
25274         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
25275
25276 2010-04-03  Bruno Haible  <bruno@clisp.org>
25277
25278         unistd: Fix C++ test error on mingw.
25279         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
25280
25281 2010-04-03  Bruno Haible  <bruno@clisp.org>
25282
25283         Update doc regarding mingw.
25284         * doc/glibc-functions/openpty.texi: Update regarding mingw.
25285         * doc/glibc-functions/login_tty.texi: Likewise.
25286         * doc/glibc-functions/forkpty.texi: Likewise.
25287
25288 2010-04-03  Bruno Haible  <bruno@clisp.org>
25289
25290         stdlib: Avoid compilation failure of c-strtold on mingw.
25291         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
25292
25293 2010-04-03  Bruno Haible  <bruno@clisp.org>
25294
25295         locale: Make C++ tests work on Cygwin and mingw.
25296         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
25297         cannot provide the function.
25298         Reported by Simon Josefsson.
25299
25300 2010-04-03  Bruno Haible  <bruno@clisp.org>
25301
25302         localename: Port to MacOS X 10.6.
25303         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
25304         memory layout of the locales in MacOS X 10.6 as well.
25305         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
25306
25307 2010-04-02  Bruno Haible  <bruno@clisp.org>
25308
25309         gnulib-tool: Ensure that long-running tests are executed last.
25310         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
25311         running tests after the one for the other tests.
25312
25313 2010-04-02  Bruno Haible  <bruno@clisp.org>
25314
25315         gnulib-tool: Ensure the tests in the main directory are executed first.
25316         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
25317         start with the current directory.
25318
25319 2010-04-02  Bruno Haible  <bruno@clisp.org>
25320
25321         Tests for module 'havelib', moved here from GNU gettext.
25322         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
25323         modifications.
25324         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
25325         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
25326         with modifications.
25327         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
25328         modifications.
25329         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
25330         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
25331         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
25332         with modifications.
25333         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
25334         with modifications.
25335         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
25336         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
25337         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
25338         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
25339         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
25340         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
25341         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
25342         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
25343         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
25344         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
25345         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
25346         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
25347         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
25348         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
25349         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
25350         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
25351         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
25352         with modifications.
25353         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
25354         with modifications.
25355         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
25356         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
25357         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
25358         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
25359         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
25360         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
25361         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
25362         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
25363         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
25364         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
25365         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
25366         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
25367         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
25368         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
25369         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
25370         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
25371         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
25372         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
25373         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
25374         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
25375         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
25376         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
25377         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
25378         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
25379         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
25380         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
25381         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
25382         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
25383         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
25384         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
25385         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
25386         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
25387         * tests/havelib/rpathx/rpathx.c: New file, from
25388         gettext/autoconf-lib-link.
25389         * tests/havelib/rpathx/Makefile.am: New file, from
25390         gettext/autoconf-lib-link.
25391         * tests/havelib/rpathx/configure.ac: New file, from
25392         gettext/autoconf-lib-link with modifications.
25393         * tests/havelib/rpathy/rpathy.c: New file, from
25394         gettext/autoconf-lib-link.
25395         * tests/havelib/rpathy/Makefile.am: New file, from
25396         gettext/autoconf-lib-link.
25397         * tests/havelib/rpathy/configure.ac: New file, from
25398         gettext/autoconf-lib-link with modifications.
25399         * tests/havelib/rpathz/rpathz.c: New file, from
25400         gettext/autoconf-lib-link.
25401         * tests/havelib/rpathz/Makefile.am: New file, from
25402         gettext/autoconf-lib-link.
25403         * tests/havelib/rpathz/configure.ac: New file, from
25404         gettext/autoconf-lib-link with modifications.
25405         * tests/havelib/rpathlx/usex.c: New file, from
25406         gettext/autoconf-lib-link.
25407         * tests/havelib/rpathlx/Makefile.am: New file, from
25408         gettext/autoconf-lib-link.
25409         * tests/havelib/rpathlx/configure.ac: New file, from
25410         gettext/autoconf-lib-link with modifications.
25411         * tests/havelib/rpathly/usey.c: New file, from
25412         gettext/autoconf-lib-link.
25413         * tests/havelib/rpathly/Makefile.am: New file, from
25414         gettext/autoconf-lib-link.
25415         * tests/havelib/rpathly/configure.ac: New file, from
25416         gettext/autoconf-lib-link with modifications.
25417         * tests/havelib/rpathlz/usez.c: New file, from
25418         gettext/autoconf-lib-link.
25419         * tests/havelib/rpathlz/Makefile.am: New file, from
25420         gettext/autoconf-lib-link.
25421         * tests/havelib/rpathlz/configure.ac: New file, from
25422         gettext/autoconf-lib-link with modifications.
25423         * tests/havelib/rpathlyx/usey.c: New file, from
25424         gettext/autoconf-lib-link.
25425         * tests/havelib/rpathlyx/Makefile.am: New file, from
25426         gettext/autoconf-lib-link.
25427         * tests/havelib/rpathlyx/configure.ac: New file, from
25428         gettext/autoconf-lib-link with modifications.
25429         * tests/havelib/rpathlzyx/usez.c: New file, from
25430         gettext/autoconf-lib-link.
25431         * tests/havelib/rpathlzyx/Makefile.am: New file, from
25432         gettext/autoconf-lib-link.
25433         * tests/havelib/rpathlzyx/configure.ac: New file, from
25434         gettext/autoconf-lib-link with modifications.
25435         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
25436         with modifications.
25437
25438 2010-04-02  Bruno Haible  <bruno@clisp.org>
25439
25440         gnulib-tool: Create distributed built sources also for the tests.
25441         * gnulib-tool (func_create_testdir): Also generate distributed built
25442         sources in the tests directory.
25443
25444 2010-04-02  Bruno Haible  <bruno@clisp.org>
25445
25446         gnulib-tool: Obey user's environment variables.
25447         * gnulib-tool (func_create_testdir): When creating built sources,
25448         respect the environment variables for autoconf, automake, etc. given by
25449         the user.
25450
25451 2010-04-02  Bruno Haible  <bruno@clisp.org>
25452
25453         gnulib-tool: Provide the value of --m4-base to modules.
25454         * gnulib-tool (func_import, func_create_testdir): Emit a definition
25455         of gl_m4_base.
25456
25457 2010-04-02  Eric Blake  <eblake@redhat.com>
25458
25459         maint.mk: fix some fallout
25460         * NEWS: Document the incompatible change, and its effect on cfg.mk.
25461         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
25462
25463 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
25464
25465         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
25466         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
25467         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
25468         (sc_cast_of_x_alloc_return_value): Likewise.
25469         (sc_cast_of_alloca_return_value): Likewise.
25470         (sc_space_tab): Likewise.
25471         (sc_prohibit_atoi_atof): Likewise.
25472         (sc_prohibit_magic_number_exit): Likewise.
25473         (sc_error_exit_success): Likewise.
25474         (sc_file_system): Likewise.
25475         (sc_prohibit_have_config_h): Likewise.
25476         (sc_require_config_h): Likewise.
25477         (sc_prohibit_HAVE_MBRTOWC): Likewise.
25478         (sc_obsolete_symbols): Likewise.
25479         (sc_changelog): Likewise.
25480         (sc_program_name): Likewise.
25481         (sc_the_the): Likewise.
25482         (sc_trailing_blank): Likewise.
25483         (sc_two_space_separator_in_usage): Likewise.
25484         (sc_useless_cpp_parens): Likewise.
25485         (sc_GPL_version): Likewise.
25486         (sc_GFDL_version): Likewise.
25487         (sc_texinfo_acronym): Likewise.
25488         (sc_prohibit_cvs_keyword): Likewise.
25489         (sc_prohibit_stat_st_blocks): Likewise.
25490         (sc_prohibit_S_IS_definition): Likewise.
25491         (sc_redundant_const): Likewise.
25492         (sc_makefile_TAB_only_indentation): Likewise.
25493         (sc_m4_quote_check): Likewise.
25494         (sc_makefile_path_separator_check): Likewise.
25495         (sc_copyright_check): Likewise.
25496         (sc_Wundef_boolean): Likewise.
25497         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25498
25499         maint.mk: match 0 or more whitespace-before-function-call '('
25500         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
25501         that have zero or two-and-more spaces between the function name
25502         and the open parenthesis.
25503         (sc_error_message_warn_fatal): Likewise.
25504         (sc_error_message_uppercase): Likewise.
25505         (sc_error_message_period): Likewise.
25506
25507 2010-03-31  Eric Blake  <eblake@redhat.com>
25508
25509         maint.mk: check for [ as well as test
25510         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
25511         Based on a libvirt report by Matthias Bolte.
25512
25513         gnumakefile: don't squelch _version output
25514         * top/GNUmakefile (_version): Create one-shot dependency rather
25515         than using $(shell) when version must be regenerated.
25516         (_autoreconf): Run verbosely, by default.
25517
25518         sys_time: avoid compiler warnings
25519         * lib/sys_time.in.h (includes): Ensure gcc pragma is
25520         unconditional, fixing regression from 2010-03-29.
25521         Reported by Simon Josefsson.
25522
25523 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
25524
25525         maint.mk: s/_header_without_use/_sc_header_without_use/
25526         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
25527         (sc_prohibit_assert_without_use): Use the new name.
25528         (sc_prohibit_close_stream_without_use): Likewise.
25529         (sc_prohibit_getopt_without_use): Likewise.
25530         (sc_prohibit_quotearg_without_use): Likewise.
25531         (sc_prohibit_quote_without_use): Likewise.
25532         (sc_prohibit_long_options_without_use): Likewise.
25533         (sc_prohibit_inttostr_without_use): Likewise.
25534         (sc_prohibit_ignore_value_without_use): Likewise.
25535         (sc_prohibit_error_without_use): Likewise.
25536         (sc_prohibit_xalloc_without_use): Likewise.
25537         (sc_prohibit_hash_without_use): Likewise.
25538         (sc_prohibit_hash_pjw_without_use): Likewise.
25539         (sc_prohibit_safe_read_without_use): Likewise.
25540         (sc_prohibit_argmatch_without_use): Likewise.
25541         (sc_prohibit_canonicalize_without_use): Likewise.
25542         (sc_prohibit_root_dev_ino_without_use): Likewise.
25543         (sc_prohibit_openat_without_use): Likewise.
25544         (sc_prohibit_c_ctype_without_use): Likewise.
25545         (sc_prohibit_signal_without_use): Likewise.
25546         (sc_prohibit_intprops_without_use): Likewise.
25547
25548 2010-03-30  Eric Blake  <eblake@redhat.com>
25549
25550         maint: improve module indicators
25551         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
25552         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
25553         columns, and avoid extra macro expansion.
25554
25555         fdopendir: work around FreeBSD bug
25556         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
25557         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
25558         * modules/dirent (Makefile.am): Substitute it.
25559         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
25560         declaration.
25561         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
25562         fix.
25563         Reported by Christian Weisgerber <naddy@mips.inka.de>.
25564
25565 2010-03-29  Bruno Haible  <bruno@clisp.org>
25566
25567         Emit #pragma system_header after the inclusion guard, not before.
25568         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
25569         guard that spans the entire file, not before. This enables an
25570         optimization in GCC's preprocessor.
25571         * lib/ctype.in.h: Likewise.
25572         * lib/dirent.in.h: Likewise.
25573         * lib/errno.in.h: Likewise.
25574         * lib/float.in.h: Likewise.
25575         * lib/getopt.in.h: Likewise.
25576         * lib/iconv.in.h: Likewise.
25577         * lib/langinfo.in.h: Likewise.
25578         * lib/locale.in.h: Likewise.
25579         * lib/math.in.h: Likewise.
25580         * lib/netdb.in.h: Likewise.
25581         * lib/netinet_in.in.h: Likewise.
25582         * lib/pty.in.h: Likewise.
25583         * lib/sched.in.h: Likewise.
25584         * lib/se-selinux.in.h: Likewise.
25585         * lib/search.in.h: Likewise.
25586         * lib/spawn.in.h: Likewise.
25587         * lib/stdarg.in.h: Likewise.
25588         * lib/stdint.in.h: Likewise.
25589         * lib/string.in.h: Likewise.
25590         * lib/strings.in.h: Likewise.
25591         * lib/sys_file.in.h: Likewise.
25592         * lib/sys_ioctl.in.h: Likewise.
25593         * lib/sys_time.in.h: Likewise.
25594         * lib/sys_times.in.h: Likewise.
25595         * lib/sys_utsname.in.h: Likewise.
25596         * lib/sys_wait.in.h: Likewise.
25597         * lib/sysexits.in.h: Likewise.
25598         * lib/wctype.in.h: Likewise.
25599
25600 2010-03-28  James Youngman  <jay@gnu.org>
25601
25602         save-cwd: don't leak a file descriptor when the caller execs.
25603         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
25604         saved file descriptor.
25605         * modules/save-cwd (Depends-on): Depend on cloexec.
25606
25607 2010-03-29  Bruno Haible  <bruno@clisp.org>
25608
25609         Remove vestiges of fts-lgpl module.
25610         * lib/fts_.h: Assume GNULIB_FTS is 1.
25611         * lib/fts.c: Likewise.
25612         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25613
25614 2010-03-28  Bruno Haible  <bruno@clisp.org>
25615
25616         Fix definition of tests witness macro.
25617         * gnulib-tool (func_import): Fix definition of witness macro.
25618
25619 2010-03-28  Bruno Haible  <bruno@clisp.org>
25620
25621         Fix ioctl's protoype on glibc systems.
25622         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
25623         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
25624         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
25625         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
25626         signature. If not, arrange to replace the ioctl function.
25627         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
25628         REPLACE_IOCTL.
25629         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
25630         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
25631         Reported by Ludovic Courtès <ludo@gnu.org>.
25632
25633 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
25634
25635         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
25636         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
25637         made it so grep -r --include=GLOB* ... did not work.
25638
25639 2010-03-26  Jim Meyering  <meyering@redhat.com>
25640             Eric Blake  <eblake@redhat.com>
25641
25642         maint.mk: prohibit use of test's -o and -a operators
25643         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
25644
25645 2010-03-28  Bruno Haible  <bruno@clisp.org>
25646
25647         Remove unused GNULIB_XYZ macro definitions.
25648         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
25649         invocation.
25650
25651 2010-03-28  Bruno Haible  <bruno@clisp.org>
25652
25653         Mark privileged tests modules.
25654         * modules/idpriv-drop-tests (Status): New section.
25655         * modules/idpriv-droptemp-tests (Status): New section.
25656
25657 2010-03-28  Bruno Haible  <bruno@clisp.org>
25658
25659         Split C++ tests into separate tests modules.
25660         * modules/dirent-c++-tests: New file, extracted from
25661         modules/dirent-tests.
25662         * modules/dirent-tests: Depend on it.
25663         * modules/fcntl-h-c++-tests: New file, extracted from
25664         modules/fcntl-h-tests.
25665         * modules/fcntl-h-tests: Depend on it.
25666         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
25667         * modules/glob-tests: Depend on it.
25668         * modules/iconv-h-c++-tests: New file, extracted from
25669         modules/iconv-h-tests.
25670         * modules/iconv-h-tests: Depend on it.
25671         * modules/langinfo-c++-tests: New file, extracted from
25672         modules/langinfo-tests.
25673         * modules/langinfo-tests: Depend on it.
25674         * modules/locale-c++-tests: New file, extracted from
25675         modules/locale-tests.
25676         * modules/locale-tests: Depend on it.
25677         * modules/math-c++-tests: New file, extracted from modules/math-tests.
25678         * modules/math-tests: Depend on it.
25679         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
25680         * modules/pty-tests: Depend on it.
25681         * modules/search-c++-tests: New file, extracted from
25682         modules/search-tests.
25683         * modules/search-tests: Depend on it.
25684         * modules/signal-c++-tests: New file, extracted from
25685         modules/signal-tests.
25686         * modules/signal-tests: Depend on it.
25687         * modules/spawn-c++-tests: New file, extracted from
25688         modules/spawn-tests.
25689         * modules/spawn-tests: Depend on it.
25690         * modules/stdio-c++-tests: New file, extracted from
25691         modules/stdio-tests.
25692         * modules/stdio-tests: Depend on it.
25693         * modules/stdlib-c++-tests: New file, extracted from
25694         modules/stdlib-tests.
25695         * modules/stdlib-tests: Depend on it.
25696         * modules/string-c++-tests: New file, extracted from
25697         modules/string-tests.
25698         * modules/string-tests: Depend on it.
25699         * modules/sys_ioctl-c++-tests: New file, extracted from
25700         modules/sys_ioctl-tests.
25701         * modules/sys_ioctl-tests: Depend on it.
25702         * modules/sys_select-c++-tests: New file, extracted from
25703         modules/sys_select-tests.
25704         * modules/sys_select-tests: Depend on it.
25705         * modules/sys_socket-c++-tests: New file, extracted from
25706         modules/sys_socket-tests.
25707         * modules/sys_socket-tests: Depend on it.
25708         * modules/sys_stat-c++-tests: New file, extracted from
25709         modules/sys_stat-tests.
25710         * modules/sys_stat-tests: Depend on it.
25711         * modules/sys_time-c++-tests: New file, extracted from
25712         modules/sys_time-tests.
25713         * modules/sys_time-tests: Depend on it.
25714         * modules/time-c++-tests: New file, extracted from modules/time-tests.
25715         * modules/time-tests: Depend on it.
25716         * modules/unistd-c++-tests: New file, extracted from
25717         modules/unistd-tests.
25718         * modules/unistd-tests: Depend on it.
25719         * modules/wchar-c++-tests: New file, extracted from
25720         modules/wchar-tests.
25721         * modules/wchar-tests: Depend on it.
25722         * modules/wctype-c++-tests: New file, extracted from
25723         modules/wctype-tests.
25724         * modules/wctype-tests: Depend on it.
25725         Reported by Simon Josefsson.
25726
25727 2010-03-28  Bruno Haible  <bruno@clisp.org>
25728
25729         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
25730         * gnulib-tool (func_exists_module): New function, extracted from
25731         func_verify_module.
25732         (func_verify_module): Use it.
25733         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
25734         'foo' only if 'foo' exists.
25735         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
25736         module.
25737
25738 2010-03-28  Bruno Haible  <bruno@clisp.org>
25739
25740         gnulib-tool: Add support for special categories of tests.
25741         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
25742         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
25743         (func_usage): Document them.
25744         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
25745         inc_unportable_tests, inc_all_tests): New variables.
25746         (func_acceptable): Consider these variables.
25747         (func_modules_transitive_closure): Make it work when the 'Status' field
25748         consists of multiple words.
25749         (func_import): Store and restore the values of inc_cxx_tests,
25750         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
25751         inc_all_tests in gnulib-comp.m4.
25752         (func_create_testdir): Set inc_all_tests to true.
25753         * doc/gnulib.texi (Extra tests modules): New section.
25754         Suggested by Jim Meyering.
25755
25756 2010-03-28  Bruno Haible  <bruno@clisp.org>
25757
25758         ansi-c++-opt: Allow turning off the C++ build by default.
25759         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
25760         gl_CXX_CHOICE_DEFAULT_NO is defined.
25761         Requested by Eric Blake.
25762
25763 2010-03-28  Bruno Haible  <bruno@clisp.org>
25764
25765         unistd: Avoid #define replacements in C++ mode.
25766         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
25767         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
25768         setsockopt, shutdown, select): In C++, attach a warning to the function
25769         if possible, rather than #defining the symbol to a dysfunctional alias.
25770         Reported by John W. Eaton <jwe@gnu.org>.
25771
25772 2010-03-28  Bruno Haible  <bruno@clisp.org>
25773
25774         Fix link errors on mingw.
25775         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
25776         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
25777         $(LIBSOCKET).
25778         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
25779         $(LIBSOCKET).
25780
25781 2010-03-28  Bruno Haible  <bruno@clisp.org>
25782             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25783
25784         lib-ignore: Determine different options for different compilers.
25785         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
25786         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
25787         Add comments.
25788         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
25789         * NEWS: Mention the change.
25790
25791 2010-03-27  Bruno Haible  <bruno@clisp.org>
25792
25793         Remove unused GNULIB_XYZ macro definitions.
25794         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25795         * modules/fseek (configure.ac): Likewise.
25796         * modules/ioctl (configure.ac): Likewise.
25797         * modules/open (configure.ac): Likewise.
25798         * modules/stdlib-safer (configure.ac): Likewise.
25799
25800 2010-03-27  Bruno Haible  <bruno@clisp.org>
25801
25802         Add a remark about certain modules.
25803         * modules/malloc (Comment): New section.
25804         * modules/realloc (Comment): Likewise.
25805         * modules/sigpipe (Comment): Likewise.
25806
25807 2010-03-27  Bruno Haible  <bruno@clisp.org>
25808
25809         Resolve conflict between the two kinds of module indicators.
25810         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
25811         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
25812         * modules/canonicalize (configure.ac): Invoke
25813         gl_MODULE_INDICATOR_FOR_TESTS.
25814         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
25815         GNULIB_XYZ.
25816         * tests/test-dirent-c++.cc: Likewise.
25817         * tests/test-dirent-safer.c: Likewise.
25818         * tests/test-dup2.c: Likewise.
25819         * tests/test-fchdir.c: Likewise.
25820         * tests/test-fcntl-h-c++.cc: Likewise.
25821         * tests/test-getopt.c: Likewise.
25822         * tests/test-getopt.h: Likewise.
25823         * tests/test-langinfo-c++.cc: Likewise.
25824         * tests/test-locale-c++.cc: Likewise.
25825         * tests/test-math-c++.cc: Likewise.
25826         * tests/test-pty-c++.cc: Likewise.
25827         * tests/test-search-c++.cc: Likewise.
25828         * tests/test-signal-c++.cc: Likewise.
25829         * tests/test-spawn-c++.cc: Likewise.
25830         * tests/test-stdio-c++.cc: Likewise.
25831         * tests/test-stdlib-c++.cc: Likewise.
25832         * tests/test-string-c++.cc: Likewise.
25833         * tests/test-sys_ioctl-c++.cc: Likewise.
25834         * tests/test-sys_select-c++.cc: Likewise.
25835         * tests/test-sys_socket-c++.cc: Likewise.
25836         * tests/test-sys_stat-c++.cc: Likewise.
25837         * tests/test-sys_time-c++.cc: Likewise.
25838         * tests/test-time-c++.cc: Likewise.
25839         * tests/test-unistd-c++.cc: Likewise.
25840         * tests/test-wchar-c++.cc: Likewise.
25841         * tests/uninorm/test-u8-nfc.c: Likewise.
25842         * tests/uninorm/test-u8-nfd.c: Likewise.
25843         * tests/uninorm/test-u8-nfkc.c: Likewise.
25844         * tests/uninorm/test-u8-nfkd.c: Likewise.
25845         * tests/uninorm/test-u16-nfc.c: Likewise.
25846         * tests/uninorm/test-u16-nfd.c: Likewise.
25847         * tests/uninorm/test-u16-nfkc.c: Likewise.
25848         * tests/uninorm/test-u16-nfkd.c: Likewise.
25849         * tests/uninorm/test-u32-nfc.c: Likewise.
25850         * tests/uninorm/test-u32-nfc-big.c: Likewise.
25851         * tests/uninorm/test-u32-nfd.c: Likewise.
25852         * tests/uninorm/test-u32-nfd-big.c: Likewise.
25853         * tests/uninorm/test-u32-nfkc.c: Likewise.
25854         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
25855         * tests/uninorm/test-u32-nfkd.c: Likewise.
25856         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
25857         * tests/uninorm/test-u32-normalize-big.c: Likewise.
25858
25859 2010-03-27  Bruno Haible  <bruno@clisp.org>
25860
25861         Distinguish two kinds of module indicators.
25862         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
25863         gl_MODULE_INDICATOR.
25864         (gl_MODULE_INDICATOR): New macro.
25865         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
25866         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
25867         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25868         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25869         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25870         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25871         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25872         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25873         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25874         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25875         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25876         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25877         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25878         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25879         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25880         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25881         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25882         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25883         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25884         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25885         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25886         * modules/cloexec (configure.ac): Likewise.
25887         * modules/getopt-gnu (configure.ac): Likewise.
25888         * modules/uninorm/u8-normalize (configure.ac): Likewise.
25889         * modules/uninorm/u16-normalize (configure.ac): Likewise.
25890         * modules/uninorm/u32-normalize (configure.ac): Likewise.
25891         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
25892
25893 2010-03-27  Bruno Haible  <bruno@clisp.org>
25894
25895         New module description field 'Comment'.
25896         * gnulib-tool: New option --extract-comment.
25897         (func_usage): Document it.
25898         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
25899         (func_get_comment): New function.
25900         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
25901
25902 2010-03-27  Bruno Haible  <bruno@clisp.org>
25903
25904         Addendum to 2010-02-07 commit.
25905         * gnulib-tool (func_usage): Document --extract-applicability option.
25906
25907 2010-03-27  Bruno Haible  <bruno@clisp.org>
25908
25909         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
25910         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
25911         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
25912         rather than link errors.
25913
25914 2010-03-27  Bruno Haible  <bruno@clisp.org>
25915
25916         Avoid side effects from tests-related modules on the compilation of lib.
25917         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
25918         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
25919         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
25920         parameter. Emit into AM_CPPFLAGS a definition of the designated C
25921         macro.
25922         (func_import): Define a witness macro. Assign it a value that depends
25923         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
25924         tests-related modules.
25925         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
25926         Reported by Jim Meyering.
25927
25928 2010-03-27  Bruno Haible  <bruno@clisp.org>
25929
25930         Factorize common .m4 code.
25931         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
25932         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
25933         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
25934         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
25935         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25936         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
25937         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
25938         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25939         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25940         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25941         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
25942         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25943         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25944         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25945         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25946         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
25947         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25948         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25949         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25950         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
25951         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
25952         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25953         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25954         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25955         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25956         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25957         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
25958         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
25959         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
25960         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25961         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25962         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25963
25964 2010-03-27  Bruno Haible  <bruno@clisp.org>
25965
25966         Fix a compilation error on Cygwin with g++ >= 4.3.
25967         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
25968         if it is undefined or if we alias it to chmod.
25969         (lstat): Don't warn about the use of this function if it is undefined
25970         or if we alias it to stat.
25971         Reported by Simon Josefsson.
25972
25973 2010-03-27  Bruno Haible  <bruno@clisp.org>
25974
25975         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
25976         * modules/getlogin (configure.ac): Update.
25977
25978         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
25979         * modules/getlogin_r (configure.ac): Update.
25980
25981         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
25982         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
25983         * modules/inet_ntop (configure.ac): Update.
25984
25985         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
25986         * modules/inet_pton (configure.ac): Update.
25987
25988         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
25989         * modules/mbslen (configure.ac): Update.
25990
25991         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
25992         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
25993         * modules/forkpty (configure.ac): Update.
25994         * modules/openpty (configure.ac): Update.
25995
25996 2010-03-26  Simon Josefsson  <simon@josefsson.org>
25997
25998         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
25999         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
26000
26001 2010-03-25  Eric Blake  <eblake@redhat.com>
26002
26003         maint: use pragma consistently across replacement headers
26004         * lib/ctype.in.h (system_header): Hoist for consistent placement.
26005         * lib/dirent.in.h (system_header): Likewise.
26006         * lib/errno.in.h (system_header): Likewise.
26007         * lib/float.in.h (system_header): Likewise.
26008         * lib/getopt.in.h (system_header): Likewise.
26009         * lib/iconv.in.h (system_header): Likewise.
26010         * lib/inttypes.in.h (system_header): Likewise.
26011         * lib/langinfo.in.h (system_header): Likewise.
26012         * lib/locale.in.h (system_header): Likewise.
26013         * lib/math.in.h (system_header): Likewise.
26014         * lib/netdb.in.h (system_header): Likewise.
26015         * lib/netinet_in.in.h (system_header): Likewise.
26016         * lib/pty.in.h (system_header): Likewise.
26017         * lib/sched.in.h (system_header): Likewise.
26018         * lib/se-selinux.in.h (system_header): Likewise.
26019         * lib/search.in.h (system_header): Likewise.
26020         * lib/spawn.in.h (system_header): Likewise.
26021         * lib/stdarg.in.h (system_header): Likewise.
26022         * lib/stdint.in.h (system_header): Likewise.
26023         * lib/string.in.h (system_header): Likewise.
26024         * lib/strings.in.h (system_header): Likewise.
26025         * lib/sys_file.in.h (system_header): Likewise.
26026         * lib/sys_ioctl.in.h (system_header): Likewise.
26027         * lib/sys_socket.in.h (system_header): Likewise.
26028         * lib/sys_times.in.h (system_header): Likewise.
26029         * lib/sys_utsname.in.h (system_header): Likewise.
26030         * lib/sys_wait.in.h (system_header): Likewise.
26031         * lib/sysexits.in.h (system_header): Likewise.
26032         * lib/unistd.in.h (system_header): Likewise.
26033         * lib/wctype.in.h (system_header): Likewise.
26034
26035         arpa/inet: fix mingw compilation warning
26036         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
26037         Reported by Matthew Bolte.
26038
26039 2010-03-25  Bruno Haible  <bruno@clisp.org>
26040
26041         Avoid collision between gnulib wrapper and libintl wrapper.
26042         * lib/printf.c (printf): Don't define if a printf wrapper is already
26043         defined in intl/printf.c.
26044         Reported by Michel Boaventura <michel@michelboaventura.com>.
26045
26046 2010-03-25  Bruno Haible  <bruno@clisp.org>
26047
26048         Use ANSI C.
26049         * lib/readutmp.h (getutent): Provide ANSI C prototype.
26050
26051 2010-03-25  Bruno Haible  <bruno@clisp.org>
26052
26053         Minor formatting changes.
26054         * lib/acosl.c: Insert space before function argument list.
26055         * lib/argz.c: Likewise.
26056         * lib/asinl.c: Likewise.
26057         * lib/expl.c: Likewise.
26058         * lib/gen-uni-tables.c: Likewise.
26059         * lib/gettext.h: Likewise.
26060         * lib/glthread/lock.h: Likewise.
26061         * lib/tanl.c: Likewise.
26062         * lib/uniname/uniname.c: Likewise.
26063         * tests/test-idpriv-drop.c: Likewise.
26064         * tests/test-idpriv-droptemp.c: Likewise.
26065         * tests/test-lock.c: Likewise.
26066         * tests/test-tls.c: Likewise.
26067         * lib/argp-help.c: Insert space before function-like macro argument
26068         list.
26069         * lib/memcmp.c: Likewise.
26070         * tests/test-base64.c: Likewise.
26071         * lib/localename.c: Insert space before sizeof's argument list.
26072         * lib/safe-alloc.h: Likewise.
26073         * lib/file-set.h: Insert space before macro argument list.
26074         * tests/test-argp.c: Likewise.
26075         * lib/argp-namefrob.h: Insert space before function parameter list.
26076         * lib/getaddrinfo.c: Likewise.
26077         * lib/netdb.in.h: Likewise.
26078         * lib/parse-duration.h: Likewise.
26079         * lib/parse-duration.c: Likewise.
26080         * lib/poll.c: Likewise.
26081         * lib/select.c: Likewise.
26082         * lib/trim.h: Likewise.
26083         * tests/test-usleep.c: Likewise.
26084         * lib/ldexpl.c: Insert space before function parameter list and before
26085         function argument list.
26086         * lib/logl.c: Likewise.
26087         * lib/sqrtl.c: Likewise.
26088         * lib/trim.c: Likewise.
26089         * lib/cosl.c: Use GNU style indentation. Insert space before function
26090         argument list.
26091         * lib/sinl.c: Likewise.
26092         * lib/tsearch.c: Insert space after 'for'.
26093         Reported by Jim Meyering.
26094
26095 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
26096
26097         * maint.mk (sc_Wundef_boolean): Check for the presence of the
26098         config header before grepping, as it's not present before
26099         autoreconf/configure are run.  Reported by Simon Josefsson.
26100
26101 2010-03-23  Bruno Haible  <bruno@clisp.org>
26102
26103         pt_chown: Make it work with automake < 1.11.
26104         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
26105         Reported by Simon Josefsson.
26106
26107 2010-03-23  Bruno Haible  <bruno@clisp.org>
26108
26109         pt_chown: Don't depend on GPLed modules.
26110         * lib/pt_chown.c: Don't include idpriv.h.
26111         (main): Don't drop privileges.
26112         * modules/pt_chown (Depends-on): Remove idpriv-drop.
26113         Reported by Simon Josefsson.
26114
26115 2010-03-24  Simon Josefsson  <simon@josefsson.org>
26116
26117         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
26118         suggestions from karl@freefriends.org (Karl Berry).
26119
26120 2010-03-22  Eric Blake  <eblake@redhat.com>
26121
26122         gethostname: further tweaks
26123         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
26124         are overriding gethostname.
26125         Suggested by Bruno Haible.
26126
26127 2010-03-21  Bruno Haible  <bruno@clisp.org>
26128
26129         Fix comments.
26130         * lib/forkpty.c (rpl_forkpty): Fix comment.
26131         * lib/openpty.c (rpl_openpty): Likewise.
26132         Reported by Eric Blake.
26133
26134 2010-03-22  Eric Blake  <eblake@redhat.com>
26135
26136         gethostname: fix build on mingw
26137         * lib/unistd.in.h (includes): Work around fact that mingw
26138         <winsock2.h> re-includes <unistd.h>, by avoiding any
26139         redeclarations if we are being included by <winsock2.h>.
26140         Reported by Matthias Bolte.
26141
26142 2010-03-21  Bruno Haible  <bruno@clisp.org>
26143
26144         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
26145         * lib/forkpty.c (forkpty): New replacement function, from glibc with
26146         modifications.
26147         * lib/pty.in.h (forkpty): Update declaration. Add comments.
26148         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
26149         provide the replacement.
26150         * modules/forkpty (Depends-on): Add openpty, login_tty.
26151         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
26152         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
26153         * doc/glibc-functions/forkpty.texi: More supported platforms.
26154         * config/srclist.txt: Add forkpty.c (commented).
26155
26156 2010-03-21  Bruno Haible  <bruno@clisp.org>
26157
26158         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
26159         (Makefile.am): Verify that PTY_LIB is defined.
26160
26161         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
26162
26163 2010-03-21  Bruno Haible  <bruno@clisp.org>
26164
26165         Tests for module 'login_tty'.
26166         * modules/login_tty-tests: New file.
26167         * tests/test-login_tty.c: New file.
26168
26169         New module 'login_tty'.
26170         * lib/login_tty.c: New file.
26171         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
26172         * modules/login_tty: New file.
26173         * doc/glibc-functions/login_tty.texi: Mention the new module.
26174
26175 2010-03-21  Bruno Haible  <bruno@clisp.org>
26176
26177         login_tty: Documentation.
26178         * doc/glibc-functions/login_tty.texi: New file.
26179         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
26180
26181 2010-03-21  Bruno Haible  <bruno@clisp.org>
26182
26183         pty: Consistent macro naming.
26184         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
26185         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
26186         * modules/pty (configure.ac): Update.
26187
26188 2010-03-21  Bruno Haible  <bruno@clisp.org>
26189
26190         Tests for openpty: Make stricter.
26191         * tests/test-openpty.c (main): Add test of canonical processing and
26192         erase.
26193         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
26194
26195         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
26196         * lib/openpty.c (openpty): New replacement function.
26197         * lib/pty.in.h: Include <termios.h>.
26198         (openpty): Update declaration. Add comments.
26199         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
26200         is not declared, arrange to provide the replacement. Check for _getpty
26201         and posix_openpt.
26202         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
26203         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
26204         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
26205         * modules/pty-tests (test_pty_c___LDADD): New variable.
26206         * doc/glibc-functions/openpty.texi: More supported platforms.
26207
26208 2010-03-21  Bruno Haible  <bruno@clisp.org>
26209
26210         setenv: Tweaks.
26211         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
26212         the test program.
26213         * doc/posix-functions/setenv.texi: Update platforms list.
26214
26215 2010-03-21  Bruno Haible  <bruno@clisp.org>
26216
26217         New module 'unlockpt'.
26218         * lib/unlockpt.c: New file, from glibc with modifications.
26219         * m4/unlockpt.m4: New file.
26220         * modules/unlockpt: New file.
26221         * lib/stdlib.in.h (unlockpt): New declaration.
26222         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
26223         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
26224         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
26225         HAVE_UNLOCKPT.
26226         * doc/posix-functions/unlockpt.texi: Mention the new module.
26227         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
26228         * config/srclist.txt: Add unlockpt.c (commented).
26229
26230 2010-03-21  Jim Meyering  <meyering@redhat.com>
26231
26232         maint.mk: prohibit inclusion of "intprops.h" without use
26233         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
26234
26235 2010-03-21  Bruno Haible  <bruno@clisp.org>
26236
26237         New module 'grantpt'.
26238         * lib/grantpt.c: New file, from glibc with modifications.
26239         * m4/grantpt.m4: New file.
26240         * modules/grantpt: New file.
26241         * lib/stdlib.in.h (grantpt): New declaration.
26242         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
26243         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
26244         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
26245         HAVE_GRANTPT.
26246         * doc/posix-functions/grantpt.texi: Mention the new module.
26247         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
26248         * config/srclist.txt: Add grantpt.c (commented).
26249
26250 2010-03-21  Bruno Haible  <bruno@clisp.org>
26251
26252         New module 'pt_chown'.
26253         * lib/pt_chown.c: New file, from glibc with modifications.
26254         * lib/pty-private.h: New file, from glibc with modifications.
26255         * modules/pt_chown: New file.
26256         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
26257
26258 2010-03-21  Bruno Haible  <bruno@clisp.org>
26259
26260         Tests for module 'ptsname'.
26261         * modules/ptsname-tests: New file.
26262         * tests/test-ptsname.c: New file.
26263
26264         New module 'ptsname'.
26265         * lib/ptsname.c: New file, from glibc with modifications.
26266         * m4/ptsname.m4: New file.
26267         * modules/ptsname: New file.
26268         * lib/stdlib.in.h (ptsname): New declaration.
26269         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
26270         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
26271         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
26272         HAVE_PTSNAME.
26273         * doc/posix-functions/ptsname.texi: Mention the new module.
26274         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
26275         * config/srclist.txt: Add ptsname.c (commented).
26276
26277 2010-03-21  Bruno Haible  <bruno@clisp.org>
26278
26279         Tests for module 'ttyname_r'.
26280         * modules/ttyname_r-tests: New file.
26281         * tests/test-ttyname_r.c: New file.
26282
26283         New module 'ttyname_r'.
26284         * lib/ttyname_r.c: New file.
26285         * m4/ttyname_r.m4: New file.
26286         * modules/ttyname_r: New file.
26287         * lib/unistd.in.h (ttyname_r): New declaration.
26288         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
26289         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
26290         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
26291         HAVE_TTYNAME_R.
26292         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
26293         * doc/posix-functions/ttyname_r.texi: Mention the new module.
26294
26295 2010-03-20  Bruno Haible  <bruno@clisp.org>
26296
26297         signal: Undefine macro definitions in C++ mode.
26298         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
26299         sigfillset): Undefine macro definitions from the system header in C++
26300         mode.
26301         Reported by John W. Eaton <jwe@gnu.org>.
26302
26303 2010-03-20  Bruno Haible  <bruno@clisp.org>
26304
26305         Ensure no #include statements inside extern "C" { ... }.
26306         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
26307         contain #include statements.
26308         * lib/time.in.h: Likewise.
26309
26310 2010-03-20  Bruno Haible  <bruno@clisp.org>
26311
26312         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
26313         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
26314         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
26315         Reported by John W. Eaton <jwe@gnu.org>.
26316
26317 2010-03-20  Bruno Haible  <bruno@clisp.org>
26318
26319         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
26320         Reported by Jim Meyering.
26321
26322 2010-03-20  Bruno Haible  <bruno@clisp.org>
26323
26324         pipe: Set errno upon failure.
26325         * lib/pipe.h: Specify that when -1 is returned, errno is set.
26326         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
26327         errno value in error message.
26328
26329 2010-03-20  Bruno Haible  <bruno@clisp.org>
26330             Jim Meyering  <meyering@redhat.com>
26331
26332         lchown: Avoid "unused variable" warning.
26333         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
26334
26335 2010-03-20  Bruno Haible  <bruno@clisp.org>
26336
26337         Work around unlink() bug on MacOS X 10.5.6.
26338         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
26339         attempting to unlink a parent directory.
26340         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
26341         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
26342         activate for the replacement function.
26343         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
26344
26345 2010-03-20  Bruno Haible  <bruno@clisp.org>
26346
26347         Fix link errors on Solaris 8.
26348         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
26349         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
26350
26351 2010-03-19  Jim Meyering  <meyering@redhat.com>
26352
26353         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
26354         The _LIBC implementation of build_range_exp correctly honors the
26355         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
26356         However, the non-_LIBC implementation would ignore that syntax-bit
26357         flag and return REG_ERANGE unconditionally.
26358         This change makes it honor that flag.
26359         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
26360         Make two pointer parameters "const".
26361         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
26362         (parse_bracket_exp): Update caller.
26363
26364         regex.m4: correct the reversed range endpoint ([b-a]) test
26365         * m4/regex.m4: When requiring that [b-a] evoke failure,
26366         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
26367         test pass once again for x86-based systems.
26368
26369 2010-03-19  Bruno Haible  <bruno@clisp.org>
26370
26371         scandir: Fix link error on Solaris 8.
26372         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
26373         macros.
26374
26375 2010-03-19  Bruno Haible  <bruno@clisp.org>
26376
26377         getusershell: Fix documentation.
26378         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
26379         module.
26380         * doc/glibc-functions/setusershell.texi: Likewise.
26381
26382         getusershell: Provide declaration, missing on Solaris 9.
26383         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
26384         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
26385         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
26386         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
26387         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26388         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
26389         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
26390         HAVE_GETUSERSHELL.
26391         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
26392
26393 2010-03-19  Bruno Haible  <bruno@clisp.org>
26394
26395         wctype: Provide iswblank function.
26396         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
26397         exists and is fine.
26398         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
26399         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
26400         * tests/test-wctype.c (main): Re-enable the iswblank tests.
26401         * doc/posix-functions/iswblank.texi: Update.
26402
26403 2010-03-19  Bruno Haible  <bruno@clisp.org>
26404
26405         Tests of module 'pty' in C++ mode.
26406         * modules/pty-tests: New file.
26407         * tests/test-pty-c++.cc: New file.
26408         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26409
26410 2010-03-19  Eric Blake  <eblake@redhat.com>
26411
26412         logb: fix documentation
26413         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
26414         1.5 declaration bug.
26415
26416         forkpty, openpty: prefer glibc's const-safe prototype
26417         * lib/forkpty.c (rpl_forkpty): New file.
26418         * lib/openpty.c (rpl_openpty): Likewise.
26419         * modules/forkpty (Files): Distribute it.
26420         * modules/openpty (Files): Likewise.
26421         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
26422         check...
26423         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
26424         replacement for for non-const BSD signature.
26425         * modules/pty (Makefile.am): Substitute witnesses.
26426         * lib/pty.in.h (forkpty, openpty): Declare replacements.
26427         * tests/test-forkpty.c: Update signature check.
26428         * tests/test-openpty.c: Likewise.
26429         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
26430         * doc/glibc-functions/openpty.texi (openpty): Likewise.
26431
26432         forkpty, openpty: split functions into new modules
26433         * modules/pty (Makefile.am): Substitute new witnesses.
26434         (Libraries): Move library detection...
26435         * modules/forkpty: ...into new module.
26436         * modules/openpty: Another new module.
26437         * modules/pty-tests: Rename and split...
26438         * modules/forkpty-tests: ...to this...
26439         * modules/openpty-tests: ...and this.
26440         * tests/test-pty.c: Rename and split...
26441         * tests/test-forkpty.c: ...to this...
26442         * tests/test-openpty.c: ...and this.
26443         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
26444         (gl_PTY): Split library searching...
26445         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
26446         (gl_FORKPTY, gl_OPENPTY): New macros.
26447         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
26448         * NEWS: Mention the split.
26449         * MODULES.html.sh (Misc): Document the modules.
26450         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
26451         * doc/glibc-functions/openpty.texi (openpty): Likewise.
26452
26453         pty: improve replacement header
26454         * lib/pty.in.h: New file.
26455         * modules/pty (Files): Ship it.
26456         (Makefile.am): Always build replacement.
26457         * m4/pty.m4: Rename...
26458         * m4/pty_h.m4: ...to this.
26459         (gl_PTY): Modernize setting of witness macros; update check of
26460         forkpty to take proper advantage of cache.
26461         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
26462
26463         getopt: avoid compiler warning
26464         * lib/getopt.c (attribute_hidden): Remove unused macro.
26465
26466 2010-03-18  Bruno Haible  <bruno@clisp.org>
26467
26468         Fix link errors on Solaris 8.
26469         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
26470         * modules/search-tests (test_search_c___LDADD): Likewise.
26471         * modules/signal-tests (test_signal_c___LDADD): Likewise.
26472         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
26473         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
26474         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
26475         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
26476         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
26477         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
26478
26479 2010-03-18  Bruno Haible  <bruno@clisp.org>
26480
26481         Fix bug introduced on 2010-03-14.
26482         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
26483         (gl_SPAWN_H): Require it.
26484         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
26485         Reported by Simon Josefsson.
26486
26487 2010-03-18  Bruno Haible  <bruno@clisp.org>
26488
26489         Fix typo introduced on 2009-12-31.
26490         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
26491         posix_spawn_file_actions_adddup2.
26492
26493 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
26494         and Eric Blake  <eblake@redhat.com>
26495
26496         test-vc-list-files-git: make more robust
26497         * tests/test-vc-list-files-git.sh: Unset problematic environment
26498         variables.  Chain commands together.
26499
26500 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
26501
26502         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
26503         `AC_CHECK_DECL' invocation.
26504
26505 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
26506
26507         * lib/inttostr.c (inttostr): Make sure the invocation of verify
26508         appears before executable statements. Suggested by Petr Sumbera
26509         <Petr.Sumbera@Sun.COM>.
26510
26511 2010-03-14  Bruno Haible  <bruno@clisp.org>
26512
26513         * tests/test-flock.c (test_exclusive): Comment out a test that causes
26514         portability problems. Instead use a simpler test.
26515         (main): Check that invalid arguments are rejected only on Linux.
26516
26517 2010-03-14  Bruno Haible  <bruno@clisp.org>
26518
26519         Fix bug introduced on 2009-12-31.
26520         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
26521         gl_PREREQ_SYS_H_WINSOCK2 always.
26522         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
26523         SYS_SOCKET_H variable.
26524         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
26525         Update comments.
26526         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
26527         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
26528         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26529         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
26530         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
26531
26532 2010-03-14  Bruno Haible  <bruno@clisp.org>
26533
26534         Fix values returned by sinl, cosl.
26535         * lib/trigl.h: Add specification comments.
26536         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
26537         that combines the values from the precomputed table with the values of
26538         the Chebyshev polynomials.
26539
26540 2010-03-14  Bruno Haible  <bruno@clisp.org>
26541
26542         Fix compilation error when modules 'posix_spawn[p]' are not used.
26543         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
26544         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
26545
26546 2010-03-14  Bruno Haible  <bruno@clisp.org>
26547
26548         Fix compilation error on mingw when module 'time_r' is not used.
26549         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
26550         is 1.
26551         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
26552         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26553         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
26554         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
26555
26556 2010-03-14  Bruno Haible  <bruno@clisp.org>
26557
26558         Fix compilation error with Sun C.
26559         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
26560         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
26561         instead of GCC specific ULONG_LONG_MAX.
26562         * lib/xstrtoll.c: Likewise.
26563         * lib/xstrtoull.c: Likewise.
26564
26565 2010-03-13  Bruno Haible  <bruno@clisp.org>
26566
26567         Allow the user to disable C++ code and tests.
26568         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
26569         (gl_PROG_ANSI_CXX): Require it.
26570
26571 2010-03-13  Bruno Haible  <bruno@clisp.org>
26572
26573         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
26574         cases.
26575
26576 2010-03-13  Bruno Haible  <bruno@clisp.org>
26577
26578         Test that gnulib does not break the standard C++ headers.
26579         * tests/test-locale-c++2.cc: New file.
26580         * modules/locale-tests (Files): Add it.
26581         (Makefile.am): Compile it for test-locale-c++.
26582         * tests/test-math-c++2.cc: New file.
26583         * modules/math-tests (Files): Add it.
26584         (Makefile.am): Compile it for test-math-c++.
26585         * tests/test-signal-c++2.cc: New file.
26586         * modules/signal-tests (Files): Add it.
26587         (Makefile.am): Compile it for test-signal-c++.
26588         * tests/test-stdio-c++2.cc: New file.
26589         * modules/stdio-tests (Files): Add it.
26590         (Makefile.am): Compile it for test-stdio-c++.
26591         * tests/test-stdlib-c++2.cc: New file.
26592         * modules/stdlib-tests (Files): Add it.
26593         (Makefile.am): Compile it for test-stdlib-c++.
26594         * tests/test-string-c++2.cc: New file.
26595         * modules/string-tests (Files): Add it.
26596         (Makefile.am): Compile it for test-string-c++.
26597         * tests/test-time-c++2.cc: New file.
26598         * modules/time-tests (Files): Add it.
26599         (Makefile.am): Compile it for test-time-c++.
26600         Reported by John W. Eaton <jwe@gnu.org>.
26601
26602 2010-03-13  Bruno Haible  <bruno@clisp.org>
26603
26604         * gnulib-tool (func_usage): Clarify which options are available for
26605         --create-testdir and --create-megatestdir.
26606
26607 2010-03-13  Bruno Haible  <bruno@clisp.org>
26608
26609         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
26610         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
26611         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
26612         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
26613         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
26614         when appropriate.
26615         Reported by Jim Meyering.
26616
26617 2010-03-12  Simon Josefsson  <simon@josefsson.org>
26618
26619         * gnulib-tool (func_import): Explain origin of code.
26620
26621 2010-03-12  Bruno Haible  <bruno@clisp.org>
26622
26623         Fix problem with automake's definition of CXXLINK.
26624         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
26625         Reported by Simon Josefsson and Ludovic Courtès.
26626
26627 2010-03-12  Bruno Haible  <bruno@clisp.org>
26628
26629         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
26630         stable releases.
26631
26632 2010-03-11  Bruno Haible  <bruno@clisp.org>
26633
26634         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
26635         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
26636         whether the system provides one variant or multiple variants of the
26637         function.
26638         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
26639         C++ compilers.
26640         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
26641         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
26642         Reported by Jim Meyering.
26643
26644 2010-03-09  Simon Josefsson  <simon@josefsson.org>
26645
26646         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
26647
26648 2010-03-08  Bruno Haible  <bruno@clisp.org>
26649
26650         gnulib-tool: Add support for --libtool in --create-testdir.
26651         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
26652         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
26653
26654 2010-03-08  Eric Blake  <eblake@redhat.com>
26655
26656         gnulib-tool.texi: mention possibility of git submodule
26657         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
26658         submodules.
26659         * doc/.gitignore: Ignore another generated file.
26660
26661 2010-03-08  Karl Berry  <karl@gnu.org>
26662
26663         * doc/gnulib-tool.texi (VCS Issues): Mention third option
26664         of committing gnulib files while skipping others.
26665
26666 2010-03-07  Bruno Haible  <bruno@clisp.org>
26667
26668         Tests of module 'wctype' in C++ mode.
26669         * tests/test-wctype-c++.cc: New file.
26670         * modules/wctype-tests (Files): Add it and tests/signature.h.
26671         (Depends-on): Add ansi-c++-opt.
26672         (Makefile.am): Arrange to compile and run test-wctype-c++.
26673
26674         Tests of module 'wchar' in C++ mode.
26675         * tests/test-wchar-c++.cc: New file.
26676         * modules/wchar-tests (Files): Add it and tests/signature.h.
26677         (Depends-on): Add ansi-c++-opt.
26678         (Makefile.am): Arrange to compile and run test-wchar-c++.
26679         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
26680         gl_MODULE_INDICATOR.
26681
26682         Tests of module 'unistd' in C++ mode.
26683         * tests/test-unistd-c++.cc: New file.
26684         * modules/unistd-tests (Files): Add it and tests/signature.h.
26685         (Depends-on): Add ansi-c++-opt.
26686         (Makefile.am): Arrange to compile and run test-unistd-c++.
26687         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
26688         gl_MODULE_INDICATOR.
26689
26690         Tests of module 'time' in C++ mode.
26691         * tests/test-time-c++.cc: New file.
26692         * modules/time-tests (Files): Add it and tests/signature.h.
26693         (Depends-on): Add ansi-c++-opt.
26694         (Makefile.am): Arrange to compile and run test-time-c++.
26695         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26696
26697         Tests of module 'sys_time' in C++ mode.
26698         * tests/test-sys_time-c++.cc: New file.
26699         * modules/sys_time-tests (Files): Add it and tests/signature.h.
26700         (Depends-on): Add ansi-c++-opt.
26701         (Makefile.am): Arrange to compile and run test-sys_time-c++.
26702         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
26703         gl_MODULE_INDICATOR.
26704
26705         Tests of module 'sys_stat' in C++ mode.
26706         * tests/test-sys_stat-c++.cc: New file.
26707         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
26708         (Depends-on): Add ansi-c++-opt.
26709         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
26710         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
26711         gl_MODULE_INDICATOR.
26712
26713         Tests of module 'sys_socket' in C++ mode.
26714         * tests/test-sys_socket-c++.cc: New file.
26715         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
26716         (Depends-on): Add ansi-c++-opt.
26717         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
26718         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
26719         gl_MODULE_INDICATOR.
26720
26721         Tests of module 'sys_select' in C++ mode.
26722         * tests/test-sys_select-c++.cc: New file.
26723         * modules/sys_select-tests (Files): Add it and tests/signature.h.
26724         (Depends-on): Add ansi-c++-opt.
26725         (Makefile.am): Arrange to compile and run test-sys_select-c++.
26726         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
26727         gl_MODULE_INDICATOR.
26728
26729         Tests of module 'sys_ioctl' in C++ mode.
26730         * tests/test-sys_ioctl-c++.cc: New file.
26731         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
26732         (Depends-on): Add ansi-c++-opt.
26733         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
26734         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
26735         gl_MODULE_INDICATOR.
26736
26737         Tests of module 'string' in C++ mode.
26738         * tests/test-string-c++.cc: New file.
26739         * modules/string-tests (Files): Add it and tests/signature.h.
26740         (Depends-on): Add ansi-c++-opt.
26741         (Makefile.am): Arrange to compile and run test-string-c++.
26742         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
26743         gl_MODULE_INDICATOR.
26744
26745         Tests of module 'stdlib' in C++ mode.
26746         * tests/test-stdlib-c++.cc: New file.
26747         * modules/stdlib-tests (Files): Add it and tests/signature.h.
26748         (Depends-on): Add ansi-c++-opt.
26749         (Makefile.am): Arrange to compile and run test-stdlib-c++.
26750         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
26751         gl_MODULE_INDICATOR.
26752
26753         Tests of module 'stdio' in C++ mode.
26754         * tests/test-stdio-c++.cc: New file.
26755         * modules/stdio-tests (Files): Add it and tests/signature.h.
26756         (Depends-on): Add ansi-c++-opt.
26757         (Makefile.am): Arrange to compile and run test-stdio-c++.
26758         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
26759         gl_MODULE_INDICATOR.
26760
26761         Tests of module 'spawn' in C++ mode.
26762         * tests/test-spawn-c++.cc: New file.
26763         * modules/spawn-tests (Files): Add it and tests/signature.h.
26764         (Depends-on): Add ansi-c++-opt.
26765         (Makefile.am): Arrange to compile and run test-spawn-c++.
26766         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
26767         gl_MODULE_INDICATOR.
26768
26769         Tests of module 'signal' in C++ mode.
26770         * tests/test-signal-c++.cc: New file.
26771         * modules/signal-tests (Files): Add it and tests/signature.h.
26772         (Depends-on): Add ansi-c++-opt.
26773         (Makefile.am): Arrange to compile and run test-signal-c++.
26774         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
26775         gl_MODULE_INDICATOR.
26776
26777         Tests of module 'search' in C++ mode.
26778         * tests/test-search-c++.cc: New file.
26779         * modules/search-tests (Files): Add it and tests/signature.h.
26780         (Depends-on): Add ansi-c++-opt.
26781         (Makefile.am): Arrange to compile and run test-search-c++.
26782         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
26783         gl_MODULE_INDICATOR.
26784
26785         Tests of module 'math' in C++ mode.
26786         * tests/test-math-c++.cc: New file.
26787         * modules/math-tests (Files): Add it and tests/signature.h.
26788         (Depends-on): Add ansi-c++-opt.
26789         (Makefile.am): Arrange to compile and run test-math-c++.
26790         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26791
26792         Tests of module 'locale' in C++ mode.
26793         * tests/test-locale-c++.cc: New file.
26794         * modules/locale-tests (Files): Add it and tests/signature.h.
26795         (Depends-on): Add ansi-c++-opt.
26796         (Makefile.am): Arrange to compile and run test-locale-c++.
26797         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
26798         gl_MODULE_INDICATOR.
26799
26800         Tests of module 'langinfo' in C++ mode.
26801         * tests/test-langinfo-c++.cc: New file.
26802         * modules/langinfo-tests (Files): Add it and tests/signature.h.
26803         (Depends-on): Add ansi-c++-opt.
26804         (Makefile.am): Arrange to compile and run test-langinfo-c++.
26805         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
26806         gl_MODULE_INDICATOR.
26807
26808         Tests of module 'iconv-h' in C++ mode.
26809         * tests/test-iconv-h-c++.cc: New file.
26810         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
26811         (Depends-on): Add ansi-c++-opt.
26812         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
26813
26814         Tests of module 'glob' in C++ mode.
26815         * tests/test-glob-c++.cc: New file.
26816         * modules/glob-tests (Files): Add it.
26817         (Depends-on): Add ansi-c++-opt.
26818         (Makefile.am): Arrange to compile and run test-glob-c++.
26819
26820         Tests of module 'fcntl-h' in C++ mode.
26821         * tests/test-fcntl-h-c++.cc: New file.
26822         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
26823         (Depends-on): Add ansi-c++-opt.
26824         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
26825         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
26826         gl_MODULE_INDICATOR.
26827
26828         Tests of module 'dirent' in C++ mode.
26829         * tests/test-dirent-c++.cc: New file.
26830         * modules/dirent-tests (Files): Add it and tests/signature.h.
26831         (Depends-on): Add ansi-c++-opt.
26832         (Makefile.am): Arrange to compile and run test-dirent-c++.
26833         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
26834         gl_MODULE_INDICATOR.
26835
26836         New module 'ansi-c++-opt'.
26837         * modules/ansi-c++-opt: New file.
26838         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
26839
26840         Document C++ namespace mode.
26841         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
26842
26843         wctype: Avoid #define replacements in C++ mode.
26844         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
26845         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
26846         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
26847         In C++, define a namespaced alias symbol.
26848         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
26849         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
26850         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
26851         rule.
26852
26853         wchar: Avoid #define replacements in C++ mode.
26854         * lib/wchar.in.h: Include c++defs.h.
26855         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
26856         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
26857         symbol.
26858         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
26859         * modules/wchar (Depends-on): Add c++defs.
26860         (Makefile.am): Update wchar.h rule.
26861
26862         unistd: Avoid #define replacements in C++ mode.
26863         * lib/unistd.in.h: Include c++defs.h.
26864         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
26865         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
26866         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
26867         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
26868         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
26869         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
26870         symbol.
26871         (environ): Update.
26872         * modules/unistd (Depends-on): Add c++defs.
26873         (Makefile.am): Update unistd.h rule.
26874
26875         time: Avoid #define replacements in C++ mode.
26876         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
26877         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
26878         define a namespaced alias symbol.
26879         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
26880         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
26881         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
26882         * modules/time (Depends-on): Add c++defs, warn-on-use.
26883         (Makefile.am): Update time.h rule.
26884         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26885         * modules/nanosleep (configure.ac): Likewise.
26886         * modules/strptime (configure.ac): Likewise.
26887         * modules/timegm (configure.ac): Likewise.
26888
26889         sys_time: Avoid #define replacements in C++ mode.
26890         * lib/sys_time.in.h: Include c++defs.h.
26891         (gettimeofday): In C++, define a namespaced alias symbol.
26892         * modules/sys_time (Depends-on): Add c++defs.
26893         (Makefile.am): Update sys/time.h rule.
26894
26895         sys_stat: Avoid #define replacements in C++ mode.
26896         * lib/sys_stat.in.h: Include c++defs.h.
26897         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
26898         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
26899         namespaced alias symbol.
26900         In C++, define a namespaced alias symbol.
26901         * modules/sys_stat (Depends-on): Add c++defs.
26902         (Makefile.am): Update sys/stat.h rule.
26903
26904         sys_socket: Avoid #define replacements in C++ mode.
26905         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
26906         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
26907         definitions also when the system has a <sys/socket.h>.
26908         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
26909         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
26910         In C++, define a namespaced alias symbol.
26911         * modules/sys_socket (Depends-on): Add c++defs.
26912         (Makefile.am): Update sys/socket.h rule.
26913
26914         sys_select: Avoid #define replacements in C++ mode.
26915         * lib/sys_select.in.h: Include c++defs.h. Enable the function
26916         definitions also when the system has a <sys/select.h>.
26917         (select): In C++, define a namespaced alias symbol.
26918         * modules/sys_select (Depends-on): Add c++defs.
26919         (Makefile.am): Update sys/select.h rule.
26920
26921         sys_ioctl: Avoid #define replacements in C++ mode.
26922         * lib/sys_ioctl.in.h: Include c++defs.h.
26923         (ioctl): In C++, define a namespaced alias symbol.
26924         * modules/sys_ioctl (Depends-on): Add c++defs.
26925         (Makefile.am): Update sys/ioctl.h rule.
26926
26927         string: Avoid #define replacements in C++ mode.
26928         * lib/string.in.h: Include c++defs.h.
26929         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
26930         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
26931         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
26932         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
26933         strsignal, strverscmp): In C++, define a namespaced alias symbol.
26934         * modules/string (Depends-on): Add c++defs.
26935         (Makefile.am): Update string.h rule.
26936
26937         stdlib: Avoid #define replacements in C++ mode.
26938         * lib/stdlib.in.h: Include c++defs.h.
26939         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
26940         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
26941         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
26942         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
26943         symbol.
26944         * modules/stdlib (Depends-on): Add c++defs.
26945         (Makefile.am): Update stdlib.h rule.
26946
26947         stdio: Avoid #define replacements in C++ mode.
26948         * lib/stdio.in.h: Include c++defs.h.
26949         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
26950         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
26951         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
26952         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
26953         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
26954         namespaced alias symbol.
26955         * modules/stdio (Depends-on): Add c++defs.
26956         (Makefile.am): Update stdio.h rule.
26957
26958         spawn: Avoid #define replacements in C++ mode.
26959         * lib/spawn.in.h: Include c++defs.h.
26960         (posix_spawn, posix_spawnp, posix_spawnattr_init,
26961         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
26962         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
26963         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
26964         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
26965         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
26966         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
26967         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
26968         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
26969         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
26970         In C++, define a namespaced alias symbol.
26971         * modules/spawn (Depends-on): Add c++defs.
26972         (Makefile.am): Update spawn.h rule.
26973
26974         signal: Avoid #define replacements in C++ mode.
26975         * lib/signal.in.h: Include c++defs.h.
26976         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
26977         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
26978         namespaced alias symbol.
26979         * modules/signal (Depends-on): Add c++defs.
26980         (Makefile.am): Update signal.h rule.
26981
26982         search: Avoid #define replacements in C++ mode.
26983         * lib/search.in.h: Include c++defs.h.
26984         (_gl_search_compar_fn, _gl_search_action_fn): New types.
26985         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
26986         symbol.
26987         * modules/search (Depends-on): Add c++defs.
26988         (Makefile.am): Update search.h rule.
26989
26990         math: Avoid #define replacements in C++ mode.
26991         * lib/math.in.h: Include c++defs.h.
26992         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
26993         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
26994         trunc, truncl): In C++, define a namespaced alias symbol.
26995         * modules/math (Depends-on): Add c++defs.
26996         (Makefile.am): Update math.h rule.
26997
26998         locale: Avoid #define replacements in C++ mode.
26999         * lib/locale.in.h: Include c++defs.h.
27000         (duplocale): In C++, define a namespaced alias symbol.
27001         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
27002         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
27003         * modules/locale (Depends-on): Add c++defs.
27004         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
27005
27006         langinfo: Avoid #define replacements in C++ mode.
27007         * lib/langinfo.in.h: Include c++defs.h.
27008         (nl_langinfo): In C++, define a namespaced alias symbol.
27009         * modules/langinfo (Depends-on): Add c++defs.
27010         (Makefile.am): Update langinfo.h rule.
27011
27012         iconv-h: Avoid #define replacements in C++ mode.
27013         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
27014         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
27015         symbol.
27016         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
27017         whenever iconv is present.
27018         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
27019         (Makefile.am): Update iconv.h rule.
27020
27021         glob: Avoid #define replacements in C++ mode.
27022         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
27023         (_gl_glob_errfunc_fn): New type.
27024         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
27025         symbol.
27026         * modules/glob (Depends-on): Add c++defs, warn-on-use.
27027         (Makefile.am): Update glob.h rule.
27028
27029         fcntl-h: Avoid #define replacements in C++ mode.
27030         * lib/fcntl.in.h: Include c++defs.h.
27031         (fcntl, open, openat): In C++, define a namespaced alias symbol.
27032         * modules/fcntl-h (Depends-on): Add c++defs.
27033         (Makefile.am): Update fcntl.h rule.
27034
27035         dirent: Avoid #define replacements in C++ mode.
27036         * lib/dirent.in.h: Include c++defs.h.
27037         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
27038         namespaced alias symbol.
27039         (dirfd): Update declaration.
27040         * modules/dirent (Depends-on): Add c++defs.
27041         (Makefile.am): Update dirent.h rule.
27042
27043         ctype: Make it usable in C++ code.
27044         * lib/ctype.in.h: Include c++defs.h.
27045         (isblank): Declare as extern "C".
27046         * modules/ctype (Depends-on): Add c++defs.
27047         (Makefile.am): Update ctype.h rule.
27048
27049         New module 'c++defs'.
27050         * modules/c++defs: New file.
27051         * build-aux/c++defs.h: New file.
27052         Reported by John W. Eaton <jwe@gnu.org>.
27053
27054 2010-03-07  Bruno Haible  <bruno@clisp.org>
27055
27056         logb: Provide missing declaration for Cygwin.
27057         * lib/math.in.h (logb): New declaration.
27058         * m4/logb.m4: New file.
27059         * modules/logb (Files): Add m4/logb.m4.
27060         (Depends-on): Add math.
27061         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
27062         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
27063         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
27064         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
27065         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
27066
27067 2010-03-07  Bruno Haible  <bruno@clisp.org>
27068
27069         Fix test-cond link error.
27070         * tests/test-cond.c: Include <stdio.h>.
27071
27072 2010-03-07  Bruno Haible  <bruno@clisp.org>
27073
27074         Fix test-dirent-safer link error.
27075         * modules/dirent-safer-tests (Makefile.am): Define
27076         test_dirent_safer_LDADD.
27077
27078 2010-03-07  Bruno Haible  <bruno@clisp.org>
27079
27080         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
27081         among default module list.
27082
27083 2010-03-07  Bruno Haible  <bruno@clisp.org>
27084
27085         Fix link error on platforms with GNU libiconv.
27086         * modules/unistr/u8-strcoll-tests (Makefile): Define
27087         test_u8_strcoll_LDADD.
27088         * modules/unistr/u16-strcoll-tests (Makefile): Define
27089         test_u16_strcoll_LDADD.
27090         * modules/unistr/u32-strcoll-tests (Makefile): Define
27091         test_u32_strcoll_LDADD.
27092
27093 2010-03-07  Bruno Haible  <bruno@clisp.org>
27094
27095         Use POSIX declarations for socket functions.
27096         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
27097         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
27098         rpl_sendto): Change declaration to match POSIX.
27099         * lib/connect.c (rpl_connect): Likewise.
27100         * lib/accept.c (rpl_accept): Likewise.
27101         * lib/bind.c (rpl_bind): Likewise.
27102         * lib/getpeername.c (rpl_getpeername): Likewise.
27103         * lib/getsockname.c (rpl_getsockname): Likewise.
27104         * lib/recv.c (rpl_recv): Likewise.
27105         * lib/send.c (rpl_send): Likewise.
27106         * lib/recvfrom.c (rpl_recvfrom): Likewise.
27107         * lib/sendto.c (rpl_sendto): Likewise.
27108
27109 2010-03-06  Bruno Haible  <bruno@clisp.org>
27110
27111         Clarify access, euidaccess, faccessat.
27112         * doc/posix-functions/faccessat.texi: Mention security problem under
27113         "Other problems", not "Portability problems".
27114         * doc/posix-functions/access.texi: Likewise. Mention a related security
27115         problem.
27116         * doc/glibc-functions/euidaccess.texi: Mention security problems.
27117         * lib/euidaccess.c: Add comments about platforms.
27118         * lib/unistd.in.h (access, euidaccess): Add warnings.
27119
27120 2010-03-07  Bruno Haible  <bruno@clisp.org>
27121
27122         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
27123         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
27124         (POSIX_SPAWN_SETSCHEDULER): Likewise.
27125         (POSIX_SPAWN_USEVFORK): Define in a way that works when
27126         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
27127         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
27128         declare when POSIX_SPAWN_SETSCHEDULER is zero.
27129         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
27130         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
27131         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
27132         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
27133         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
27134         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
27135         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
27136         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
27137         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
27138         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
27139         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
27140         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
27141         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
27142         Likewise.
27143         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
27144         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
27145         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
27146         Likewise.
27147         * tests/test-spawn.c (main): Make it work when
27148         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
27149
27150 2010-03-07  Bruno Haible  <bruno@clisp.org>
27151
27152         Fix incorrect Makefile.am generation in German locale.
27153         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
27154         Execute sed command with character range in C locale.
27155
27156 2010-03-06  Bruno Haible  <bruno@clisp.org>
27157
27158         Tests for module 'iconv-h'.
27159         * modules/iconv-h-tests: New file.
27160         * tests/test-iconv-h.c: New file.
27161
27162         New module 'iconv-h'.
27163         * modules/iconv-h: New file.
27164         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
27165         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
27166         (configure.ac): Remove gl_ICONV_H.
27167         (Makefile.am): Remove rule for iconv.h.
27168
27169 2010-03-06  Bruno Haible  <bruno@clisp.org>
27170
27171         More consistent naming of *.m4 files.
27172         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
27173         * modules/wctype (Files): Update.
27174
27175         More consistent naming of *.m4 files.
27176         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
27177         * modules/wchar (Files): Update.
27178
27179 2010-03-06  Jim Meyering  <meyering@redhat.com>
27180
27181         euidaccess: relax license to LGPLv2+
27182         * modules/euidaccess (License): Relax to LGPLv2+.
27183
27184 2010-03-06  Bruno Haible  <bruno@clisp.org>
27185
27186         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
27187         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
27188         (Makefile.am): Augment lib_SOURCES instead.
27189
27190 2010-03-04  Jim Meyering  <meyering@redhat.com>
27191
27192         utime: remove obsolete module
27193         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
27194         unnecessary for years, and has been marked as obsolete for 10 months.
27195         * modules/utime: Remove file.
27196         * lib/utime.c: Remove file.
27197         * m4/utime.m4: Remove file.
27198         * m4/utimes-null.m4: Remove file.
27199         * doc/posix-functions/utime.texi (utime): Remove reference to
27200         the module.  Move the sole "fixed by gnulib" item into the
27201         "problems not fixed by Gnulib" list.
27202         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
27203
27204 2010-03-05  Simon Josefsson  <simon@josefsson.org>
27205
27206         * modules/exit (License): Relax license to LGPLv2+.
27207         (Status): Mark as obsolete.
27208         * NEWS: Mention deprecated 'exit' module.
27209         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
27210         of now obsolete 'exit'.
27211
27212 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27213
27214         fts-lgpl: remove unused module
27215         * modules/fts-lgpl: Remove.
27216         * MODULES.html.sh (func_all_modules): Adjust.
27217         * check-module (find_included_lib_files): Adjust.
27218         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
27219
27220 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
27221
27222         copy-acl: enhance Solaris ACL error handling
27223         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
27224         * lib/set-mode-acl.c (qset_acl): Likewise.
27225
27226 2010-03-02  Bruno Haible  <bruno@clisp.org>
27227
27228         spawn: Don't override the system defined values on FreeBSD 8.
27229         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
27230         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
27231         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
27232         if HAVE_POSIX_SPAWN is 1.
27233         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
27234
27235 2010-03-01  Bruno Haible  <bruno@clisp.org>
27236
27237         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
27238         regarding Automake.
27239
27240 2010-02-25  Bruno Haible  <bruno@clisp.org>
27241
27242         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
27243         * gnulib-tool: Define 'echo' as a function only before the ksh alias
27244         setting, not afterwards.
27245         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
27246
27247 2010-02-24  Eric Blake  <eblake@redhat.com>
27248
27249         bootstrap, git-version-gen: use timestamp
27250         * build-aux/git-version-gen (scriptversion): Force UTC.
27251         * build-aux/bootstrap (scriptversion): New variable.
27252
27253         bootstrap: allow older git
27254         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
27255         older than 1.6.4.  Requested by the libvirt project.
27256
27257 2010-02-23  Eric Blake  <eblake@redhat.com>
27258
27259         warn-on-use: work with old autoconf
27260         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
27261         AS_VAR semantics of autoconf 2.60.
27262         Reported by Bruno Haible.
27263
27264         bootstrap: improve some comments
27265         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
27266         clarification comments.
27267
27268         gettimeofday: provide correct function
27269         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
27270         when replacement is declared, otherwise provide gettimeofday.
27271         Reported by Michael Goffioul.
27272
27273 2010-02-23  Jim Meyering  <meyering@redhat.com>
27274
27275         lib-ignore: relax license to "unlimited", not LGPLv2+
27276         * modules/lib-ignore (License): Relax to "unlimited".
27277
27278 2010-02-23  Jim Meyering  <meyering@redhat.com>
27279
27280         lib-ignore: relax license to LGPLv2+
27281         * modules/lib-ignore (License): Relax to LGPLv2+.
27282
27283 2010-02-22  Eric Blake  <eblake@redhat.com>
27284
27285         lseek: avoid bash 3.2 broken pipe bug
27286         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
27287         warning from bash 3.2.
27288         Reported by Ben Pfaff, with analysis from Bruno Haible.
27289
27290         bootstrap: support non-FSF copyright holder
27291         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
27292         bootstrap.conf override of COPYRIGHT_HOLDER.
27293         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
27294
27295         bootstrap: interoperate with gettext 0.14.1
27296         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
27297
27298         bootstrap: allow for alternate submodule location
27299         * build-aux/bootstrap (gnulib_path): New variable; use instead of
27300         hardcoding submodule location.
27301         (gnulib_mk): Allow direct use of Makefile.am.
27302
27303         bootstrap: use GNULIB_SRCDIR to reduce disk usage
27304         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
27305         rather than reconfiguring where the submodule points.
27306
27307         gettimeofday: restore support for platforms that lack function
27308         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
27309         replacement if function is missing.
27310         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
27311         * modules/sys_time (Makefile.am): Substitute it.
27312         * lib/sys_time.in.h (gettimeofday): Check it.
27313         Reported by Michael Goffioul.
27314
27315 2010-02-21  Bruno Haible  <bruno@clisp.org>
27316
27317         * lib/stdio.in.h (obstack_printf): Fix typo.
27318
27319 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
27320
27321         vc-list-files: use bzr ls's -R option
27322         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
27323         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
27324
27325 2010-02-21  Jim Meyering  <meyering@redhat.com>
27326
27327         init.sh: fix EXEEXT shims to work also for names like test-prog
27328         * tests/init.sh: Re-exec a better shell, when needed.
27329         If the current shell lacks support for posix $(...), an init.sh-using
27330         test will now try to find a shell that supports that.  If EXEEXT is
27331         nonempty, we also require support for hyphen-in-alias-name and shell
27332         substitutions like ${var#glob}.  Failure to find such a shell results
27333         in a skipped test.
27334
27335 2010-02-21  Bruno Haible  <bruno@clisp.org>
27336
27337         Really work around around "broken pipe" error message from bash 3.2.
27338         * gnulib-tool (func_reset_sigpipe): Remove function.
27339         (echo): In bash 3.2, define to a function that uses printf.
27340         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
27341
27342 2010-02-20  Bruno Haible  <bruno@clisp.org>
27343
27344         Restore support for automake 1.9.6 with autoconf 2.61.
27345         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
27346         Reported by James Youngman <jay@gnu.org>.
27347
27348 2010-02-20  Bruno Haible  <bruno@clisp.org>
27349
27350         Improve *printf warning condition.
27351         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
27352         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
27353         and the function is overridden due to SIGPIPE emulation.
27354
27355 2010-02-20  Bruno Haible  <bruno@clisp.org>
27356
27357         * lib/stdio.in.h: Tweak comments.
27358
27359 2010-02-19  Bruno Haible  <bruno@clisp.org>
27360
27361         Make it easier to find modules. New gnulib-tool option '--find'.
27362         * gnulib-tool: New option --find.
27363         (func_usage): Document it.
27364         (func_sanitize_modulelist): New function, extracted from
27365         func_all_modules.
27366         (func_all_modules): Invoke it.
27367         * doc/gnulib-tool.texi (Which modules?): New node.
27368
27369 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
27370
27371         * lib/sys_select.in.h: Provide select replacement even if
27372         sys/select.h exists on a system, for Interix.
27373
27374 2010-02-18  Jim Meyering  <meyering@redhat.com>
27375
27376         init.sh: don't use $(...) just yet
27377         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
27378         to accommodate e.g., Solaris' /bin/sh.
27379
27380 2010-02-17  Bruno Haible  <bruno@clisp.org>
27381
27382         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
27383         Reported by Ludovic Courtès <ludo@gnu.org>.
27384
27385 2010-02-16  Simon Josefsson  <simon@josefsson.org>
27386
27387         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
27388         linking with -lintl.
27389
27390 2010-02-17  Simon Josefsson  <simon@josefsson.org>
27391
27392         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
27393         if not provided by the system's netdb.h.  Reported by
27394         ludo@gnu.org (Ludovic Courtès).
27395
27396 2010-02-15  Jim Meyering  <meyering@redhat.com>
27397
27398         init.sh: improve portability and efficiency
27399         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
27400         "dummy" in a for loop.
27401         Use '!', not '^' to select the complement of a character set used
27402         in a "case" statement.
27403         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
27404         Suggestions from Eric Blake.
27405
27406         init.sh: automatically accommodate programs with the .exe suffix
27407         Automatically arrange for an invocation of "prog" to execute the
27408         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
27409         may use the simpler "prog", yet still work when built on a system
27410         that requires specifying the added suffix.
27411         Do this by constructing a function named "prog" that invokes
27412         "prog.exe" for each .exe file in selected directories.
27413         * tests/init.sh (find_exe_basenames_): New function.
27414         (create_exe_shim_functions_): New function.
27415         (path_prepend_): Use it.
27416
27417         maint.mk: mark syntax-check sc_*.m rules as .PHONY
27418         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
27419         "make -t syntax-check" doesn't create a ton of sc_*.m files.
27420
27421 2010-02-14  Jim Meyering  <meyering@redhat.com>
27422
27423         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
27424         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
27425         (sc_prohibit_hash_pjw_without_use): New rule.
27426
27427         maint.mk: allow the default upload destination dir to be overridden
27428         * top/maint.mk (upload_dest_dir_): Define with a default that
27429         preserves the status quo.
27430         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
27431         Reported by Peter Simons.
27432
27433         maint.mk: prohibit inclusion of "hash.h" without_use
27434         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
27435
27436 2010-02-10  Jim Meyering  <meyering@redhat.com>
27437
27438         maint.mk: prohibit inclusion of "ignore-value.h" without_use
27439         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
27440
27441 2010-02-09  Eric Blake  <ebb9@byu.net>
27442         and Bruno Haible  <bruno@clisp.org>
27443
27444         obstack-printf-posix: ensure declaration
27445         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
27446         extracted from gl_FUNC_OBSTACK_PRINTF.
27447         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
27448         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
27449         Likewise.
27450         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
27451         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
27452         0.
27453
27454 2010-02-08  Bruno Haible  <bruno@clisp.org>
27455
27456         gnulib-tool: Fix typo in 2010-02-07 commit.
27457         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
27458         Reported by Eric Blake.
27459
27460 2010-02-07  Bruno Haible  <bruno@clisp.org>
27461
27462         gnulib-tool: Fix up caching patches.
27463         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
27464         option --no-cache. Use associative arrays when supported by the shell.
27465         (sed_comments): New variable.
27466         (modcache): Renamed from do_cache.
27467         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
27468         abbreviate unnecessarily.
27469         (have_associative): New variable.
27470         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
27471         way also for ksh and zsh.
27472         (func_init_sed_convert_to_cache_statements): New function, extracted
27473         from func_cache_lookup_module. Add support for associative arrays.
27474         Don't set the c_MODULE_cached variable here. Ignore all lines before
27475         the first field header. Remove only the final newline, not all trailing
27476         newlines. Support empty fields correctly. Limit the use of 'eval' to
27477         assignments.
27478         (func_get_description, func_get_status, func_get_notice,
27479         func_get_applicability, func_get_filelist, func_get_dependencies,
27480         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
27481         func_get_automake_snippet, func_get_include_directive,
27482         func_get_link_directive, func_get_license, func_get_maintainer):
27483         Update documentation. List the unoptimized code first. Add support for
27484         associative arrays. Limit the use of 'eval' to assignments.
27485         (func_get_applicability): Undo stylistic pessimisations.
27486         (func_get_automake_snippet, func_get_include_directive): Reduce code
27487         duplication.
27488         (func_modules_transitive_closure, func_modules_add_dummy,
27489         func_modules_notice, func_modules_to_filelist, func_add_file,
27490         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
27491         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
27492         func_create_testdir, func_create_megatestdir): Update documentation.
27493
27494 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27495
27496         * gnulib-tool (func_cache_lookup_module): Store the module name
27497         belonging to the cache variable; error out if two different
27498         module names map to the same cache variable name.
27499
27500 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27501
27502         gnulib-tool: Make caching optional.
27503         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
27504         Update matching short versions of --no-changelog.
27505         (func_usage): Update.
27506         (sed_extract_cache_prog): Renamed from ...
27507         (sed_extract_prog): ... this; revert to old extraction script.
27508         (func_get_description, func_get_status)
27509         (func_get_notice, func_get_applicability, func_get_filelist)
27510         (func_get_dependencies, func_get_autoconf_early_snippet)
27511         (func_get_autoconf_snippet, func_get_automake_snippet)
27512         (func_get_include_directive, func_get_link_directive)
27513         (func_get_license, func_get_maintainer): If $do_cache is false,
27514         use old, non-caching extraction scripts.
27515         Suggestion by Bruno Haible.
27516
27517 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27518
27519         gnulib-tool: cache module metainformation.
27520         * gnulib-tool (sed_extract_prog): Match newline before each
27521         header, and rewrite header to a shell variable suffix.
27522         (func_cache_var, func_cache_lookup_module): New functions,
27523         to turn a module name into a cache variable prefix, and to
27524         look up and cache module metainformation.
27525         (func_get_description, func_get_status)
27526         (func_get_notice, func_get_applicability, func_get_filelist)
27527         (func_get_dependencies, func_get_autoconf_early_snippet)
27528         (func_get_autoconf_snippet, func_get_automake_snippet)
27529         (func_get_include_directive, func_get_link_directive)
27530         (func_get_license, func_get_maintainer): Use
27531         func_cache_lookup_module.
27532
27533 2010-02-07  Bruno Haible  <bruno@clisp.org>
27534
27535         fnctl: Fix missing dependency.
27536         * modules/fcntl (Depends-on): Add getdtablesize.
27537         Reported by John W. Eaton <jwe@gnu.org>.
27538
27539 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27540
27541         Argp: fix recognition of short alias options.
27542
27543         * lib/argp-parse.c (convert_options): Fix improper use of
27544         `|' between character values.
27545         * tests/test-argp.c (group1_option): New alias option
27546         --read (-r).
27547         (group1_parser): Special handling for 'r'.
27548         (test15): New test case.
27549         (test_fun): Add test15.
27550         * tests/test-argp-2.sh: Update expected --help and --usage
27551         outputs.
27552
27553 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27554
27555         * tests/test-argp.c: Fix indentation.
27556
27557 2010-02-04  Eric Blake  <ebb9@byu.net>
27558
27559         gettimeofday: expose type of second argument
27560         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
27561         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
27562         * tests/test-gettimeofday.c: Use it to silence warning.
27563         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
27564         the issue.
27565
27566 2010-02-03  Jim Meyering  <meyering@redhat.com>
27567
27568         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
27569         * lib/regcomp.c (TYPE_SIGNED): Define.
27570         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
27571
27572         regcomp.c: avoid a new -Wshadow warning
27573         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
27574
27575 2010-02-01  Jim Meyering  <meyering@redhat.com>
27576
27577         removing useless parentheses in cpp #define directives
27578         For motivation, see commit c0221df4, "define STREQ(a,b)
27579         consistently, removing useless parentheses"
27580         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
27581         * lib/mountlist.c (MNT_IGNORE): Likewise.
27582         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
27583
27584 2010-02-01  Eric Blake  <ebb9@byu.net>
27585
27586         sys_time: use link-warning
27587         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
27588         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
27589         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
27590         * modules/sys_time (Depends-on): Add warn-on-use.
27591         (Makefile.am): Always build replacement.
27592         (configure.ac): Update substitutions.
27593         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
27594         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
27595         bother with SYS_TIME_H.
27596         * modules/gettimeofday (configure.ac): Declare indicator.
27597         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
27598         in use.
27599
27600         closein-tests: silence compiler warning
27601         * tests/test-closein.c (main): Ignore fread result.
27602         * modules/closein-tests (Depends-on): Add ignore-value.
27603
27604         tests: silence warning about system return
27605         * tests/test-areadlink-with-size.c (main): Ignore system result.
27606         * tests/test-areadlink.c (main): Likewise.
27607         * tests/test-areadlinkat-with-size.c (main): Likewise.
27608         * tests/test-areadlinkat.c (main): Likewise.
27609         * tests/test-canonicalize-lgpl.c (main): Likewise.
27610         * tests/test-canonicalize.c (main): Likewise.
27611         * tests/test-chown.c (main): Likewise.
27612         * tests/test-fchownat.c (main): Likewise.
27613         * tests/test-fdutimensat.c (main): Likewise.
27614         * tests/test-fstatat.c (main): Likewise.
27615         * tests/test-futimens.c (main): Likewise.
27616         * tests/test-lchown.c (main): Likewise.
27617         * tests/test-link.c (main): Likewise.
27618         * tests/test-linkat.c (main): Likewise.
27619         * tests/test-lstat.c (main): Likewise.
27620         * tests/test-mkdir.c (main): Likewise.
27621         * tests/test-mkdirat.c (main): Likewise.
27622         * tests/test-mkfifo.c (main): Likewise.
27623         * tests/test-mkfifoat.c (main): Likewise.
27624         * tests/test-mknod.c (main): Likewise.
27625         * tests/test-readlink.c (main): Likewise.
27626         * tests/test-remove.c (main): Likewise.
27627         * tests/test-rename.c (main): Likewise.
27628         * tests/test-renameat.c (main): Likewise.
27629         * tests/test-rmdir.c (main): Likewise.
27630         * tests/test-symlink.c (main): Likewise.
27631         * tests/test-symlinkat.c (main): Likewise.
27632         * tests/test-unlink.c (main): Likewise.
27633         * tests/test-unlinkat.c (main): Likewise.
27634         * tests/test-utimens.c (main): Likewise.
27635         * tests/test-utimensat.c (main): Likewise.
27636         * modules/areadlink-tests (Depends-on): Add ignore-value.
27637         * modules/areadlink-with-size-tests (Depends-on): Likewise.
27638         * modules/areadlinkat-tests (Depends-on): Likewise.
27639         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
27640         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
27641         * modules/canonicalize-tests (Depends-on): Likewise.
27642         * modules/chown-tests (Depends-on): Likewise.
27643         * modules/fdutimensat-tests (Depends-on): Likewise.
27644         * modules/futimens-tests (Depends-on): Likewise.
27645         * modules/lchown-tests (Depends-on): Likewise.
27646         * modules/link-tests (Depends-on): Likewise.
27647         * modules/linkat-tests (Depends-on): Likewise.
27648         * modules/lstat-tests (Depends-on): Likewise.
27649         * modules/mkdir-tests (Depends-on): Likewise.
27650         * modules/mkfifo-tests (Depends-on): Likewise.
27651         * modules/mkfifoat-tests (Depends-on): Likewise.
27652         * modules/mknod-tests (Depends-on): Likewise.
27653         * modules/openat-tests (Depends-on): Likewise.
27654         * modules/readlink-tests (Depends-on): Likewise.
27655         * modules/remove-tests (Depends-on): Likewise.
27656         * modules/rename-tests (Depends-on): Likewise.
27657         * modules/renameat-tests (Depends-on): Likewise.
27658         * modules/rmdir-tests (Depends-on): Likewise.
27659         * modules/symlink-tests (Depends-on): Likewise.
27660         * modules/symlinkat-tests (Depends-on): Likewise.
27661         * modules/unlink-tests (Depends-on): Likewise.
27662         * modules/utimens-tests (Depends-on): Likewise.
27663         * modules/utimensat-tests (Depends-on): Likewise.
27664
27665 2010-01-31  Bruno Haible  <bruno@clisp.org>
27666
27667         Perform the same test for many <math.h> functions.
27668         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
27669         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
27670         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
27671         of gl_MATHFUNC.
27672         * modules/acos (configure.ac): Likewise.
27673         * modules/asin (configure.ac): Likewise.
27674         * modules/atan (configure.ac): Likewise.
27675         * modules/atan2 (configure.ac): Likewise.
27676         * modules/cbrt (configure.ac): Likewise.
27677         * modules/copysign (configure.ac): Likewise.
27678         * modules/cos (configure.ac): Likewise.
27679         * modules/cosh (configure.ac): Likewise.
27680         * modules/erf (configure.ac): Likewise.
27681         * modules/erfc (configure.ac): Likewise.
27682         * modules/exp (configure.ac): Likewise.
27683         * modules/fmod (configure.ac): Likewise.
27684         * modules/hypot (configure.ac): Likewise.
27685         * modules/j0 (configure.ac): Likewise.
27686         * modules/j1 (configure.ac): Likewise.
27687         * modules/jn (configure.ac): Likewise.
27688         * modules/lgamma (configure.ac): Likewise.
27689         * modules/log (configure.ac): Likewise.
27690         * modules/log10 (configure.ac): Likewise.
27691         * modules/log1p (configure.ac): Likewise.
27692         * modules/pow (configure.ac): Likewise.
27693         * modules/remainder (configure.ac): Likewise.
27694         * modules/sin (configure.ac): Likewise.
27695         * modules/sinh (configure.ac): Likewise.
27696         * modules/tan (configure.ac): Likewise.
27697         * modules/tanh (configure.ac): Likewise.
27698         * modules/y0 (configure.ac): Likewise.
27699         * modules/y1 (configure.ac): Likewise.
27700         * modules/yn (configure.ac): Likewise.
27701         Suggested by Paolo Bonzini.
27702
27703 2010-01-31  Bruno Haible  <bruno@clisp.org>
27704
27705         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
27706
27707 2010-01-31  Bruno Haible  <bruno@clisp.org>
27708
27709         Work around getdelim() bug on FreeBSD 8.0.
27710         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
27711         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
27712         not work.
27713         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
27714         is 1.
27715         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
27716         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
27717         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
27718         a non-zero size.
27719         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
27720
27721 2010-01-31  Bruno Haible  <bruno@clisp.org>
27722
27723         Work around getline() bug on FreeBSD 8.0.
27724         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
27725         and a non-zero size.
27726         * tests/test-getline.c (main): Likewise.
27727         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
27728         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
27729
27730 2010-01-28  Eric Blake  <ebb9@byu.net>
27731
27732         regex: fix build failure
27733         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
27734         platforms.
27735
27736 2010-01-28  Jim Meyering  <meyering@redhat.com>
27737
27738         regex: do not ignore memory allocation failure
27739         * lib/regex_internal.c (create_cd_newstate): Detect
27740         re_node_set_init_copy failure.   Extracted from glibc commit
27741         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27742
27743         regex: sync more white-space changes from libc
27744         * lib/regex_internal.c: White-space only changes.
27745         * lib/regexec.c: Likewise.
27746
27747         regex: add many uses of __attribute_warn_unused_result__
27748         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
27749         * lib/regexec.c: Likewise.
27750         Extracted from a messy glibc commit.
27751
27752         regcomp.c: spelling and merge-artifact from glibc
27753         * lib/regcomp.c: Merge remainder of glibc's
27754         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27755
27756         regcomp.c: sync white-space changes from glibc
27757         * lib/regcomp.c: Merge to accommodate white space
27758         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27759
27760         regcomp.c: do not ignore internal return values
27761         * lib/regcomp.c: Do not ignore internal return values.
27762         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
27763         but without its white-space changes and spelling fixes.
27764
27765         regex_internal.h: define __attribute_warn_unused_result__
27766         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
27767
27768         maint: add a syntax-check rule to check for vulnerable Makefile.in
27769         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
27770
27771 2010-01-27  Jim Meyering  <meyering@redhat.com>
27772
27773         ncftpput-ftp: clean up spaces
27774         * build-aux/ncftpput-ftp: Make Copyright line consistent.
27775         Remove trailing blanks.
27776
27777 2010-01-27  Simon Josefsson  <simon@josefsson.org>
27778
27779         * build-aux/git-version-gen: Fix copyright statement.
27780         * build-aux/gnupload: Likewise.
27781         * tests/test-arcfour.c: Likewise.
27782         * tests/test-arctwo.c: Likewise.
27783         * tests/test-count-one-bits.c: Likewise.
27784         * tests/test-crc.c: Likewise.
27785         * tests/test-des.c: Likewise.
27786         * tests/test-gc-arcfour.c: Likewise.
27787         * tests/test-gc-arctwo.c: Likewise.
27788         * tests/test-gc-des.c: Likewise.
27789         * tests/test-gc-hmac-md5.c: Likewise.
27790         * tests/test-gc-hmac-sha1.c: Likewise.
27791         * tests/test-gc-md2.c: Likewise.
27792         * tests/test-gc-md4.c: Likewise.
27793         * tests/test-gc-md5.c: Likewise.
27794         * tests/test-gc-pbkdf2-sha1.c: Likewise.
27795         * tests/test-gc-rijndael.c: Likewise.
27796         * tests/test-gc-sha1.c: Likewise.
27797         * tests/test-gc.c: Likewise.
27798         * tests/test-gethostname.c: Likewise.
27799         * tests/test-gettimeofday.c: Likewise.
27800         * tests/test-hash.c: Likewise.
27801         * tests/test-hmac-md5.c: Likewise.
27802         * tests/test-hmac-sha1.c: Likewise.
27803         * tests/test-md2.c: Likewise.
27804         * tests/test-md4.c: Likewise.
27805         * tests/test-md5.c: Likewise.
27806         * tests/test-memchr.c: Likewise.
27807         * tests/test-memchr2.c: Likewise.
27808         * tests/test-memcmp.c: Likewise.
27809         * tests/test-memmem.c: Likewise.
27810         * tests/test-memrchr.c: Likewise.
27811         * tests/test-rawmemchr.c: Likewise.
27812         * tests/test-read-file.c: Likewise.
27813         * tests/test-rijndael.c: Likewise.
27814         * tests/test-sockets.c: Likewise.
27815         * tests/test-strchrnul.c: Likewise.
27816         * tests/test-strstr.c: Likewise.
27817         * tests/test-strtod.c: Likewise.
27818         * build-aux/ncftpput-ftp: Likewise.
27819
27820 2010-01-26  Eric Blake  <ebb9@byu.net>
27821
27822         ignore-value: update recommended header name
27823         * modules/ignore-value (Include): Only use <> for headers that
27824         exist in glibc.
27825
27826 2010-01-26  Jim Meyering  <meyering@redhat.com>
27827
27828         test-userspec.c: avoid compiler warnings
27829         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
27830         and "initialization discards qualifiers..." warnings.
27831         Put the first "uid" in its own scope, and make char* members "const".
27832
27833 2010-01-25  Bruno Haible  <bruno@clisp.org>
27834
27835         gnulib-tool: Make warning diagnostics consistent.
27836         * gnulib-tool (func_warning): New function.
27837         Use it everywhere where gnulib-tool produces output to stderr and it is
27838         not a fatal error.
27839
27840 2010-01-25  Bruno Haible  <bruno@clisp.org>
27841
27842         Fix test dependencies.
27843         * modules/xstrtol-tests (Depends-on): Add inttypes.
27844         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
27845
27846 2010-01-25 Pádraig Brady <P@draigBrady.com>
27847
27848         syntax-check: detect incorrect boolean macro values in config.h
27849         * modules/maintainer-makefile (configure.ac): Parameterize the location
27850         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
27851         The logic is from Eric Blake and the location indicated by Jim Meyering.
27852         Note the more natural CONFIG_HEADER name is prohibited by automake
27853         for backwards compatibility reasons.
27854         * top/maint.mk (sc_Wundef_boolean): New rule.
27855
27856 2010-01-25  Jim Meyering  <meyering@redhat.com>
27857
27858         bootstrap: detect MacOS 10.6's shasum, too
27859         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
27860         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
27861
27862 2010-01-23  Jim Meyering  <meyering@redhat.com>
27863
27864         xstrtoll: new module
27865         * modules/xstrtoll: New file.
27866         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
27867         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
27868         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
27869         ./configure fails if you use this module and lack "long long".
27870         * modules/xstrtoll-tests: New module.
27871         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
27872         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
27873         new init.sh-based test framework.
27874
27875 2010-01-24  Bruno Haible  <bruno@clisp.org>
27876
27877         Tests for module 'yn'.
27878         * modules/yn-tests: New file.
27879         * tests/test-yn.c: New file.
27880
27881         Tests for module 'y1'.
27882         * modules/y1-tests: New file.
27883         * tests/test-y1.c: New file.
27884
27885         Tests for module 'y0'.
27886         * modules/y0-tests: New file.
27887         * tests/test-y0.c: New file.
27888
27889         Tests for module 'tanh'.
27890         * modules/tanh-tests: New file.
27891         * tests/test-tanh.c: New file.
27892
27893         Tests for module 'tan'.
27894         * modules/tan-tests: New file.
27895         * tests/test-tan.c: New file.
27896
27897         Tests for module 'sqrt'.
27898         * modules/sqrt-tests: New file.
27899         * tests/test-sqrt.c: New file.
27900
27901         Tests for module 'sinh'.
27902         * modules/sinh-tests: New file.
27903         * tests/test-sinh.c: New file.
27904
27905         Tests for module 'sin'.
27906         * modules/sin-tests: New file.
27907         * tests/test-sin.c: New file.
27908
27909         Tests for module 'rint'.
27910         * modules/rint-tests: New file.
27911         * tests/test-rint.c: New file.
27912
27913         Tests for module 'remainder'.
27914         * modules/remainder-tests: New file.
27915         * tests/test-remainder.c: New file.
27916
27917         Tests for module 'pow'.
27918         * modules/pow-tests: New file.
27919         * tests/test-pow.c: New file.
27920
27921         Tests for module 'nextafter'.
27922         * modules/nextafter-tests: New file.
27923         * tests/test-nextafter.c: New file.
27924
27925         Tests for module 'modf'.
27926         * modules/modf-tests: New file.
27927         * tests/test-modf.c: New file.
27928
27929         Tests for module 'logb'.
27930         * modules/logb-tests: New file.
27931         * tests/test-logb.c: New file.
27932
27933         Tests for module 'log1p'.
27934         * modules/log1p-tests: New file.
27935         * tests/test-log1p.c: New file.
27936
27937         Tests for module 'log10'.
27938         * modules/log10-tests: New file.
27939         * tests/test-log10.c: New file.
27940
27941         Tests for module 'log'.
27942         * modules/log-tests: New file.
27943         * tests/test-log.c: New file.
27944
27945         Tests for module 'lgamma'.
27946         * modules/lgamma-tests: New file.
27947         * tests/test-lgamma.c: New file.
27948
27949         Tests for module 'ldexp'.
27950         * modules/ldexp-tests: New file.
27951         * tests/test-ldexp.c: New file.
27952
27953         Tests for module 'jn'.
27954         * modules/jn-tests: New file.
27955         * tests/test-jn.c: New file.
27956
27957         Tests for module 'j1'.
27958         * modules/j1-tests: New file.
27959         * tests/test-j1.c: New file.
27960
27961         Tests for module 'j0'.
27962         * modules/j0-tests: New file.
27963         * tests/test-j0.c: New file.
27964
27965         Tests for module 'hypot'.
27966         * modules/hypot-tests: New file.
27967         * tests/test-hypot.c: New file.
27968
27969         Tests for module 'fmod'.
27970         * modules/fmod-tests: New file.
27971         * tests/test-fmod.c: New file.
27972
27973         Tests for module 'fabs'.
27974         * modules/fabs-tests: New file.
27975         * tests/test-fabs.c: New file.
27976
27977         Tests for module 'exp'.
27978         * modules/exp-tests: New file.
27979         * tests/test-exp.c: New file.
27980
27981         Tests for module 'erfc'.
27982         * modules/erfc-tests: New file.
27983         * tests/test-erfc.c: New file.
27984
27985         Tests for module 'erf'.
27986         * modules/erf-tests: New file.
27987         * tests/test-erf.c: New file.
27988
27989         Tests for module 'cosh'.
27990         * modules/cosh-tests: New file.
27991         * tests/test-cosh.c: New file.
27992
27993         Tests for module 'cos'.
27994         * modules/cos-tests: New file.
27995         * tests/test-cos.c: New file.
27996
27997         Tests for module 'copysign'.
27998         * modules/copysign-tests: New file.
27999         * tests/test-copysign.c: New file.
28000
28001         Tests for module 'cbrt'.
28002         * modules/cbrt-tests: New file.
28003         * tests/test-cbrt.c: New file.
28004
28005         Tests for module 'atan2'.
28006         * modules/atan2-tests: New file.
28007         * tests/test-atan2.c: New file.
28008
28009         Tests for module 'atan'.
28010         * modules/atan-tests: New file.
28011         * tests/test-atan.c: New file.
28012
28013         Tests for module 'asin'.
28014         * modules/asin-tests: New file.
28015         * tests/test-asin.c: New file.
28016
28017         Tests for module 'acos'.
28018         * modules/acos-tests: New file.
28019         * tests/test-acos.c: New file.
28020
28021 2010-01-24  Bruno Haible  <bruno@clisp.org>
28022
28023         Fix tests for common <math.h> functions.
28024         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
28025         code snippet that references the function pointer, rather than merely
28026         calling the function. Substitute the FUNC_LIBM variable.
28027         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
28028         * modules/acos (configure.ac): Likewise.
28029         * modules/asin (configure.ac): Likewise.
28030         * modules/atan (configure.ac): Likewise.
28031         * modules/atan2 (configure.ac): Likewise.
28032         * modules/cbrt (configure.ac): Likewise.
28033         * modules/copysign (configure.ac): Likewise.
28034         * modules/cos (configure.ac): Likewise.
28035         * modules/cosh (configure.ac): Likewise.
28036         * modules/erf (configure.ac): Likewise.
28037         * modules/erfc (configure.ac): Likewise.
28038         * modules/exp (configure.ac): Likewise.
28039         * modules/fabs (configure.ac): Likewise.
28040         * modules/fmod (configure.ac): Likewise.
28041         * modules/hypot (configure.ac): Likewise.
28042         * modules/j0 (configure.ac): Likewise.
28043         * modules/j1 (configure.ac): Likewise.
28044         * modules/jn (configure.ac): Likewise.
28045         * modules/ldexp (configure.ac): Likewise.
28046         * modules/lgamma (configure.ac): Likewise.
28047         * modules/log (configure.ac): Likewise.
28048         * modules/log10 (configure.ac): Likewise.
28049         * modules/log1p (configure.ac): Likewise.
28050         * modules/logb (configure.ac): Likewise.
28051         * modules/modf (configure.ac): Likewise.
28052         * modules/nextafter (configure.ac): Likewise.
28053         * modules/pow (configure.ac): Likewise.
28054         * modules/remainder (configure.ac): Likewise.
28055         * modules/rint (configure.ac): Likewise.
28056         * modules/sin (configure.ac): Likewise.
28057         * modules/sinh (configure.ac): Likewise.
28058         * modules/tan (configure.ac): Likewise.
28059         * modules/tanh (configure.ac): Likewise.
28060         * modules/y0 (configure.ac): Likewise.
28061         * modules/y1 (configure.ac): Likewise.
28062         * modules/yn (configure.ac): Likewise.
28063
28064 2010-01-24  Bruno Haible  <bruno@clisp.org>
28065
28066         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
28067         * tests/test-acosl.c (x): New variable.
28068         (main): Store argument in x and fetch it from x.
28069         * tests/test-asinl.c (x): New variable.
28070         (main): Store argument in x and fetch it from x.
28071         * tests/test-atanl.c (x): New variable.
28072         (main): Store argument in x and fetch it from x.
28073         * tests/test-cosl.c (x): New variable.
28074         (main): Store argument in x and fetch it from x.
28075         * tests/test-expl.c (x): New variable.
28076         (main): Store argument in x and fetch it from x.
28077         * tests/test-logl.c (x): New variable.
28078         (main): Store argument in x and fetch it from x.
28079         * tests/test-sinl.c (x): New variable.
28080         (main): Store argument in x and fetch it from x.
28081         * tests/test-sqrtl.c (x): New variable.
28082         (main): Store argument in x and fetch it from x.
28083         * tests/test-tanl.c (x): New variable.
28084         (main): Store argument in x and fetch it from x.
28085
28086 2010-01-24  Bruno Haible  <bruno@clisp.org>
28087
28088         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
28089         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
28090         assignments to the initial TESTS_ENVIRONMENT.
28091         * doc/gnulib.texi (Unit test modules): Document it.
28092         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
28093         TESTS_ENVIRONMENT.
28094         * modules/btowc-tests (Makefile.am): Likewise.
28095         * modules/c-stack-tests (Makefile.am): Likewise.
28096         * modules/c-strcase-tests (Makefile.am): Likewise.
28097         * modules/copy-file-tests (Makefile.am): Likewise.
28098         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
28099         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
28100         * modules/mbrtowc-tests (Makefile.am): Likewise.
28101         * modules/mbscasecmp-tests (Makefile.am): Likewise.
28102         * modules/mbscasestr-tests (Makefile.am): Likewise.
28103         * modules/mbschr-tests (Makefile.am): Likewise.
28104         * modules/mbscspn-tests (Makefile.am): Likewise.
28105         * modules/mbsinit-tests (Makefile.am): Likewise.
28106         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
28107         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
28108         * modules/mbspbrk-tests (Makefile.am): Likewise.
28109         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
28110         * modules/mbsrchr-tests (Makefile.am): Likewise.
28111         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
28112         * modules/mbsspn-tests (Makefile.am): Likewise.
28113         * modules/mbsstr-tests (Makefile.am): Likewise.
28114         * modules/nl_langinfo-tests (Makefile.am): Likewise.
28115         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
28116         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
28117         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
28118         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
28119         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
28120         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
28121         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
28122         * modules/wcrtomb-tests (Makefile.am): Likewise.
28123         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
28124         * modules/wcsrtombs-tests (Makefile.am): Likewise.
28125         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
28126         assignments from TESTS_ENVIRONMENT.
28127         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
28128         augmentation.
28129         * modules/argp-version-etc-tests (Makefile.am): Likewise.
28130         * modules/atexit-tests (Makefile.am): Likewise.
28131         * modules/binary-io-tests (Makefile.am): Likewise.
28132         * modules/closein-tests (Makefile.am): Likewise.
28133         * modules/dprintf-posix-tests (Makefile.am): Likewise.
28134         * modules/exclude-tests (Makefile.am): Likewise.
28135         * modules/fflush-tests (Makefile.am): Likewise.
28136         * modules/fpending-tests (Makefile.am): Likewise.
28137         * modules/fprintf-posix-tests (Makefile.am): Likewise.
28138         * modules/freadahead-tests (Makefile.am): Likewise.
28139         * modules/freadptr-tests (Makefile.am): Likewise.
28140         * modules/freadseek-tests (Makefile.am): Likewise.
28141         * modules/fseek-tests (Makefile.am): Likewise.
28142         * modules/fseeko-tests (Makefile.am): Likewise.
28143         * modules/ftell-tests (Makefile.am): Likewise.
28144         * modules/ftello-tests (Makefile.am): Likewise.
28145         * modules/idpriv-drop-tests (Makefile.am): Likewise.
28146         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
28147         * modules/lseek-tests (Makefile.am): Likewise.
28148         * modules/parse-duration-tests (Makefile.am): Likewise.
28149         * modules/perror-tests (Makefile.am): Likewise.
28150         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
28151         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
28152         * modules/pipe-tests (Makefile.am): Likewise.
28153         * modules/pread-tests (Makefile.am): Likewise.
28154         * modules/printf-posix-tests (Makefile.am): Likewise.
28155         * modules/select-tests (Makefile.am): Likewise.
28156         * modules/sigpipe-tests (Makefile.am): Likewise.
28157         * modules/tsearch-tests (Makefile.am): Likewise.
28158         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
28159         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
28160         * modules/uniname/uniname-tests (Makefile.am): Likewise.
28161         * modules/uniwidth/width-tests (Makefile.am): Likewise.
28162         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
28163         * modules/version-etc-tests (Makefile.am): Likewise.
28164         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
28165         * modules/vprintf-posix-tests (Makefile.am): Likewise.
28166         * modules/xalloc-die-tests (Makefile.am): Likewise.
28167         * modules/xprintf-posix-tests (Makefile.am): Likewise.
28168         * modules/xstrtoimax-tests (Makefile.am): Likewise.
28169         * modules/xstrtol-tests (Makefile.am): Likewise.
28170         * modules/xstrtoumax-tests (Makefile.am): Likewise.
28171         * modules/yesno-tests (Makefile.am): Likewise.
28172         Suggested by Jim Meyering.
28173
28174 2010-01-24  Bruno Haible  <bruno@clisp.org>
28175
28176         More documentation.
28177         * doc/gnulib.texi (Writing modules): New chapter.
28178         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
28179         the new chapter.
28180
28181 2010-01-24  Jim Meyering  <meyering@redhat.com>
28182
28183         maint.mk: do not prepend "./" after filtering
28184         * top/maint.mk (_prepend_srcdir_prefix): New variable
28185         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
28186         "./" when $(srcdir) is ".".
28187
28188         define STREQ(a,b) consistently, removing useless parentheses
28189         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
28190         since the only risk is that "a" or "b" contains an unparenthesized
28191         comma, but if either did that, STREQ would have 3 or more arguments.
28192         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
28193         * lib/fts.c (STREQ): Remove unnecessary parentheses.
28194         * lib/hash-triple.c (STREQ): Likewise.
28195         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
28196         * lib/getugroups.c (STREQ): Likewise.
28197
28198 2010-01-23  Jim Meyering  <meyering@redhat.com>
28199
28200         maint.mk: fix syntax-check in a non-srcdir build directory
28201         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
28202         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
28203
28204 2010-01-22  Jim Meyering  <meyering@redhat.com>
28205
28206         userspec: add unit tests
28207         * tests/test-userspec.c: New file.
28208         * modules/userspec-tests: Likewise.
28209
28210 2010-01-21  Jim Meyering  <meyering@redhat.com>
28211
28212         maint.mk: handle source file names containing "." robustly
28213         * top/maint.mk (_dot_escaped_srcdir): Define.
28214         (VC_LIST): Use it in LHS of sed substitution.
28215
28216 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
28217
28218         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
28219         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
28220         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
28221         from a non-srcdir build.
28222
28223 2010-01-20  Eric Blake  <ebb9@byu.net>
28224
28225         warn-on-use: use instead of link-warning
28226         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
28227         * modules/unistd (Depends-on, Makefile.am): Likewise.
28228         * modules/arpa_inet (Depends-on): Replace link-warning with
28229         warn-on-use.
28230         (Makefile.am): Update rules accordingly.
28231         * modules/ctype (Depends-on, Makefile.am): Likewise.
28232         * modules/dirent (Depends-on, Makefile.am): Likewise.
28233         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
28234         * modules/inttypes (Depends-on, Makefile.am): Likewise.
28235         * modules/langinfo (Depends-on, Makefile.am): Likewise.
28236         * modules/locale (Depends-on, Makefile.am): Likewise.
28237         * modules/math (Depends-on, Makefile.am): Likewise.
28238         * modules/search (Depends-on, Makefile.am): Likewise.
28239         * modules/signal (Depends-on, Makefile.am): Likewise.
28240         * modules/spawn (Depends-on, Makefile.am): Likewise.
28241         * modules/stdlib (Depends-on, Makefile.am): Likewise.
28242         * modules/string (Depends-on, Makefile.am): Likewise.
28243         * modules/strings (Depends-on, Makefile.am): Likewise.
28244         * modules/sys_file (Depends-on, Makefile.am): Likewise.
28245         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
28246         * modules/sys_select (Depends-on, Makefile.am): Likewise.
28247         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
28248         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
28249         * modules/sys_times (Depends-on, Makefile.am): Likewise.
28250         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
28251         * modules/wchar (Depends-on, Makefile.am): Likewise.
28252         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
28253         should be poisoned.
28254         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
28255         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
28256         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
28257         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
28258         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
28259         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
28260         * m4/math_h.m4 (gl_MATH_H): Likewise.
28261         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
28262         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
28263         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
28264         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
28265         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
28266         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
28267         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
28268         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
28269         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
28270         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28271         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
28272         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
28273         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28274         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
28275         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
28276         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
28277         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
28278         GL_LINK_WARNING.
28279         * lib/ctype.in.h: Likewise.
28280         * lib/dirent.in.h: Likewise.
28281         * lib/fcntl.in.h: Likewise.
28282         * lib/inttypes.in.h: Likewise.
28283         * lib/langinfo.in.h: Likewise.
28284         * lib/locale.in.h: Likewise.
28285         * lib/math.in.h: Likewise.
28286         * lib/search.in.h: Likewise.
28287         * lib/signal.in.h: Likewise.
28288         * lib/spawn.in.h: Likewise.
28289         * lib/stdio.in.h: Likewise.
28290         * lib/stdlib.in.h: Likewise.
28291         * lib/string.in.h: Likewise.
28292         * lib/strings.in.h: Likewise.
28293         * lib/sys_file.in.h: Likewise.
28294         * lib/sys_ioctl.in.h: Likewise.
28295         * lib/sys_select.in.h: Likewise.
28296         * lib/sys_socket.in.h: Likewise.
28297         * lib/sys_stat.in.h: Likewise.
28298         * lib/sys_times.in.h: Likewise.
28299         * lib/sys_utsname.in.h: Likewise.
28300         * lib/unistd.in.h: Likewise.
28301         * lib/wchar.in.h: Likewise.
28302
28303 2010-01-20  Bruno Haible  <bruno@clisp.org>
28304
28305         Avoid duplicate -lm.
28306         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
28307         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
28308         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
28309         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
28310         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
28311         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
28312         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
28313         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
28314         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
28315         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
28316         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
28317         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
28318         Reported by Paolo Bonzini.
28319
28320 2010-01-19  Bruno Haible  <bruno@clisp.org>
28321
28322         langinfo, nl_langinfo: Relicense under LGPLv2+.
28323         * modules/langinfo (License): Change to LGPLv2+.
28324         * modules/nl_langinfo (License): Likewise.
28325         Patch by David Lutterkort <lutter@redhat.com>.
28326
28327 2010-01-19  Bruno Haible  <bruno@clisp.org>
28328
28329         Avoid compilation error with cc on OSF/1 5.1.
28330         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
28331         statement, not before.
28332         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28333
28334 2010-01-18  Bruno Haible  <bruno@clisp.org>
28335
28336         Avoid a link error due to the __printf__ symbol.
28337         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
28338         and 2.6.x.
28339         (__format__, __printf__): Remove definitions.
28340         * lib/argp-fmtstream.h: Likewise.
28341         * lib/argp.h: Likewise.
28342         * lib/error.h: Likewise.
28343         * lib/vasnprintf.h: Likewise.
28344         * lib/xprintf.h: Likewise.
28345         * lib/xvasprintf.h: Likewise.
28346         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28347
28348 2010-01-18  Bruno Haible  <bruno@clisp.org>
28349
28350         Tests for module 'tanl'.
28351         * modules/tanl-tests: New file.
28352         * tests/test-tanl.c: New file.
28353
28354         Tests for module 'sqrtl'.
28355         * modules/sqrtl-tests: New file.
28356         * tests/test-sqrtl.c: New file.
28357
28358         Tests for module 'sinl'.
28359         * modules/sinl-tests: New file.
28360         * tests/test-sinl.c: New file.
28361
28362         Tests for module 'logl'.
28363         * modules/logl-tests: New file.
28364         * tests/test-logl.c: New file.
28365
28366         Tests for module 'expl'.
28367         * modules/expl-tests: New file.
28368         * tests/test-expl.c: New file.
28369
28370         Tests for module 'cosl'.
28371         * modules/cosl-tests: New file.
28372         * tests/test-cosl.c: New file.
28373
28374         Tests for module 'atanl'.
28375         * modules/atanl-tests: New file.
28376         * tests/test-atanl.c: New file.
28377
28378         Tests for module 'asinl'.
28379         * modules/asinl-tests: New file.
28380         * tests/test-asinl.c: New file.
28381
28382         Tests for module 'acosl'.
28383         * modules/acosl-tests: New file.
28384         * tests/test-acosl.c: New file.
28385
28386         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
28387         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
28388         tanl): Use the standard gnulib idiom.
28389         * lib/cosl.c: Don't include trigl.c and sincosl.c.
28390         * lib/sinl.c: Likewise.
28391         * lib/tanl.c: Don't include trigl.c.
28392         (kernel_tanl): Make static.
28393         * lib/sincosl.c: Include trigl.h first.
28394         * lib/trigl.c: Likewise.
28395         * m4/acosl.m4: New file.
28396         * m4/asinl.m4: New file.
28397         * m4/atanl.m4: New file.
28398         * m4/cosl.m4: New file.
28399         * m4/expl.m4: New file.
28400         * m4/logl.m4: New file.
28401         * m4/sinl.m4: New file.
28402         * m4/sqrtl.m4: New file.
28403         * m4/tanl.m4: New file.
28404         * m4/mathl.m4: Remove file.
28405         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
28406         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
28407         Don't initialize GNULIB_MATHL.
28408         * modules/acosl: New file.
28409         * modules/asinl: New file.
28410         * modules/atanl: New file.
28411         * modules/cosl: New file.
28412         * modules/expl: New file.
28413         * modules/logl: New file.
28414         * modules/sinl: New file.
28415         * modules/sqrtl: New file.
28416         * modules/tanl: New file.
28417         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
28418         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
28419         substitute GNULIB_MATHL.
28420         * modules/mathl: Rewritten.
28421         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
28422         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
28423         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
28424         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
28425         * doc/posix-functions/expl.texi: Mention the 'expl' module.
28426         * doc/posix-functions/logl.texi: Mention the 'logl' module.
28427         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
28428         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
28429         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
28430
28431 2010-01-18  Bruno Haible  <bruno@clisp.org>
28432
28433         sqrt: Make gl_FUNC_SQRT requirable.
28434         * m4/sqrt.m4: New file.
28435         * modules/sqrt (Files): Add it.
28436         (configure.ac): Invoke gl_FUNC_SQRT.
28437
28438 2010-01-18  Bruno Haible  <bruno@clisp.org>
28439
28440         New modules for common <math.h> functions.
28441         * m4/mathfunc.m4: New file.
28442         * modules/acos: New file.
28443         * modules/asin: New file.
28444         * modules/atan: New file.
28445         * modules/atan2: New file.
28446         * modules/cbrt: New file.
28447         * modules/copysign: New file.
28448         * modules/cos: New file.
28449         * modules/cosh: New file.
28450         * modules/erf: New file.
28451         * modules/erfc: New file.
28452         * modules/exp: New file.
28453         * modules/fabs: New file.
28454         * modules/fmod: New file.
28455         * modules/hypot: New file.
28456         * modules/j0: New file.
28457         * modules/j1: New file.
28458         * modules/jn: New file.
28459         * modules/ldexp: New file.
28460         * modules/lgamma: New file.
28461         * modules/log: New file.
28462         * modules/log10: New file.
28463         * modules/log1p: New file.
28464         * modules/logb: New file.
28465         * modules/modf: New file.
28466         * modules/nextafter: New file.
28467         * modules/pow: New file.
28468         * modules/remainder: New file.
28469         * modules/rint: New file.
28470         * modules/sin: New file.
28471         * modules/sinh: New file.
28472         * modules/sqrt: New file.
28473         * modules/tan: New file.
28474         * modules/tanh: New file.
28475         * modules/y0: New file.
28476         * modules/y1: New file.
28477         * modules/yn: New file.
28478         * doc/posix-functions/acos.texi: Mention the 'acos' module.
28479         * doc/posix-functions/asin.texi: Mention the 'asin' module.
28480         * doc/posix-functions/atan.texi: Mention the 'atan' module.
28481         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
28482         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
28483         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
28484         * doc/posix-functions/cos.texi: Mention the 'cos' module.
28485         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
28486         * doc/posix-functions/erf.texi: Mention the 'erf' module.
28487         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
28488         * doc/posix-functions/exp.texi: Mention the 'exp' module.
28489         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
28490         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
28491         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
28492         * doc/posix-functions/j0.texi: Mention the 'j0' module.
28493         * doc/posix-functions/j1.texi: Mention the 'j1' module.
28494         * doc/posix-functions/jn.texi: Mention the 'jn' module.
28495         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
28496         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
28497         * doc/posix-functions/log.texi: Mention the 'log' module.
28498         * doc/posix-functions/log10.texi: Mention the 'log10' module.
28499         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
28500         * doc/posix-functions/logb.texi: Mention the 'logb' module.
28501         * doc/posix-functions/modf.texi: Mention the 'modf' module.
28502         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
28503         * doc/posix-functions/pow.texi: Mention the 'pow' module.
28504         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
28505         * doc/posix-functions/rint.texi: Mention the 'rint' module.
28506         * doc/posix-functions/sin.texi: Mention the 'sin' module.
28507         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
28508         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
28509         * doc/posix-functions/tan.texi: Mention the 'tan' module.
28510         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
28511         * doc/posix-functions/y0.texi: Mention the 'y0' module.
28512         * doc/posix-functions/y1.texi: Mention the 'y1' module.
28513         * doc/posix-functions/yn.texi: Mention the 'yn' module.
28514
28515 2010-01-18  Jim Meyering  <meyering@redhat.com>
28516
28517         ignore-value: relax license to LGPLv2+
28518         * modules/ignore-value (License): Relax to LGPLv2+.
28519
28520         getdate: don't leak when TZ contains two or more '"'s
28521         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
28522         double quote in TZ after the first one.
28523
28524         readtokens: do not leak internal token_lengths buffer
28525         * lib/readtokens.c (readtokens): Free the local, lengths,
28526         when the supplied "token_lengths" parameter is NULL.
28527
28528 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28529
28530         Fix a couple of missing LIBTHREAD link failures on AIX.
28531         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
28532         $(LIBTHREAD).
28533         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
28534
28535         Link test-poll against INET_PTON_LIB.
28536         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
28537         for inet_pton on Solaris 10.
28538
28539 2010-01-17  Bruno Haible  <bruno@clisp.org>
28540
28541         unistdio/*-sprintf: Fix typo in module description.
28542         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
28543         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
28544         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
28545         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
28546         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
28547         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
28548         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
28549         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28550
28551 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28552
28553         gnulib-tool: fix filelist for AIX, HP-UX ksh.
28554         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
28555         variables in shell case patterns, for AIX and HP-UX ksh.
28556
28557         Split large sed scripts, for HP-UX sed.
28558         * modules/stdio: Split sed scripts around 50 sed commands,
28559         to avoid HP-UX limit of 99 commands, in the near future.
28560         * modules/string: Likewise.
28561         * modules/unistd: Likewise.
28562
28563         gnulib-tool: avoid writing in the current directory.
28564         * gnulib-tool (func_emit_lib_Makefile_am)
28565         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
28566         not in the current directory, so concurrent gnulib-tool
28567         instances do not interfere.
28568
28569 2010-01-16  Jim Meyering  <meyering@redhat.com>
28570
28571         doc: update users.txt
28572         * users.txt: Add grep.
28573         (diffutils, gzip): Update URLs.
28574
28575 2010-01-12  Bruno Haible  <bruno@clisp.org>
28576
28577         posix_spawn: Avoid test failure on Cygwin.
28578         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
28579         characters.
28580         Reported by Simon Josefsson.
28581
28582 2010-01-12  Bruno Haible  <bruno@clisp.org>
28583
28584         * tests/test-cond.c (main): When skipping the test, show the reason.
28585
28586 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28587
28588         * lib/striconv.c (str_cd_iconv): Avoid if before free.
28589
28590 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28591
28592         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
28593         VC_LIST_ALWAYS_EXCLUDE_REGEX.
28594
28595 2010-01-12  Eric Blake  <ebb9@byu.net>
28596
28597         build: guarantee AS_VAR_IF
28598         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
28599         (gl_AS_VAR_IF): Move...
28600         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
28601         Reported by Simon Josefsson.
28602
28603 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28604
28605         * lib/stdio.in.h: Fix typo.
28606
28607 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28608
28609         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
28610         libgpg-error.
28611
28612 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28613
28614         * tests/test-xalloc-die.sh: Use $EXEEXT.
28615
28616 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28617             Bruno Haible  <bruno@clisp.org>
28618
28619         getlogin, getlogin_r: Avoid test failure.
28620         * tests/test-getlogin.c: Include <stdio.h>.
28621         (main): Skip the test when the function fails because stdin is not a
28622         tty.
28623         * tests/test-getlogin_r.c: Include <stdio.h>.
28624         (main): Skip the test when the function fails because stdin is not a
28625         tty.
28626
28627 2010-01-11  Eric Blake  <ebb9@byu.net>
28628
28629         tests: avoid more large file warnings
28630         * tests/test-fflush.c: Avoid warning about ftell use.
28631         * tests/test-fseek.c: Avoid warning about fseek use.
28632
28633 2010-01-10  Bruno Haible  <bruno@clisp.org>
28634
28635         nproc: Work better on Linux when /proc and /sys are not mounted.
28636         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
28637         as lower bound when, on glibc/Linux systems,
28638         sysconf (_SC_NPROCESSORS_CONF) returns 1.
28639         Suggested by Pádraig Brady <P@draigbrady.com>.
28640         Reported by Dmitry V. Levin <ldv@altlinux.org>.
28641
28642         nproc: Refactor.
28643         * lib/nproc.c (num_processors_via_affinity_mask): New function,
28644         extracted from num_processors.
28645         (num_processors): Call it.
28646
28647 2010-01-11  Jim Meyering  <meyering@redhat.com>
28648
28649         utimecmp: avoid new warning from upcoming gcc-4.5.0
28650         * lib/utimecmp.c (BILLION): Define using #define rather than an
28651         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
28652
28653 2010-01-11  Eric Blake  <ebb9@byu.net>
28654
28655         math: add portability warnings for classification macros
28656         * modules/math (Depends-on): Add warn-on-use.
28657         (Makefile.am): Provide new substitutions.
28658         * m4/math_h.m4 (gl_MATH_H): Require inline.
28659         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
28660         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
28661         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
28662         implement warnings.
28663
28664         unistd: warn on use of environ without module
28665         * modules/unistd (Depends-on): Add warn-on-use.
28666         (Makefile.am): Provide new substitutions.
28667         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
28668         * lib/unistd.in.h (environ): Wrap with a warning helper function.
28669
28670         stdio: warn on suspicious uses
28671         * modules/stdio (Depends-on): Add warn-on-use.
28672         (Makefile.am): Provide new substitutions.
28673         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
28674         fseeko.
28675         * lib/stdio.in.h (gets): Always warn on use.
28676         (fseek, ftell): Adjust when warnings are issued, and honor
28677         _GL_NO_LARGE_FILES as a way to silence the warning.
28678         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
28679         any warning about large file offsets.
28680         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
28681         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
28682         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
28683         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
28684         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
28685         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
28686         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
28687         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
28688
28689         warn-on-use: new module
28690         * modules/warn-on-use: New file.
28691         * build-aux/warn-on-use.h: Likewise.
28692         * m4/warn-on-use.m4: Likewise.
28693         * MODULES.html.sh (Support for building): Mention it.
28694
28695 2010-01-10  Bruno Haible  <bruno@clisp.org>
28696
28697         Tests for module 'unistr/u32-strdup'.
28698         * modules/unistr/u32-strdup-tests: New file.
28699         * tests/unistr/test-u32-strdup.c: New file.
28700
28701         Tests for module 'unistr/u16-strdup'.
28702         * modules/unistr/u16-strdup-tests: New file.
28703         * tests/unistr/test-u16-strdup.c: New file.
28704
28705         Tests for module 'unistr/u8-strdup'.
28706         * modules/unistr/u8-strdup-tests: New file.
28707         * tests/unistr/test-u8-strdup.c: New file.
28708         * tests/unistr/test-strdup.h: New file.
28709
28710         Tests for module 'unistr/u32-strncmp'.
28711         * modules/unistr/u32-strncmp-tests: New file.
28712         * tests/unistr/test-u32-strncmp.c: New file.
28713
28714         Tests for module 'unistr/u16-strncmp'.
28715         * modules/unistr/u16-strncmp-tests: New file.
28716         * tests/unistr/test-u16-strncmp.c: New file.
28717
28718         Tests for module 'unistr/u8-strncmp'.
28719         * modules/unistr/u8-strncmp-tests: New file.
28720         * tests/unistr/test-u8-strncmp.c: New file.
28721         * tests/unistr/test-strncmp.h: New file.
28722
28723         Tests for module 'unistr/u32-strcoll'.
28724         * modules/unistr/u32-strcoll-tests: New file.
28725         * tests/unistr/test-u32-strcoll.c: New file.
28726
28727         Tests for module 'unistr/u16-strcoll'.
28728         * modules/unistr/u16-strcoll-tests: New file.
28729         * tests/unistr/test-u16-strcoll.c: New file.
28730
28731         Tests for module 'unistr/u8-strcoll'.
28732         * modules/unistr/u8-strcoll-tests: New file.
28733         * tests/unistr/test-u8-strcoll.c: New file.
28734
28735         Tests for module 'unistr/u32-strcmp'.
28736         * modules/unistr/u32-strcmp-tests: New file.
28737         * tests/unistr/test-u32-strcmp.c: New file.
28738         * tests/unistr/test-u32-strcmp.h: New file.
28739
28740         Tests for module 'unistr/u16-strcmp'.
28741         * modules/unistr/u16-strcmp-tests: New file.
28742         * tests/unistr/test-u16-strcmp.c: New file.
28743         * tests/unistr/test-u16-strcmp.h: New file.
28744
28745         Tests for module 'unistr/u8-strcmp'.
28746         * modules/unistr/u8-strcmp-tests: New file.
28747         * tests/unistr/test-u8-strcmp.c: New file.
28748         * tests/unistr/test-u8-strcmp.h: New file.
28749         * tests/unistr/test-strcmp.h: New file.
28750
28751         Tests for module 'unistr/u32-strncat'.
28752         * modules/unistr/u32-strncat-tests: New file.
28753         * tests/unistr/test-u32-strncat.c: New file.
28754
28755         Tests for module 'unistr/u16-strncat'.
28756         * modules/unistr/u16-strncat-tests: New file.
28757         * tests/unistr/test-u16-strncat.c: New file.
28758
28759         Tests for module 'unistr/u8-strncat'.
28760         * modules/unistr/u8-strncat-tests: New file.
28761         * tests/unistr/test-u8-strncat.c: New file.
28762         * tests/unistr/test-strncat.h: New file.
28763
28764         Tests for module 'unistr/u32-strcat'.
28765         * modules/unistr/u32-strcat-tests: New file.
28766         * tests/unistr/test-u32-strcat.c: New file.
28767
28768         Tests for module 'unistr/u16-strcat'.
28769         * modules/unistr/u16-strcat-tests: New file.
28770         * tests/unistr/test-u16-strcat.c: New file.
28771
28772         Tests for module 'unistr/u8-strcat'.
28773         * modules/unistr/u8-strcat-tests: New file.
28774         * tests/unistr/test-u8-strcat.c: New file.
28775         * tests/unistr/test-strcat.h: New file.
28776
28777         Tests for module 'unistr/u32-stpncpy'.
28778         * modules/unistr/u32-stpncpy-tests: New file.
28779         * tests/unistr/test-u32-stpncpy.c: New file.
28780
28781         Tests for module 'unistr/u16-stpncpy'.
28782         * modules/unistr/u16-stpncpy-tests: New file.
28783         * tests/unistr/test-u16-stpncpy.c: New file.
28784
28785         Tests for module 'unistr/u8-stpncpy'.
28786         * modules/unistr/u8-stpncpy-tests: New file.
28787         * tests/unistr/test-u8-stpncpy.c: New file.
28788         * tests/unistr/test-stpncpy.h: New file.
28789
28790         Tests for module 'unistr/u32-strncpy'.
28791         * modules/unistr/u32-strncpy-tests: New file.
28792         * tests/unistr/test-u32-strncpy.c: New file.
28793
28794         Tests for module 'unistr/u16-strncpy'.
28795         * modules/unistr/u16-strncpy-tests: New file.
28796         * tests/unistr/test-u16-strncpy.c: New file.
28797
28798         Tests for module 'unistr/u8-strncpy'.
28799         * modules/unistr/u8-strncpy-tests: New file.
28800         * tests/unistr/test-u8-strncpy.c: New file.
28801         * tests/unistr/test-strncpy.h: New file.
28802
28803         Tests for module 'unistr/u32-stpcpy'.
28804         * modules/unistr/u32-stpcpy-tests: New file.
28805         * tests/unistr/test-u32-stpcpy.c: New file.
28806
28807         Tests for module 'unistr/u16-stpcpy'.
28808         * modules/unistr/u16-stpcpy-tests: New file.
28809         * tests/unistr/test-u16-stpcpy.c: New file.
28810
28811         Tests for module 'unistr/u8-stpcpy'.
28812         * modules/unistr/u8-stpcpy-tests: New file.
28813         * tests/unistr/test-u8-stpcpy.c: New file.
28814         * tests/unistr/test-stpcpy.h: New file.
28815
28816         Tests for module 'unistr/u32-strcpy'.
28817         * modules/unistr/u32-strcpy-tests: New file.
28818         * tests/unistr/test-u32-strcpy.c: New file.
28819
28820         Tests for module 'unistr/u16-strcpy'.
28821         * modules/unistr/u16-strcpy-tests: New file.
28822         * tests/unistr/test-u16-strcpy.c: New file.
28823
28824         Tests for module 'unistr/u8-strcpy'.
28825         * modules/unistr/u8-strcpy-tests: New file.
28826         * tests/unistr/test-u8-strcpy.c: New file.
28827         * tests/unistr/test-strcpy.h: New file.
28828
28829         Tests for module 'unistr/u32-strnlen'.
28830         * modules/unistr/u32-strnlen-tests: New file.
28831         * tests/unistr/test-u32-strnlen.c: New file.
28832
28833         Tests for module 'unistr/u16-strnlen'.
28834         * modules/unistr/u16-strnlen-tests: New file.
28835         * tests/unistr/test-u16-strnlen.c: New file.
28836
28837         Tests for module 'unistr/u8-strnlen'.
28838         * modules/unistr/u8-strnlen-tests: New file.
28839         * tests/unistr/test-u8-strnlen.c: New file.
28840         * tests/unistr/test-strnlen.h: New file.
28841
28842         Tests for module 'unistr/u32-strlen'.
28843         * modules/unistr/u32-strlen-tests: New file.
28844         * tests/unistr/test-u32-strlen.c: New file.
28845
28846         Tests for module 'unistr/u16-strlen'.
28847         * modules/unistr/u16-strlen-tests: New file.
28848         * tests/unistr/test-u16-strlen.c: New file.
28849
28850         Tests for module 'unistr/u8-strlen'.
28851         * modules/unistr/u8-strlen-tests: New file.
28852         * tests/unistr/test-u8-strlen.c: New file.
28853
28854         Tests for module 'unistr/u32-prev'.
28855         * modules/unistr/u32-prev-tests: New file.
28856         * tests/unistr/test-u32-prev.c: New file.
28857
28858         Tests for module 'unistr/u16-prev'.
28859         * modules/unistr/u16-prev-tests: New file.
28860         * tests/unistr/test-u16-prev.c: New file.
28861
28862         Tests for module 'unistr/u8-prev'.
28863         * modules/unistr/u8-prev-tests: New file.
28864         * tests/unistr/test-u8-prev.c: New file.
28865
28866         Tests for module 'unistr/u32-next'.
28867         * modules/unistr/u32-next-tests: New file.
28868         * tests/unistr/test-u32-next.c: New file.
28869
28870         Tests for module 'unistr/u16-next'.
28871         * modules/unistr/u16-next-tests: New file.
28872         * tests/unistr/test-u16-next.c: New file.
28873
28874         Tests for module 'unistr/u8-next'.
28875         * modules/unistr/u8-next-tests: New file.
28876         * tests/unistr/test-u8-next.c: New file.
28877
28878         Tests for module 'unistr/u32-strmbtouc'.
28879         * modules/unistr/u32-strmbtouc-tests: New file.
28880         * tests/unistr/test-u32-strmbtouc.c: New file.
28881
28882         Tests for module 'unistr/u16-strmbtouc'.
28883         * modules/unistr/u16-strmbtouc-tests: New file.
28884         * tests/unistr/test-u16-strmbtouc.c: New file.
28885
28886         Tests for module 'unistr/u8-strmbtouc'.
28887         * modules/unistr/u8-strmbtouc-tests: New file.
28888         * tests/unistr/test-u8-strmbtouc.c: New file.
28889
28890         Tests for module 'unistr/u32-strmblen'.
28891         * modules/unistr/u32-strmblen-tests: New file.
28892         * tests/unistr/test-u32-strmblen.c: New file.
28893
28894         Tests for module 'unistr/u16-strmblen'.
28895         * modules/unistr/u16-strmblen-tests: New file.
28896         * tests/unistr/test-u16-strmblen.c: New file.
28897
28898         Tests for module 'unistr/u8-strmblen'.
28899         * modules/unistr/u8-strmblen-tests: New file.
28900         * tests/unistr/test-u8-strmblen.c: New file.
28901
28902         Tests for module 'unistr/u32-cpy-alloc'.
28903         * modules/unistr/u32-cpy-alloc-tests: New file.
28904         * tests/unistr/test-u32-cpy-alloc.c: New file.
28905
28906         Tests for module 'unistr/u16-cpy-alloc'.
28907         * modules/unistr/u16-cpy-alloc-tests: New file.
28908         * tests/unistr/test-u16-cpy-alloc.c: New file.
28909
28910         Tests for module 'unistr/u8-cpy-alloc'.
28911         * modules/unistr/u8-cpy-alloc-tests: New file.
28912         * tests/unistr/test-u8-cpy-alloc.c: New file.
28913         * tests/unistr/test-cpy-alloc.h: New file.
28914
28915         Tests for module 'unistr/u32-mbsnlen'.
28916         * modules/unistr/u32-mbsnlen-tests: New file.
28917         * tests/unistr/test-u32-mbsnlen.c: New file.
28918
28919         Tests for module 'unistr/u16-mbsnlen'.
28920         * modules/unistr/u16-mbsnlen-tests: New file.
28921         * tests/unistr/test-u16-mbsnlen.c: New file.
28922
28923         Tests for module 'unistr/u8-mbsnlen'.
28924         * modules/unistr/u8-mbsnlen-tests: New file.
28925         * tests/unistr/test-u8-mbsnlen.c: New file.
28926
28927         Tests for module 'unistr/u32-chr'.
28928         * modules/unistr/u32-chr-tests: New file.
28929         * tests/unistr/test-u32-chr.c: New file.
28930
28931         Tests for module 'unistr/u16-chr'.
28932         * modules/unistr/u16-chr-tests: New file.
28933         * tests/unistr/test-u16-chr.c: New file.
28934
28935         Tests for module 'unistr/u8-chr'.
28936         * modules/unistr/u8-chr-tests: New file.
28937         * tests/unistr/test-u8-chr.c: New file.
28938         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
28939
28940         Tests for module 'unistr/u32-cmp2'.
28941         * modules/unistr/u32-cmp2-tests: New file.
28942         * tests/unistr/test-u32-cmp2.c: New file.
28943
28944         Tests for module 'unistr/u16-cmp2'.
28945         * modules/unistr/u16-cmp2-tests: New file.
28946         * tests/unistr/test-u16-cmp2.c: New file.
28947
28948         Tests for module 'unistr/u8-cmp2'.
28949         * modules/unistr/u8-cmp2-tests: New file.
28950         * tests/unistr/test-u8-cmp2.c: New file.
28951         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
28952
28953         Tests for module 'unistr/u32-cmp'.
28954         * modules/unistr/u32-cmp-tests: New file.
28955         * tests/unistr/test-u32-cmp.c: New file.
28956
28957         Tests for module 'unistr/u16-cmp'.
28958         * modules/unistr/u16-cmp-tests: New file.
28959         * tests/unistr/test-u16-cmp.c: New file.
28960
28961         Tests for module 'unistr/u8-cmp'.
28962         * modules/unistr/u8-cmp-tests: New file.
28963         * tests/unistr/test-u8-cmp.c: New file.
28964         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
28965
28966         Tests for module 'unistr/u32-set'.
28967         * modules/unistr/u32-set-tests: New file.
28968         * tests/unistr/test-u32-set.c: New file.
28969
28970         Tests for module 'unistr/u16-set'.
28971         * modules/unistr/u16-set-tests: New file.
28972         * tests/unistr/test-u16-set.c: New file.
28973
28974         Tests for module 'unistr/u8-set'.
28975         * modules/unistr/u8-set-tests: New file.
28976         * tests/unistr/test-u8-set.c: New file.
28977         * tests/unistr/test-set.h: New file.
28978
28979         Tests for module 'unistr/u32-move'.
28980         * modules/unistr/u32-move-tests: New file.
28981         * tests/unistr/test-u32-move.c: New file.
28982
28983         Tests for module 'unistr/u16-move'.
28984         * modules/unistr/u16-move-tests: New file.
28985         * tests/unistr/test-u16-move.c: New file.
28986
28987         Tests for module 'unistr/u8-move'.
28988         * modules/unistr/u8-move-tests: New file.
28989         * tests/unistr/test-u8-move.c: New file.
28990         * tests/unistr/test-move.h: New file.
28991
28992         Tests for module 'unistr/u32-cpy'.
28993         * modules/unistr/u32-cpy-tests: New file.
28994         * tests/unistr/test-u32-cpy.c: New file.
28995
28996         Tests for module 'unistr/u16-cpy'.
28997         * modules/unistr/u16-cpy-tests: New file.
28998         * tests/unistr/test-u16-cpy.c: New file.
28999
29000         Tests for module 'unistr/u8-cpy'.
29001         * modules/unistr/u8-cpy-tests: New file.
29002         * tests/unistr/test-u8-cpy.c: New file.
29003         * tests/unistr/test-cpy.h: New file.
29004
29005 2010-01-09  Bruno Haible  <bruno@clisp.org>
29006
29007         Tests for module 'unistr/u32-uctomb'.
29008         * modules/unistr/u32-uctomb-tests: New file.
29009         * tests/unistr/test-u32-uctomb.c: New file.
29010
29011         Tests for module 'unistr/u16-uctomb'.
29012         * modules/unistr/u16-uctomb-tests: New file.
29013         * tests/unistr/test-u16-uctomb.c: New file.
29014
29015         Tests for module 'unistr/u8-uctomb'.
29016         * modules/unistr/u8-uctomb-tests: New file.
29017         * tests/unistr/test-u8-uctomb.c: New file.
29018
29019         Tests for module 'unistr/u32-mbtoucr'.
29020         * modules/unistr/u32-mbtoucr-tests: New file.
29021         * tests/unistr/test-u32-mbtoucr.c: New file.
29022
29023         Tests for module 'unistr/u16-mbtoucr'.
29024         * modules/unistr/u16-mbtoucr-tests: New file.
29025         * tests/unistr/test-u16-mbtoucr.c: New file.
29026
29027         Tests for module 'unistr/u8-mbtoucr'.
29028         * modules/unistr/u8-mbtoucr-tests: New file.
29029         * tests/unistr/test-u8-mbtoucr.c: New file.
29030
29031         Tests for module 'unistr/u32-mbtouc'.
29032         * modules/unistr/u32-mbtouc-tests: New file.
29033         * tests/unistr/test-u32-mbtouc.c: New file.
29034
29035         Tests for module 'unistr/u16-mbtouc'.
29036         * modules/unistr/u16-mbtouc-tests: New file.
29037         * tests/unistr/test-u16-mbtouc.c: New file.
29038
29039         Tests for module 'unistr/u8-mbtouc'.
29040         * modules/unistr/u8-mbtouc-tests: New file.
29041         * tests/unistr/test-u8-mbtouc.c: New file.
29042
29043         Tests for module 'unistr/u32-mbtouc-unsafe'.
29044         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
29045         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
29046         * tests/unistr/test-u32-mbtouc.h: New file.
29047
29048         Tests for module 'unistr/u16-mbtouc-unsafe'.
29049         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
29050         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
29051         * tests/unistr/test-u16-mbtouc.h: New file.
29052
29053         Tests for module 'unistr/u8-mbtouc-unsafe'.
29054         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
29055         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
29056         * tests/unistr/test-u8-mbtouc.h: New file.
29057
29058         Tests for module 'unistr/u32-mblen'.
29059         * modules/unistr/u32-mblen-tests: New file.
29060         * tests/unistr/test-u32-mblen.c: New file.
29061
29062         Tests for module 'unistr/u16-mblen'.
29063         * modules/unistr/u16-mblen-tests: New file.
29064         * tests/unistr/test-u16-mblen.c: New file.
29065
29066         Tests for module 'unistr/u8-mblen'.
29067         * modules/unistr/u8-mblen-tests: New file.
29068         * tests/unistr/test-u8-mblen.c: New file.
29069
29070         Tests for module 'unistr/u32-to-u16'.
29071         * modules/unistr/u32-to-u16-tests: New file.
29072         * tests/unistr/test-u32-to-u16.c: New file.
29073
29074         Tests for module 'unistr/u32-to-u8'.
29075         * modules/unistr/u32-to-u8-tests: New file.
29076         * tests/unistr/test-u32-to-u8.c: New file.
29077
29078         Tests for module 'unistr/u16-to-u32'.
29079         * modules/unistr/u16-to-u32-tests: New file.
29080         * tests/unistr/test-u16-to-u32.c: New file.
29081
29082         Tests for module 'unistr/u16-to-u8'.
29083         * modules/unistr/u16-to-u8-tests: New file.
29084         * tests/unistr/test-u16-to-u8.c: New file.
29085
29086         Tests for module 'unistr/u8-to-u32'.
29087         * modules/unistr/u8-to-u32-tests: New file.
29088         * tests/unistr/test-u8-to-u32.c: New file.
29089
29090         Tests for module 'unistr/u8-to-u16'.
29091         * modules/unistr/u8-to-u16-tests: New file.
29092         * tests/unistr/test-u8-to-u16.c: New file.
29093
29094         Tests for module 'unistr/u32-check'.
29095         * modules/unistr/u32-check-tests: New file.
29096         * tests/unistr/test-u32-check.c: New file.
29097
29098         Tests for module 'unistr/u16-check'.
29099         * modules/unistr/u16-check-tests: New file.
29100         * tests/unistr/test-u16-check.c: New file.
29101
29102         Tests for module 'unistr/u8-check'.
29103         * modules/unistr/u8-check-tests: New file.
29104         * tests/unistr/test-u8-check.c: New file.
29105
29106         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
29107         (category_equals): New function.
29108         (main): Add more tests.
29109         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
29110
29111         * tests/unictype/test-bidi_byname.c (main): Add more tests.
29112
29113 2010-01-10  Bruno Haible  <bruno@clisp.org>
29114
29115         unistr/u*-strcoll: Try harder to distinguish different strings.
29116         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
29117         compare s1 and s2 to see if they are different.
29118
29119 2010-01-10  Bruno Haible  <bruno@clisp.org>
29120
29121         unistr/u*-stpncpy: Fix the return value.
29122         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
29123         description of the return value consistent with stpncpy in glibc.
29124         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
29125         written non-NUL unit.
29126
29127 2010-01-10  Bruno Haible  <bruno@clisp.org>
29128
29129         unistr/u*-next: Add missing dependencies.
29130         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
29131         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
29132         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
29133
29134 2010-01-10  Bruno Haible  <bruno@clisp.org>
29135
29136         unistr/u8-mbsnlen: Fix return value for incomplete character.
29137         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
29138         u8_mblen.
29139         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
29140         Remove unistr/u8-mblen.
29141         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
29142         u16_mblen.
29143         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
29144         Remove unistr/u16-mblen.
29145
29146 2010-01-10  Bruno Haible  <bruno@clisp.org>
29147
29148         wchar: Fix compilation error when <wchar.h> is used from coreutils.
29149         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
29150         Reported by Brian Gough <bjg@gnu.org> and
29151         Chris Clayton <chris2553@googlemail.com> via
29152         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
29153
29154 2010-01-09  Bruno Haible  <bruno@clisp.org>
29155
29156         unistr/u16-to-u32: Reject invalid input.
29157         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
29158         u16_mbtouc.
29159         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
29160         Remove unistr/u16-mbtouc.
29161
29162         unistr/u16-to-u8: Reject invalid input.
29163         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
29164         u16_mbtouc.
29165         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
29166         Remove unistr/u16-mbtouc.
29167
29168         unistr/u8-to-u32: Reject invalid input.
29169         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
29170         u8_mbtouc.
29171         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
29172         Remove unistr/u8-mbtouc.
29173
29174         unistr/u8-to-u16: Reject invalid input.
29175         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
29176         u8_mbtouc.
29177         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
29178         Remove unistr/u8-mbtouc.
29179
29180 2010-01-09  Bruno Haible  <bruno@clisp.org>
29181
29182         Tests for module 'getlogin'.
29183         * modules/getlogin-tests: New file.
29184         * tests/test-getlogin.c: New file.
29185
29186         New module 'getlogin'.
29187         * lib/unistd.in.h (getlogin): New declaration.
29188         * lib/getlogin.c: New file.
29189         * m4/getlogin.m4: New file.
29190         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
29191         HAVE_GETLOGIN.
29192         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
29193         HAVE_GETLOGIN.
29194         * modules/getlogin: New file.
29195         * doc/posix-functions/getlogin.texi: Mention the new module.
29196         Reported by John W. Eaton <jwe@gnu.org>.
29197
29198 2010-01-09  Bruno Haible  <bruno@clisp.org>
29199
29200         getlogin_r: Support for native Windows.
29201         * lib/getlogin_r.c: Include <windows.h>
29202         (getlogin_r): Implement for native Windows.
29203         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
29204         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
29205         via John W. Eaton <jwe@gnu.org>.
29206
29207 2010-01-09  Bruno Haible  <bruno@clisp.org>
29208
29209         getlogin_r: Small fixes.
29210         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
29211         succeeds.
29212         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
29213         before testing whether getlogin_r is declared. No need to set
29214         HAVE_DECL_GETLOGIN_R to 1.
29215         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
29216
29217 2010-01-09  Bruno Haible  <bruno@clisp.org>
29218
29219         * lib/unistd.in.h (getlogin_r): Add comment.
29220
29221 2010-01-09  Bruno Haible  <bruno@clisp.org>
29222
29223         Tests for module 'getlogin_r'.
29224         * modules/getlogin_r-tests: New file.
29225         * tests/test-getlogin_r.c: New file.
29226
29227 2010-01-09  Jim Meyering  <meyering@redhat.com>
29228
29229         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
29230         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
29231         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
29232
29233 2010-01-08  Simon Josefsson  <simon@josefsson.org>
29234
29235         * lib/dup2.c (rpl_dup2): Improve comment.
29236
29237 2010-01-08  Eric Blake  <ebb9@byu.net>
29238
29239         maint.mk: allow packages to add makefile @@ exceptions
29240         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
29241         (sc_makefile_check): Rename...
29242         (sc_makefile_at_at_check): ...to this, and use hook.
29243
29244         dup2: work around mingw bug
29245         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
29246         Reported by Simon Josefsson.
29247
29248 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
29249
29250         glob: Fix C++ compilation.
29251         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
29252         C++.
29253
29254 2010-01-07  Bruno Haible  <bruno@clisp.org>
29255
29256         Fix indentation of wctype.in.h, broken since 2007-01-06.
29257         * lib/wctype.in.h: Fix indentation of preprocessor directives.
29258
29259 2010-01-07  Bruno Haible  <bruno@clisp.org>
29260
29261         mbslen: Avoid collision with system function.
29262         * lib/string.in.h [MirBSD]: Include <wchar.h>.
29263         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
29264         * m4/mbslen.m4: New file.
29265         * modules/mbslen (Files): Add it.
29266         (configure.ac): Invoke gl_MBSLEN.
29267         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
29268         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
29269         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
29270         via Ian Beckwith <ianb@erislabs.net>.
29271
29272 2010-01-07  Bruno Haible  <bruno@clisp.org>
29273
29274         dirent: Document the last fix.
29275         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
29276
29277 2010-01-07  Bruno Haible  <bruno@clisp.org>
29278
29279         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
29280         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
29281         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
29282         va_list are defined.
29283         * doc/posix-headers/stdio.texi: Document the bug of missing types.
29284         Reported by Eric Blake.
29285
29286 2010-01-07  Bruno Haible  <bruno@clisp.org>
29287
29288         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
29289         * modules/xlist (Depends-on): Add 'list',
29290         * modules/xoset (Depends-on): Add 'oset'.
29291         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29292
29293 2010-01-07  Bruno Haible  <bruno@clisp.org>
29294
29295         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
29296         * doc/posix-functions/strncasecmp.texi: Likewise.
29297
29298 2010-01-07  Bruno Haible  <bruno@clisp.org>
29299
29300         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
29301
29302 2010-01-07  John W. Eaton  <jwe@octave.org>
29303
29304         wctype: allow C++ use
29305         * lib/wctype.in.h: Add extern "C" block for C++.
29306
29307 2010-01-06  Eric Blake  <ebb9@byu.net>
29308
29309         maint.mk: detect incorrect GFDL usage
29310         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
29311
29312 2010-01-06  Jim Meyering  <meyering@redhat.com>
29313         and Eric Blake  <ebb9@byu.net>
29314
29315         maint.mk: ignore multi-line copyright in NEWS
29316         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
29317
29318 2010-01-06  Eric Blake  <ebb9@byu.net>
29319
29320         select: add missing dependency
29321         * modules/select-tests (Depends-on): Move sockets dependency...
29322         * modules/select (Depends-on): ...here.
29323         Reported by Ian Beckwith.
29324
29325         doc: regenerate INSTALL
29326         * doc/INSTALL: Reflect recent autoconf update.
29327         * doc/INSTALL.ISO: Likewise.
29328         * doc/INSTALL.UTF-8: Likewise.
29329
29330         pread: fix compilation on glibc
29331         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
29332         Reported by Ralf Wildenhues.
29333
29334         dirent: fix test failure
29335         * lib/dirent.in.h (includes): Guarantee ino_t.
29336         Reported by Ralf Wildenhues.
29337
29338 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
29339
29340         linkat, renameat: avoid bad free
29341         * lib/at-func2.c (at_func2): Fix typo.
29342         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
29343
29344 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29345
29346         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
29347         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
29348         to avoid failure of symlink test later.
29349
29350 2010-01-06  Eric Blake  <ebb9@byu.net>
29351
29352         stdio, unistd: guarantee ssize_t
29353         * lib/unistd.in.h (includes): Ensure that types required by POSIX
29354         2008 are exposed when needed.
29355         * lib/stdio.in.h (includes): Likewise.
29356         Reported by Ralf Wildenhues.
29357
29358 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
29359
29360         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
29361         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
29362         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
29363
29364 2010-01-06  Jim Meyering  <meyering@redhat.com>
29365
29366         readtokens: this module *does* require xalloc.h
29367         It uses only functions that were omitted by the old syntax-check rule.
29368         * lib/readtokens.c: Include "xalloc.h" once again.
29369         * modules/readtokens (Depends-on): Add xalloc.
29370         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
29371
29372 2010-01-05  Eric Blake  <ebb9@byu.net>
29373
29374         maint: support 'make announcement' from a VPATH build
29375         * top/maint.mk (announcement): Look for correct NEWS file.
29376
29377 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
29378
29379         utimens (fdutimens): ignore a negative FD, per contract
29380         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
29381         when we have a valid file descriptor.  Otherwise, using a brand
29382         new glibc (with just-patched futimens that now fails with EBADF)
29383         would cause this function to fail with ENOSYS.
29384         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
29385         See also http://bugzilla.redhat.com/552320.
29386
29387 2010-01-05  Eric Blake  <ebb9@byu.net>
29388
29389         strcase: document what it provides
29390         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
29391         gnulib module.
29392         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
29393         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
29394
29395 2010-01-05  Jim Meyering  <meyering@redhat.com>
29396
29397         maint: remove useless inclusions of "xalloc.h"
29398         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
29399         * lib/readtokens.c: Likewise.
29400         * lib/same.c: Likewise.
29401         * modules/getloadavg (Depends-on): Remove xalloc.
29402         * modules/readtokens: Likewise.
29403         * modules/same: Likewise.
29404
29405         maint.mk: include 4 more function names in alloca.h-checking regexp
29406         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
29407         regexp.  Before, we would give a false-positive (saying alloca.h
29408         is included unnecessarily) when the only uses involved omitted symbols.
29409
29410         xalloc.h: use consistent formatting
29411         * lib/xalloc.h: Move declarations to start in the first column.
29412
29413 2010-01-05  Eric Blake  <ebb9@byu.net>
29414
29415         mkdir: avoid xalloc
29416         * lib/mkdir.c (includes): Drop unused header.
29417         Reported by John W. Eaton.
29418
29419 2010-01-04  Jim Meyering  <meyering@redhat.com>
29420
29421         nl_langinfo: avoid configure-time syntax error
29422         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
29423         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
29424         the empty string.  Don't let that provoke a shell syntax error.
29425
29426         regcomp, regexec, fnmatch: avoid array bounds read error
29427         * lib/regcomp.c (build_equiv_class): From glibc:
29428         Use only the low 24 bits of a findidx return value as an index
29429         into the weights array.  Patch by Ulrich Drepper:
29430         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
29431         * lib/regexec.c (check_node_accept_bytes): Likewise.
29432         * lib/fnmatch_loop.c (FCT): Likewise.
29433
29434         regcomp: skip collseq lookup when there are no rules
29435         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
29436         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
29437
29438         regcomp: recognize ill-formed { } expressions
29439         * lib/regcomp.c (parse_dup_op): From glibc:
29440         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
29441
29442         regcomp: fix typo in comment
29443         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
29444         s/satisfy/satisfies/.
29445
29446         regcomp: sync from glibc: remove dead store
29447         * lib/regcomp.c (duplicate_node_closure): Remove useless
29448         search_duplicated_node call and dead store.
29449
29450         regcomp: sync from glibc; always use nl_langinfo
29451         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
29452         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
29453         * modules/regex (Depends-on): Add nl_langinfo.
29454
29455 2010-01-04  Eric Blake  <ebb9@byu.net>
29456
29457         fdopendir: fix configure test
29458         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
29459
29460 2010-01-01  Bruno Haible  <bruno@clisp.org>
29461
29462         wchar: Remove unused configure check.
29463         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
29464
29465 2010-01-01  Eric Blake  <ebb9@byu.net>
29466
29467         headers: make check of system header explicit
29468         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
29469         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
29470         ourselves.
29471         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
29472         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29473         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
29474         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
29475         internals.
29476         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
29477         missing.
29478         Suggested by Bruno Haible.
29479
29480 2010-01-01  Jim Meyering  <meyering@redhat.com>
29481
29482         ChangeLog: tweak to eliminate unnecessary copyright line
29483         * ChangeLog: Remove a copyright line that was mistakenly updated
29484         by today's update-copyright run.  Reported by Eric Blake.
29485
29486         test-update-copyright: don't let envvar setting cause test failure
29487         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
29488
29489 2010-01-01  Bruno Haible  <bruno@clisp.org>
29490
29491         localename: Avoid gcc warning.
29492         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
29493         function if it is not used.
29494
29495 2010-01-01  Jim Meyering  <meyering@redhat.com>
29496
29497         update nearly all FSF copyright year lists to include 2010
29498         Use the same procedure as for 2009, outlined in
29499         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
29500
29501         version-etc: set COPYRIGHT_YEAR to 2010
29502         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
29503
29504 2009-12-31  Eric Blake  <ebb9@byu.net>
29505
29506         doc: correct availability of cygwin 1.5.x getopt
29507         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
29508         variables.
29509         * doc/posix-functions/opterr.texi (opterr): Likewise.
29510         * doc/posix-functions/optind.texi (optind): Likewise.
29511         * doc/posix-functions/optopt.texi (optopt): Likewise.
29512         * doc/posix-functions/tzname.texi (tzname): Likewise.
29513
29514         openat: update maintainer
29515         * modules/openat (Maintainer): Add myself.
29516
29517         utimens: avoid shadowing warning
29518         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
29519         buffers into one, to avoid shadowing, as well as avoiding a
29520         redundant stat.
29521         Reported by Jim Meyering.
29522
29523         test-dup2: avoid compiler warning
29524         * tests/test-dup2.c (is_inheritable): Only define if used.
29525
29526 2010-01-01  Bruno Haible  <bruno@clisp.org>
29527
29528         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
29529         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
29530         defined, use wctomb instead of wcrtomb.
29531
29532 2010-01-01  Bruno Haible  <bruno@clisp.org>
29533
29534         iconv: Reject native Solaris iconv.
29535         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
29536         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
29537
29538 2009-12-31  Bruno Haible  <bruno@clisp.org>
29539
29540         * tests/test-signal.c (main): Remove test of 'SIG'.
29541
29542 2009-12-31  Bruno Haible  <bruno@clisp.org>
29543
29544         spawn: Fix incomplete fix.
29545         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
29546         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
29547         warnings for GNULIB_POSIXCHECK again.
29548         Reported by Eric Blake.
29549
29550 2009-12-31  Bruno Haible  <bruno@clisp.org>
29551
29552         Avoid namespace pollution on glibc systems.
29553         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
29554         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
29555         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
29556         glibc systems.
29557
29558 2009-12-31  Bruno Haible  <bruno@clisp.org>
29559
29560         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
29561         (gl_REPLACE_WCHAR_H): Turn into a no-op.
29562         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
29563         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
29564         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
29565         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
29566         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
29567
29568 2009-12-31  Bruno Haible  <bruno@clisp.org>
29569
29570         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
29571         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
29572         afterwards.
29573
29574 2009-12-31  Bruno Haible  <bruno@clisp.org>
29575
29576         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
29577         SYS_UTSNAME_H.
29578
29579 2009-12-31  Bruno Haible  <bruno@clisp.org>
29580
29581         spawn: Fix misapplied patch.
29582         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
29583         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
29584         warnings for GNULIB_POSIXCHECK.
29585
29586 2009-12-31  Bruno Haible  <bruno@clisp.org>
29587
29588         times: Update after sys_times changed.
29589         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
29590         * modules/times (Files): Add it.
29591         (configure.ac): Invoke gl_FUNC_TIMES.
29592
29593 2009-12-31  Bruno Haible  <bruno@clisp.org>
29594
29595         Use AC_C_INLINE where necessary.
29596         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
29597         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
29598         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
29599         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
29600         * m4/mbfile.m4 (gl_MBFILE): Likewise.
29601         * m4/mbiter.m4 (gl_MBITER): Likewise.
29602         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
29603         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29604         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
29605         * modules/u64 (configure.ac): Likewise.
29606
29607 2009-12-31  Bruno Haible  <bruno@clisp.org>
29608
29609         Use AC_C_INLINE instead of module 'inline' where possible.
29610         * modules/inline (Description): Clarify purpose.
29611         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
29612         * modules/count-one-bits (Depends-on): Remove inline.
29613         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
29614         * modules/openat (Depends-on): Remove inline.
29615         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
29616         instead of depending on module 'inline'.
29617         * modules/filevercmp (Depends-on, configure.ac): Likewise.
29618         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
29619         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
29620         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
29621         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
29622         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
29623         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
29624         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
29625         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
29626         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
29627         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
29628         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
29629         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
29630         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
29631         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
29632         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
29633         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
29634         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
29635         Likewise.
29636         * modules/unictype/property-ascii-hex-digit (Depends-on,
29637         configure.ac): Likewise.
29638         * modules/unictype/property-bidi-arabic-digit (Depends-on,
29639         configure.ac): Likewise.
29640         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
29641         configure.ac): Likewise.
29642         * modules/unictype/property-bidi-block-separator (Depends-on,
29643         configure.ac): Likewise.
29644         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
29645         configure.ac): Likewise.
29646         * modules/unictype/property-bidi-common-separator (Depends-on,
29647         configure.ac): Likewise.
29648         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
29649         Likewise.
29650         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
29651         configure.ac): Likewise.
29652         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
29653         configure.ac): Likewise.
29654         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
29655         configure.ac): Likewise.
29656         * modules/unictype/property-bidi-european-digit (Depends-on,
29657         configure.ac): Likewise.
29658         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
29659         configure.ac): Likewise.
29660         * modules/unictype/property-bidi-left-to-right (Depends-on,
29661         configure.ac): Likewise.
29662         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
29663         configure.ac): Likewise.
29664         * modules/unictype/property-bidi-other-neutral (Depends-on,
29665         configure.ac): Likewise.
29666         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
29667         Likewise.
29668         * modules/unictype/property-bidi-segment-separator (Depends-on,
29669         configure.ac): Likewise.
29670         * modules/unictype/property-bidi-whitespace (Depends-on,
29671         configure.ac): Likewise.
29672         * modules/unictype/property-combining (Depends-on, configure.ac):
29673         Likewise.
29674         * modules/unictype/property-composite (Depends-on, configure.ac):
29675         Likewise.
29676         * modules/unictype/property-currency-symbol (Depends-on,
29677         configure.ac): Likewise.
29678         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
29679         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
29680         Likewise.
29681         * modules/unictype/property-default-ignorable-code-point (Depends-on,
29682         configure.ac): Likewise.
29683         * modules/unictype/property-deprecated (Depends-on, configure.ac):
29684         Likewise.
29685         * modules/unictype/property-diacritic (Depends-on, configure.ac):
29686         Likewise.
29687         * modules/unictype/property-extender (Depends-on, configure.ac):
29688         Likewise.
29689         * modules/unictype/property-format-control (Depends-on, configure.ac):
29690         Likewise.
29691         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
29692         Likewise.
29693         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
29694         Likewise.
29695         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
29696         Likewise.
29697         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
29698         Likewise.
29699         * modules/unictype/property-hyphen (Depends-on, configure.ac):
29700         Likewise.
29701         * modules/unictype/property-id-continue (Depends-on, configure.ac):
29702         Likewise.
29703         * modules/unictype/property-id-start (Depends-on, configure.ac):
29704         Likewise.
29705         * modules/unictype/property-ideographic (Depends-on, configure.ac):
29706         Likewise.
29707         * modules/unictype/property-ids-binary-operator (Depends-on,
29708         configure.ac): Likewise.
29709         * modules/unictype/property-ids-trinary-operator (Depends-on,
29710         configure.ac): Likewise.
29711         * modules/unictype/property-ignorable-control (Depends-on,
29712         configure.ac): Likewise.
29713         * modules/unictype/property-iso-control (Depends-on, configure.ac):
29714         Likewise.
29715         * modules/unictype/property-join-control (Depends-on, configure.ac):
29716         Likewise.
29717         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
29718         Likewise.
29719         * modules/unictype/property-line-separator (Depends-on, configure.ac):
29720         Likewise.
29721         * modules/unictype/property-logical-order-exception (Depends-on,
29722         configure.ac): Likewise.
29723         * modules/unictype/property-lowercase (Depends-on, configure.ac):
29724         Likewise.
29725         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
29726         * modules/unictype/property-non-break (Depends-on, configure.ac):
29727         Likewise.
29728         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
29729         Likewise.
29730         * modules/unictype/property-numeric (Depends-on, configure.ac):
29731         Likewise.
29732         * modules/unictype/property-other-alphabetic (Depends-on,
29733         configure.ac): Likewise.
29734         * modules/unictype/property-other-default-ignorable-code-point
29735         (Depends-on, configure.ac): Likewise.
29736         * modules/unictype/property-other-grapheme-extend (Depends-on,
29737         configure.ac): Likewise.
29738         * modules/unictype/property-other-id-continue (Depends-on,
29739         configure.ac): Likewise.
29740         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
29741         Likewise.
29742         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
29743         Likewise.
29744         * modules/unictype/property-other-math (Depends-on, configure.ac):
29745         Likewise.
29746         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
29747         Likewise.
29748         * modules/unictype/property-paired-punctuation (Depends-on,
29749         configure.ac): Likewise.
29750         * modules/unictype/property-paragraph-separator (Depends-on,
29751         configure.ac): Likewise.
29752         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
29753         Likewise.
29754         * modules/unictype/property-pattern-white-space (Depends-on,
29755         configure.ac): Likewise.
29756         * modules/unictype/property-private-use (Depends-on, configure.ac):
29757         Likewise.
29758         * modules/unictype/property-punctuation (Depends-on, configure.ac):
29759         Likewise.
29760         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
29761         Likewise.
29762         * modules/unictype/property-radical (Depends-on, configure.ac):
29763         Likewise.
29764         * modules/unictype/property-sentence-terminal (Depends-on,
29765         configure.ac): Likewise.
29766         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
29767         Likewise.
29768         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
29769         * modules/unictype/property-terminal-punctuation (Depends-on,
29770         configure.ac): Likewise.
29771         * modules/unictype/property-titlecase (Depends-on, configure.ac):
29772         Likewise.
29773         * modules/unictype/property-unassigned-code-value (Depends-on,
29774         configure.ac): Likewise.
29775         * modules/unictype/property-unified-ideograph (Depends-on,
29776         configure.ac): Likewise.
29777         * modules/unictype/property-uppercase (Depends-on, configure.ac):
29778         Likewise.
29779         * modules/unictype/property-variation-selector (Depends-on,
29780         configure.ac): Likewise.
29781         * modules/unictype/property-white-space (Depends-on, configure.ac):
29782         Likewise.
29783         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
29784         Likewise.
29785         * modules/unictype/property-xid-start (Depends-on, configure.ac):
29786         Likewise.
29787         * modules/unictype/property-zero-width (Depends-on, configure.ac):
29788         Likewise.
29789         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
29790         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
29791         Likewise.
29792
29793 2009-12-31  Bruno Haible  <bruno@clisp.org>
29794
29795         Remove unnecessary AC_C_INLINE invocation.
29796         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
29797         since 2009-08-21.
29798
29799 2009-12-31  Jim Meyering  <meyering@redhat.com>
29800
29801         maint.mk: don't require explicit gpg_key_ID in cfg.mk
29802         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
29803         With this change, we can all remove the gpg_key_ID = ... definition
29804         from our respective cfg.mk files.
29805
29806         maint.mk: create announcement template in ~/, not in /tmp
29807         * top/maint.mk (emit_upload_commands): Adjust.
29808         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
29809         Remove temporary file, .ci-msg.
29810
29811 2009-12-31  Eric Blake  <ebb9@byu.net>
29812
29813         link-warning: always build headers with link warnings
29814         * modules/arpa_inet (Makefile.am): Always build replacement
29815         header.
29816         * modules/ctype (Makefile.am): Likewise.
29817         * modules/dirent (Makefile.am): Likewise.
29818         * modules/inttypes (Makefile.am): Likewise.
29819         * modules/langinfo (Makefile.am): Likewise.
29820         * modules/locale (Makefile.am): Likewise.
29821         * modules/spawn (Makefile.am): Likewise.
29822         * modules/sys_file (Makefile.am): Likewise.
29823         * modules/sys_ioctl (Makefile.am): Likewise.
29824         * modules/sys_select (Makefile.am): Likewise.
29825         * modules/sys_socket (Makefile.am): Likewise.
29826         * modules/sys_times (Makefile.am): Likewise.
29827         * modules/sys_utsname (Makefile.am): Likewise.
29828         * modules/sys_wait (Makefile.am): Likewise.
29829         * modules/wchar (Makefile.am): Likewise.
29830         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
29831         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
29832         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
29833         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
29834         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
29835         Likewise.
29836         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29837         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
29838         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
29839         Likewise.
29840         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
29841         Likewise.
29842         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
29843         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
29844         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
29845         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29846         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29847         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29848         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29849         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
29850         (gl_WCHAR_H_DEFAULTS): Likewise.
29851
29852 2009-12-31  Eric Blake  <ebb9@byu.net>
29853
29854         signal, spawn: use link warnings
29855         * lib/signal.in.h (sigset_t): Make unconditional.
29856         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
29857         (sigpending, sigprocmask, sigaction): Add link warnings.
29858         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
29859         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
29860         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
29861         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
29862         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
29863         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
29864         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
29865         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
29866         (posix_spawn_file_actions_destroy)
29867         (posix_spawn_file_actions_addopen)
29868         (posix_spawn_file_actions_addclose)
29869         (posix_spawn_file_actions_adddup2): Likewise.
29870         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
29871         * tests/test-signal.c (main): Enhance test.
29872
29873         spawn: improve wrapper support
29874         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
29875         (gl_SPAWN_H_DEFAULTS): New defaults.
29876         * modules/spawn (Makefile.am): Substitute them.
29877         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
29878         Only declare if missing or broken.
29879
29880         sys_times, sys_utsname: use include_next
29881         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
29882         header.
29883         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
29884         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29885         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29886         * modules/sys_times (Depends-on): Add include_next.
29887         (Makefile.am): Substitute additional values.
29888         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
29889         * lib/sys_times.in.h (includes): Include native header, if
29890         available.
29891         * lib/sys_utsname.in.h (includes): Likewise.
29892         * tests/test-sys_times.c (main): Enhance test.
29893
29894         fdutimensat: revert prior patch
29895         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
29896         utimens.h.
29897         Reported by Bruno Haible.
29898
29899 2009-12-30  Eric Blake  <ebb9@byu.net>
29900
29901         sys_wait: drop link-warning dependency
29902         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
29903         link-warning efforts.
29904         * lib/sys_wait.in.h: Likewise.
29905
29906         fdutimensat: remove bogus dependency
29907         * modules/fdutimensat (Depends-on): Drop inline.
29908
29909         unistd: fix typo
29910         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
29911
29912 2009-12-30  Bruno Haible  <bruno@clisp.org>
29913
29914         Fix compilation error with Solaris cc.
29915         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
29916         * lib/unicase/u16-is-invariant.c: Likewise.
29917         * lib/unicase/u32-is-invariant.c: Likewise.
29918         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
29919
29920 2009-12-30  Bruno Haible  <bruno@clisp.org>
29921
29922         Fix test crash.
29923         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
29924         locales.
29925         Reported by Simon Josefsson <simon@josefsson.org>.
29926
29927 2009-12-30  Bruno Haible  <bruno@clisp.org>
29928
29929         Fix compilation error on most platforms.
29930         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
29931         Reported by Simon Josefsson <simon@josefsson.org>
29932         and Nelson H. F. Beebe <beebe@math.utah.edu>.
29933
29934 2009-12-30  Eric Blake  <ebb9@byu.net>
29935
29936         futimens, utimensat: work around ntfs-3g bug
29937         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
29938         a ctime bug is present, and expand workaround to cover ntfs-3g.
29939         * lib/utimens.c (fdutimens, lutimens): Likewise.
29940         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
29941         (validate_timespec): Adjust return value.
29942         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
29943         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29944         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
29945
29946 2009-12-29  Eric Blake  <ebb9@byu.net>
29947
29948         link-warning: make usage consistent
29949         * modules/ctype (Depends-on): Add link-warning.
29950         (Makefile.am): Update rules accordingly.
29951         * modules/langinfo (Depends-on, Makefile.am): Likewise.
29952         * modules/locale (Depends-on, Makefile.am): Likewise.
29953         * modules/sys_file (Makefile.am): Likewise.
29954         * modules/getopt-posix (Makefile.am): Delete unused link warning
29955         efforts.
29956         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
29957         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
29958         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
29959         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
29960
29961         stdio: remove unused variables
29962         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
29963         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
29964         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29965
29966         tests: test more substitute headers
29967         * modules/ctype-tests: New file.
29968         * modules/dirent-tests: Likewise.
29969         * modules/spawn-tests: Likewise.
29970         * modules/sys_file-tests: Likewise.
29971         * modules/sys_ioctl-tests: Likewise.
29972         * modules/sys_wait-tests: Likewise.
29973         * tests/test-ctype.c: Likewise.
29974         * tests/test-dirent.c: Likewise.
29975         * tests/test-spawn.c: Likewise.
29976         * tests/test-sys_file.c: Likewise.
29977         * tests/test-sys_ioctl.c: Likewise.
29978         * tests/test-sys_wait.c: Likewise.
29979         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
29980         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
29981         whether or not flock is in use.
29982
29983         tests: remove License section from module
29984         * modules/arpa_inet-tests: Remove unneeded section.
29985         * modules/byteswap-tests: Likewise.
29986         * modules/ceilf-tests: Likewise.
29987         * modules/ceill-tests: Likewise.
29988         * modules/crypto/des-tests: Likewise.
29989         * modules/crypto/gc-arcfour-tests: Likewise.
29990         * modules/crypto/gc-arctwo-tests: Likewise.
29991         * modules/crypto/gc-des-tests: Likewise.
29992         * modules/crypto/gc-hmac-md5-tests: Likewise.
29993         * modules/crypto/gc-hmac-sha1-tests: Likewise.
29994         * modules/crypto/gc-md2-tests: Likewise.
29995         * modules/crypto/gc-md4-tests: Likewise.
29996         * modules/crypto/gc-md5-tests: Likewise.
29997         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
29998         * modules/crypto/gc-rijndael-tests: Likewise.
29999         * modules/crypto/gc-sha1-tests: Likewise.
30000         * modules/crypto/gc-tests: Likewise.
30001         * modules/crypto/md2-tests: Likewise.
30002         * modules/crypto/md4-tests: Likewise.
30003         * modules/fcntl-h-tests: Likewise.
30004         * modules/floorf-tests: Likewise.
30005         * modules/floorl-tests: Likewise.
30006         * modules/frexp-nolibm-tests: Likewise.
30007         * modules/frexp-tests: Likewise.
30008         * modules/frexpl-nolibm-tests: Likewise.
30009         * modules/frexpl-tests: Likewise.
30010         * modules/getaddrinfo-tests: Likewise.
30011         * modules/inttypes-tests: Likewise.
30012         * modules/isfinite-tests: Likewise.
30013         * modules/isinf-tests: Likewise.
30014         * modules/ldexpl-tests: Likewise.
30015         * modules/locale-tests: Likewise.
30016         * modules/math-tests: Likewise.
30017         * modules/netdb-tests: Likewise.
30018         * modules/netinet_in-tests: Likewise.
30019         * modules/printf-frexp-tests: Likewise.
30020         * modules/printf-frexpl-tests: Likewise.
30021         * modules/priv-set-tests: Likewise.
30022         * modules/random_r-tests: Likewise.
30023         * modules/round-tests: Likewise.
30024         * modules/roundf-tests: Likewise.
30025         * modules/roundl-tests: Likewise.
30026         * modules/search-tests: Likewise.
30027         * modules/select-tests: Likewise.
30028         * modules/signal-tests: Likewise.
30029         * modules/stdbool-tests: Likewise.
30030         * modules/stddef-tests: Likewise.
30031         * modules/stdint-tests: Likewise.
30032         * modules/stdio-tests: Likewise.
30033         * modules/stdlib-tests: Likewise.
30034         * modules/string-tests: Likewise.
30035         * modules/strings-tests: Likewise.
30036         * modules/sys_select-tests: Likewise.
30037         * modules/sys_socket-tests: Likewise.
30038         * modules/sys_stat-tests: Likewise.
30039         * modules/sys_time-tests: Likewise.
30040         * modules/sys_utsname-tests: Likewise.
30041         * modules/sysexits-tests: Likewise.
30042         * modules/time-tests: Likewise.
30043         * modules/trunc-tests: Likewise.
30044         * modules/truncf-tests: Likewise.
30045         * modules/truncl-tests: Likewise.
30046         * modules/tsearch-tests: Likewise.
30047         * modules/unistd-tests: Likewise.
30048         * modules/wchar-tests: Likewise.
30049         * modules/wctype-tests: Likewise.
30050
30051         tests: fix license on several tests
30052         * tests/test-des.c: Update to GPLv3+.
30053         * tests/test-flock.c: Likewise.
30054         * tests/test-fsync.c: Likewise.
30055         * tests/test-futimens.h: Likewise.
30056         * tests/test-gc-arcfour.c: Likewise.
30057         * tests/test-gc-arctwo.c: Likewise.
30058         * tests/test-gc-des.c: Likewise.
30059         * tests/test-gc-hmac-md5.c: Likewise.
30060         * tests/test-gc-hmac-sha1.c: Likewise.
30061         * tests/test-gc-md2.c: Likewise.
30062         * tests/test-gc-md4.c: Likewise.
30063         * tests/test-gc-md5.c: Likewise.
30064         * tests/test-gc-pbkdf2-sha1.c: Likewise.
30065         * tests/test-gc-rijndael.c: Likewise.
30066         * tests/test-gc-sha1.c: Likewise.
30067         * tests/test-gc.c: Likewise.
30068         * tests/test-getcwd.c: Likewise.
30069         * tests/test-link.c: Likewise.
30070         * tests/test-link.h: Likewise.
30071         * tests/test-lutimens.h: Likewise.
30072         * tests/test-md2.c: Likewise.
30073         * tests/test-md4.c: Likewise.
30074         * tests/test-mkdir.h: Likewise.
30075         * tests/test-rename.c: Likewise.
30076         * tests/test-rename.h: Likewise.
30077         * tests/test-safe-alloc.c: Likewise.
30078         * tests/test-utimens-common.h: Likewise.
30079         * tests/test-utimens.h: Likewise.
30080
30081         maint: sync license texts
30082         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
30083         * doc/gpl-3.0.texi: Revert copyright year update.
30084         * doc/lgpl-3.0.texi: Likewise.
30085
30086 2009-12-29  Jim Meyering  <meyering@redhat.com>
30087
30088         update nearly all FSF copyright year lists to include 2009
30089         The files named by the following are exempted:
30090             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
30091               test -f "$dst" && { echo "$dst"; continue; }
30092               test -d "$dst" || continue
30093               echo "$dst"/$(basename "$src")
30094             done > exempt
30095             git ls-files tests/unictype >> exempt
30096         In the remaining files, convert to all-interval notation if
30097         - there is already at least one year interval like 2000-2003
30098         - the file is maintained by me
30099         - the file is in lib/uni*/, where that style already prevails
30100         Otherwise, use update-copyright's default.
30101
30102 2009-12-29  Simon Josefsson  <simon@josefsson.org>
30103         and Eric Blake  <ebb9@byu.net>
30104
30105         tests: don't require debug system() to pass
30106         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
30107         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30108         * tests/test-unlink.h (test_unlink_func): Likewise.
30109         * tests/test-fstatat.c (main): ...into callers.
30110         * tests/test-lstat.c (main): Likewise.
30111         * tests/test-rmdir.c (main): Likewise.
30112         * tests/test-unlink.c (main): Likewise.
30113         * tests/test-unlinkat.c (main): Likewise.
30114         * tests/test-areadlink-with-size.c (main): Don't require a
30115         debug-only system call to pass, aiding cross-testing to mingw.
30116         * tests/test-areadlink.c (main): Likewise.
30117         * tests/test-areadlinkat-with-size.c (main): Likewise.
30118         * tests/test-areadlinkat.c (main): Likewise.
30119         * tests/test-canonicalize-lgpl.c (main): Likewise.
30120         * tests/test-canonicalize.c (main): Likewise.
30121         * tests/test-chown.c (main): Likewise.
30122         * tests/test-fchownat.c (main): Likewise.
30123         * tests/test-lchown.c (main): Likewise.
30124         * tests/test-fdutimensat.c (main): Likewise.
30125         * tests/test-futimens.c (main): Likewise.
30126         * tests/test-link.c (main): Likewise.
30127         * tests/test-linkat.c (main): Likewise.
30128         * tests/test-mkdir.c (main): Likewise.
30129         * tests/test-mkdirat.c (main): Likewise.
30130         * tests/test-mkfifo.c (main): Likewise.
30131         * tests/test-mkfifoat.c (main): Likewise.
30132         * tests/test-mknod.c (main): Likewise.
30133         * tests/test-readlink.c (main): Likewise.
30134         * tests/test-remove.c (main): Likewise.
30135         * tests/test-rename.c (main): Likewise.
30136         * tests/test-renameat.c (main): Likewise.
30137         * tests/test-symlink.c (main): Likewise.
30138         * tests/test-symlinkat.c (main): Likewise.
30139         * tests/test-utimens.c (main): Likewise.
30140         * tests/test-utimensat.c (main): Likewise.
30141
30142 2009-12-29  Simon Josefsson  <simon@josefsson.org>
30143
30144         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
30145         on $(UNUSED_PARAMETER_H) to avoid build failure.
30146
30147 2009-12-28  Jim Meyering  <meyering@redhat.com>
30148
30149         update-copyright: you may specify a max. line length other than 72
30150         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
30151
30152         maint: use consistent FSF copyright line syntax
30153         * lib/posixtm.c: Add missing comma in FSF copyright line.
30154         * lib/posixtm.h: Likewise.
30155         * lib/getugroups.c: Add missing ", Inc.".
30156
30157         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
30158         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
30159         FSF copyright line.  Remove trailing blanks.
30160
30161 2009-12-28  Eric Blake  <ebb9@byu.net>
30162
30163         test-dup2: reduce dependencies
30164         * modules/cloexec (Configure.ac): Set witness.
30165         * modules/dup2-tests (Depends-on): Drop cloexec.
30166         * tests/test-dup2.c (main): Skip portion of test if cloexec module
30167         not present.
30168         Suggested by Bruno Haible.
30169
30170 2009-12-26  Bruno Haible  <bruno@clisp.org>
30171
30172         Remove an unneeded dependency.
30173         * modules/fseterr (Depends-on): Remove dup2.
30174
30175 2009-12-26  Eric Blake  <ebb9@byu.net>
30176
30177         tests: use macros.h in more places
30178         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
30179         (ASSERT_STREAM): Provide default of stderr.
30180         * tests/test-dirent-safer.c: Include macros.h, using alternate
30181         stream for assertions.
30182         * tests/test-dup-safer.c: Likewise.
30183         * tests/test-freopen-safer.c: Likewise.
30184         * tests/test-getopt.c: Likewise.
30185         * tests/test-openat-safer.c: Likewise.
30186         * tests/test-pipe.c: Likewise.
30187         * tests/test-popen-safer.c: Likewise.
30188         * modules/dirent-safer-tests (Files): Include macros.h.
30189         * modules/unistd-safer-tests (Files): Likewise.
30190         * modules/freopen-safer-tests (Files): Likewise.
30191         * modules/getopt-posix-tests (Files): Likewise.
30192         * modules/openat-safer-tests (Files): Likewise.
30193         * modules/pipe-tests (Files): Likewise.
30194
30195 2009-12-26  Bruno Haible  <bruno@clisp.org>
30196
30197         javacomp: Portability fix.
30198         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
30199         that it also works on Solaris.
30200
30201 2009-12-26  Bruno Haible  <bruno@clisp.org>
30202
30203         localename: Fix storage allocation of gl_locale_name_thread's result.
30204         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
30205         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
30206         all platforms that have 'uselocale'.
30207         (gl_locale_name_thread_unsafe): New function, extracted from
30208         gl_locale_name_thread.
30209         (gl_locale_name_thread): Call struniq on all platforms that have
30210         'uselocale'.
30211         * tests/test-localename.c (test_locale_name_thread): Check that the
30212         resulting strings are permanently allocated.
30213         * modules/localename-tests (Depends-on): Add strdup.
30214
30215 2009-12-26  Bruno Haible  <bruno@clisp.org>
30216
30217         * tests/test-localename.c (categories): Fill in the strings.
30218
30219 2009-12-26  Jim Meyering  <meyering@redhat.com>
30220
30221         isdir: complete the removal of m4/isdir.m4
30222         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
30223
30224         isdir: clean up, since at least grep still uses it
30225         * lib/isdir.c: Include "isdir.h".
30226         (S_ISDIR): Remove now-unneeded definition.
30227         * modules/isdir (Files): Add lib/isdir.h.
30228         * lib/isdir.h: New file, with declaration.
30229         * m4/isdir.m4: Remove file -- unneeded.
30230
30231 2009-12-25  Bruno Haible  <bruno@clisp.org>
30232
30233         selinux-h: Make generated .h files standalone.
30234         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
30235         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
30236         * lib/se-selinux.in.h: Likewise.
30237         * modules/selinux-h (Depends-on): Add unused-parameter.
30238         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
30239         selinux/selinux.h and selinux/context.h.
30240         Suggested by Eric Blake.
30241
30242 2009-12-25  Bruno Haible  <bruno@clisp.org>
30243
30244         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
30245         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
30246         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
30247         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
30248         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
30249
30250 2009-12-24  Bruno Haible  <bruno@clisp.org>
30251
30252         openat: Fix warning.
30253         * lib/openat-proc.c: Include <unistd.h>.
30254
30255 2009-12-24  Bruno Haible  <bruno@clisp.org>
30256
30257         New module 'unused-parameter'.
30258         * build-aux/unused-parameter.h: New file, extracted from earlier
30259         gnulib-common.m4.
30260         * modules/unused-parameter: New file.
30261         * lib/unistr.h: Include unused-parameter.h.
30262         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
30263         _GL_UNUSED.
30264         * modules/unistr/base (Depends-on): Add unused-parameter.
30265
30266 2009-12-24  Bruno Haible  <bruno@clisp.org>
30267
30268         Add missing dependencies to 'extensions' module.
30269         * m4/extensions.m4: Add comment.
30270         * modules/accept4 (Depends-on): Add extensions.
30271         * modules/dup3 (Depends-on): Likewise.
30272         * modules/fcntl (Depends-on): Likewise.
30273         * modules/futimens (Depends-on): Likewise.
30274         * modules/mknod (Depends-on): Likewise.
30275         * modules/pipe2 (Depends-on): Likewise.
30276         * modules/stat-time (Depends-on): Likewise.
30277         * modules/strcasestr-simple (Depends-on): Likewise.
30278         * modules/strsignal (Depends-on): Likewise.
30279         * modules/utimensat (Depends-on): Likewise.
30280         * modules/localcharset (Depends-on): Likewise. Needed because of
30281         gl_FCNTL_O_FLAGS.
30282         * modules/wcrtomb (Depends-on): Likewise. Needed because of
30283         AC_TYPE_MBSTATE_T.
30284         * modules/wcsnrtombs (Depends-on): Likewise.
30285         * modules/wcsrtombs (Depends-on): Likewise.
30286
30287 2009-12-24  Bruno Haible  <bruno@clisp.org>
30288
30289         binary-io: Avoid gcc warning due to SET_BINARY.
30290         * lib/binary-io.h (SET_BINARY): Cast the result to void.
30291         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
30292
30293 2009-12-24  Bruno Haible  <bruno@clisp.org>
30294
30295         Avoid future namespace pollution on glibc systems.
30296         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
30297         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
30298         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
30299         glibc systems.
30300
30301 2009-12-24  Bruno Haible  <bruno@clisp.org>
30302
30303         Refactor common macros used in tests.
30304         * tests/macros.h: New file.
30305         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
30306         and/or <stdlib.h>, if appropriate.
30307         (ASSERT, SIZEOF): Remove macros.
30308         * tests/test-areadlink-with-size.c: Likewise.
30309         * tests/test-areadlinkat.c: Likewise.
30310         * tests/test-areadlinkat-with-size.c: Likewise.
30311         * tests/test-argmatch.c: Likewise.
30312         * tests/test-argv-iter.c: Likewise.
30313         * tests/test-array-mergesort.c: Likewise.
30314         * tests/test-array_list.c: Likewise.
30315         * tests/test-array_oset.c: Likewise.
30316         * tests/test-avltree_list.c: Likewise.
30317         * tests/test-avltree_oset.c: Likewise.
30318         * tests/test-avltreehash_list.c: Likewise.
30319         * tests/test-base64.c: Likewise.
30320         * tests/test-binary-io.c: Likewise.
30321         * tests/test-bitrotate.c: Likewise.
30322         * tests/test-btowc.c: Likewise.
30323         * tests/test-byteswap.c: Likewise.
30324         * tests/test-c-ctype.c: Likewise.
30325         * tests/test-c-stack.c: Likewise.
30326         * tests/test-c-strcasecmp.c: Likewise.
30327         * tests/test-c-strcasestr.c: Likewise.
30328         * tests/test-c-strncasecmp.c: Likewise.
30329         * tests/test-c-strstr.c: Likewise.
30330         * tests/test-canonicalize-lgpl.c: Likewise.
30331         * tests/test-canonicalize.c: Likewise.
30332         * tests/test-carray_list.c: Likewise.
30333         * tests/test-ceilf1.c: Likewise.
30334         * tests/test-ceilf2.c: Likewise.
30335         * tests/test-ceill.c: Likewise.
30336         * tests/test-chown.c: Likewise.
30337         * tests/test-cloexec.c: Likewise.
30338         * tests/test-copy-acl.c: Likewise.
30339         * tests/test-copy-file.c: Likewise.
30340         * tests/test-count-one-bits.c: Likewise.
30341         * tests/test-dprintf-posix.c: Likewise.
30342         * tests/test-dup2.c: Likewise.
30343         * tests/test-dup3.c: Likewise.
30344         * tests/test-duplocale.c: Likewise.
30345         * tests/test-fbufmode.c: Likewise.
30346         * tests/test-fchdir.c: Likewise.
30347         * tests/test-fchownat.c: Likewise.
30348         * tests/test-fcntl-safer.c: Likewise.
30349         * tests/test-fcntl.c: Likewise.
30350         * tests/test-fdopendir.c: Likewise.
30351         * tests/test-fdutimensat.c: Likewise.
30352         * tests/test-fflush2.c: Likewise.
30353         * tests/test-file-has-acl.c: Likewise.
30354         * tests/test-filevercmp.c: Likewise.
30355         * tests/test-flock.c: Likewise.
30356         * tests/test-floorf1.c: Likewise.
30357         * tests/test-floorf2.c: Likewise.
30358         * tests/test-floorl.c: Likewise.
30359         * tests/test-fnmatch.c: Likewise.
30360         * tests/test-fopen.h: Likewise.
30361         * tests/test-fpending.c: Likewise.
30362         * tests/test-fprintf-posix.c: Likewise.
30363         * tests/test-fpurge.c: Likewise.
30364         * tests/test-freadable.c: Likewise.
30365         * tests/test-freadahead.c: Likewise.
30366         * tests/test-freading.c: Likewise.
30367         * tests/test-freadptr.c: Likewise.
30368         * tests/test-freadptr2.c: Likewise.
30369         * tests/test-freadseek.c: Likewise.
30370         * tests/test-freopen.c: Likewise.
30371         * tests/test-frexp.c: Likewise.
30372         * tests/test-frexpl.c: Likewise.
30373         * tests/test-fseek.c: Likewise.
30374         * tests/test-fseeko.c: Likewise.
30375         * tests/test-fstatat.c: Likewise.
30376         * tests/test-fstrcmp.c: Likewise.
30377         * tests/test-fsync.c: Likewise.
30378         * tests/test-ftell.c: Likewise.
30379         * tests/test-ftello.c: Likewise.
30380         * tests/test-func.c: Likewise.
30381         * tests/test-futimens.c: Likewise.
30382         * tests/test-fwritable.c: Likewise.
30383         * tests/test-fwriting.c: Likewise.
30384         * tests/test-getcwd.c: Likewise.
30385         * tests/test-getdate.c: Likewise.
30386         * tests/test-getdelim.c: Likewise.
30387         * tests/test-getdtablesize.c: Likewise.
30388         * tests/test-getgroups.c: Likewise.
30389         * tests/test-getline.c: Likewise.
30390         * tests/test-getndelim2.c: Likewise.
30391         * tests/test-glob.c: Likewise.
30392         * tests/test-hash.c: Likewise.
30393         * tests/test-i-ring.c: Likewise.
30394         * tests/test-iconv-utf.c: Likewise.
30395         * tests/test-iconv.c: Likewise.
30396         * tests/test-idpriv-drop.c: Likewise.
30397         * tests/test-idpriv-droptemp.c: Likewise.
30398         * tests/test-inet_ntop.c: Likewise.
30399         * tests/test-inet_pton.c: Likewise.
30400         * tests/test-isblank.c: Likewise.
30401         * tests/test-isfinite.c: Likewise.
30402         * tests/test-isinf.c: Likewise.
30403         * tests/test-isnan.c: Likewise.
30404         * tests/test-isnand.h: Likewise.
30405         * tests/test-isnanf.h: Likewise.
30406         * tests/test-isnanl.h: Likewise.
30407         * tests/test-lchown.c: Likewise.
30408         * tests/test-ldexpl.c: Likewise.
30409         * tests/test-link.c: Likewise.
30410         * tests/test-linkat.c: Likewise.
30411         * tests/test-linked_list.c: Likewise.
30412         * tests/test-linkedhash_list.c: Likewise.
30413         * tests/test-localename.c: Likewise.
30414         * tests/test-lseek.c: Likewise.
30415         * tests/test-lstat.c: Likewise.
30416         * tests/test-mbmemcasecmp.c: Likewise.
30417         * tests/test-mbmemcasecoll.c: Likewise.
30418         * tests/test-mbrtowc.c: Likewise.
30419         * tests/test-mbscasecmp.c: Likewise.
30420         * tests/test-mbscasestr1.c: Likewise.
30421         * tests/test-mbscasestr2.c: Likewise.
30422         * tests/test-mbscasestr3.c: Likewise.
30423         * tests/test-mbscasestr4.c: Likewise.
30424         * tests/test-mbschr.c: Likewise.
30425         * tests/test-mbscspn.c: Likewise.
30426         * tests/test-mbsinit.c: Likewise.
30427         * tests/test-mbsncasecmp.c: Likewise.
30428         * tests/test-mbsnrtowcs.c: Likewise.
30429         * tests/test-mbspbrk.c: Likewise.
30430         * tests/test-mbspcasecmp.c: Likewise.
30431         * tests/test-mbsrchr.c: Likewise.
30432         * tests/test-mbsrtowcs.c: Likewise.
30433         * tests/test-mbsspn.c: Likewise.
30434         * tests/test-mbsstr1.c: Likewise.
30435         * tests/test-mbsstr2.c: Likewise.
30436         * tests/test-mbsstr3.c: Likewise.
30437         * tests/test-memchr.c: Likewise.
30438         * tests/test-memchr2.c: Likewise.
30439         * tests/test-memcmp.c: Likewise.
30440         * tests/test-memmem.c: Likewise.
30441         * tests/test-memrchr.c: Likewise.
30442         * tests/test-mkdir.c: Likewise.
30443         * tests/test-mkdirat.c: Likewise.
30444         * tests/test-mkfifo.c: Likewise.
30445         * tests/test-mkfifoat.c: Likewise.
30446         * tests/test-mknod.c: Likewise.
30447         * tests/test-nanosleep.c: Likewise.
30448         * tests/test-nl_langinfo.c: Likewise.
30449         * tests/test-obstack-printf.c: Likewise.
30450         * tests/test-open.c: Likewise.
30451         * tests/test-openat.c: Likewise.
30452         * tests/test-pipe-filter-gi1.c: Likewise.
30453         * tests/test-pipe-filter-gi2-main.c: Likewise.
30454         * tests/test-pipe-filter-ii1.c: Likewise.
30455         * tests/test-pipe-filter-ii2-main.c: Likewise.
30456         * tests/test-pipe2.c: Likewise.
30457         * tests/test-popen.h: Likewise.
30458         * tests/test-posixtm.c: Likewise.
30459         * tests/test-pread.c: Likewise.
30460         * tests/test-printf-frexp.c: Likewise.
30461         * tests/test-printf-frexpl.c: Likewise.
30462         * tests/test-printf-posix.c: Likewise.
30463         * tests/test-priv-set.c: Likewise.
30464         * tests/test-quotearg.c: Likewise.
30465         * tests/test-random_r.c: Likewise.
30466         * tests/test-rawmemchr.c: Likewise.
30467         * tests/test-rbtree_list.c: Likewise.
30468         * tests/test-rbtree_oset.c: Likewise.
30469         * tests/test-rbtreehash_list.c: Likewise.
30470         * tests/test-readlink.c: Likewise.
30471         * tests/test-remove.c: Likewise.
30472         * tests/test-rename.c: Likewise.
30473         * tests/test-renameat.c: Likewise.
30474         * tests/test-rmdir.c: Likewise.
30475         * tests/test-round1.c: Likewise.
30476         * tests/test-roundf1.c: Likewise.
30477         * tests/test-roundl.c: Likewise.
30478         * tests/test-safe-alloc.c: Likewise.
30479         * tests/test-sameacls.c: Likewise.
30480         * tests/test-set-mode-acl.c: Likewise.
30481         * tests/test-setenv.c: Likewise.
30482         * tests/test-sigaction.c: Likewise.
30483         * tests/test-signbit.c: Likewise.
30484         * tests/test-sleep.c: Likewise.
30485         * tests/test-snprintf-posix.c: Likewise.
30486         * tests/test-snprintf.c: Likewise.
30487         * tests/test-sprintf-posix.c: Likewise.
30488         * tests/test-stat-time.c: Likewise.
30489         * tests/test-stat.c: Likewise.
30490         * tests/test-strcasestr.c: Likewise.
30491         * tests/test-strchrnul.c: Likewise.
30492         * tests/test-strerror.c: Likewise.
30493         * tests/test-striconv.c: Likewise.
30494         * tests/test-striconveh.c: Likewise.
30495         * tests/test-striconveha.c: Likewise.
30496         * tests/test-strsignal.c: Likewise.
30497         * tests/test-strstr.c: Likewise.
30498         * tests/test-strtod.c: Likewise.
30499         * tests/test-strverscmp.c: Likewise.
30500         * tests/test-symlink.c: Likewise.
30501         * tests/test-symlinkat.c: Likewise.
30502         * tests/test-trunc1.c: Likewise.
30503         * tests/test-trunc2.c: Likewise.
30504         * tests/test-truncf1.c: Likewise.
30505         * tests/test-truncf2.c: Likewise.
30506         * tests/test-truncl.c: Likewise.
30507         * tests/test-uname.c: Likewise.
30508         * tests/test-unlink.c: Likewise.
30509         * tests/test-unlinkat.c: Likewise.
30510         * tests/test-unsetenv.c: Likewise.
30511         * tests/test-usleep.c: Likewise.
30512         * tests/test-utimens.c: Likewise.
30513         * tests/test-utimensat.c: Likewise.
30514         * tests/test-vasnprintf-posix.c: Likewise.
30515         * tests/test-vasnprintf-posix2.c: Likewise.
30516         * tests/test-vasnprintf.c: Likewise.
30517         * tests/test-vasprintf-posix.c: Likewise.
30518         * tests/test-vasprintf.c: Likewise.
30519         * tests/test-vdprintf-posix.c: Likewise.
30520         * tests/test-vfprintf-posix.c: Likewise.
30521         * tests/test-vprintf-posix.c: Likewise.
30522         * tests/test-vsnprintf-posix.c: Likewise.
30523         * tests/test-vsnprintf.c: Likewise.
30524         * tests/test-vsprintf-posix.c: Likewise.
30525         * tests/test-wcrtomb.c: Likewise.
30526         * tests/test-wcsnrtombs.c: Likewise.
30527         * tests/test-wcsrtombs.c: Likewise.
30528         * tests/test-wctype.c: Likewise.
30529         * tests/test-wcwidth.c: Likewise.
30530         * tests/test-xfprintf-posix.c: Likewise.
30531         * tests/test-xmemdup0.c: Likewise.
30532         * tests/test-xprintf-posix.c: Likewise.
30533         * tests/test-xvasprintf.c: Likewise.
30534         * tests/unicase/test-locale-language.c: Likewise.
30535         * tests/unicase/test-mapping-part1.h: Likewise.
30536         * tests/unicase/test-predicate-part1.h: Likewise.
30537         * tests/unicase/test-u8-casecmp.c: Likewise.
30538         * tests/unicase/test-u8-casecoll.c: Likewise.
30539         * tests/unicase/test-u8-casefold.c: Likewise.
30540         * tests/unicase/test-u8-is-cased.c: Likewise.
30541         * tests/unicase/test-u8-is-casefolded.c: Likewise.
30542         * tests/unicase/test-u8-is-lowercase.c: Likewise.
30543         * tests/unicase/test-u8-is-titlecase.c: Likewise.
30544         * tests/unicase/test-u8-is-uppercase.c: Likewise.
30545         * tests/unicase/test-u8-tolower.c: Likewise.
30546         * tests/unicase/test-u8-totitle.c: Likewise.
30547         * tests/unicase/test-u8-toupper.c: Likewise.
30548         * tests/unicase/test-u16-casecmp.c: Likewise.
30549         * tests/unicase/test-u16-casecoll.c: Likewise.
30550         * tests/unicase/test-u16-casefold.c: Likewise.
30551         * tests/unicase/test-u16-is-cased.c: Likewise.
30552         * tests/unicase/test-u16-is-casefolded.c: Likewise.
30553         * tests/unicase/test-u16-is-lowercase.c: Likewise.
30554         * tests/unicase/test-u16-is-titlecase.c: Likewise.
30555         * tests/unicase/test-u16-is-uppercase.c: Likewise.
30556         * tests/unicase/test-u16-tolower.c: Likewise.
30557         * tests/unicase/test-u16-totitle.c: Likewise.
30558         * tests/unicase/test-u16-toupper.c: Likewise.
30559         * tests/unicase/test-u32-casecmp.c: Likewise.
30560         * tests/unicase/test-u32-casecoll.c: Likewise.
30561         * tests/unicase/test-u32-casefold.c: Likewise.
30562         * tests/unicase/test-u32-is-cased.c: Likewise.
30563         * tests/unicase/test-u32-is-casefolded.c: Likewise.
30564         * tests/unicase/test-u32-is-lowercase.c: Likewise.
30565         * tests/unicase/test-u32-is-titlecase.c: Likewise.
30566         * tests/unicase/test-u32-is-uppercase.c: Likewise.
30567         * tests/unicase/test-u32-tolower.c: Likewise.
30568         * tests/unicase/test-u32-totitle.c: Likewise.
30569         * tests/unicase/test-u32-toupper.c: Likewise.
30570         * tests/unicase/test-ulc-casecmp.c: Likewise.
30571         * tests/unicase/test-ulc-casecoll.c: Likewise.
30572         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30573         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
30574         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30575         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30576         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
30577         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
30578         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
30579         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30580         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30581         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
30582         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30583         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30584         * tests/unictype/test-bidi_byname.c: Likewise.
30585         * tests/unictype/test-bidi_name.c: Likewise.
30586         * tests/unictype/test-bidi_of.c: Likewise.
30587         * tests/unictype/test-bidi_test.c: Likewise.
30588         * tests/unictype/test-block_list.c: Likewise.
30589         * tests/unictype/test-block_of.c: Likewise.
30590         * tests/unictype/test-block_test.c: Likewise.
30591         * tests/unictype/test-categ_and.c: Likewise.
30592         * tests/unictype/test-categ_and_not.c: Likewise.
30593         * tests/unictype/test-categ_byname.c: Likewise.
30594         * tests/unictype/test-categ_name.c: Likewise.
30595         * tests/unictype/test-categ_none.c: Likewise.
30596         * tests/unictype/test-categ_of.c: Likewise.
30597         * tests/unictype/test-categ_or.c: Likewise.
30598         * tests/unictype/test-categ_test_withtable.c: Likewise.
30599         * tests/unictype/test-combining.c: Likewise.
30600         * tests/unictype/test-decdigit.c: Likewise.
30601         * tests/unictype/test-digit.c: Likewise.
30602         * tests/unictype/test-mirror.c: Likewise.
30603         * tests/unictype/test-numeric.c: Likewise.
30604         * tests/unictype/test-pr_byname.c: Likewise.
30605         * tests/unictype/test-pr_test.c: Likewise.
30606         * tests/unictype/test-predicate-part1.h: Likewise.
30607         * tests/unictype/test-scripts.c: Likewise.
30608         * tests/unictype/test-sy_c_ident.c: Likewise.
30609         * tests/unictype/test-sy_java_ident.c: Likewise.
30610         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
30611         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
30612         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
30613         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
30614         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
30615         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
30616         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
30617         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
30618         * tests/uninorm/test-canonical-decomposition.c: Likewise.
30619         * tests/uninorm/test-compat-decomposition.c: Likewise.
30620         * tests/uninorm/test-composition.c: Likewise.
30621         * tests/uninorm/test-decomposing-form.c: Likewise.
30622         * tests/uninorm/test-decomposition.c: Likewise.
30623         * tests/uninorm/test-u8-nfc.c: Likewise.
30624         * tests/uninorm/test-u8-nfd.c: Likewise.
30625         * tests/uninorm/test-u8-nfkc.c: Likewise.
30626         * tests/uninorm/test-u8-nfkd.c: Likewise.
30627         * tests/uninorm/test-u8-normcmp.c: Likewise.
30628         * tests/uninorm/test-u8-normcoll.c: Likewise.
30629         * tests/uninorm/test-u16-nfc.c: Likewise.
30630         * tests/uninorm/test-u16-nfd.c: Likewise.
30631         * tests/uninorm/test-u16-nfkc.c: Likewise.
30632         * tests/uninorm/test-u16-nfkd.c: Likewise.
30633         * tests/uninorm/test-u16-normcmp.c: Likewise.
30634         * tests/uninorm/test-u16-normcoll.c: Likewise.
30635         * tests/uninorm/test-u32-nfc.c: Likewise.
30636         * tests/uninorm/test-u32-nfd.c: Likewise.
30637         * tests/uninorm/test-u32-nfkc.c: Likewise.
30638         * tests/uninorm/test-u32-nfkd.c: Likewise.
30639         * tests/uninorm/test-u32-normalize-big.c: Likewise.
30640         * tests/uninorm/test-u32-normcmp.c: Likewise.
30641         * tests/uninorm/test-u32-normcoll.c: Likewise.
30642         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
30643         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
30644         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
30645         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
30646         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
30647         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
30648         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
30649         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
30650         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
30651         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
30652         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
30653         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
30654         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
30655         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
30656         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
30657         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
30658         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
30659         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
30660         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
30661         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
30662         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
30663         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
30664         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
30665         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
30666         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
30667         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
30668         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
30669         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
30670         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
30671         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
30672         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
30673         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
30674         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
30675         * tests/uniwidth/test-u8-strwidth.c: Likewise.
30676         * tests/uniwidth/test-u8-width.c: Likewise.
30677         * tests/uniwidth/test-u16-strwidth.c: Likewise.
30678         * tests/uniwidth/test-u16-width.c: Likewise.
30679         * tests/uniwidth/test-u32-strwidth.c: Likewise.
30680         * tests/uniwidth/test-u32-width.c: Likewise.
30681         * tests/uniwidth/test-uc_width.c: Likewise.
30682         * tests/uniwidth/test-uc_width2.c: Likewise.
30683         * modules/acl-tests (Files): Add tests/macros.h.
30684         * modules/areadlink-tests (Files): Likewise.
30685         * modules/areadlink-with-size-tests (Files): Likewise.
30686         * modules/areadlinkat-tests (Files): Likewise.
30687         * modules/areadlinkat-with-size-tests (Files): Likewise.
30688         * modules/argmatch-tests (Files): Likewise.
30689         * modules/argv-iter-tests (Files): Likewise.
30690         * modules/array-list-tests (Files): Likewise.
30691         * modules/array-mergesort-tests (Files): Likewise.
30692         * modules/array-oset-tests (Files): Likewise.
30693         * modules/avltree-list-tests (Files): Likewise.
30694         * modules/avltree-oset-tests (Files): Likewise.
30695         * modules/avltreehash-list-tests (Files): Likewise.
30696         * modules/base64-tests (Files): Likewise.
30697         * modules/binary-io-tests (Files): Likewise.
30698         * modules/bitrotate-tests (Files): Likewise.
30699         * modules/btowc-tests (Files): Likewise.
30700         * modules/byteswap-tests (Files): Likewise.
30701         * modules/c-ctype-tests (Files): Likewise.
30702         * modules/c-stack-tests (Files): Likewise.
30703         * modules/c-strcase-tests (Files): Likewise.
30704         * modules/c-strcasestr-tests (Files): Likewise.
30705         * modules/c-strstr-tests (Files): Likewise.
30706         * modules/canonicalize-lgpl-tests (Files): Likewise.
30707         * modules/canonicalize-tests (Files): Likewise.
30708         * modules/carray-list-tests (Files): Likewise.
30709         * modules/ceilf-tests (Files): Likewise.
30710         * modules/ceill-tests (Files): Likewise.
30711         * modules/chown-tests (Files): Likewise.
30712         * modules/cloexec-tests (Files): Likewise.
30713         * modules/copy-file-tests (Files): Likewise.
30714         * modules/count-one-bits-tests (Files): Likewise.
30715         * modules/dprintf-posix-tests (Files): Likewise.
30716         * modules/dup2-tests (Files): Likewise.
30717         * modules/dup3-tests (Files): Likewise.
30718         * modules/duplocale-tests (Files): Likewise.
30719         * modules/fbufmode-tests (Files): Likewise.
30720         * modules/fchdir-tests (Files): Likewise.
30721         * modules/fcntl-safer-tests (Files): Likewise.
30722         * modules/fcntl-tests (Files): Likewise.
30723         * modules/fdopendir-tests (Files): Likewise.
30724         * modules/fdutimensat-tests (Files): Likewise.
30725         * modules/fflush-tests (Files): Likewise.
30726         * modules/filevercmp-tests (Files): Likewise.
30727         * modules/flock-tests (Files): Likewise.
30728         * modules/floorf-tests (Files): Likewise.
30729         * modules/floorl-tests (Files): Likewise.
30730         * modules/fnmatch-tests (Files): Likewise.
30731         * modules/fopen-safer-tests (Files): Likewise.
30732         * modules/fopen-tests (Files): Likewise.
30733         * modules/fpending-tests (Files): Likewise.
30734         * modules/fprintf-posix-tests (Files): Likewise.
30735         * modules/fpurge-tests (Files): Likewise.
30736         * modules/freadable-tests (Files): Likewise.
30737         * modules/freadahead-tests (Files): Likewise.
30738         * modules/freading-tests (Files): Likewise.
30739         * modules/freadptr-tests (Files): Likewise.
30740         * modules/freadseek-tests (Files): Likewise.
30741         * modules/freopen-tests (Files): Likewise.
30742         * modules/frexp-nolibm-tests (Files): Likewise.
30743         * modules/frexp-tests (Files): Likewise.
30744         * modules/frexpl-nolibm-tests (Files): Likewise.
30745         * modules/frexpl-tests (Files): Likewise.
30746         * modules/fseek-tests (Files): Likewise.
30747         * modules/fseeko-tests (Files): Likewise.
30748         * modules/fstrcmp-tests (Files): Likewise.
30749         * modules/fsync-tests (Files): Likewise.
30750         * modules/ftell-tests (Files): Likewise.
30751         * modules/ftello-tests (Files): Likewise.
30752         * modules/func-tests (Files): Likewise.
30753         * modules/futimens-tests (Files): Likewise.
30754         * modules/fwritable-tests (Files): Likewise.
30755         * modules/fwriting-tests (Files): Likewise.
30756         * modules/getcwd-tests (Files): Likewise.
30757         * modules/getdate-tests (Files): Likewise.
30758         * modules/getdelim-tests (Files): Likewise.
30759         * modules/getdtablesize-tests (Files): Likewise.
30760         * modules/getgroups-tests (Files): Likewise.
30761         * modules/getline-tests (Files): Likewise.
30762         * modules/getndelim2-tests (Files): Likewise.
30763         * modules/glob-tests (Files): Likewise.
30764         * modules/hash-tests (Files): Likewise.
30765         * modules/i-ring-tests (Files): Likewise.
30766         * modules/iconv-tests (Files): Likewise.
30767         * modules/iconv_open-utf-tests (Files): Likewise.
30768         * modules/idpriv-drop-tests (Files): Likewise.
30769         * modules/idpriv-droptemp-tests (Files): Likewise.
30770         * modules/inet_ntop-tests (Files): Likewise.
30771         * modules/inet_pton-tests (Files): Likewise.
30772         * modules/isblank-tests (Files): Likewise.
30773         * modules/isfinite-tests (Files): Likewise.
30774         * modules/isinf-tests (Files): Likewise.
30775         * modules/isnan-tests (Files): Likewise.
30776         * modules/isnand-nolibm-tests (Files): Likewise.
30777         * modules/isnand-tests (Files): Likewise.
30778         * modules/isnanf-nolibm-tests (Files): Likewise.
30779         * modules/isnanf-tests (Files): Likewise.
30780         * modules/isnanl-nolibm-tests (Files): Likewise.
30781         * modules/isnanl-tests (Files): Likewise.
30782         * modules/lchown-tests (Files): Likewise.
30783         * modules/ldexpl-tests (Files): Likewise.
30784         * modules/link-tests (Files): Likewise.
30785         * modules/linkat-tests (Files): Likewise.
30786         * modules/linked-list-tests (Files): Likewise.
30787         * modules/linkedhash-list-tests (Files): Likewise.
30788         * modules/localename-tests (Files): Likewise.
30789         * modules/lseek-tests (Files): Likewise.
30790         * modules/lstat-tests (Files): Likewise.
30791         * modules/mbmemcasecmp-tests (Files): Likewise.
30792         * modules/mbmemcasecoll-tests (Files): Likewise.
30793         * modules/mbrtowc-tests (Files): Likewise.
30794         * modules/mbscasecmp-tests (Files): Likewise.
30795         * modules/mbscasestr-tests (Files): Likewise.
30796         * modules/mbschr-tests (Files): Likewise.
30797         * modules/mbscspn-tests (Files): Likewise.
30798         * modules/mbsinit-tests (Files): Likewise.
30799         * modules/mbsncasecmp-tests (Files): Likewise.
30800         * modules/mbsnrtowcs-tests (Files): Likewise.
30801         * modules/mbspbrk-tests (Files): Likewise.
30802         * modules/mbspcasecmp-tests (Files): Likewise.
30803         * modules/mbsrchr-tests (Files): Likewise.
30804         * modules/mbsrtowcs-tests (Files): Likewise.
30805         * modules/mbsspn-tests (Files): Likewise.
30806         * modules/mbsstr-tests (Files): Likewise.
30807         * modules/memchr-tests (Files): Likewise.
30808         * modules/memchr2-tests (Files): Likewise.
30809         * modules/memcmp-tests (Files): Likewise.
30810         * modules/memmem-tests (Files): Likewise.
30811         * modules/memrchr-tests (Files): Likewise.
30812         * modules/mkdir-tests (Files): Likewise.
30813         * modules/mkfifo-tests (Files): Likewise.
30814         * modules/mkfifoat-tests (Files): Likewise.
30815         * modules/mknod-tests (Files): Likewise.
30816         * modules/nanosleep-tests (Files): Likewise.
30817         * modules/nl_langinfo-tests (Files): Likewise.
30818         * modules/obstack-printf-tests (Files): Likewise.
30819         * modules/open-tests (Files): Likewise.
30820         * modules/openat-tests (Files): Likewise.
30821         * modules/pipe-filter-gi-tests (Files): Likewise.
30822         * modules/pipe-filter-ii-tests (Files): Likewise.
30823         * modules/pipe2-tests (Files): Likewise.
30824         * modules/popen-safer-tests (Files): Likewise.
30825         * modules/popen-tests (Files): Likewise.
30826         * modules/posixtm-tests (Files): Likewise.
30827         * modules/pread-tests (Files): Likewise.
30828         * modules/printf-frexp-tests (Files): Likewise.
30829         * modules/printf-frexpl-tests (Files): Likewise.
30830         * modules/printf-posix-tests (Files): Likewise.
30831         * modules/priv-set-tests (Files): Likewise.
30832         * modules/quotearg-tests (Files): Likewise.
30833         * modules/random_r-tests (Files): Likewise.
30834         * modules/rawmemchr-tests (Files): Likewise.
30835         * modules/rbtree-list-tests (Files): Likewise.
30836         * modules/rbtree-oset-tests (Files): Likewise.
30837         * modules/rbtreehash-list-tests (Files): Likewise.
30838         * modules/readlink-tests (Files): Likewise.
30839         * modules/remove-tests (Files): Likewise.
30840         * modules/rename-tests (Files): Likewise.
30841         * modules/renameat-tests (Files): Likewise.
30842         * modules/rmdir-tests (Files): Likewise.
30843         * modules/round-tests (Files): Likewise.
30844         * modules/roundf-tests (Files): Likewise.
30845         * modules/roundl-tests (Files): Likewise.
30846         * modules/safe-alloc-tests (Files): Likewise.
30847         * modules/setenv-tests (Files): Likewise.
30848         * modules/sigaction-tests (Files): Likewise.
30849         * modules/signbit-tests (Files): Likewise.
30850         * modules/sleep-tests (Files): Likewise.
30851         * modules/snprintf-posix-tests (Files): Likewise.
30852         * modules/snprintf-tests (Files): Likewise.
30853         * modules/sprintf-posix-tests (Files): Likewise.
30854         * modules/stat-tests (Files): Likewise.
30855         * modules/stat-time-tests (Files): Likewise.
30856         * modules/strcasestr-tests (Files): Likewise.
30857         * modules/strchrnul-tests (Files): Likewise.
30858         * modules/strerror-tests (Files): Likewise.
30859         * modules/striconv-tests (Files): Likewise.
30860         * modules/striconveh-tests (Files): Likewise.
30861         * modules/striconveha-tests (Files): Likewise.
30862         * modules/strsignal-tests (Files): Likewise.
30863         * modules/strstr-tests (Files): Likewise.
30864         * modules/strtod-tests (Files): Likewise.
30865         * modules/strverscmp-tests (Files): Likewise.
30866         * modules/symlink-tests (Files): Likewise.
30867         * modules/symlinkat-tests (Files): Likewise.
30868         * modules/trunc-tests (Files): Likewise.
30869         * modules/truncf-tests (Files): Likewise.
30870         * modules/truncl-tests (Files): Likewise.
30871         * modules/uname-tests (Files): Likewise.
30872         * modules/unicase/cased-tests (Files): Likewise.
30873         * modules/unicase/ignorable-tests (Files): Likewise.
30874         * modules/unicase/locale-language-tests (Files): Likewise.
30875         * modules/unicase/tolower-tests (Files): Likewise.
30876         * modules/unicase/totitle-tests (Files): Likewise.
30877         * modules/unicase/toupper-tests (Files): Likewise.
30878         * modules/unicase/u8-casecmp-tests (Files): Likewise.
30879         * modules/unicase/u8-casecoll-tests (Files): Likewise.
30880         * modules/unicase/u8-casefold-tests (Files): Likewise.
30881         * modules/unicase/u8-is-cased-tests (Files): Likewise.
30882         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
30883         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
30884         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
30885         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
30886         * modules/unicase/u8-tolower-tests (Files): Likewise.
30887         * modules/unicase/u8-totitle-tests (Files): Likewise.
30888         * modules/unicase/u8-toupper-tests (Files): Likewise.
30889         * modules/unicase/u16-casecmp-tests (Files): Likewise.
30890         * modules/unicase/u16-casecoll-tests (Files): Likewise.
30891         * modules/unicase/u16-casefold-tests (Files): Likewise.
30892         * modules/unicase/u16-is-cased-tests (Files): Likewise.
30893         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
30894         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
30895         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
30896         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
30897         * modules/unicase/u16-tolower-tests (Files): Likewise.
30898         * modules/unicase/u16-totitle-tests (Files): Likewise.
30899         * modules/unicase/u16-toupper-tests (Files): Likewise.
30900         * modules/unicase/u32-casecmp-tests (Files): Likewise.
30901         * modules/unicase/u32-casecoll-tests (Files): Likewise.
30902         * modules/unicase/u32-casefold-tests (Files): Likewise.
30903         * modules/unicase/u32-is-cased-tests (Files): Likewise.
30904         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
30905         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
30906         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
30907         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
30908         * modules/unicase/u32-tolower-tests (Files): Likewise.
30909         * modules/unicase/u32-totitle-tests (Files): Likewise.
30910         * modules/unicase/u32-toupper-tests (Files): Likewise.
30911         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
30912         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
30913         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
30914         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
30915         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
30916         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
30917         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
30918         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
30919         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
30920         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
30921         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
30922         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
30923         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
30924         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
30925         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
30926         * modules/unictype/bidicategory-name-tests (Files): Likewise.
30927         * modules/unictype/bidicategory-of-tests (Files): Likewise.
30928         * modules/unictype/bidicategory-test-tests (Files): Likewise.
30929         * modules/unictype/block-list-tests (Files): Likewise.
30930         * modules/unictype/block-of-tests (Files): Likewise.
30931         * modules/unictype/block-test-tests (Files): Likewise.
30932         * modules/unictype/category-C-tests (Files): Likewise.
30933         * modules/unictype/category-Cc-tests (Files): Likewise.
30934         * modules/unictype/category-Cf-tests (Files): Likewise.
30935         * modules/unictype/category-Cn-tests (Files): Likewise.
30936         * modules/unictype/category-Co-tests (Files): Likewise.
30937         * modules/unictype/category-Cs-tests (Files): Likewise.
30938         * modules/unictype/category-L-tests (Files): Likewise.
30939         * modules/unictype/category-Ll-tests (Files): Likewise.
30940         * modules/unictype/category-Lm-tests (Files): Likewise.
30941         * modules/unictype/category-Lo-tests (Files): Likewise.
30942         * modules/unictype/category-Lt-tests (Files): Likewise.
30943         * modules/unictype/category-Lu-tests (Files): Likewise.
30944         * modules/unictype/category-M-tests (Files): Likewise.
30945         * modules/unictype/category-Mc-tests (Files): Likewise.
30946         * modules/unictype/category-Me-tests (Files): Likewise.
30947         * modules/unictype/category-Mn-tests (Files): Likewise.
30948         * modules/unictype/category-N-tests (Files): Likewise.
30949         * modules/unictype/category-Nd-tests (Files): Likewise.
30950         * modules/unictype/category-Nl-tests (Files): Likewise.
30951         * modules/unictype/category-No-tests (Files): Likewise.
30952         * modules/unictype/category-P-tests (Files): Likewise.
30953         * modules/unictype/category-Pc-tests (Files): Likewise.
30954         * modules/unictype/category-Pd-tests (Files): Likewise.
30955         * modules/unictype/category-Pe-tests (Files): Likewise.
30956         * modules/unictype/category-Pf-tests (Files): Likewise.
30957         * modules/unictype/category-Pi-tests (Files): Likewise.
30958         * modules/unictype/category-Po-tests (Files): Likewise.
30959         * modules/unictype/category-Ps-tests (Files): Likewise.
30960         * modules/unictype/category-S-tests (Files): Likewise.
30961         * modules/unictype/category-Sc-tests (Files): Likewise.
30962         * modules/unictype/category-Sk-tests (Files): Likewise.
30963         * modules/unictype/category-Sm-tests (Files): Likewise.
30964         * modules/unictype/category-So-tests (Files): Likewise.
30965         * modules/unictype/category-Z-tests (Files): Likewise.
30966         * modules/unictype/category-Zl-tests (Files): Likewise.
30967         * modules/unictype/category-Zp-tests (Files): Likewise.
30968         * modules/unictype/category-Zs-tests (Files): Likewise.
30969         * modules/unictype/category-and-not-tests (Files): Likewise.
30970         * modules/unictype/category-and-tests (Files): Likewise.
30971         * modules/unictype/category-byname-tests (Files): Likewise.
30972         * modules/unictype/category-name-tests (Files): Likewise.
30973         * modules/unictype/category-none-tests (Files): Likewise.
30974         * modules/unictype/category-of-tests (Files): Likewise.
30975         * modules/unictype/category-or-tests (Files): Likewise.
30976         * modules/unictype/category-test-withtable-tests (Files): Likewise.
30977         * modules/unictype/combining-class-tests (Files): Likewise.
30978         * modules/unictype/ctype-alnum-tests (Files): Likewise.
30979         * modules/unictype/ctype-alpha-tests (Files): Likewise.
30980         * modules/unictype/ctype-blank-tests (Files): Likewise.
30981         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
30982         * modules/unictype/ctype-digit-tests (Files): Likewise.
30983         * modules/unictype/ctype-graph-tests (Files): Likewise.
30984         * modules/unictype/ctype-lower-tests (Files): Likewise.
30985         * modules/unictype/ctype-print-tests (Files): Likewise.
30986         * modules/unictype/ctype-punct-tests (Files): Likewise.
30987         * modules/unictype/ctype-space-tests (Files): Likewise.
30988         * modules/unictype/ctype-upper-tests (Files): Likewise.
30989         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
30990         * modules/unictype/decimal-digit-tests (Files): Likewise.
30991         * modules/unictype/digit-tests (Files): Likewise.
30992         * modules/unictype/mirror-tests (Files): Likewise.
30993         * modules/unictype/numeric-tests (Files): Likewise.
30994         * modules/unictype/property-alphabetic-tests (Files): Likewise.
30995         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
30996         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
30997         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
30998         Likewise.
30999         * modules/unictype/property-bidi-block-separator-tests (Files):
31000         Likewise.
31001         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
31002         Likewise.
31003         * modules/unictype/property-bidi-common-separator-tests (Files):
31004         Likewise.
31005         * modules/unictype/property-bidi-control-tests (Files): Likewise.
31006         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
31007         Likewise.
31008         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
31009         Likewise.
31010         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
31011         Likewise.
31012         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
31013         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
31014         Likewise.
31015         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
31016         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
31017         Likewise.
31018         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
31019         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
31020         * modules/unictype/property-bidi-segment-separator-tests (Files):
31021         Likewise.
31022         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
31023         * modules/unictype/property-byname-tests (Files): Likewise.
31024         * modules/unictype/property-combining-tests (Files): Likewise.
31025         * modules/unictype/property-composite-tests (Files): Likewise.
31026         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
31027         * modules/unictype/property-dash-tests (Files): Likewise.
31028         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
31029         * modules/unictype/property-default-ignorable-code-point-tests (Files):
31030         Likewise.
31031         * modules/unictype/property-deprecated-tests (Files): Likewise.
31032         * modules/unictype/property-diacritic-tests (Files): Likewise.
31033         * modules/unictype/property-extender-tests (Files): Likewise.
31034         * modules/unictype/property-format-control-tests (Files): Likewise.
31035         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
31036         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
31037         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
31038         * modules/unictype/property-hex-digit-tests (Files): Likewise.
31039         * modules/unictype/property-hyphen-tests (Files): Likewise.
31040         * modules/unictype/property-id-continue-tests (Files): Likewise.
31041         * modules/unictype/property-id-start-tests (Files): Likewise.
31042         * modules/unictype/property-ideographic-tests (Files): Likewise.
31043         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
31044         * modules/unictype/property-ids-trinary-operator-tests (Files):
31045         Likewise.
31046         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
31047         * modules/unictype/property-iso-control-tests (Files): Likewise.
31048         * modules/unictype/property-join-control-tests (Files): Likewise.
31049         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
31050         * modules/unictype/property-line-separator-tests (Files): Likewise.
31051         * modules/unictype/property-logical-order-exception-tests (Files):
31052         Likewise.
31053         * modules/unictype/property-lowercase-tests (Files): Likewise.
31054         * modules/unictype/property-math-tests (Files): Likewise.
31055         * modules/unictype/property-non-break-tests (Files): Likewise.
31056         * modules/unictype/property-not-a-character-tests (Files): Likewise.
31057         * modules/unictype/property-numeric-tests (Files): Likewise.
31058         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
31059         * modules/unictype/property-other-default-ignorable-code-point-tests
31060         (Files): Likewise.
31061         * modules/unictype/property-other-grapheme-extend-tests (Files):
31062         Likewise.
31063         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
31064         * modules/unictype/property-other-id-start-tests (Files): Likewise.
31065         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
31066         * modules/unictype/property-other-math-tests (Files): Likewise.
31067         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
31068         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
31069         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
31070         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
31071         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
31072         * modules/unictype/property-private-use-tests (Files): Likewise.
31073         * modules/unictype/property-punctuation-tests (Files): Likewise.
31074         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
31075         * modules/unictype/property-radical-tests (Files): Likewise.
31076         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
31077         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
31078         * modules/unictype/property-space-tests (Files): Likewise.
31079         * modules/unictype/property-terminal-punctuation-tests (Files):
31080         Likewise.
31081         * modules/unictype/property-test-tests (Files): Likewise.
31082         * modules/unictype/property-titlecase-tests (Files): Likewise.
31083         * modules/unictype/property-unassigned-code-value-tests (Files):
31084         Likewise.
31085         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
31086         * modules/unictype/property-uppercase-tests (Files): Likewise.
31087         * modules/unictype/property-variation-selector-tests (Files): Likewise.
31088         * modules/unictype/property-white-space-tests (Files): Likewise.
31089         * modules/unictype/property-xid-continue-tests (Files): Likewise.
31090         * modules/unictype/property-xid-start-tests (Files): Likewise.
31091         * modules/unictype/property-zero-width-tests (Files): Likewise.
31092         * modules/unictype/scripts-tests (Files): Likewise.
31093         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
31094         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
31095         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
31096         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
31097         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
31098         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
31099         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
31100         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
31101         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
31102         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
31103         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
31104         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
31105         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
31106         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
31107         * modules/uninorm/composition-tests (Files): Likewise.
31108         * modules/uninorm/decomposing-form-tests (Files): Likewise.
31109         * modules/uninorm/decomposition-tests (Files): Likewise.
31110         * modules/uninorm/filter-tests (Files): Likewise.
31111         * modules/uninorm/nfc-tests (Files): Likewise.
31112         * modules/uninorm/nfd-tests (Files): Likewise.
31113         * modules/uninorm/nfkc-tests (Files): Likewise.
31114         * modules/uninorm/nfkd-tests (Files): Likewise.
31115         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
31116         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
31117         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
31118         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
31119         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
31120         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
31121         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
31122         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
31123         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
31124         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
31125         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
31126         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
31127         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
31128         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
31129         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
31130         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
31131         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
31132         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
31133         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
31134         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
31135         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
31136         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
31137         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
31138         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
31139         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
31140         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
31141         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
31142         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
31143         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
31144         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
31145         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
31146         * modules/uniwidth/u8-width-tests (Files): Likewise.
31147         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
31148         * modules/uniwidth/u16-width-tests (Files): Likewise.
31149         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
31150         * modules/uniwidth/u32-width-tests (Files): Likewise.
31151         * modules/uniwidth/width-tests (Files): Likewise.
31152         * modules/unlink-tests (Files): Likewise.
31153         * modules/unsetenv-tests (Files): Likewise.
31154         * modules/usleep-tests (Files): Likewise.
31155         * modules/utimens-tests (Files): Likewise.
31156         * modules/utimensat-tests (Files): Likewise.
31157         * modules/vasnprintf-posix-tests (Files): Likewise.
31158         * modules/vasnprintf-tests (Files): Likewise.
31159         * modules/vasprintf-posix-tests (Files): Likewise.
31160         * modules/vasprintf-tests (Files): Likewise.
31161         * modules/vdprintf-posix-tests (Files): Likewise.
31162         * modules/vfprintf-posix-tests (Files): Likewise.
31163         * modules/vprintf-posix-tests (Files): Likewise.
31164         * modules/vsnprintf-posix-tests (Files): Likewise.
31165         * modules/vsnprintf-tests (Files): Likewise.
31166         * modules/vsprintf-posix-tests (Files): Likewise.
31167         * modules/wcrtomb-tests (Files): Likewise.
31168         * modules/wcsnrtombs-tests (Files): Likewise.
31169         * modules/wcsrtombs-tests (Files): Likewise.
31170         * modules/wctype-tests (Files): Likewise.
31171         * modules/wcwidth-tests (Files): Likewise.
31172         * modules/xmemdup0-tests (Files): Likewise.
31173         * modules/xprintf-posix-tests (Files): Likewise.
31174         * modules/xvasprintf-tests (Files): Likewise.
31175
31176 2009-12-24  Eric Blake  <ebb9@byu.net>
31177
31178         test-nanosleep: fix typo
31179         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
31180         patch.
31181         Reported by Bruno Haible.
31182
31183 2009-12-24  Bruno Haible  <bruno@clisp.org>
31184
31185         Reduce namespace pollution on glibc systems.
31186         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
31187         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
31188         systems.
31189         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
31190         <getopt.h> on glibc systems.
31191         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
31192         systems.
31193         * lib/fcntl.c: Include <unistd.h> here instead.
31194
31195 2009-12-24  Bruno Haible  <bruno@clisp.org>
31196
31197         * lib/stdlib.in.h (includes): Fix typo in today's commit.
31198
31199 2009-12-24  Eric Blake  <ebb9@byu.net>
31200
31201         tests: add signature checks
31202         * tests/signature.h (SIGNATURE_CHECK): New file.
31203         * modules/atexit-tests (Files): Use it.
31204         * modules/btowc-tests (Files): Likewise.
31205         * modules/canonicalize-lgpl-tests (Files): Likewise.
31206         * modules/ceilf-tests (Files): Likewise.
31207         * modules/ceill-tests (Files): Likewise.
31208         * modules/chown-tests (Files): Likewise.
31209         * modules/dprintf-posix-tests (Files): Likewise.
31210         * modules/dup2-tests (Files): Likewise.
31211         * modules/dup3-tests (Files): Likewise.
31212         * modules/duplocale-tests (Files): Likewise.
31213         * modules/fchdir-tests (Files): Likewise.
31214         * modules/fcntl-tests (Files): Likewise.
31215         * modules/fdopendir-tests (Files): Likewise.
31216         * modules/fflush-tests (Files): Likewise.
31217         * modules/flock-tests (Files): Likewise.
31218         * modules/floorf-tests (Files): Likewise.
31219         * modules/floorl-tests (Files): Likewise.
31220         * modules/fnmatch-tests (Files): Likewise.
31221         * modules/fopen-tests (Files): Likewise.
31222         * modules/fprintf-posix-tests (Files): Likewise.
31223         * modules/freopen-tests (Files): Likewise.
31224         * modules/frexp-nolibm-tests (Files): Likewise.
31225         * modules/frexp-tests (Files): Likewise.
31226         * modules/frexpl-nolibm-tests (Files): Likewise.
31227         * modules/frexpl-tests (Files): Likewise.
31228         * modules/fseek-tests (Files): Likewise.
31229         * modules/fseeko-tests (Files): Likewise.
31230         * modules/fsync-tests (Files): Likewise.
31231         * modules/ftell-tests (Files): Likewise.
31232         * modules/ftello-tests (Files): Likewise.
31233         * modules/futimens-tests (Files): Likewise.
31234         * modules/getaddrinfo-tests (Files): Likewise.
31235         * modules/getcwd-tests (Files): Likewise.
31236         * modules/getdelim-tests (Files): Likewise.
31237         * modules/getdtablesize-tests (Files): Likewise.
31238         * modules/getgroups-tests (Files): Likewise.
31239         * modules/gethostname-tests (Files): Likewise.
31240         * modules/getline-tests (Files): Likewise.
31241         * modules/getopt-posix-tests (Files): Likewise.
31242         * modules/gettimeofday-tests (Files): Likewise.
31243         * modules/glob-tests (Files): Likewise.
31244         * modules/iconv-tests (Files): Likewise.
31245         * modules/inet_ntop-tests (Files): Likewise.
31246         * modules/inet_pton-tests (Files): Likewise.
31247         * modules/isblank-tests (Files): Likewise.
31248         * modules/lchown-tests (Files): Likewise.
31249         * modules/ldexpl-tests (Files): Likewise.
31250         * modules/link-tests (Files): Likewise.
31251         * modules/linkat-tests (Files): Likewise.
31252         * modules/lseek-tests (Files): Likewise.
31253         * modules/lstat-tests (Files): Likewise.
31254         * modules/mbrtowc-tests (Files): Likewise.
31255         * modules/mbsinit-tests (Files): Likewise.
31256         * modules/mbsnrtowcs-tests (Files): Likewise.
31257         * modules/mbsrtowcs-tests (Files): Likewise.
31258         * modules/memchr-tests (Files): Likewise.
31259         * modules/memcmp-tests (Files): Likewise.
31260         * modules/memmem-tests (Files): Likewise.
31261         * modules/memrchr-tests (Files): Likewise.
31262         * modules/mkdir-tests (Files): Likewise.
31263         * modules/mkfifo-tests (Files): Likewise.
31264         * modules/mkfifoat-tests (Files): Likewise.
31265         * modules/mknod-tests (Files): Likewise.
31266         * modules/nanosleep-tests (Files): Likewise.
31267         * modules/nl_langinfo-tests (Files): Likewise.
31268         * modules/obstack-printf-tests (Files): Likewise.
31269         * modules/open-tests (Files): Likewise.
31270         * modules/openat-tests (Files): Likewise.
31271         * modules/perror-tests (Files): Likewise.
31272         * modules/pipe2-tests (Files): Likewise.
31273         * modules/poll-tests (Files): Likewise.
31274         * modules/popen-tests (Files): Likewise.
31275         * modules/posix_spawn-tests (Files): Likewise.
31276         * modules/posix_spawnp-tests (Files): Likewise.
31277         * modules/pread-tests (Files): Likewise.
31278         * modules/printf-posix-tests (Files): Likewise.
31279         * modules/pty-tests (Files): Likewise.
31280         * modules/random_r-tests (Files): Likewise.
31281         * modules/rawmemchr-tests (Files): Likewise.
31282         * modules/readlink-tests (Files): Likewise.
31283         * modules/remove-tests (Files): Likewise.
31284         * modules/rename-tests (Files): Likewise.
31285         * modules/renameat-tests (Files): Likewise.
31286         * modules/rmdir-tests (Files): Likewise.
31287         * modules/round-tests (Files): Likewise.
31288         * modules/roundf-tests (Files): Likewise.
31289         * modules/roundl-tests (Files): Likewise.
31290         * modules/select-tests (Files): Likewise.
31291         * modules/setenv-tests (Files): Likewise.
31292         * modules/sigaction-tests (Files): Likewise.
31293         * modules/sleep-tests (Files): Likewise.
31294         * modules/snprintf-posix-tests (Files): Likewise.
31295         * modules/snprintf-tests (Files): Likewise.
31296         * modules/sprintf-posix-tests (Files): Likewise.
31297         * modules/stat-tests (Files): Likewise.
31298         * modules/strcasestr-tests (Files): Likewise.
31299         * modules/strchrnul-tests (Files): Likewise.
31300         * modules/strerror-tests (Files): Likewise.
31301         * modules/strsignal-tests (Files): Likewise.
31302         * modules/strstr-tests (Files): Likewise.
31303         * modules/strtod-tests (Files): Likewise.
31304         * modules/strverscmp-tests (Files): Likewise.
31305         * modules/symlink-tests (Files): Likewise.
31306         * modules/symlinkat-tests (Files): Likewise.
31307         * modules/times-tests (Files): Likewise.
31308         * modules/trunc-tests (Files): Likewise.
31309         * modules/truncf-tests (Files): Likewise.
31310         * modules/truncl-tests (Files): Likewise.
31311         * modules/tsearch-tests (Files): Likewise.
31312         * modules/uname-tests (Files): Likewise.
31313         * modules/unlink-tests (Files): Likewise.
31314         * modules/unsetenv-tests (Files): Likewise.
31315         * modules/usleep-tests (Files): Likewise.
31316         * modules/utimensat-tests (Files): Likewise.
31317         * modules/vasprintf-tests (Files): Likewise.
31318         * modules/vdprintf-posix-tests (Files): Likewise.
31319         * modules/vfprintf-posix-tests (Files): Likewise.
31320         * modules/vprintf-posix-tests (Files): Likewise.
31321         * modules/vsnprintf-posix-tests (Files): Likewise.
31322         * modules/vsnprintf-tests (Files): Likewise.
31323         * modules/vsprintf-posix-tests (Files): Likewise.
31324         * modules/wcrtomb-tests (Files): Likewise.
31325         * modules/wcsnrtombs-tests (Files): Likewise.
31326         * modules/wcsrtombs-tests (Files): Likewise.
31327         * modules/wcwidth-tests (Files): Likewise.
31328         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
31329         * tests/test-isinf.c (isinf): Likewise.
31330         * tests/test-isnan.c (isnan): Likewise.
31331         * tests/test-signbit.c (signbit): Likewise.
31332         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
31333         declaration, either as macro or with correct signature.
31334         (select): Ensure function under test is declared with correct
31335         signature in correct header.
31336         * tests/test-atexit.c (atexit): Likewise.
31337         * tests/test-btowc.c (btowc): Likewise.
31338         * tests/test-canonicalize-lgpl.c (realpath)
31339         (canonicalize_file_name): Likewise.
31340         * tests/test-ceilf1.c (ceilf): Likewise.
31341         * tests/test-ceill.c (ceill): Likewise.
31342         * tests/test-chown.c (chown): Likewise.
31343         * tests/test-dprintf-posix.c (dprintf): Likewise.
31344         * tests/test-dup2.c (dup2): Likewise.
31345         * tests/test-dup3.c (dup3): Likewise.
31346         * tests/test-duplocale.c (duplocale): Likewise.
31347         * tests/test-fchdir.c (fchdir): Likewise.
31348         * tests/test-fchownat.c (fchownat): Likewise.
31349         * tests/test-fcntl.c (fcntl): Likewise.
31350         * tests/test-fdopendir.c (fdopendir): Likewise.
31351         * tests/test-fflush.c (fflush): Likewise.
31352         * tests/test-flock.c (flock): Likewise.
31353         * tests/test-floorf1.c (floorf): Likewise.
31354         * tests/test-floorl.c (floorl): Likewise.
31355         * tests/test-fnmatch.c (fnmatch): Likewise.
31356         * tests/test-fopen.c (fopen): Likewise.
31357         * tests/test-fprintf-posix.c (fprintf): Likewise.
31358         * tests/test-freopen.c (freopen): Likewise.
31359         * tests/test-frexp.c (frexp): Likewise.
31360         * tests/test-frexpl.c (frexpl): Likewise.
31361         * tests/test-fseek.c (fseek): Likewise.
31362         * tests/test-fseeko.c (fseeko): Likewise.
31363         * tests/test-fstatat.c (fstatat): Likewise.
31364         * tests/test-fsync.c (fsync): Likewise.
31365         * tests/test-ftell.c (ftell): Likewise.
31366         * tests/test-ftello.c (ftello): Likewise.
31367         * tests/test-futimens.c (futimens): Likewise.
31368         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
31369         (gai_strerror): Likewise.
31370         * tests/test-getcwd.c (getcwd): Likewise.
31371         * tests/test-getdelim.c (getdelim): Likewise.
31372         * tests/test-getdtablesize.c (getdtablesize): Likewise.
31373         * tests/test-getgroups.c (getgroups): Likewise.
31374         * tests/test-gethostname.c (gethostname): Likewise.
31375         * tests/test-getline.c (getline): Likewise.
31376         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
31377         Likewise.
31378         * tests/test-gettimeofday.c (gettimeofday): Likewise.
31379         * tests/test-glob.c (glob, globfree): Likewise.
31380         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
31381         * tests/test-inet_ntop.c (inet_ntop): Likewise.
31382         * tests/test-inet_pton.c (inet_pton): Likewise.
31383         * tests/test-isblank.c (isblank): Likewise.
31384         * tests/test-lchown.c (lchown): Likewise.
31385         * tests/test-ldexpl.c (ldexpl): Likewise.
31386         * tests/test-link.c (link): Likewise.
31387         * tests/test-linkat.c (linkat): Likewise.
31388         * tests/test-lseek.c (lseek): Likewise.
31389         * tests/test-lstat.c (lstat): Likewise.
31390         * tests/test-mbrtowc.c (mbrtowc): Likewise.
31391         * tests/test-mbsinit.c (mbsinit): Likewise.
31392         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
31393         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
31394         * tests/test-memchr.c (memchr): Likewise.
31395         * tests/test-memcmp.c (memcmp): Likewise.
31396         * tests/test-memmem.c (memmem): Likewise.
31397         * tests/test-memrchr.c (memrchr): Likewise.
31398         * tests/test-mkdir.c (mkdir): Likewise.
31399         * tests/test-mkdirat.c (mkdirat): Likewise.
31400         * tests/test-mkfifo.c (mkfifo): Likewise.
31401         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
31402         * tests/test-mknod.c (mknod): Likewise.
31403         * tests/test-nanosleep.c (nanosleep): Likewise.
31404         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
31405         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
31406         Likewise.
31407         * tests/test-open.c (open): Likewise.
31408         * tests/test-openat.c (openat): Likewise.
31409         * tests/test-perror.c (perror): Likewise.
31410         * tests/test-pipe2.c (pipe2): Likewise.
31411         * tests/test-poll.c (poll): Likewise.
31412         * tests/test-popen.c (popen, pclose): Likewise.
31413         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
31414         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
31415         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
31416         (posix_spawn_file_actions_destroy)
31417         (posix_spawn_file_actions_addclose)
31418         (posix_spawn_file_actions_addopen)
31419         (posix_spawn_file_actions_adddup2): Likewise.
31420         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
31421         * tests/test-pread.c (pread): Likewise.
31422         * tests/test-printf-posix.c (printf): Likewise.
31423         * tests/test-pty.c (openpty, forkpty): Likewise.
31424         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
31425         (random_r): Likewise.
31426         * tests/test-rawmemchr.c (rawmemchr): Likewise.
31427         * tests/test-readlink.c (readlink): Likewise.
31428         * tests/test-remove.c (remove): Likewise.
31429         * tests/test-rename.c (rename): Likewise.
31430         * tests/test-renameat.c (renameat): Likewise.
31431         * tests/test-rmdir.c (rmdir): Likewise.
31432         * tests/test-round1.c (round): Likewise.
31433         * tests/test-roundf1.c (roundf): Likewise.
31434         * tests/test-roundl.c (roundl): Likewise.
31435         * tests/test-setenv.c (setenv): Likewise.
31436         * tests/test-sigaction.c (sigaction): Likewise.
31437         * tests/test-sleep.c (sleep): Likewise.
31438         * tests/test-snprintf.c (snprintf): Likewise.
31439         * tests/test-sprintf-posix.c (sprintf): Likewise.
31440         * tests/test-stat.c (stat): Likewise.
31441         * tests/test-stpncpy.c (stpncpy): Likewise.
31442         * tests/test-strcasestr.c (strcasestr): Likewise.
31443         * tests/test-strchrnul.c (strchrnul): Likewise.
31444         * tests/test-strerror.c (strerror): Likewise.
31445         * tests/test-strsignal.c (strsignal): Likewise.
31446         * tests/test-strstr.c (strstr): Likewise.
31447         * tests/test-strtod.c (strtod): Likewise.
31448         * tests/test-strverscmp.c (strverscmp): Likewise.
31449         * tests/test-symlink.c (symlink): Likewise.
31450         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
31451         * tests/test-times.c (times): Likewise.
31452         * tests/test-trunc1.c (trunc): Likewise.
31453         * tests/test-truncf1.c (truncf): Likewise.
31454         * tests/test-truncl.c (truncl): Likewise.
31455         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
31456         Likewise.
31457         * tests/test-uname.c (uname): Likewise.
31458         * tests/test-unlink.c (unlink): Likewise.
31459         * tests/test-unlinkat.c (unlinkat): Likewise.
31460         * tests/test-unsetenv.c (unsetenv): Likewise.
31461         * tests/test-usleep.c (usleep): Likewise.
31462         * tests/test-utimensat.c (utimensat): Likewise.
31463         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
31464         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
31465         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
31466         * tests/test-vprintf-posix.c (vprintf): Likewise.
31467         * tests/test-vsnprintf.c (vsnprintf): Likewise.
31468         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
31469         * tests/test-wcrtomb.c (wcrtomb): Likewise.
31470         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
31471         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
31472         * tests/test-wcwidth.c (wcwidth): Likewise.
31473
31474         build: pull in conditional headers during GNULIB_POSIXCHECK
31475         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
31476         definitions from any conditionally-included headers.
31477         * lib/stdlib.in.h (includes): Likewise.
31478         * lib/unistd.in.h (includes): Likewise.
31479
31480 2009-12-24  Bruno Haible  <bruno@clisp.org>
31481
31482         * tests/test-argv-iter.c: Include header file being tested immediately
31483         after config.h.
31484         * tests/test-base64.c: Likewise.
31485         * tests/test-flock.c: Likewise.
31486         * tests/test-fsync.c: Likewise.
31487         * tests/test-getdate.c: Likewise.
31488         * tests/test-getndelim2.c: Likewise.
31489         * tests/test-isfinite.c: Likewise.
31490         * tests/test-isinf.c: Likewise.
31491         * tests/test-strerror.c: Likewise.
31492         * tests/test-strsignal.c: Likewise.
31493
31494 2009-12-23  Eric Blake  <ebb9@byu.net>
31495
31496         unistd: work around cygwin bug
31497         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
31498         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
31499         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31500
31501 2009-12-23  Bruno Haible  <bruno@clisp.org>
31502
31503         localename: More tests.
31504         * tests/test-localename.c (SIZEOF): New macro.
31505         (categories): New variable.
31506         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
31507         test_locale_name_default): Add test w.r.t. thread locale.
31508         (test_locale_name_thread): New function.
31509         (main): Invoke it.
31510
31511         localename: Make aware of thread locale.
31512         * lib/localename.h (gl_locale_name_thread): New declaration.
31513         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
31514         behaviour with respect to thread locale.
31515         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
31516         <langinfo.h>, glthread/lock.h.
31517         (SIZE_BITS): New macro.
31518         (string_hash): New function.
31519         (struct hash_node): New type.
31520         (HASH_TABLE_SIZE): New macro.
31521         (struniq_hash_table, struniq_lock): New variables.
31522         (struniq): New function.
31523         (gl_locale_name_thread): New function.
31524         (gl_locale_name): Invoke it.
31525         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
31526         * modules/localename (Depends-on): Add lock.
31527         Reported by Mike Gran <spk121@yahoo.com>.
31528
31529 2009-12-23  Eric Blake  <ebb9@byu.net>
31530
31531         va-args: new module
31532         * modules/va-args: New file.
31533         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
31534         * MODULES.html.sh (Core language properties): Mention it.
31535
31536         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
31537         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
31538         named alias for __attribute__((__unused__)).
31539         * lib/chown.c: Update client.
31540         * lib/fchmodat.c: Likewise.
31541         * lib/fts.c: Likewise.
31542         * lib/getdate.y: Likewise.
31543         * lib/getgroups.c: Likewise.
31544         * lib/getopt.c: Likewise.
31545         * lib/getugroups.c: Likewise.
31546         * lib/mkdir.c: Likewise.
31547         * lib/mkfifo.c: Likewise.
31548         * lib/mkfifoat.c: Likewise.
31549         * lib/mknod.c: Likewise.
31550         * lib/mknodat.c: Likewise.
31551         * lib/readlink.c: Likewise.
31552         * lib/se-context.in.h: Likewise.
31553         * lib/se-selinux.in.h: Likewise.
31554         * lib/sockets.c: Likewise.
31555         * lib/symlink.c: Likewise.
31556         * lib/symlinkat.c: Likewise.
31557         * lib/unicodeio.c: Likewise.
31558         * lib/unistr.h: Likewise.
31559         * tests/test-areadlink.c: Likewise.
31560         * tests/test-areadlinkat.c: Likewise.
31561         * tests/test-filenamecat.c: Likewise.
31562         * tests/test-fseeko.c: Likewise.
31563         * tests/test-ftello.c: Likewise.
31564         * tests/test-getdate.c: Likewise.
31565         * tests/test-getgroups.c: Likewise.
31566         * tests/test-gethostname.c: Likewise.
31567         * tests/test-quotearg.c: Likewise.
31568         * tests/test-version-etc.c: Likewise.
31569         * tests/test-xalloc-die.c: Likewise.
31570         * tests/test-xfprintf-posix.c: Likewise.
31571         * tests/test-xprintf-posix.c: Likewise.
31572         * tests/test-xvasprintf.c: Likewise.
31573
31574         tests: avoid compiler warnings
31575         * tests/test-fcntl.c (main): Delete unused parameters.
31576         * tests/test-freopen-safer.c (main): Likewise.
31577         * tests/test-xalloc-die.c (main): Mark unused parameters.
31578         * tests/test-fseeko.c (main): Likewise.
31579         * tests/test-ftello.c (main): Likewise.
31580         * tests/test-nanosleep.c (main): Avoid declaration warning.
31581         * tests/test-sleep.c (main): Likewise.
31582         * tests/test-unsetenv.c (main): Silence warning about string
31583         literal.
31584         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
31585
31586 2009-12-23  Bruno Haible  <bruno@clisp.org>
31587
31588         * tests/test-localename.c (test_locale_name): New function, extracted
31589         from main. Also test mixed situations.
31590         (test_locale_name_posix, test_locale_name_environ,
31591         test_locale_name_default): New functions.
31592         (main): Invoke them all.
31593         * modules/localename-tests (configure.ac): Test for newlocale.
31594
31595 2009-12-23  Bruno Haible  <bruno@clisp.org>
31596
31597         unistd: Ensure getcwd gets declared before being overridden.
31598         * lib/unistd.in.h: Conditionally include <io.h>.
31599
31600 2009-12-22  Bruno Haible  <bruno@clisp.org>
31601
31602         wchar: Diagnose broken combination of glibc and gcc versions and flags.
31603         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
31604         (gl_WCHAR_H): Invoke it.
31605         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
31606         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
31607         Reported by Karl Berry <karl@freefriends.org>.
31608
31609 2009-12-22  Eric Blake  <ebb9@byu.net>
31610
31611         math, unistd: avoid redundant includes
31612         * lib/math.in.h (isnan): No need to re-include <math.h>.
31613         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
31614
31615         getsubopt: work around cygwin bug
31616         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
31617         avoid conflicting with system getsubopt.
31618         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
31619         bug.
31620
31621         getopt: synchronize from glibc
31622         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
31623         parameter order.  Adjust all callers.
31624         (_getopt_internal_r, main): Adjust quoting in error messages.
31625         Drop considerations for outdated POSIX 1003.2 error message.
31626         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
31627         callers.
31628         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
31629
31630         test-getopt: test stderr behavior
31631         * modules/getopt-posix-tests (Depends-on): Add dup2.
31632         * tests/test-getopt.c (ASSERT): Avoid stderr.
31633         (main): Move stderr to a temporary file.
31634         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
31635         Instead, add parameter to inform caller if output occurred.
31636         (test_getopt): Adjust all existing tests to expect silence, and
31637         add new tests of leading ":".
31638         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31639         glibc shortcomings with leading "-:" or "+:" in optstring.
31640         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31641         Likewise.
31642         * doc/posix-functions/getopt.texi (getopt): Likewise.
31643
31644         test-getopt: enhance test
31645         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
31646         supports optind=0.
31647         * tests/test-getopt.c (OPTIND_MIN): Move...
31648         * tests/test-getopt.h (OPTIND_MIN): ...here.
31649         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
31650         Require that optind=0 works, since modern BSD supports it in
31651         addition to optreset, and since coreutils expects it.
31652         (test_getopt_long_only): New test.
31653         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31654         glibc shortcomings with 'W;', and enforcement of optind=0.
31655         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31656         Likewise.
31657
31658 2009-12-21  Bruno Haible  <bruno@clisp.org>
31659
31660         localename: Improvements for MacOS X and Cygwin.
31661         * lib/localename.h (gl_locale_name_environ): New declaration.
31662         * lib/localename.c (gl_locale_name_environ): New function, extracted from
31663         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
31664         (gl_locale_name_posix): Invoke it.
31665         (gl_locale_name_default): Add comments. Use Windows native API also on
31666         Cygwin.
31667
31668 2009-12-21  Bruno Haible  <bruno@clisp.org>
31669
31670         Update list of Win32 locale ids.
31671         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
31672         (LANG_SAMI): Renamed from LANG_SAAMI.
31673         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
31674         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
31675         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
31676         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
31677         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
31678         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
31679         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
31680         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
31681         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
31682         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
31683         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
31684         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
31685         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
31686         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
31687         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
31688         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
31689         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
31690         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
31691         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
31692         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
31693         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
31694         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
31695         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
31696         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
31697         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
31698         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
31699         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
31700         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
31701         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
31702         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
31703         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
31704         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
31705         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
31706         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
31707         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
31708         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
31709         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
31710         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
31711         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
31712         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
31713         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
31714         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
31715         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
31716         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
31717         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
31718         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
31719         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
31720         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
31721         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
31722         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
31723         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
31724         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
31725         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
31726         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
31727         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
31728         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
31729         Add more languages and countries for Sami, Sorbian. Add more countries
31730         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
31731         for Pashto. Change country for Syriac, Tswana.
31732
31733 2009-12-21  Eric Blake  <ebb9@byu.net>
31734
31735         test-utimens: avoid spurious failure
31736         * tests/test-chown.h (nap): Factor...
31737         * tests/nap.h: ...into new file.
31738         * tests/test-lchown.h (nap): Avoid duplication.
31739         * tests/test-utimens-common.h (nap): Use shared implementation,
31740         necessary on file systems with 1-second resolution.
31741         * modules/chown-tests (Files): Include new file.
31742         * modules/fdutimensat-tests (Files): Likewise.
31743         * modules/futimens-tests (Files): Likewise.
31744         * modules/lchown-tests (Files): Likewise.
31745         * modules/openat-tests (Files): Likewise.
31746         * modules/utimens-tests (Files): Likewise.
31747         * modules/utimensat-tests (Files): Likewise.
31748
31749 2009-12-19  Eric Blake  <ebb9@byu.net>
31750
31751         futimens, utimensat: work around Linux bug
31752         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
31753         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
31754         * lib/utimensat.c (rpl_utimensat): Work around it.
31755         * lib/futimens.c (rpl_futimens): Adjust comment.
31756
31757         utimens: work around Linux ctime bug
31758         * lib/utimens.c (detect_ctime_bug): New helper function.
31759         (update_timespec): Differentiate between workaround needed for
31760         this bug vs. what is needed for systems that lack utimensat.
31761         (fdutimens, lutimens): Work around bug.
31762
31763         utimens: check for ctime update
31764         * tests/test-utimens-common.h (check_ctime): Define.
31765         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
31766         * tests/test-futimens.h (test_futimens): Likewise.
31767         * tests/test-lutimens.h (test_lutimens): Likewise.
31768         * doc/posix-functions/futimens.texi (futimens): Document the bug.
31769         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31770
31771 2009-12-19  Bruno Haible  <bruno@clisp.org>
31772
31773         dprintf-posix: Check against memory leak fixed on 2009-12-15.
31774         * tests/test-dprintf-posix2.sh: New file.
31775         * tests/test-dprintf-posix2.c: New file.
31776         * modules/dprintf-posix-tests (Files): Add them.
31777         (configure.ac): Check for getrlimit and setrlimit.
31778         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31779
31780 2009-12-19  Bruno Haible  <bruno@clisp.org>
31781
31782         fprintf-posix: Check against memory leak fixed on 2009-12-15.
31783         * tests/test-fprintf-posix3.sh: New file.
31784         * tests/test-fprintf-posix3.c: New file.
31785         * modules/fprintf-posix-tests (Files): Add them.
31786         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31787
31788 2009-12-19  Eric Blake  <ebb9@byu.net>
31789
31790         dirfd: fix prototype
31791         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
31792         * lib/dirfd.c (dirfd): Likewise.
31793
31794         canonicalize: reduce memory usage
31795         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
31796         allocation to size.
31797         Reported by Solar Designer <solar@openwall.com>.
31798
31799 2009-12-19  Bruno Haible  <bruno@clisp.org>
31800
31801         New module attribute 'Applicability'.
31802         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
31803         * gnulib-tool: New option --extract-applicability.
31804         (func_usage): Document it.
31805         (sed_extract_prog): Recognize it.
31806         (func_get_applicability): New function.
31807         (func_import): Generalize handling of 'link-warning' module.
31808         * modules/link-warning (Applicability): New section.
31809         * modules/arg-nonnull (Applicability): New section.
31810         Repoted by Simon Josefsson <simon@josefsson.org>.
31811
31812 2009-12-19  Bruno Haible  <bruno@clisp.org>
31813
31814         fflush: tweak
31815         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
31816         * lib/fseeko.c (rpl_fseeko): Likewise.
31817
31818 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
31819
31820         * lib/gl_list.h: Fix typo in comment.
31821
31822 2009-12-16  Eric Blake  <ebb9@byu.net>
31823
31824         fcntl: use to simplify other modules
31825         * modules/cloexec (Depends-on): Add fcntl.
31826         * modules/fchdir (Depends-on): Likewise.
31827         * modules/fd-safer-flag (Depends-on): Likewise.
31828         * modules/unistd-safer (Depends-on): Likewise.
31829         * modules/dup3 (configure.ac): Set module indicator.
31830         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
31831         missing.
31832         * lib/fchdir.c (_gl_register_dup): Fix comment.
31833         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
31834         * lib/dup-safer.c (dup_safer): Likewise.
31835         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
31836         * lib/dup3.c (dup3): Likewise.
31837         * tests/test-fchdir.c (main): Enhance test.
31838         Fixes a dup_cloexec bug reported by Ondřej Vašík.
31839
31840         fcntl: port portions of fcntl to mingw
31841         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
31842         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
31843         replacement for mingw.
31844         * modules/fcntl (Description): Update.
31845         (Depends-on): Add dup2.
31846         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
31847         * modules/fcntl-h (Makefile.am): Substitute it.
31848         * lib/fcntl.in.h (fcntl): Update declaration.
31849         (F_DUPFD, F_GETFD): New macros, when needed.
31850         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
31851         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
31852         * tests/test-fcntl.c (check_flags, main): Enhance test for items
31853         we now guarantee.
31854
31855         fcntl: work around cygwin bug in F_DUPFD
31856         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
31857         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
31858         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
31859         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
31860         * doc/posix-functions/fcntl.texi (fcntl): Document it.
31861
31862         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
31863         * modules/fcntl (Files): List new files.
31864         (configure.ac): Run a test.
31865         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
31866         * lib/fcntl.c (rpl_fcntl): Likewise.
31867         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
31868         (gl_FCNTL_H): Always replace fcntl.h.
31869         * modules/fcntl-h (Makefile.am): Substitute witnesses.
31870         * lib/fcntl.in.h (fcntl): Declare replacement.
31871         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
31872         needed, plus a witness.
31873         * doc/posix-functions/fcntl.texi (fcntl): Document this.
31874         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
31875         * tests/test-fcntl.c: New file.
31876         * modules/fcntl-tests: Likewise.
31877
31878         binary-io: avoid potential compilation warning
31879         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
31880         directives.
31881
31882         fflush: avoid compilation error on NetBSD
31883         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
31884         between off_t and fpos_t, since the latter is sometimes a struct.
31885         * lib/fseeko.c (rpl_fseeko): Likewise.
31886         Reported by Alexander Nasonov <alnsn@yandex.ru>.
31887
31888 2009-12-15  Eric Blake  <ebb9@byu.net>
31889
31890         fcntl-h, stdio, sys_ioctl: fix declarations
31891         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
31892         function must not take arguments.
31893         * lib/sys_ioctl.in.h (ioctl): Likewise.
31894         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
31895         (open): Add a link warning.
31896
31897 2009-12-15  Jim Meyering  <meyering@redhat.com>
31898
31899         areadlink, areadlink-with-size: relax license to LGPLv2+
31900         * modules/areadlink (License): Relax to LGPLv2+.
31901         * modules/areadlink-with-size (License): Likewise.
31902
31903 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
31904             Bruno Haible  <bruno@clisp.org>
31905
31906         *printf: Fix memory leak.
31907         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
31908         * lib/vfprintf.c (vfprintf): Likewise.
31909         * lib/dprintf.c (dprintf): Likewise.
31910         * lib/vdprintf.c (vdprintf): Likewise.
31911
31912 2009-12-14  Eric Blake  <ebb9@byu.net>
31913
31914         accept4: adjust module dependencies
31915         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
31916
31917         utimens: one more try at avoiding compiler warning
31918         * lib/utimens.c (lutimens): Lower scope of result.
31919
31920 2009-12-13  Bruno Haible  <bruno@clisp.org>
31921
31922         Move the malloc checking from module 'list' to new module 'xlist'.
31923         * modules/xlist: New file.
31924         * lib/gl_xlist.h: New file.
31925         * lib/gl_xlist.c: New file.
31926         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
31927         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
31928         gl_list_add_last, gl_list_add_before, gl_list_add_after,
31929         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
31930         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
31931         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
31932         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
31933         gl_sortedlist_nx_add): New declarations.
31934         (struct gl_list_implementation): Rename and change methods accordingly.
31935         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
31936         (gl_list_nx_create): Renamed from gl_list_create.
31937         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31938         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31939         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31940         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31941         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31942         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31943         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31944         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31945         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
31946         gl_list_create_empty.
31947         (gl_list_nx_create): Renamed from gl_list_create.
31948         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31949         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31950         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31951         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31952         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31953         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31954         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31955         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31956         * lib/gl_array_list.c: Don't include xalloc.h.
31957         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
31958         NULL upon out-of-memory.
31959         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
31960         out-of-memory.
31961         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
31962         Change return type to 'int'.
31963         (gl_array_nx_set_at): Renamed from gl_array_set_at.
31964         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31965         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
31966         upon out-of-memory.
31967         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
31968         upon out-of-memory.
31969         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
31970         upon out-of-memory.
31971         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
31972         upon out-of-memory.
31973         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
31974         out-of-memory.
31975         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
31976         Update.
31977         (gl_array_list_implementation): Update.
31978         * lib/gl_carray_list.c: Don't include xalloc.h.
31979         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
31980         Return NULL upon out-of-memory.
31981         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
31982         out-of-memory.
31983         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
31984         Change return type to 'int'.
31985         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
31986         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31987         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
31988         upon out-of-memory.
31989         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
31990         upon out-of-memory.
31991         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
31992         out-of-memory.
31993         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
31994         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
31995         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
31996         Update.
31997         (gl_carray_list_implementation): Update.
31998         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
31999         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
32000         gl_linked_create_empty. Return NULL upon out-of-memory.
32001         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
32002         out-of-memory.
32003         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
32004         Change return type to 'int'. Return -1 upon out-of-memory.
32005         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
32006         out-of-memory.
32007         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
32008         upon out-of-memory.
32009         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
32010         upon out-of-memory.
32011         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
32012         NULL upon out-of-memory.
32013         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
32014         upon out-of-memory.
32015         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
32016         out-of-memory.
32017         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
32018         Update.
32019         * lib/gl_linked_list.c: Don't include xalloc.h.
32020         (gl_linked_list_implementation): Update.
32021         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
32022         (add_to_bucket): Change return type to 'int'.
32023         (gl_linkedhash_list_implementation): Update.
32024         * lib/gl_anytree_list1.h (free_subtree): New function.
32025         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
32026         gl_tree_create_empty. Return NULL upon out-of-memory.
32027         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
32028         Change return type to 'int'. Return -1 upon out-of-memory.
32029         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
32030         out-of-memory.
32031         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
32032         (gl_tree_remove_node): New function, moved here from
32033         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
32034         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
32035         Update.
32036         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
32037         malloc, not xmalloc. Return NULL upon out-of-memory.
32038         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
32039         out-of-memory.
32040         (gl_tree_remove_node_from_tree): New function, extracted from
32041         gl_tree_remove_node.
32042         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
32043         upon out-of-memory.
32044         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
32045         out-of-memory.
32046         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
32047         upon out-of-memory.
32048         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
32049         upon out-of-memory.
32050         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
32051         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
32052         not xmalloc. Return NULL upon out-of-memory.
32053         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
32054         out-of-memory.
32055         (gl_tree_remove_node_from_tree): New function, extracted from
32056         gl_tree_remove_node.
32057         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
32058         upon out-of-memory.
32059         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
32060         out-of-memory.
32061         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
32062         upon out-of-memory.
32063         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
32064         upon out-of-memory.
32065         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
32066         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
32067         gl_anytree_list1.h before gl_anyavltree_list2.h.
32068         (gl_avltree_list_implementation): Update.
32069         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
32070         gl_anytree_list1.h before gl_anyavltree_list2.h.
32071         (gl_rbtree_list_implementation): Update.
32072         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
32073         Change return type to 'int'. Return -1 upon out-of-memory. Use
32074         __builtin_expect.
32075         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
32076         (gl_avltreehash_list_implementation): Update.
32077         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
32078         (gl_rbtreehash_list_implementation): Update.
32079         * modules/array-list (Depends-on): Remove xalloc.
32080         * modules/carray-list (Depends-on): Likewise.
32081         * modules/linked-list (Depends-on): Likewise.
32082         * modules/linkedhash-list (Depends-on): Likewise.
32083         * modules/avltree-list (Depends-on): Likewise.
32084         * modules/rbtree-list (Depends-on): Likewise.
32085         * modules/avltreehash-list (Depends-on): Likewise.
32086         * modules/rbtreehash-list (Depends-on): Likewise.
32087
32088         * modules/xsublist: New file.
32089         * lib/gl_xsublist.h: New file.
32090         * lib/gl_xsublist.c: New file.
32091         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
32092         (gl_sublist_nx_create): New declaration.
32093         * lib/gl_sublist.c: Don't include xalloc.h.
32094         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
32095         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
32096         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
32097         Change return type to 'int'. Return -1 upon out-of-memory.
32098         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
32099         upon out-of-memory.
32100         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
32101         NULL upon out-of-memory.
32102         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
32103         upon out-of-memory.
32104         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
32105         NULL upon out-of-memory.
32106         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
32107         NULL upon out-of-memory.
32108         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
32109         upon out-of-memory.
32110         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
32111         (gl_sublist_list_implementation): Update.
32112         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
32113         upon out-of-memory.
32114         * modules/sublist (Depends-on): Remove xalloc.
32115
32116         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
32117         * tests/test-carray_list.c: Likewise.
32118         * tests/test-linked_list.c: Likewise.
32119         * tests/test-linkedhash_list.c: Likewise.
32120         * tests/test-avltree_list.c: Likewise.
32121         * tests/test-rbtree_list.c: Likewise.
32122         * tests/test-avltreehash_list.c: Likewise.
32123         * tests/test-rbtreehash_list.c: Likewise.
32124         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
32125         * modules/carray-list-tests (Makefile.am): Likewise.
32126         * modules/linked-list-tests (Makefile.am): Likewise.
32127         * modules/linkedhash-list-tests (Makefile.am): Likewise.
32128         * modules/avltree-list-tests (Makefile.am): Likewise.
32129         * modules/rbtree-list-tests (Makefile.am): Likewise.
32130         * modules/avltreehash-list-tests (Makefile.am): Likewise.
32131         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
32132
32133         * NEWS: Mention the changes.
32134
32135         * lib/clean-temp.c: Include gl_xlist.h.
32136         * modules/clean-temp (Depends-on): Add xlist.
32137
32138         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
32139         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
32140
32141         * tests/test-array_oset.c: Include gl_xlist.h.
32142         * modules/array-oset-tests (Depends-on): Add xlist.
32143
32144         Reported by José E. Marchesi <jemarch@gnu.org>.
32145
32146 2009-12-13  Bruno Haible  <bruno@clisp.org>
32147
32148         Move the malloc checking from module 'oset' to new module 'xoset'.
32149         * modules/xoset: New file.
32150         * lib/gl_xoset.h: New file.
32151         * lib/gl_xoset.c: New file.
32152         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
32153         declarations.
32154         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
32155         (struct gl_oset_implementation): Rename and change methods accordingly.
32156         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
32157         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
32158         'int'. Mark as __warn_unused_result__.
32159         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
32160         gl_oset_create_empty.
32161         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
32162         'int'.
32163         * lib/gl_array_oset.c: Don't include xalloc.h.
32164         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
32165         malloc, not xmalloc.
32166         (grow): Change return type to 'int'. Don't call xalloc_die.
32167         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
32168         to 'int'.
32169         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
32170         'int'.
32171         (gl_array_oset_implementation): Update.
32172         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
32173         gl_tree_create_empty.
32174         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
32175         'int'.
32176         * lib/gl_avltree_oset.c: Don't include xalloc.h.
32177         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
32178         xmalloc.
32179         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
32180         not xmalloc.
32181         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
32182         xmalloc.
32183         (gl_avltree_oset_implementation): Update.
32184         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
32185         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
32186         xmalloc.
32187         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
32188         not xmalloc.
32189         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
32190         xmalloc.
32191         (gl_rbtree_oset_implementation): Update.
32192         * modules/array-oset (Depends-on): Remove xalloc.
32193         * modules/avltree-oset (Depends-on): Likewise.
32194         * modules/rbtree-oset (Depends-on): Likewise.
32195         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
32196         * tests/test-avltree_oset.c: Likewise.
32197         * tests/test-rbtree_oset.c: Likewise.
32198         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
32199         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
32200         * modules/rbtree-oset-tests (Makefile.am): Likewise.
32201         * NEWS: Mention the change.
32202
32203 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
32204
32205         maint.mk: allow a project to override release-prep commands
32206         * top/maint.mk (alpha, beta, stable): Move release-preparatory
32207         commands into a new rule.
32208         (release-prep): New rule.
32209         (release-prep-hook): New overridable variable.
32210
32211 2009-12-13  Bruno Haible  <bruno@clisp.org>
32212
32213         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
32214
32215 2009-12-13  Jim Meyering  <meyering@redhat.com>
32216
32217         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
32218         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
32219
32220 2009-12-12  Bruno Haible  <bruno@clisp.org>
32221
32222         duplocale: Tweak.
32223         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
32224
32225 2009-12-12  Karl Berry  <karl@gnu.org>
32226
32227         * config/srclist.txt (strtoll.c): tab changes, no more sync.
32228
32229 2009-12-12  Bruno Haible  <bruno@clisp.org>
32230
32231         * m4/po.m4: Undo incorrect untabification.
32232
32233 2009-12-12  Bruno Haible  <bruno@clisp.org>
32234
32235         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
32236         * modules/c-strtod (Depends-on): Add locale.
32237         * modules/c-strtold (Depends-on): Likewise.
32238
32239 2009-12-12  Bruno Haible  <bruno@clisp.org>
32240
32241         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
32242
32243 2009-12-11  Eric Blake  <ebb9@byu.net>
32244
32245         setenv: relax requirement in light of POSIX ruling
32246         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
32247         not NULL.
32248         * tests/test-setenv.c (main): Relax test.
32249         * tests/test-unsetenv.c (main): Likewise.
32250         * doc/posix-functions/setenv.texi (setenv): Document this.
32251         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
32252
32253 2009-12-11  Bruno Haible  <bruno@clisp.org>
32254
32255         New module 'fd-safer-flag'.
32256         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
32257         * lib/dup-safer.c (dup_safer_flag): Remove function.
32258         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
32259         * lib/fd-safer.c (fd_safer_flag): Remove function.
32260         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
32261         * modules/cloexec (configure.ac): Drop indicator macro.
32262         * modules/fd-safer-flag: New file.
32263         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
32264         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
32265         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
32266
32267 2009-12-11  Bruno Haible  <bruno@clisp.org>
32268
32269         Tests for module 'nl_langinfo'.
32270         * modules/nl_langinfo-tests: New file.
32271         * tests/test-nl_langinfo.sh: New file.
32272         * tests/test-nl_langinfo.c: New file.
32273
32274         New module 'nl_langinfo'.
32275         * lib/nl_langinfo.c: New file.
32276         * m4/nl_langinfo.m4: New file.
32277         * modules/nl_langinfo: New file.
32278         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
32279
32280 2009-12-11  Bruno Haible  <bruno@clisp.org>
32281
32282         Tests for module 'langinfo'.
32283         * modules/langinfo-tests: New file.
32284         * tests/test-langinfo.c: New file.
32285
32286         New module 'langinfo'.
32287         * lib/langinfo.in.h: New file.
32288         * m4/langinfo_h.m4: New file.
32289         * modules/langinfo: New file.
32290         * doc/posix-headers/langinfo.texi: Mention the new module.
32291
32292 2009-12-11  Bruno Haible  <bruno@clisp.org>
32293
32294         * lib/config.charset: Untabify.
32295
32296 2009-12-11  Bruno Haible  <bruno@clisp.org>
32297
32298         * modules/unistd-safer (configure.ac): Drop indicator macro.
32299
32300 2009-12-11  Bruno Haible  <bruno@clisp.org>
32301
32302         Move pipe2-safer code to its own file.
32303         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
32304         * lib/pipe-safer.c (pipe2_safer): Remove function.
32305         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
32306         (Makefile.am): Add it to lib_SOURCES.
32307
32308 2009-12-10  Bruno Haible  <bruno@clisp.org>
32309
32310         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
32311
32312 2009-12-10  Bruno Haible  <bruno@clisp.org>
32313
32314         Declare which arguments expect non-NULL values, for GCC and clang.
32315         * build-aux/arg-nonnull.h: New file.
32316         * modules/arg-nonnull: New file.
32317         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
32318         (inet_ntop, inet_pton): Use it.
32319         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
32320         (closedir, dirfd, opendir, scandir, alphasort): Use it.
32321         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
32322         (open, openat): Use it.
32323         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
32324         (fnmatch): Use it.
32325         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
32326         (getopt, getopt_long, getopt_long_only): Use it.
32327         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
32328         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
32329         Use it.
32330         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
32331         (iconv_open): Use it.
32332         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
32333         (strtoimax, strtoumax): Use it.
32334         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
32335         (duplocale): Use it.
32336         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
32337         (frexp, frexpl): Use it.
32338         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
32339         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
32340         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
32341         (tsearch, tfind, tdelete, twalk): Use it.
32342         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
32343         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
32344         sigpending): Use it.
32345         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
32346         (posix_spawn, posix_spawnp, posix_spawnattr_init,
32347         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
32348         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
32349         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
32350         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
32351         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
32352         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
32353         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
32354         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
32355         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
32356         Use it.
32357         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
32358         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
32359         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
32360         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
32361         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
32362         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
32363         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
32364         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
32365         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
32366         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
32367         strtoull, unsetenv): Use it.
32368         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
32369         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
32370         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
32371         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
32372         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
32373         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
32374         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
32375         (strcasecmp, strncasecmp): Use it.
32376         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
32377         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
32378         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
32379         rpl_setsockopt): Use it.
32380         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
32381         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
32382         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
32383         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
32384         (gettimeofday): Use it.
32385         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
32386         (times): Use it.
32387         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
32388         (uname): Use it.
32389         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
32390         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
32391         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
32392         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
32393         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
32394         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
32395         unlinkat, write): Use it.
32396         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
32397         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
32398         * lib/argv-iter.h: Include arg-nonnull.h.
32399         (_ATTRIBUTE_NONNULL_): Remove macro.
32400         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
32401         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
32402         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
32403         optimization.
32404         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
32405         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
32406         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
32407         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
32408         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
32409         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
32410         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
32411         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
32412         * modules/arpa_inet (Depends-on): Add arg-nonnull.
32413         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
32414         * modules/dirent (Depends-on): Add arg-nonnull.
32415         (Makefile.am): Insert arg-nonnull.h into dirent.h.
32416         * modules/fcntl-h (Depends-on): Add arg-nonnull.
32417         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
32418         * modules/fnmatch (Depends-on): Add arg-nonnull.
32419         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
32420         * modules/getopt-posix (Depends-on): Add arg-nonnull.
32421         (Makefile.am): Insert arg-nonnull.h into getopt.h.
32422         * modules/glob (Depends-on): Add arg-nonnull.
32423         (Makefile.am): Insert arg-nonnull.h into glob.h.
32424         * modules/iconv_open (Depends-on): Add arg-nonnull.
32425         (Makefile.am): Insert arg-nonnull.h into iconv.h.
32426         * modules/inttypes (Depends-on): Add arg-nonnull.
32427         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
32428         * modules/locale (Depends-on): Add arg-nonnull.
32429         (Makefile.am): Insert arg-nonnull.h into locale.h.
32430         * modules/math (Depends-on): Add arg-nonnull.
32431         (Makefile.am): Insert arg-nonnull.h into math.h.
32432         * modules/netdb (Depends-on): Add arg-nonnull.
32433         (Makefile.am): Insert arg-nonnull.h into netdb.h.
32434         * modules/search (Depends-on): Add arg-nonnull.
32435         (Makefile.am): Insert arg-nonnull.h into search.h.
32436         * modules/signal (Depends-on): Add arg-nonnull.
32437         (Makefile.am): Insert arg-nonnull.h into signal.h.
32438         * modules/spawn (Depends-on): Add arg-nonnull.
32439         (Makefile.am): Insert arg-nonnull.h into spawn.h.
32440         * modules/stdio (Depends-on): Add arg-nonnull.
32441         (Makefile.am): Insert arg-nonnull.h into stdio.h.
32442         * modules/stdlib (Depends-on): Add arg-nonnull.
32443         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
32444         * modules/string (Depends-on): Add arg-nonnull.
32445         (Makefile.am): Insert arg-nonnull.h into string.h.
32446         * modules/strings (Depends-on): Add arg-nonnull.
32447         (Makefile.am): Insert arg-nonnull.h into strings.h.
32448         * modules/sys_socket (Depends-on): Add arg-nonnull.
32449         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
32450         * modules/sys_stat (Depends-on): Add arg-nonnull.
32451         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
32452         * modules/sys_time (Depends-on): Add arg-nonnull.
32453         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
32454         * modules/sys_times (Depends-on): Add arg-nonnull.
32455         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
32456         * modules/sys_utsname (Depends-on): Add arg-nonnull.
32457         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
32458         * modules/time (Depends-on): Add arg-nonnull.
32459         (Makefile.am): Insert arg-nonnull.h into time.h.
32460         * modules/unistd (Depends-on): Add arg-nonnull.
32461         (Makefile.am): Insert arg-nonnull.h into unistd.h.
32462         * modules/wchar (Depends-on): Add arg-nonnull.
32463         (Makefile.am): Insert arg-nonnull.h into wchar.h.
32464         * modules/argv-iter (Depends-on): Add arg-nonnull.
32465         * tests/test-canonicalize.c (null_ptr): New function.
32466         (main): Use it.
32467         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
32468         (main): Use it.
32469         * tests/test-memmem.c (null_ptr): New function.
32470         (main): Use it.
32471         Reported by Jim Meyering.
32472
32473 2009-12-10  Bruno Haible  <bruno@clisp.org>
32474
32475         Use spaces for indentation, not tabs.
32476         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
32477         * m4/*.m4: Untabify.
32478         * build-aux/*.h: Untabify.
32479         * tests/**/*.[hc]: Untabify.
32480         * README: New section "Indent with spaces, not TABs", based on
32481         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
32482         * NEWS: Mention the change.
32483
32484 2009-12-10  Bruno Haible  <bruno@clisp.org>
32485
32486         pty test: Fix link error.
32487         * modules/pty-tests (Makefile.am): Add the default LDADD value to
32488         test_pty_LDADD.
32489
32490 2009-12-07  Simon Josefsson  <simon@josefsson.org>
32491
32492         * modules/pty: New file.
32493         * modules/pty-tests: New file.
32494         * m4/pty.m4: New file.
32495         * tests/test-pty.c: New file.
32496         * doc/glibc-headers/pty.texi: Modified.
32497         * doc/glibc-functions/forkpty.texi: Modified.
32498         * doc/glibc-functions/openpty.texi: Modified.
32499
32500 2009-12-10  Bruno Haible  <bruno@clisp.org>
32501
32502         Avoid syntax error in C++ mode.
32503         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
32504
32505 2009-12-10  Bruno Haible  <bruno@clisp.org>
32506
32507         Use sed with option -e.
32508         * gnulib-tool (func_version, func_emit_copyright_notice,
32509         func_emit_initmacro_end, func_import, func_create_testdir): Pass
32510         option -e to sed.
32511         * modules/link-warning (Makefile.am): Likewise.
32512
32513 2009-12-10  Jim Meyering  <meyering@redhat.com>
32514
32515         mgetgroups: do not write bytes beyond end of malloc'd buffer
32516         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
32517         username, we call getgroups with a one-element-shorter buffer,
32518         but still told it the length was original, max_n_groups.
32519
32520 2009-12-09  Eric Blake  <ebb9@byu.net>
32521
32522         cloexec: relax license
32523         * modules/cloexec (Maintainer): Add myself.
32524         (License): Use LGPL, not GPL.
32525
32526         link-warning: optimize generation
32527         * modules/link-warning (Makefile.am): Reduce process usage.
32528
32529 2009-12-09  Bruno Haible  <bruno@clisp.org>
32530
32531         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
32532         workaround was added on 2009-11-17.
32533
32534 2009-12-09  Jim Meyering  <meyering@redhat.com>
32535             Bruno Haible  <bruno@clisp.org>
32536
32537         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
32538         * modules/link-warning (Makefile.am): Make the comment-removing sed
32539         command more robust in the face of bootstrap-prepended comment lines.
32540
32541 2009-12-09  Bruno Haible  <bruno@clisp.org>
32542
32543         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
32544         most one group.
32545
32546 2009-12-09  Simon Josefsson <simon@josefsson.org>
32547             Bruno Haible  <bruno@clisp.org>
32548
32549         * build-aux/link-warning.h: Add copyright notice.
32550         * modules/link-warning (Makefile.am): Generate link-warning.h from
32551         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
32552         * NEWS: Mention change in link-warning module.
32553         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
32554         * modules/dirent (Makefile.am): Add dependency to dirent.h.
32555         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
32556         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
32557         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
32558         * modules/math (Makefile.am): Add dependency to math.h.
32559         * modules/search (Makefile.am): Add dependency to search.h.
32560         * modules/signal (Makefile.am): Add dependency to signal.h.
32561         * modules/spawn (Makefile.am): Add dependency to spawn.h.
32562         * modules/stdio (Makefile.am): Add dependency to stdio.h.
32563         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
32564         * modules/string (Makefile.am): Add dependency to string.h.
32565         * modules/strings (Makefile.am): Add dependency to strings.h.
32566         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
32567         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
32568         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
32569         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
32570         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
32571         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
32572         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
32573         * modules/unistd (Makefile.am): Add dependency to unistd.h.
32574         * modules/wchar (Makefile.am): Add dependency to wchar.h.
32575
32576 2009-12-09  Bruno Haible  <bruno@clisp.org>
32577
32578         fchdir: Optimize away rpl_fstat when possible.
32579         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
32580         REPLACE_OPEN_DIRECTORY.
32581         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
32582
32583 2009-12-09  Bruno Haible  <bruno@clisp.org>
32584
32585         * lib/fchdir.c: Update comment.
32586
32587 2009-12-09  Bruno Haible  <bruno@clisp.org>
32588
32589         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
32590
32591 2009-12-08  Eric Blake  <ebb9@byu.net>
32592
32593         fchdir: avoid memory leak on re-registration.
32594         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
32595
32596 2009-12-08  Jim Meyering  <meyering@redhat.com>
32597
32598         init.sh: avoid Solaris 10 /bin/sh portability problem
32599         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
32600         sourced script:
32601           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
32602           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
32603           bar
32604         tests/init.sh relied on that, accepting a --set-path=DIR argument,
32605         and two tests used that idiom.
32606         * tests/init.sh: Update suggested usage comments.
32607         (path_prepend_): New function, to be used in place
32608         of the --src-path=DIR option.
32609         (setup_): Move PATH-prepending code into path_prepend_.
32610         * tests/test-pread.sh: Adapt to new usage.
32611         * tests/test-xalloc-die.sh: Likewise.
32612
32613 2009-12-08  Simon Josefsson  <simon@josefsson.org>
32614
32615         * doc/gnulib.texi (Glibc pty.h): Add.
32616         * doc/glibc-functions/forkpty.texi: Add.
32617         * doc/glibc-functions/openpty.texi: Add.
32618         Suggested by Bruno Haible.
32619
32620 2009-12-08  Eric Blake  <ebb9@byu.net>
32621
32622         fchdir: fix logic bugs
32623         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
32624         * tests/test-fchdir.c (main): Enhance test.
32625         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
32626         is in use.
32627
32628         dup2: fix logic bugs
32629         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
32630         REPLACE_DUP2 to decide when rpl_dup2 is needed.
32631         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
32632         exists.
32633         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
32634
32635 2009-12-07  Eric Blake  <ebb9@byu.net>
32636
32637         unlink: fix m4 detection
32638         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
32639
32640         unistd-safer: add unit test
32641         * modules/unistd-safer-tests: New file.
32642         * tests/test-dup-safer.c: Likewise.
32643         * tests/test-cloexec.c (setmode): Avoid compiler warning.
32644         * tests/test-dup2.c (setmode): Likewise.
32645         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
32646
32647         cloexec: preserve text vs. binary across dup_cloexec
32648         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
32649         mode.
32650         * modules/dup2-tests (Depends-on): Add binary-io.
32651         * modules/cloexec-tests (Depends-on): Likewise.
32652         * tests/test-dup2.c (setmode, is_mode): New helpers.
32653         (main): Add tests that translation mode is preserved.
32654         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
32655         Reported by Bruno Haible.
32656
32657         mgetgroups: reduce duplicate listings
32658         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
32659         resulting array.
32660         * tests/test-chown.h (test_chown): Simplify client.
32661         * tests/test-lchown.h (test_lchown): Likewise.
32662
32663 2009-12-06  Bruno Haible  <bruno@clisp.org>
32664
32665         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
32666         value.
32667
32668 2009-12-06  Bruno Haible  <bruno@clisp.org>
32669
32670         * lib/progname.c: Include stdio.h, stdlib.h.
32671         (set_program_name): Reject a NULL argument.
32672
32673 2009-12-05  Eric Blake  <ebb9@byu.net>
32674
32675         pipe2-safer: new module
32676         * modules/pipe2-safer: New file.
32677         * lib/unistd-safer.h (pipe2_safer): New prototype.
32678         * lib/unistd--.h (pipe2): New wrapper.
32679         * lib/pipe-safer.c (pipe2_safer): New function.
32680         * modules/pipe (Depends-on): Add pipe2-safer.
32681         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
32682
32683         stdlib-safer: preserve cloexec flag for mkostemp[s]
32684         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
32685         fd_safer_flag.
32686
32687         unistd-safer: allow preservation of cloexec status via flag
32688         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
32689         prototypes.
32690         * lib/dup-safer.c (dup_safer_flag): New function.
32691         * lib/fd-safer.c (fd_safer_flag): Likewise.
32692         * modules/cloexec (configure.ac): Set witness.
32693
32694         test-dup2: enhance test
32695         * modules/dup2-tests (Depends-on): Add cloexec.
32696         * tests/test-dup2.c (main): Enhance test.
32697
32698         cloexec: add dup_cloexec
32699         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
32700         header and comments.
32701         * lib/cloexec.c (set_cloexec_flag): Add comments.
32702         (dup_cloexec): New function, with mingw implementation borrowed
32703         from...
32704         * lib/w32spawn.h (dup_noinherit): ...here.
32705         * modules/execute (Depends-on): Add cloexec.
32706         * modules/pipe (Depends-on): Likewise.
32707         * modules/cloexec (Depends-on): Add dup2.
32708         * modules/cloexec-tests (Files): New file.
32709         * tests/test-cloexec.c: Likewise.
32710
32711         test-xalloc-die: fix test for mingw
32712         * modules/xalloc-die-tests (Files): Add tests/init.sh.
32713         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
32714         directory and .exe suffix off argv[0] output.
32715
32716         test-fseeko: fix test for mingw
32717         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
32718         than undefining fseek, so test will pass on mingw.
32719
32720 2009-12-05  Bruno Haible  <bruno@clisp.org>
32721
32722         * lib/progname.h (set_program_name): Clarify specification.
32723         * lib/progname.c (set_program_name): Likewise.
32724         Reported by Jim Meyering.
32725
32726 2009-12-05  Jim Meyering  <meyering@redhat.com>
32727
32728         maint.mk: backslash-escape parens in default regexp
32729         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
32730         backslash-escape the literal parentheses.
32731
32732         maint.mk: news-date-check: use grep -E
32733         * top/maint.mk (today): Define a Make variable, not a...
32734         (news-date-check): ...shell variable.
32735         (news-date-regexp): Use the Make variable.
32736         Use grep's -E option.  Change the failing diagnostic to mention
32737         the variable, $(news-date-regexp).
32738
32739 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
32740
32741         maintainer-makefile: allow customization of NEWS entry format
32742         * top/maint.mk (news-date-regexp): New overridable variable.
32743         (news-date-check): Use it.
32744
32745 2009-12-04  Eric Blake  <ebb9@byu.net>
32746
32747         mgetgroups: add xgetgroups, and avoid ENOSYS failures
32748         * lib/mgetgroups.h (xgetgroups): New prototype.
32749         * lib/mgetgroups.c (xgetgroups): New wrapper.
32750         (mgetgroups): Handle ENOSYS.
32751         * modules/mgetgroups (Depends-on): Add realloc.
32752         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
32753
32754         mgetgroups: avoid argument promotion issues with -1
32755         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
32756         for invalid gid_t.
32757         * tests/test-chown.h (getegid, test_chown): Likewise.
32758         * tests/test-lchown.h (getegid, test_lchown): Likewise.
32759
32760 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
32761
32762         exclude: Fix header file problems.
32763         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
32764
32765 2009-12-01  Jim Meyering  <meyering@redhat.com>
32766
32767         fts: fts_open: do not let an empty string cause immediate failure
32768         This is required in support of GNU rm, for which the command
32769         "rm A '' B" must process and remove both A and B, in spite of
32770         the empty string argument.
32771         * lib/fts.c (fts_open): Do not let the presence of an empty string
32772         cause fts_open to fail immediately.  Most fts-using tools must be
32773         able to process all arguments, in order, and can be expected to
32774         diagnose such arguments themselves.
32775
32776 2009-11-30  Eric Blake  <ebb9@byu.net>
32777
32778         utimens: fix compilation error
32779         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
32780         Declare variable at right scope.
32781
32782 2009-11-29  Jim Meyering  <meyering@redhat.com>
32783
32784         bootstrap: handle perl-5.11's changed --version output
32785         * build-aux/bootstrap (get_version): Handle perl separately,
32786         since perl-5.11's --version output is different.
32787
32788 2009-11-28  Jim Meyering  <meyering@redhat.com>
32789
32790         userspec: depend on the inttostr module, too
32791         * modules/userspec (Depends-on): Add inttostr.
32792
32793         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
32794         * lib/userspec.c (parse_with_separator): Do not accept a user ID
32795         number of MAXUID when it evaluates to (uid_t) -1.
32796         Likewise for group ID.  Reported by Matt McCutchen in
32797         <http://savannah.gnu.org/bugs/?28113>
32798
32799         userspec: reformat to use spaces, not TABs
32800         * lib/userspec.c: Expand TABs to spaces.
32801         Add Emacs' "indent-tabs-mode: nil" hint.
32802
32803 2009-11-27  Eric Blake  <ebb9@byu.net>
32804
32805         getopt-gnu: flush out another BSD bug
32806         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
32807         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
32808         flush out BSD bug.
32809         * tests/test-getopt.h (test_getopt): End lists with NULL.
32810         * tests/test-getopt_long.h (test_getopt_long): Likewise.
32811         (test_getopt_long_posix): Enhance test.
32812         * modules/getopt-posix-tests (Depends-on): Add stdbool.
32813         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
32814         getopt-gnu.
32815         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32816         Likewise.
32817
32818 2009-11-27  Simon Josefsson  <simon@josefsson.org>
32819
32820         * modules/idpriv-droptemp-tests (Notice): Fix text.
32821
32822 2009-11-27  Jim Meyering  <meyering@redhat.com>
32823
32824         test-xalloc-die: avoid spurious failure due to libtool argv difference
32825         In a libtool-enabled project, this test would fail due to a difference
32826         in the emitted program name, e.g.,
32827         -test-xalloc-die: memory exhausted
32828         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
32829         Use program to avoid that.
32830         * modules/xalloc-die-tests (Depends-on): Add progname.
32831         * tests/test-xalloc-die.c: Include progname.h".
32832         (program_name): Remove decl.
32833         (main): Call set_program_name.
32834         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
32835
32836 2009-11-26  Richard Jones  <rjones@redhat.com>
32837
32838         w32sock: leave win32 error in place.
32839         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
32840
32841 2009-11-26  Eric Blake  <ebb9@byu.net>
32842
32843         init.sh: suggest to use skip_ and fail_ functions in comments
32844         * tests/init.sh: Add a sentence.
32845
32846 2009-11-25  Bruno Haible  <bruno@clisp.org>
32847
32848         init.sh: add documentation in comments
32849         * tests/init.sh: Add some developer and user documentation.
32850
32851 2009-11-26  Jim Meyering  <meyering@redhat.com>
32852
32853         init.sh: accommodate even those who specify bogus srcdir manually
32854         * tests/init.sh: Normally, srcdir is guaranteed by automake and
32855         configure-time tests to be sanitized, so that there is no need to
32856         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
32857         (with no double quotes) suffices.  However, since tests may be
32858         invoked manually, and since you may explicitly set srcdir to the
32859         name of a directory containing spaces, do quote its uses here.
32860         * tests/test-pread.sh: Likewise.
32861         Suggested by Bruno Haible.
32862
32863         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
32864         * tests/test-pread.sh: Write no data into the pipe, because
32865         test-pread actually reads none.  This avoids a diagnostic,
32866         "bash: echo: write error: Broken pipe", that arises in the unusual
32867         event something is ignoring SIGPIPE, and might be interpreted
32868         as some sort of failure.  Reported by Bruno Haible.
32869
32870 2009-11-25  Jim Meyering  <meyering@redhat.com>
32871
32872         test-pread: cover failure with ESPIPE and EINVAL
32873         * tests/test-pread.c (main): Test for failure, too.
32874         * tests/test-pread.sh: Invoke with stdin on a pipe.
32875         Suggested by Eric Blake.
32876
32877         pread: improvement and fix
32878         * modules/pread (Depends-on): Depend on lseek, for portability to
32879         e.g., mingw.  Suggested by Eric Blake.
32880         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
32881
32882         unistd.in.h: correct declaration of pread
32883         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
32884         Reported by Richard W.M. Jones.
32885
32886         test-pread.sh: distribute the test script
32887         * modules/pread-tests (Files): Include test-pread.sh.
32888
32889         test-pread.sh: clean up
32890         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
32891         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
32892         That is unnecessary, since it's always ".".
32893         Suggestion from Eric Blake.
32894
32895         test-pread.sh: make executable
32896         * tests/test-pread.sh: Set executable bit.
32897         Reported by Eric Blake.
32898
32899         correct typo in test-pread.sh
32900         * tests/test-pread.sh: Add #! line.
32901
32902         test pread
32903         * tests/test-pread.c: New file.
32904         * tests/test-pread.sh: Likewise.
32905         * modules/pread-tests: Likewise.
32906
32907         pread: new module
32908         * modules/pread: New file.
32909         * lib/unistd.in.h (pread): Define/declare.
32910         * lib/pread.c (pread): New file.
32911         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
32912         * modules/unistd (Makefile.am): Substitute witnesses.
32913         * doc/posix-functions/pread.texi (pread): Update.
32914         * MODULES.html.sh: Add pread.
32915
32916 2009-11-25  Jim Meyering  <meyering@redhat.com>
32917
32918         tests/init.sh: new file to be used via most *.sh tests
32919         * tests/init.sh: New file.
32920
32921 2009-11-25  Eric Blake  <ebb9@byu.net>
32922
32923         utimens: work around older Linux failure with symlinks
32924         * lib/utimens.c (lutimensat_works_really): New variable.
32925         (fdutimens, lutimens): Use it to manage kernels that support
32926         nanosecond times on files, but not on symlinks.
32927         Reported by Ondřej Vašík.
32928
32929         utimes: fix configure grammar
32930         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
32931
32932 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
32933
32934         regex: Fix fastmap for multibyte character ranges.
32935         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
32936         characters when a multibyte character range is included.
32937
32938 2009-11-22  Andy Wingo  <wingo@pobox.com>
32939
32940         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
32941         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
32942
32943 2009-11-24  Bruno Haible  <bruno@clisp.org>
32944
32945         doc: Most *_l functions exist in MacOS X 10.5.
32946         * doc/posix-functions/duplocale.texi: Update platforms list.
32947         * doc/posix-functions/freelocale.texi: Likewise.
32948         * doc/posix-functions/newlocale.texi: Likewise.
32949         * doc/posix-functions/uselocale.texi: Likewise.
32950         * doc/posix-functions/isalnum_l.texi: Likewise.
32951         * doc/posix-functions/isalpha_l.texi: Likewise.
32952         * doc/posix-functions/isblank_l.texi: Likewise.
32953         * doc/posix-functions/iscntrl_l.texi: Likewise.
32954         * doc/posix-functions/isdigit_l.texi: Likewise.
32955         * doc/posix-functions/isgraph_l.texi: Likewise.
32956         * doc/posix-functions/islower_l.texi: Likewise.
32957         * doc/posix-functions/isprint_l.texi: Likewise.
32958         * doc/posix-functions/ispunct_l.texi: Likewise.
32959         * doc/posix-functions/isspace_l.texi: Likewise.
32960         * doc/posix-functions/isupper_l.texi: Likewise.
32961         * doc/posix-functions/iswalnum_l.texi: Likewise.
32962         * doc/posix-functions/iswalpha_l.texi: Likewise.
32963         * doc/posix-functions/iswblank_l.texi: Likewise.
32964         * doc/posix-functions/iswcntrl_l.texi: Likewise.
32965         * doc/posix-functions/iswctype_l.texi: Likewise.
32966         * doc/posix-functions/iswdigit_l.texi: Likewise.
32967         * doc/posix-functions/iswgraph_l.texi: Likewise.
32968         * doc/posix-functions/iswlower_l.texi: Likewise.
32969         * doc/posix-functions/iswprint_l.texi: Likewise.
32970         * doc/posix-functions/iswpunct_l.texi: Likewise.
32971         * doc/posix-functions/iswspace_l.texi: Likewise.
32972         * doc/posix-functions/iswupper_l.texi: Likewise.
32973         * doc/posix-functions/iswxdigit_l.texi: Likewise.
32974         * doc/posix-functions/isxdigit_l.texi: Likewise.
32975         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
32976         * doc/posix-functions/strcasecmp_l.texi: Likewise.
32977         * doc/posix-functions/strcoll_l.texi: Likewise.
32978         * doc/posix-functions/strfmon_l.texi: Likewise.
32979         * doc/posix-functions/strftime_l.texi: Likewise.
32980         * doc/posix-functions/strncasecmp_l.texi: Likewise.
32981         * doc/posix-functions/strxfrm_l.texi: Likewise.
32982         * doc/posix-functions/tolower_l.texi: Likewise.
32983         * doc/posix-functions/toupper_l.texi: Likewise.
32984         * doc/posix-functions/towctrans_l.texi: Likewise.
32985         * doc/posix-functions/towlower_l.texi: Likewise.
32986         * doc/posix-functions/towupper_l.texi: Likewise.
32987         * doc/posix-functions/wcscoll_l.texi: Likewise.
32988         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
32989         * doc/posix-functions/wctrans_l.texi: Likewise.
32990         * doc/posix-functions/wctype_l.texi: Likewise.
32991         * doc/glibc-functions/strptime_l.texi: Likewise.
32992         * doc/glibc-functions/strtod_l.texi: Likewise.
32993         * doc/glibc-functions/strtof_l.texi: Likewise.
32994         * doc/glibc-functions/strtol_l.texi: Likewise.
32995         * doc/glibc-functions/strtold_l.texi: Likewise.
32996         * doc/glibc-functions/strtoll_l.texi: Likewise.
32997         * doc/glibc-functions/strtoul_l.texi: Likewise.
32998         * doc/glibc-functions/strtoull_l.texi: Likewise.
32999         * doc/glibc-functions/wcsftime_l.texi: Likewise.
33000         * doc/glibc-functions/wcstod_l.texi: Likewise.
33001         * doc/glibc-functions/wcstof_l.texi: Likewise.
33002         * doc/glibc-functions/wcstol_l.texi: Likewise.
33003         * doc/glibc-functions/wcstold_l.texi: Likewise.
33004         * doc/glibc-functions/wcstoll_l.texi: Likewise.
33005         * doc/glibc-functions/wcstoul_l.texi: Likewise.
33006         * doc/glibc-functions/wcstoull_l.texi: Likewise.
33007
33008 2009-11-24  Bruno Haible  <bruno@clisp.org>
33009
33010         duplocale: Fix logic bug.
33011         * lib/duplocale.c: Don't include <langinfo.h>.
33012         (_NL_LOCALE_NAME): Remove macro.
33013         (rpl_duplocale): Use setlocale instead of nl_langinfo.
33014         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
33015
33016 2009-11-23  Jim Meyering  <meyering@redhat.com>
33017
33018         test-update-copyright: don't hard-code /usr/bin/perl
33019         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
33020         perl to print the current year.  Gilles Espinasse reported that
33021         the replaced use of perl was hard-coded as /usr/bin/perl.
33022
33023 2009-11-23  Bruno Haible  <bruno@clisp.org>
33024
33025         duplocale: Add support for glibc 2.3.x.
33026         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
33027
33028 2009-11-22  Bruno Haible  <bruno@clisp.org>
33029
33030         vasnprintf: Tiny optimization.
33031         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
33032         MacOS X.
33033
33034 2009-11-22  Bruno Haible  <bruno@clisp.org>
33035
33036         Tests for module 'duplocale'.
33037         * modules/duplocale-tests: New file.
33038         * tests/test-duplocale.c: New file.
33039
33040         New module 'duplocale'.
33041         * m4/duplocale.m4: New file.
33042         * lib/locale.in.h (duplocale): New declaration.
33043         * lib/duplocale.c: New file.
33044         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
33045         gl_LOCALE_H_DEFAULTS): New macros.
33046         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
33047         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
33048         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
33049         REPLACE_DUPLOCALE.
33050         * modules/duplocale: New file.
33051         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
33052
33053 2009-11-22  Bruno Haible  <bruno@clisp.org>
33054
33055         * modules/locale-tests (configure.ac): Test for newlocale function.
33056         * tests/test-locale.c: When the system has extended locale functions,
33057         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
33058
33059         locale: Make locale_t available when possible.
33060         * lib/locale.in.h: Include <xlocale.h> when it exists.
33061         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
33062         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
33063         * modules/locale (Depends-on): Add extensions.
33064         (Makefile.am): Also substitute HAVE_XLOCALE_H.
33065         * doc/posix-headers/locale.texi: Document the problem with locale_t.
33066
33067 2009-11-22  Bruno Haible  <bruno@clisp.org>
33068
33069         Add comments.
33070         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
33071         invocation.
33072         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
33073         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33074         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33075
33076 2009-11-22  Bruno Haible  <bruno@clisp.org>
33077
33078         error: account for the possibility of freopen (stdout).
33079         * lib/error.c: Include <unistd.h>.
33080         (flush_stdout): New function, extracted from error and error_at_line.
33081         Determine stdout's fd dynamically.
33082         (error, error_at_line): Invoke flush_stdout.
33083         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
33084         * modules/error (Depends-on): Add unistd.
33085
33086 2009-11-22  Bruno Haible  <bruno@clisp.org>
33087
33088         diffseq: Add comment.
33089         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
33090
33091 2009-11-22  Jim Meyering  <meyering@redhat.com>
33092
33093         c-stack: avoid defining an unused static function
33094         * lib/c-stack.c (find_stack_direction): Do not define this function
33095         when it will not be used.
33096
33097         diffseq: avoid spurious gcc warnings
33098         * lib/diffseq.h (IF_LINT2): Define.
33099         (compareseq): Use it to initialize two members of "part".
33100         This avoids two used-uninitialized warnings.
33101
33102 2009-11-21  Jim Meyering  <meyering@redhat.com>
33103
33104         c-stack: avoid "ignoring return value of `write'" warning
33105         * lib/c-stack.c: Include "ignore-value.h".
33106         (die): Explicitly ignore each write return value.
33107         * modules/c-stack (Depends-on): Add ignore-value.
33108
33109 2009-11-21  Bruno Haible  <bruno@clisp.org>
33110
33111         diffseq: reduce scope of variable 'best'.
33112         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
33113         variable, earlier used for two different purposes.
33114
33115 2009-11-21  Jim Meyering  <meyering@redhat.com>
33116
33117         diffseq: remove useless assignment to "best"
33118         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
33119         assignment.  At that point "best" is already guaranteed to be zero.
33120
33121 2009-11-20  Eric Blake  <ebb9@byu.net>
33122
33123         build: mention ftp redirector in release announcements
33124         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
33125         values that used to come from cfg.mk; mention FTP redirect URL.
33126         * build-aux/announce-gen: Mention the mirror list.
33127         Suggested by Karl Berry.
33128
33129         nanosleep: improve port to mingw
33130         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
33131         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
33132         LIB_NANOSLEEP, but only when needed.
33133         * modules/select (Link): Document LIBSOCKET.
33134         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
33135         enough.
33136
33137         nanosleep: work around cygwin bug
33138         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
33139         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
33140         bug.
33141         (getnow): Delete, not needed.
33142         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
33143         LIB_CLOCK_GETTIME.
33144         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
33145         clock-time, gettime.
33146         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
33147         bug.
33148         * modules/nanosleep-tests: New test.
33149         * tests/test-nanosleep.c: New file.
33150
33151         sleep: work around cygwin bug
33152         * lib/sleep.c (rpl_sleep): Work around the bug.
33153         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
33154         (gl_PREREQ_SLEEP): Delete unused macro.
33155         * modules/sleep (Depends-on): Add verify.
33156         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
33157         * modules/unistd (Makefile.am): Substitute witness.
33158         * lib/unistd.in.h (sleep): Update prototype.
33159         * doc/posix-functions/sleep.texi (sleep): Document the bug.
33160         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
33161         * modules/sleep-tests (Depends-on): Check for alarm.
33162
33163 2009-11-20  Jim Meyering  <meyering@redhat.com>
33164
33165         maint.mk: improve sc_prohibit_magic_number_exit
33166         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
33167         so it does not match uses like System.exit(1).
33168         Add comments showing how to correct all offenders.
33169
33170 2009-11-19  Eric Blake  <ebb9@byu.net>
33171
33172         xalloc-die-tests: add missing library
33173         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
33174
33175         test-xvasprintf: silence compiler warnings
33176         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
33177         empty string from gcc.
33178
33179 2009-11-19  Jim Meyering  <meyering@redhat.com>
33180
33181         xfreopen: new module, from coreutils
33182         * modules/xfreopen: New module.
33183         * lib/xfreopen.c: New file.
33184         * lib/xfreopen.h: New file.
33185         * MODULES.html.sh (File stream based Input/Output"): Add it.
33186
33187 2009-11-19  Eric Blake  <ebb9@byu.net>
33188
33189         manywarnings: depend on warnings
33190         * modules/manywarnings (Depends-on): Add warnings.
33191
33192         build: avoid compiler warnings
33193         * lib/select.c (rpl_select): Delete unused variable.
33194         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
33195
33196 2009-11-18  Eric Blake  <ebb9@byu.net>
33197
33198         tests: avoid false negative with --with-packager
33199         * tests/test-version-etc.sh: Discard packager information.
33200         * tests/test-argp-version-etc-1.sh: Likewise.
33201         Reported by Mike Frysinger.
33202
33203         utimens: fix regression on Solaris
33204         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
33205         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
33206         can only change fd timestamps via futimesat.  Instead, use an
33207         additional witness macro to avoid BSD bug.
33208         Reported by Jim Meyering.
33209
33210 2009-11-17  Eric Blake  <ebb9@byu.net>
33211
33212         usleep: use it to simplify tests
33213         * modules/stat-time-tests (Depends-on): Add usleep.
33214         (configure.ac): Drop usleep check.
33215         * modules/chown-tests (Depends-on, configure.ac): Likewise.
33216         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
33217         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
33218         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
33219         * modules/openat-tests (Depends-on, configure.ac): Likewise.
33220         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
33221         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
33222         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
33223         Likewise.
33224         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
33225         * tests/test-lchown.h (nap): Likewise.
33226         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
33227         * tests/test-stat-time.c (nap): Likewise.
33228         * tests/test-utimens-common.h (nap): Update comments.
33229
33230         usleep: new module
33231         * modules/usleep: New file.
33232         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
33233         * lib/usleep.c (usleep): Likewise.
33234         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
33235         * modules/unistd (Makefile.am): Substitute witnesses.
33236         * lib/unistd.in.h (usleep): Add declaration.
33237         * doc/pastposix-functions/usleep.texi (usleep): Document this.
33238         * MODULES.html.sh (Date and time): Likewise.
33239         * modules/usleep-tests (Depends-on): New test.
33240         * tests/test-usleep.c: New file.
33241
33242         chown: work around OpenBSD bug
33243         * lib/chown.c (rpl_chown): Work around the bug.
33244         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
33245         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
33246         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
33247         * modules/chown (Depends-on): Add stdbool.
33248         * modules/lchown (Depends-on): Likewise.
33249         * doc/posix-functions/chown.texi (chown): Document the bug.
33250         * doc/posix-functions/lchown.texi (lchown): Likewise.
33251         * tests/test-lchown.h (test_chown): Relax test.
33252
33253         mkstemp: avoid conflict with C++ keyword template
33254         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
33255         * lib/mkostemp.c (mkostemp): Likewise.
33256         * lib/mkostemps.c (mkostemps): Likewise.
33257         * lib/mkstemp.c (mkstemp): Likewise.
33258         * lib/mkstemps.c (mkstemps): Likewise.
33259
33260         xalloc-die-tests: optimize
33261         * tests/test-xalloc-die.sh: Reduce number of processes.
33262
33263 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33264
33265         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
33266         patch from ludo@gnu.org (Ludovic Courtès).
33267
33268 2009-11-17  Jim Meyering  <meyering@redhat.com>
33269
33270         version-etc: use proper license string
33271         * modules/version-etc (License): Use LGPL, not LGPLv3+.
33272         * modules/version-etc-fsf: Likewise.
33273
33274 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33275
33276         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
33277         printed to stdout.  Deal with EOL differences.
33278
33279 2009-11-17  Eric Blake  <ebb9@byu.net>
33280
33281         unsetenv: work around Solaris bug
33282         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
33283         * lib/unsetenv.c (rpl_unsetenv): Work around it.
33284         Reported by Jim Meyering.
33285
33286         vasnprintf: avoid compiler warnings
33287         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
33288         variables.
33289         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
33290
33291 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33292
33293         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
33294         settings since xalloc-die is no longer the self test,
33295         xalloc-die.sh is.
33296
33297 2009-11-17  Jim Meyering  <meyering@redhat.com>
33298
33299         test-xalloc-die.sh: make the code agree with the commit log
33300         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
33301         at the end, just in case you happen to have a test-xalloc-die
33302         program in some other PATH directory.
33303
33304         test-xalloc-die.sh: fix a portability bug
33305         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
33306         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
33307         Otherwise, argv[0] (as often seen in diagnostics) would be too
33308         system-dependent, sometimes with, and sometimes without the leading "./".
33309
33310         version-etc-fsf: relax license to LGPLv3+
33311         * modules/version-etc-fsf (License): Relax license.
33312
33313 2009-11-16  Eric Blake  <ebb9@byu.net>
33314
33315         xalloc-die-tests: avoid printing null pointer
33316         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
33317         shell script.
33318         * tests/test-xalloc-die.c (program_name): Declare.
33319         * tests/test-xalloc-die.sh (tmpfiles): New file.
33320
33321         setenv, unsetenv: work around various bugs
33322         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
33323         (setenv) [HAVE_SETENV]: Work around bugs.
33324         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
33325         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
33326         for bugs.
33327         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
33328         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
33329         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
33330         * modules/stdlib (Makefile.am): Update substitutions.
33331         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
33332         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
33333         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
33334         * modules/setenv-tests: New test.
33335         * modules/unsetenv-tests: Likewise.
33336         * tests/test-setenv.c: New file.
33337         * tests/test-unsetenv.c: Likewise.
33338
33339 2009-11-16  Jim Meyering  <meyering@redhat.com>
33340
33341         version-etc: relax license to LGPLv3+
33342         * modules/version-etc (License): Relax license.
33343
33344         better AC_REQUIRE expanded-before-required-warning avoidance
33345         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
33346         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
33347         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
33348         which is no longer needed.
33349
33350 2009-11-16  Eric Blake  <ebb9@byu.net>
33351
33352         test-freading: clean up temporary file
33353         * tests/test-freading.c (main): Remove file on success, and use
33354         ASSERT more liberally.
33355         Reported by Jim Meyering.
33356
33357 2009-11-16  Jim Meyering  <meyering@redhat.com>
33358
33359         avoid new AC_REQUIRE expanded-before-required warnings
33360         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
33361         merely using it.
33362         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
33363         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
33364
33365 2009-11-15  Simon Josefsson  <simon@josefsson.org>
33366
33367         * tests/test-xalloc-die.c: New file.
33368         * modules/xalloc-die-tests: New file.
33369         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
33370         XFAIL_TESTS so it can be appended by modules.
33371
33372 2009-11-15  Simon Josefsson  <simon@josefsson.org>
33373
33374         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
33375         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
33376
33377 2009-11-14  Eric Blake  <ebb9@byu.net>
33378
33379         fnmatch: avoid compiler warning
33380         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
33381         to silence compiler warning about mismatch signedness in ?:.
33382         Reported by Robert Millan.
33383
33384         intprops: add double-inclusion guard
33385         * lib/intprops.h: Allow idempotent includes.
33386         Suggested by Bruce Korb.
33387
33388         openat: detect Solaris fchownat bug
33389         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
33390         penalizing glibc chownat when only lchownat is broken.
33391         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
33392         trailing slash bugs.
33393         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
33394         * modules/openat-tests (Files): Include more files.
33395         (Depends-on): Add mgetgroups, sleep, stat-time.
33396         (configure.ac): Add additional checks.
33397         (Makefile.am): Build new test.
33398         * tests/test-fchownat.c: New file.
33399
33400         lchown: detect Solaris and FreeBSD bug
33401         * lib/lchown.c (rpl_lchown): Work around bug.
33402         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
33403         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33404         * modules/unistd (Makefile.am): Populate it.
33405         * lib/unistd.in.h (lchown): Update declaration.
33406         * doc/posix-functions/lchown.texi (lchown): Document the bug.
33407         * modules/lchown-tests: New file.
33408         * tests/test-lchown.h (test_lchown): Likewise.
33409         * tests/test-lchown.c (main): Likewise.
33410
33411         chown: detect Solaris and FreeBSD bug
33412         * lib/chown.c (rpl_chown): Work around bug.
33413         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
33414         (gl_PREREQ_CHOWN): Delete.
33415         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33416         * modules/unistd (Makefile.am): Populate it.
33417         * lib/unistd.in.h (chown): Update declaration.
33418         * lib/lchown.c (chown): Update client.
33419         * modules/lchown (Depends-on): Add lstat.
33420         * doc/posix-functions/chown.texi (chown): Document the bug.
33421         * doc/posix-functions/getgroups.texi (getgroups): Document
33422         getgroups pitfall.
33423         * modules/chown-tests: New file.
33424         * tests/test-chown.h (test_chown): Likewise.
33425         * tests/test-chown.c (main): Likewise.
33426
33427 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
33428
33429         gnulib-tool: correctly detect absence of m4 directories
33430         * gnulib-tool: Avoid extra newline on data passed to wc -l.
33431
33432 2009-11-14  Jim Meyering  <meyering@redhat.com>
33433
33434         maint.mk: Prohibit inclusion of "xalloc.h" without use.
33435         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33436
33437 2009-11-14  John W. Eaton  <jwe@gnu.org>
33438
33439         strftime.h: wrap funtion declaration in extern "C" block
33440         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
33441
33442 2009-11-13  Eric Blake  <ebb9@byu.net>
33443
33444         getgroups: avoid compiler warning
33445         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
33446
33447         getgroups: work around FreeBSD bug
33448         * lib/getgroups.c (rpl_getgroups): Work around the bug.
33449         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
33450         * doc/posix-functions/getgroups.texi (getgroups): Document it.
33451         * tests/test-getgroups.c (main): Fix buffer overrun.
33452
33453         getgroups: avoid compilation failure
33454         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
33455         * modules/getgroups (Depends-on): Add stdint.
33456
33457 2009-11-13  Jim Meyering  <meyering@redhat.com>
33458
33459         test-getgroups: avoid compilation failure
33460         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
33461
33462 2009-11-13  Eric Blake  <ebb9@byu.net>
33463
33464         mgetgroups: new module, taken from coreutils
33465         * modules/mgetgroups: New file.
33466         * lib/mgetgroups.h: Likewise.
33467         * lib/mgetgroups.c (mgetgroups): Likewise.
33468         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
33469         * MODULES.html.sh (Users and groups): Mention it.
33470
33471         getgroups: don't expose GETGROUPS_T to user
33472         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
33473         an element at a time if GETGROUPS_T is wrong size.
33474         * lib/getugroups.h (getugroups): Change signature.
33475         * lib/unistd.in.h (getgroups): Likewise.
33476         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
33477         signature needs fixing.
33478         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
33479         AC_TYPE_GETGROUPS.
33480         * modules/group-member (Depends-on): Add getgroups.
33481         * lib/group-member.c (group_info, get_group_info): Use gid_t.
33482         (group_member): Rely on getgroups replacement.
33483         * lib/getugroups.c (getugroups): Use gid_t.
33484         * tests/test-getgroups.c (main): Likewise.
33485         * NEWS: Mention the signature change.
33486         * doc/posix-functions/getgroups.texi (getgroups): Mention the
33487         problem with signature.
33488         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
33489         GETGROUPS_T is still useful for setgroups.
33490
33491         getgroups, getugroups: provide stubs for mingw
33492         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
33493         * lib/getugroups.c (getugroups): Likewise.
33494         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
33495         function.  Modernize replacement scheme.
33496         (gl_PREREQ_GETGROUPS): Delete.
33497         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
33498         * modules/getgroups (configure.ac): Declare witness.
33499         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
33500         * modules/unistd (Depends-on): Substitute witness.
33501         * lib/unistd.in.h (getgroups): Declare replacement.
33502
33503         getgroups: avoid calling exit
33504         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
33505         drop xalloc.
33506         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
33507         dependencies.
33508         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
33509         exiting, in the rare case of malloc failure.
33510
33511         getgroups: fix logic error
33512         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
33513         has more than 20 groups.
33514         * modules/getgroups-tests: New test.
33515         * tests/test-getgroups.c: New file.
33516
33517 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33518
33519         * tests/test-base64.c: Improve.
33520
33521 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33522
33523         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
33524         Blake <ebb9@byu.net>.
33525
33526 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33527
33528         * tests/test-xvasprintf.c: Add %s%s related checks.
33529
33530 2009-11-12  Eric Blake  <ebb9@byu.net>
33531
33532         version-etc: match standards.texi style
33533         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
33534         and use <> only for URLs.
33535
33536 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
33537
33538         fts: do not fail on a submount during traversal
33539         * lib/fts.c (fts_build): Read the stat info again after opening
33540         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
33541         Original report at http://bugzilla.redhat.com/501848.
33542
33543 2009-11-12  Jim Meyering  <meyering@redhat.com>
33544
33545         bootstrap: sync from coreutils
33546         * build-aux/bootstrap (bootstrap_epilogue): New function.
33547         Use git_modules_config in one more place.  This make bootstrap's
33548         --gnulib-srcdir option more useful for testing.
33549
33550         bootstrap: generalize autoheader check
33551         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
33552         AC_CONFIG_HEADERS.
33553
33554 2009-11-11  Eric Blake  <ebb9@byu.net>
33555
33556         mkfifoat: use new modules for Solaris and BSD bugs
33557         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
33558         * lib/mkfifoat.c (mknodat): Split...
33559         * lib/mknodat.c (mknodat): ...into new file.
33560         * modules/mkfifoat (Files): Ship new file.
33561         (Depends-on): Add mkfifo, mknod.
33562         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
33563         (Depends-on): Add symlink.
33564         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
33565         redundant with test_mkfifo.h.
33566         (do_mkfifoat, do_mknodat): New helpers.
33567
33568         mknod: new module
33569         * modules/mknod: New file.
33570         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
33571         * lib/mknod.c (mknod): Likewise.
33572         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33573         defaults.
33574         * modules/sys_stat (Makefile.am): Substitute them.
33575         * lib/sys_stat.in.h (mknod): Declare replacement.
33576         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33577         Document it.
33578         * doc/posix-functions/mknod.texi (mknod): Likewise.
33579         * modules/mknod-tests: New test.
33580         * tests/test-mknod.c: Likewise.
33581
33582         mkfifo: new module
33583         * modules/mkfifo: New file.
33584         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
33585         * lib/mkfifo.c (mkfifo): Likewise.
33586         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33587         defaults.
33588         * modules/sys_stat (Makefile.am): Substitute them.
33589         * lib/sys_stat.in.h (mkfifo): Declare replacement.
33590         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33591         Document it.
33592         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
33593         * modules/mkfifo-tests: New test.
33594         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
33595         from test-mkfifoat.c.
33596         * tests/test-mkfifo.c: New file.
33597
33598         readlink: detect FreeBSD bug
33599         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
33600         slash on symlink.
33601         * doc/posix-functions/readlink.texi (readlink): Document the bug.
33602         * tests/test-readlink.h (test_readlink): Enhance test.
33603
33604         symlink: detect FreeBSD bug
33605         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
33606         slash on symlink.
33607         * doc/posix-functions/symlink.texi (symlink): Document the bug.
33608         * tests/test-symlink.h (test_symlink): Enhance test.
33609
33610 2009-11-10  Eric Blake  <ebb9@byu.net>
33611
33612         link: detect FreeBSD bug
33613         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
33614         symlink.
33615         * doc/posix-functions/link.texi (link): Document the bug.
33616         * tests/test-link.h (test_link): Enhance test.
33617         * tests/test-linkat.c (main): Update caller.
33618
33619         unlink, remove: detect FreeBSD bug
33620         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
33621         slash on symlink.
33622         * doc/posix-functions/unlink.texi (unlink): Document the bug.
33623         * doc/posix-functions/remove.texi (remove): Likewise.
33624         * tests/test-unlink.h (test_unlink): Enhance test.
33625         * tests/test-remove.c (main): Likewise.
33626
33627 2009-11-09  Eric Blake  <ebb9@byu.net>
33628
33629         rename: detect FreeBSD bug
33630         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
33631         slash on symlink.
33632         * modules/renameat-tests (Depends-on): Add filenamecat.
33633         * tests/test-rename.h (test_rename): Allow one more errno.
33634         * tests/test-renameat.c (main): Likewise.
33635         * doc/posix-functions/rename.texi (rename): Document the bug.
33636
33637         open: detect FreeBSD bug
33638         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
33639         symlink.
33640         * doc/posix-functions/open.texi (open): Document the bug.
33641         * doc/posix-functions/utimes.texi (utimes): Likewise.
33642         * tests/test-open.h (test_open): Add parameters, and test symlink
33643         handling.
33644         * tests/test-open.c (main): Adjust caller.
33645         * tests/test-fcntl-safer.c (main): Likewise.
33646         * modules/open-tests (Depends-on): Add stdbool, symlink.
33647         * modules/fcntl-safer-tests (Depends-on): Likewise.
33648         * tests/test-openat.c (main): Add test-open tests.
33649
33650         stat: detect FreeBSD bug
33651         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
33652         symlink.
33653         * doc/posix-functions/stat.texi (stat): Document the bug.
33654         * tests/test-stat.h (test_stat_func): Add argument.
33655         * tests/test-stat.c (main): Adjust caller.
33656         * tests/test-fstatat.c (main): Likewise.
33657         * modules/stat-tests (Depends-on): Add stdbool, symlink.
33658         Reported by Jim Meyering.
33659
33660 2009-11-09  James Youngman  <jay@gnu.org>
33661
33662         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
33663         * lib/strftime.c: Correct placement of #include "ignore-value.h".
33664
33665 2009-11-08  Jim Meyering  <meyering@redhat.com>
33666
33667         utimens: remove invalid futimesat call
33668         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
33669         It used the file descriptor of the target file as the DIR_FD
33670         parameter and NULL as the file name.  That caused failure with
33671         errno == EFAULT on FreeBSD-8.0-rc2
33672
33673 2009-11-07  Eric Blake  <ebb9@byu.net>
33674
33675         fflush, freadseek: use fseeko, not fseek
33676         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
33677         (clear_ungetc_buffer): Avoid potential problems on large files.
33678         * lib/freadseek.c (freadseek): Likewise.
33679         * modules/freadseek (Depends-on): Add fseeko.
33680         * modules/fseek (configure.ac): Set a witness.
33681         * tests/test-fflush.c (main): Use fseeko.
33682         * tests/test-fpurge.c (fseek): Disable link warning.
33683         * tests/test-freadable.c (fseek): Likewise.
33684         * tests/test-freading.c (fseek): Likewise.
33685         * tests/test-fseeko.c (fseek): Likewise.
33686         * tests/test-ftell.c (fseek): Likewise.
33687         * tests/test-ftello.c (fseek): Likewise.
33688         * tests/test-fwritable.c (fseek): Likewise.
33689         * tests/test-fwriting.c (fseek): Likewise.
33690
33691 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33692
33693         * modules/memchr (Depends-on): Drop getpagesize dependency.
33694
33695 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33696
33697         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
33698         Reported by Ludovic Courtès.
33699         * build-aux/pmccabe2html: Improve example usage.
33700         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
33701
33702 2009-11-06  Jim Meyering  <meyering@redhat.com>
33703
33704         do-release-commit-and-tag: New module.
33705         Automate the release-commit and tag process.
33706         * build-aux/do-release-commit-and-tag: New script, from coreutils.
33707         * modules/do-release-commit-and-tag: New file.
33708         * MODULES.html.sh (Support for maintaining and releasing): Add it.
33709
33710 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33711
33712         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
33713         because test-select.c uses inet_pton.
33714
33715 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33716
33717         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
33718         GETADDRINFO_LIB.  Bump serial number.
33719         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
33720         Suggested by Eric Blake <ebb9@byu.net>.
33721
33722 2009-11-05  Eric Blake  <ebb9@byu.net>
33723
33724         strtod: detect darwin bug
33725         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
33726         Reported by Leo Davis.
33727
33728         freopen-safer: new module
33729         * modules/freopen-safer: New module.
33730         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
33731         * lib/freopen-safer.c (freopen_safer): New file.
33732         * lib/stdio-safer.h (freopen_safer): New declaration.
33733         * lib/stdio--.h (freopen): New override.
33734         * MODULES.html.sh (File stream based Input/Output): Mention it.
33735         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
33736         freopen-safer module.
33737         * doc/posix-functions/stderr.texi (stderr): Likewise.
33738         * doc/posix-functions/stdin.texi (stdin): Likewise.
33739         * doc/posix-functions/stdout.texi (stdout): Likewise.
33740         * modules/freopen-safer-tests: New test.
33741         * tests/test-reopen-safer.c: New file.
33742
33743 2009-11-05  Jim Meyering  <meyering@redhat.com>
33744
33745         maint.mk: Prohibit inclusion of "close-stream.h" without use.
33746         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33747
33748 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33749
33750         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
33751
33752 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33753
33754         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
33755
33756 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33757
33758         Fix link error.
33759         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33760         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33761
33762 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33763
33764         * tests/test-func.c: Also test value of __func__.
33765
33766 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33767
33768         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
33769         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
33770
33771 2009-11-05  Bruno Haible  <bruno@clisp.org>
33772
33773         Fix link error.
33774         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33775         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33776         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
33777
33778 2009-11-05  Bruno Haible  <bruno@clisp.org>
33779
33780         Tests for module 'inet_pton'.
33781         * modules/inet_pton-tests: New file.
33782         * tests/test-inet_pton.c: New file.
33783
33784 2009-11-05  Bruno Haible  <bruno@clisp.org>
33785
33786         Tests for module 'inet_ntop'.
33787         * modules/inet_ntop-tests: New file.
33788         * tests/test-inet_ntop.c: New file.
33789
33790 2009-11-04  Eric Blake  <ebb9@byu.net>
33791
33792         stdlib-safer: wrap all mkstemp variants
33793         * modules/mkostemp (configure.ac): Set witness.
33794         * modules/mkostemps (configure.ac): Likewise.
33795         * modules/mkstemps (configure.ac): Likewise.
33796         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
33797         (mkstemps_safer): Wrap more functions.
33798         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
33799         wrapping.
33800         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
33801         (mkstemps_safer): Implement the wrappers.
33802
33803         mkstemps, mkostemps: new modules
33804         * modules/mkostemps: New module.
33805         * modules/mkstemps: Likewise.
33806         * lib/mkostemps.c (mkostemps): New file.
33807         * lib/mkstemps.c (mkstemps): Likewise.
33808         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
33809         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
33810         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
33811         * modules/stdlib (Makefile.am): Substitute them.
33812         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
33813         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
33814         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
33815         * doc/gnulib.texi (Glibc stdlib.h): Include them.
33816         * MODULES.html.sh (File system functions): Mention them.
33817
33818         tempname: resync from glibc
33819         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
33820         same values for __GT_FILE as glibc.  Abort even when assertions
33821         are disabled.
33822         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
33823         match its value otherwise.  Allow idempotent inclusion.
33824         * lib/mkdtemp.c (mkdtemp): Adjust caller.
33825         * lib/mkostemp.c (mkostemp): Likewise.
33826         * lib/mkstemp.c (mkstemp): Likewise.
33827         * lib/tmpfile.c (tmpfile): Likewise.
33828         * NEWS: Document this.
33829
33830         utimens: fix use of futimens on older Linux
33831         * lib/utimens.c (fdutimens): Use updated, rather than original,
33832         timespec to avoid bug in older Linux kernel.
33833         Reported by Simon Josefsson.
33834
33835 2009-11-04  Bruno Haible  <bruno@clisp.org>
33836
33837         Make num_processors more flexible and consistent.
33838         * lib/nproc.h (enum nproc_query): New type.
33839         (num_processors): Add a 'query' argument.
33840         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
33841         (num_processors): Add a 'query' argument. Test the value of the
33842         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
33843         mingw, count the number of CPUs available for the current process.
33844         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
33845         Check for sched_getaffinity and sched_getaffinity_np.
33846         * modules/nproc (Depends-on): Add c-ctype, extensions.
33847         * NEWS: Mention the change.
33848
33849 2009-11-03  Bruno Haible  <bruno@clisp.org>
33850
33851         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
33852
33853 2009-11-03  Jim Meyering  <meyering@redhat.com>
33854
33855         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
33856         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
33857         if it is defined.
33858
33859 2009-11-02  Eric Blake  <ebb9@byu.net>
33860
33861         mktime, timegm: share common declaration
33862         * lib/mktime-internal.h: New file.
33863         * lib/mktime.c: Use it rather than open-coding a declaration.
33864         * lib/timegm.c: Likewise.
33865         * modules/mktime (Files): Ship it.
33866         * modules/timegm (Files): Likewise.
33867         Suggested by Bruno Haible.
33868
33869         test-update-copyright: update test to match script changes
33870         * tests/test-update-copyright.sh: Avoid hard-coding perl
33871         location.  Don't update *.bak created by earlier runs.
33872
33873 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
33874             Simon Josefsson  <simon@josefsson.org>
33875             Bruno Haible  <bruno@clisp.org>
33876
33877         Fix link error on Solaris 8.
33878         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
33879         also in libnsl. Define also INET_PTON_LIB.
33880         * modules/inet_pton (Link): New section.
33881
33882 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33883             Bruno Haible  <bruno@clisp.org>
33884
33885         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
33886         * modules/inet_ntop (Link): New section.
33887         Reported by Boyan Kasarov <bkasarov@gmail.com>.
33888
33889 2009-11-02  Eric Blake  <ebb9@byu.net>
33890
33891         maint: avoid compiler warnings in m4 macros
33892         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
33893         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
33894
33895 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33896
33897         * m4/pmccabe2html.m4: Remove file.
33898         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
33899         function.  Change maintainer.
33900         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
33901         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
33902         Courtès).
33903
33904 2009-10-31  Eric Blake  <ebb9@byu.net>
33905
33906         fseeko: fix m4 regression
33907         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
33908         regression from 2009-10-27.
33909         Reported by Ralf Wildenhues.
33910
33911 2009-10-31  Jim Meyering  <meyering@redhat.com>
33912
33913         inttostr: aesthetics and improved (compile-time) safety
33914         Define inttype_is_signed rather than inttype_is_unsigned,
33915         since the sole use is via "#if inttype_is_signed".
33916         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
33917         inttype_is_unsigned.
33918         * lib/offtostr.c (inttype_is_signed): Likewise.
33919         * lib/uinttostr.c (inttype_is_signed): Likewise.
33920         * lib/umaxtostr.c (inttype_is_signed): Likewise.
33921         * lib/inttostr.c (inttostr): Use verify to cross-check the
33922         inttype_is_signed value and the signedness of the actual type.
33923         * modules/inttostr (Depends-on): Add verify.
33924
33925 2009-10-30  Eric Blake  <ebb9@byu.net>
33926
33927         build: avoid compiler warnings
33928         * lib/fchmodat.c (lchmod): Mark unused variables.
33929         * lib/getopt.c (_getopt_initialize): Likewise.
33930         * lib/mktime.c (__mktime_internal): Provide prototype.
33931         * lib/inttostr.c (inttostr): Avoid compiler warning even with
33932         older gcc that do not understand #pragma GCC diagnostic.
33933         * lib/uinttostr.c (inttype_is_unsigned): Define.
33934         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
33935
33936 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
33937
33938         stat: fix compilation on AIX
33939         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
33940         only see struct stat64.
33941
33942 2009-10-30  Eric Blake  <ebb9@byu.net>
33943
33944         exclude: make more robust
33945         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
33946         rather than masking a coding bug.
33947         Suggested by Bruno Haible.
33948
33949 2009-10-30  Jim Meyering  <meyering@redhat.com>
33950
33951         perl scripts: remove #!/usr/bin/perl in favor of more portable...
33952         Rather than putting #!/usr/bin/perl on the first line,
33953         start with a variant of what's recommended by "man perlrun" that
33954         invokes the first "perl" program from your shell's search path.
33955         * build-aux/gitlog-to-changelog: Replace #!... as above.
33956         Add a "Local Variables" perl mode setting.
33957         Prompted by a patch from Ludovic Courtès.
33958         Improved by Eric Blake.
33959         * build-aux/useless-if-before-free: Likewise.
33960         * build-aux/announce-gen: Likewise.
33961         * build-aux/update-copyright: Likewise.
33962
33963 2009-10-29  Eric Blake  <ebb9@byu.net>
33964
33965         filenamecat-lgpl: adjust clients
33966         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
33967         filenamecat.
33968         * modules/renameat (Depends-on): Likewise.
33969
33970         filenamecat: split into filenamecat-lgpl
33971         * modules/filenamecat-lgpl: New module.
33972         * modules/filenamecat (Files): Move library-safe files into
33973         filenamecat-lgpl.
33974         (Depends-on): Add filenamecat-lgpl.
33975         (configure.ac): Declare witness.
33976         * lib/filenamecat.h (file_name_concat): Only declare when using
33977         GPL module.
33978         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
33979         Move...
33980         * lib/filenamecat-lgpl.c: ...into new file.
33981         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
33982         (gl_FILE_NAME_CONCAT): Use it.
33983         * MODULES.html.sh (File system functions): Mention new module.
33984
33985         argp: avoid memory leak
33986         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
33987         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
33988         base_name, since the latter malloc()s and can call exit().
33989         Leak introduced 2006-07-03.
33990
33991         dirname-lgpl: adjust clients that don't need full dirname
33992         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
33993         * modules/filenamecat (Depends-on): Likewise.
33994         * modules/linkat (Depends-on): Likewise.
33995         * modules/mkancesdirs (Depends-on): Likewise.
33996         * modules/mkdir (Depends-on): Likewise.
33997         * modules/openat (Depends-on): Likewise.
33998         * modules/savewd (Depends-on): Likewise.
33999         * modules/rename (Depends-on): Likewise.
34000         (License): Relax license.
34001         * modules/mkdir-tests (Depends-on): Drop progname.
34002         (Makefile.am): Delete unneeded LDADD.
34003         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
34004
34005         dirname: split into dirname-lgpl
34006         * modules/dirname-lgpl: New module.
34007         * modules/dirname (Files): Move library-safe files into
34008         dirname-lgpl.
34009         (Depends-on): Add dirname-lgpl.
34010         (configure.ac): Declare witness.
34011         * modules/double-slash-root (License): Relax license.
34012         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
34013         module.
34014         * lib/dirname.c (dir_len, mdir_name): Move...
34015         * lib/dirname-lgpl.c: ...into new file.
34016         * lib/basename.c (last_component, base_len): Move...
34017         * lib/basename-lgpl.c: ...into new file.
34018         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
34019         (gl_DIRNAME): Use it.
34020         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
34021         Mention new module.
34022         * modules/dirname-tests (Depends-on): Add progname.
34023         * tests/test-dirname.c (program_name): Delete.
34024
34025         mkdir: make safe for libraries
34026         * modules/mkdir (Depends-on): Drop xalloc.
34027         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
34028         exit.
34029
34030         tests: avoid some compiler warnings
34031         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
34032         literals.
34033         * tests/test-memchr.c (main): Avoid type mismatch.
34034         * tests/test-arpa_inet.c (main): Avoid unused parameters.
34035         * tests/test-base64.c (main): Likewise.
34036         * tests/test-getdelim.c (main): Likewise.
34037         * tests/test-gethostname.c (main): Likewise.
34038         * tests/test-getline.c (main): Likewise.
34039         * tests/test-netinet_in.c (main): Likewise.
34040         * tests/test-select.c (open_server_socket, main): Likewise.
34041         * tests/test-select-stdin.c (main): Likewise.
34042         * tests/test-sockets.c (main): Likewise.
34043         * tests/test-strsignal.c (main): Likewise.
34044         * tests/test-sys_select.c (main): Likewise.
34045         * tests/test-sys_socket.c (main): Likewise.
34046         * tests/test-u64.c (main): Likewise.
34047         * tests/test-xfprintf-posix.c (main): Likewise.
34048         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
34049
34050         sockets: avoid compiler warning
34051         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
34052
34053         maint: detect usage(1) and other suspicious exits
34054         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
34055
34056 2009-10-29  Jim Meyering  <meyering@redhat.com>
34057
34058         timespec: long-to-int truncation could make timespec_cmp malfunction
34059         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
34060         a multiple of 2^32 nanoseconds as no difference.
34061
34062 2009-10-28  Jim Meyering  <meyering@redhat.com>
34063
34064         fprintftime: wrap macro code argument in "do {...} while(0)"
34065         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
34066         cpy macro must be a statement that can be followed by a semicolon.
34067         Now that the else clause contains a comment and is hence longer
34068         than one line, I require curly braces.  That in turn requires
34069         that we wrap this code block in the standard do...while(0).
34070
34071         fprintftime: remove stray semicolon from previous change
34072         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
34073
34074         fprintftime: avoid a warning about ignored fwrite return value
34075         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
34076         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
34077         that is unsafe.
34078         * modules/fprintftime (Depends-on): Add ignore-value.
34079
34080         exclude: avoid an unwarranted warning
34081         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
34082
34083 2009-10-27  Eric Blake  <ebb9@byu.net>
34084
34085         fseek: avoid compilation failure when fflush is replaced
34086         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
34087         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
34088         module is in use.
34089         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
34090         module is not in use; since REPLACE_FSEEK worked otherwise.
34091         (GNULIB_FTELLO): Likewise for ftell.
34092         Reported by Ian Beckwith and others.
34093
34094 2009-10-27  Bruno Haible  <bruno@clisp.org>
34095
34096         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
34097         Reported by Jim Meyering.
34098
34099 2009-10-27  Jim Meyering  <jim@meyering.net>
34100             Bruno Haible  <bruno@clisp.org>
34101
34102         Avoid warning despite dropping the return value of fwrite.
34103         * lib/unicodeio.c: Include ignore-value.h.
34104         (fwrite_success_callback): Explicitly ignore fwrite's return value.
34105         * modules/unicodeio (Depends-on): Add ignore-value.
34106
34107 2009-10-26  Eric Blake  <ebb9@byu.net>
34108
34109         areadlinkat: fix fallback path
34110         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
34111         pointer and zero.
34112
34113 2009-10-22  Pádraig Brady  <P@draigBrady.com>
34114
34115         Use a better IO block size for modern systems
34116         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
34117         * lib/md2.c: Likewise.
34118         * lib/md4.c: Likewise.
34119         * lib/md5.c: Likewise.
34120         * lib/sha1.c: Likewise.
34121         * lib/sha256.c: Likewise.
34122         * lib/sha512.c: Likewise.
34123
34124 2009-10-22  Eric Blake  <ebb9@byu.net>
34125
34126         tests: avoid several compiler warnings
34127         * tests/test-getcwd.c (main): Avoid buffer underflow.
34128         * tests/test-getdate.c (main): String literals are not safe with
34129         putenv, so use setenv.  Declare unused argument.
34130         * modules/getdate-tests (Depends-on): Add setenv.
34131         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
34132         problems with string literals in char *.
34133         * tests/test-hash.c (main): Avoid shadowing declaration.
34134         (insert_new): Treat string literals as char const *.
34135         * tests/test-getopt.h (test_getopt): Likewise.
34136         (getopt_loop): Alter types to minimize casting elsewhere.
34137         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
34138         (test_getopt_long_posix): Likewise.
34139         (do_getopt_long): Add wrapper to minimize casting.
34140         * tests/test-atexit.c (clear_temp_file): Use void.
34141         * tests/test-areadlink-with-size.c (main): Declare unused
34142         arguments.
34143         * tests/test-areadlink.c (main): Likewise.
34144         * tests/test-areadlinkat-with-size.c (main): Likewise.
34145         * tests/test-areadlinkat.c (main): Likewise.
34146         * tests/test-canonicalize-lgpl.c (main): Likewise.
34147         * tests/test-canonicalize.c (main): Likewise.
34148         * tests/test-dirent-safer.c (main): Likewise.
34149         * tests/test-dirname.c (main): Likewise.
34150         * tests/test-dup2.c (main): Likewise.
34151         * tests/test-fchdir.c (main): Likewise.
34152         * tests/test-fcntl-h.c (main): Likewise.
34153         * tests/test-fcntl-safer.c (main): Likewise.
34154         * tests/test-fdopendir.c (main): Likewise.
34155         * tests/test-fdutimensat.c (main): Likewise.
34156         * tests/test-fflush.c (main): Likewise.
34157         * tests/test-filenamecat.c (main): Likewise.
34158         * tests/test-filevercmp.c (main): Likewise.
34159         * tests/test-fopen-safer.c (main): Likewise.
34160         * tests/test-fopen.c (main): Likewise.
34161         * tests/test-fpending.c (main): Likewise.
34162         * tests/test-fpurge.c (main): Likewise.
34163         * tests/test-freading.c (main): Likewise.
34164         * tests/test-fstatat.c (main): Likewise.
34165         * tests/test-fsync.c (main): Likewise.
34166         * tests/test-futimens.c (main): Likewise.
34167         * tests/test-getndelim2.c (main): Likewise.
34168         * tests/test-gettimeofday.c (main): Likewise.
34169         * tests/test-getopt.c (main): Likewise.
34170         * tests/test-i-ring.c (main): Likewise.
34171         * tests/test-inttypes.c (main): Likewise.
34172         * tests/test-link.c (main): Likewise.
34173         * tests/test-lstat.c (main): Likewise.
34174         * tests/test-math.c (main): Likewise.
34175         * tests/test-md5.c (main): Likewise.
34176         * tests/test-memchr2.c (main): Likewise.
34177         * tests/test-memrchr.c (main): Likewise.
34178         * tests/test-mkdir.c (main): Likewise.
34179         * tests/test-mkdirat.c (main): Likewise.
34180         * tests/test-mkfifoat.c (main): Likewise.
34181         * tests/test-open.c (main): Likewise.
34182         * tests/test-openat-safer.c (main): Likewise.
34183         * tests/test-openat.c (main): Likewise.
34184         * tests/test-quotearg.c (main): Likewise.
34185         * tests/test-rawmemchr.c (main): Likewise.
34186         * tests/test-readlink.c (main): Likewise.
34187         * tests/test-remove.c (main): Likewise.
34188         * tests/test-rename.c (main): Likewise.
34189         * tests/test-renameat.c (main): Likewise.
34190         * tests/test-rmdir.c (main): Likewise.
34191         * tests/test-sha1.c (main): Likewise.
34192         * tests/test-signal.c (main): Likewise.
34193         * tests/test-sigaction.c (main): Likewise.
34194         * tests/test-stat.c (main): Likewise.
34195         * tests/test-stat-time.c (main): Likewise.
34196         * tests/test-stddef.c (main): Likewise.
34197         * tests/test-stdint.c (main): Likewise.
34198         * tests/test-stdio.c (main): Likewise.
34199         * tests/test-stdlib.c (main): Likewise.
34200         * tests/test-strchrnul.c (main): Likewise.
34201         * tests/test-strerror.c (main): Likewise.
34202         * tests/test-string.c (main): Likewise.
34203         * tests/test-strtod.c (main): Likewise.
34204         * tests/test-strverscmp.c (main): Likewise.
34205         * tests/test-symlink.c (main): Likewise.
34206         * tests/test-symlinkat.c (main): Likewise.
34207         * tests/test-sys_stat.c (main): Likewise.
34208         * tests/test-sys_time.c (main): Likewise.
34209         * tests/test-time.c (main): Likewise.
34210         * tests/test-unistd.c (main): Likewise.
34211         * tests/test-unlink.c (main): Likewise.
34212         * tests/test-unlinkat.c (main): Likewise.
34213         * tests/test-utimens.c (main): Likewise.
34214         * tests/test-utimensat.c (main): Likewise.
34215         * tests/test-version-etc.c (main): Likewise.
34216         * tests/test-wchar.c (main): Likewise.
34217         * tests/test-wctype.c (main): Likewise.
34218         * tests/test-xprintf-posix.c (main): Likewise.
34219         * tests/test-posixtm.c (main): Likewise.
34220         (STREQ): Delete unused macro.
34221         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
34222         shadowed variables.
34223         * tests/test-memchr.c (main): Likewise.
34224
34225 2009-10-21  Eric Blake  <ebb9@byu.net>
34226
34227         areadlinkat: avoid failure on older glibc
34228         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
34229         rather than mis-comparing 0 against FUNC_RESULT of char*.
34230
34231 2009-10-21  Bruno Haible  <bruno@clisp.org>
34232
34233         * modules/stpncpy (License): Relicense under LGPLv2+.
34234         Reported by David Lutterkort <lutter@redhat.com>.
34235
34236 2009-10-20  Eric Blake  <ebb9@byu.net>
34237
34238         utimensat: work around Solaris 9 bug
34239         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
34240         has trailing slash bugs.
34241         * tests/test-lutimens.h (test_lutimens): Enhance test.
34242         * tests/test-utimens.h (test_utimens): Likewise.
34243         * doc/posix-functions/utime.texi (utime): Enhance documentation.
34244         * doc/posix-functions/utimes.texi (utimes): Likewise.
34245         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34246         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
34247         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
34248         * doc/posix-functions/futimens.texi (futimens): Likewise.
34249
34250         fdutimensat: new module
34251         * modules/fdutimensat: New file.
34252         * lib/fdutimensat.c (fdutimensat): Likewise.
34253         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
34254         * MODULES.html.sh (File system functions): Mention module.
34255         * modules/fdutimensat-tests: New test.
34256         * tests/test-fdutimensat.c: Likewise.
34257
34258         doc: regenerate INSTALL
34259         * doc/INSTALL: Reflect recent autoconf update.
34260         * doc/INSTALL.ISO: Likewise.
34261         * doc/INSTALL.UTF-8: Likewise.
34262
34263 2009-10-20  Pádraig Brady  <P@draigBrady.com>
34264
34265         acl: warn if ACL support is not detected
34266         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
34267
34268 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
34269
34270         * lib/nproc.h: Add extern "C" block for C++.
34271
34272 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
34273             Bruno Haible  <bruno@clisp.org>
34274
34275         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
34276         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
34277         * doc/posix-functions/isalpha.texi: Likewise.
34278         * doc/posix-functions/isblank.texi: Likewise.
34279         * doc/posix-functions/iscntrl.texi: Likewise.
34280         * doc/posix-functions/isdigit.texi: Likewise.
34281         * doc/posix-functions/isgraph.texi: Likewise.
34282         * doc/posix-functions/islower.texi: Likewise.
34283         * doc/posix-functions/isprint.texi: Likewise.
34284         * doc/posix-functions/ispunct.texi: Likewise.
34285         * doc/posix-functions/isspace.texi: Likewise.
34286         * doc/posix-functions/isupper.texi: Likewise.
34287         * doc/posix-functions/isxdigit.texi: Likewise.
34288
34289 2009-10-18  Bruno Haible  <bruno@clisp.org>
34290
34291         Tests for module 'isblank'.
34292         * modules/isblank-tests: New file.
34293         * tests/test-isblank.c: New file.
34294
34295         New module 'isblank'.
34296         * lib/isblank.c: New file.
34297         * m4/isblank.m4: New file.
34298         * modules/isblank: New file.
34299         * doc/posix-functions/isblank.texi: Mention the new module.
34300
34301 2009-10-18  Bruno Haible  <bruno@clisp.org>
34302
34303         New module 'ctype'.
34304         * lib/ctype.in.h: New file.
34305         * m4/ctype.m4: New file.
34306         * modules/ctype: New file.
34307         * doc/posix-headers/ctype.texi: Mention the new module.
34308
34309 2009-10-18  Jim Meyering  <meyering@redhat.com>
34310
34311         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
34312         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
34313         right after its initialization, rather than farther down.
34314         Keeping these in close proximity makes it easier to ensure
34315         that each such variable is initialized.  E.g.,
34316
34317             LIB_CLOCK_GETTIME=
34318             AC_SUBST([LIB_CLOCK_GETTIME])
34319
34320         This change also increments these serial numbers.
34321         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
34322         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
34323         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
34324
34325 2009-10-18  Bruno Haible  <bruno@clisp.org>
34326
34327         Don't let environment variables perturb build.
34328         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
34329         (gl_PREREQ_GETHRXTIME): ... not here.
34330
34331 2009-10-18  Bruno Haible  <bruno@clisp.org>
34332
34333         Avoid symlink attack in localcharset module.
34334         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
34335         (O_NOFOLLOW): Define fallback.
34336         (get_charset_aliases): Don't open the file if it is a symbolic link.
34337         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
34338         gl_FCNTL_H.
34339         (gl_FCNTL_H): Require it.
34340         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
34341         * modules/localcharset (Files): Add m4/fcntl_h.m4.
34342         Reported by Fergal Glynn <fglynn@veracode.com>.
34343
34344 2009-10-18  Bruno Haible  <bruno@clisp.org>
34345
34346         Implement nproc for mingw.
34347         * lib/nproc.c: Include <windows.h>
34348         (num_processors): On native Windows platforms, try GetSystemInfo.
34349
34350 2009-10-18  Bruno Haible  <bruno@clisp.org>
34351
34352         Implement nproc for IRIX.
34353         * lib/nproc.c: Include <sys/sysmp.h>.
34354         (num_processors): On IRIX systems, try sysmp.
34355         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
34356
34357 2009-10-18  Bruno Haible  <bruno@clisp.org>
34358
34359         Implement nproc for HP-UX.
34360         * lib/nproc.c: Include <sys/pstat.h>
34361         (num_processors): On HP-UX systems, try pstat_getdynamic.
34362         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
34363         pstat_getdynamic.
34364
34365 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
34366             Bruno Haible  <bruno@clisp.org>
34367
34368         Implement nproc for NetBSD, OpenBSD.
34369         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
34370         (ARRAY_SIZE): New macro.
34371         (num_processors): On BSD systems, try sysctl of HW_NCPU.
34372         * m4/nproc.m4: New file.
34373         * modules/nproc (Files): Add m4/nproc.m4.
34374         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
34375         (Makefile.am): Instead, augment lib_SOURCES.
34376
34377 2009-10-18  Bruno Haible  <bruno@clisp.org>
34378
34379         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
34380         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
34381         sys/param.h.
34382
34383 2009-10-16  Eric Blake  <ebb9@byu.net>
34384
34385         utimensat: new module
34386         * modules/utimensat: New file.
34387         * lib/utimensat.c (utimensat): Likewise.
34388         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
34389         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
34390         so we can work around Linux bugs.
34391         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34392         * modules/sys_stat (Makefile.am): Substitute them.
34393         * lib/sys_stat.in.h (utimensat): Declare it.
34394         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34395         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34396         * modules/utimensat-tests: New test.
34397         * tests/test-utimensat.c: Likewise.
34398
34399         utimens: let lutimens work on non-symlinks
34400         * lib/utimens.c (lutimens): Fall back to utimens rather than
34401         failing with ENOSYS, when file is not a symlink.
34402         (utimens): Reduce redirection.
34403         * tests/test-lutimens.h (test_lutimens): Update test to cover
34404         non-symlinks.
34405         * tests/test-utimens.h (test_utimens): Update test to cover
34406         symlinks.
34407         * tests/test-utimens.c (main): Update caller.
34408
34409         utimens: cache whether utimensat syscall works
34410         * lib/utimens.c (utimensat_works_really): New cache variable.
34411         (fdutimens, lutimens): Use it to avoid failing syscall.
34412
34413         test-stat-time, test-utimens: improve portability
34414         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
34415         ext4 on alpha, and for cygwin.
34416         * tests/test-utimens-common.h: New file.
34417         (nap): Factor delays into single function.
34418         * tests/test-lutimens.h (test_lutimens): Use new header.
34419         * tests/test-futimens.h (test_futimens): Likewise.
34420         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
34421         timestamps to occur from same machine, as was done previously for
34422         test_utimens.
34423         * modules/utimens-tests (Files): Ship new file.
34424         * modules/futimens-tests (Files): Likewise.
34425         Reported in part by Jim Meyering.
34426
34427         sys_stat: sort replacement declarations
34428         * lib/sys_stat.in.h: Sort declarations.
34429         * lib/futimens.c (futimens): Fix typo.
34430
34431 2009-10-15  Jim Meyering  <meyering@redhat.com>
34432
34433         don't let environment settings perturb build
34434         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
34435         could cause a configure-time and/or build-time malfunction.
34436         Typically, a configure-time function-in-library test is performed
34437         via code like this:
34438
34439           LIB_VAR=
34440           AC_SUBST([LIB_VAR])
34441           prefix_saved_LIBS=$LIBS
34442             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
34443                        [test "$ac_cv_search_FUNC" = "none required" ||
34444                         LIB_VAR=$ac_cv_search_FUNC])
34445           LIBS=$prefix_saved_LIBS
34446
34447         However, in each of the files affected by this change, the LIB_VAR=
34448         initialization was omitted.  Thus, when set in the environment, its
34449         value would propagate into generated Makefiles when FUNC is not found
34450         in LIB_NAME.
34451         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
34452         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
34453         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
34454
34455 2009-10-14  Eric Blake  <ebb9@byu.net>
34456
34457         fchdir: avoid infinite recursion in mingw
34458         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
34459         recursing.
34460
34461         test-stat-time: port to mingw
34462         * tests/test-stat-time.c (force_unlink): Return a value.
34463         (test_ctime) [W32]: Fix compilation error.
34464         (nap): Don't call usleep with too large an argument.  Use
34465         force_unlink.
34466         * doc/pastposix-functions/usleep.texi (usleep): Document the
34467         portability issue.
34468
34469 2009-10-13  Jim Meyering  <meyering@redhat.com>
34470
34471         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
34472         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
34473         * modules/pipe-filter-ii: Likewise.
34474         * modules/sys_socket-tests: Likewise.
34475         * modules/tsearch-tests: Likewise.
34476         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
34477         (check): Depend on it.
34478
34479 2009-10-12  Eric Blake  <ebb9@byu.net>
34480
34481         utimens-tests: port to NFS file systems
34482         * tests/test-utimens.h (test_utimens): Refactor utimecmp
34483         comparisons to avoid spurious failures from timestamp drift
34484         between NFS machines.
34485
34486 2009-10-12  Eric Blake  <ebb9@byu.net>
34487
34488         stat-time-tests: minor cleanups
34489         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
34490         * tests/test-stat-time.c (nap): Separate assignment from call.
34491         Suggested by Paolo Bonzini and Bruno Haible.
34492
34493         sys_stat: guarantee struct timespec
34494         * lib/sys_stat.in.h (includes): Always include <time.h>
34495         * modules/sys_stat (Depends-on): Add time.
34496         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
34497         mode_t permission values.
34498         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
34499         get at subsecond timestamps.
34500
34501 2009-10-10  Eric Blake  <ebb9@byu.net>
34502
34503         futimens: new module
34504         * modules/futimens: New file.
34505         * lib/futimens.c (futimens): Likewise.
34506         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
34507         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
34508         we can work around Linux bugs.
34509         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34510         * modules/sys_stat (Makefile.am): Substitute them.
34511         * lib/sys_stat.in.h (futimens): Declare it.
34512         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34513         * doc/posix-functions/futimens.texi (futimens): Likewise.
34514         * modules/futimens-tests: New test.
34515         * tests/test-futimens.c: Likewise.
34516
34517         utimens: introduce fdutimens
34518         * lib/utimens.h (fdutimens): New prototype.
34519         * lib/utimens.c (gl_futimens): Move guts...
34520         (fdutimens): ...to new interface.
34521         * tests/test-utimens.c (do_fdutimens): Use it.
34522
34523         utimens: add UTIME_NOW and UTIME_OMIT support
34524         * lib/utimens.c (validate_timespec, update_timespec): New helper
34525         functions.
34526         (gl_futimens, lutimens): Use them.
34527         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
34528         stdbool, sys_stat.
34529         (Link): Mention resulting library dependency.
34530         * modules/utimecmp (Link): Likewise.
34531         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
34532         (Makefile.am): Pick up library dependency.
34533         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
34534         definition.
34535         * tests/test-sys_stat.c: Test the definitions.
34536         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
34537         * NEWS: Document library dependency.
34538
34539         utimecmp: support symlink timestamps
34540         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
34541         hashing when possible.  Use pathconf when available.
34542         (SYSCALL_RESOLUTION): Recognize tighter resolution.
34543         * modules/utimecmp (Depends-on): Add lstat.
34544
34545         utimens: add lutimens interface
34546         * lib/utimens.c (lutimens): New function.
34547         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
34548         * lib/utimens.h (lutimens): Declare new interface.
34549         * tests/test-utimens.c (main): Enhance test.
34550         * tests/test-lutimens.h (test_lutimens): New file.
34551         * modules/utimens-tests (Files): Distribute it.
34552         (Depends-on): Add symlink.
34553         (configure.ac): Check for usleep.
34554
34555         utimens: validate futimens usage
34556         * lib/utimens.c (gl_futimens): Require valid fd up front, using
34557         fewer syscalls on failure later on.  Avoid compiler warning on
34558         mingw.
34559         * modules/utimens (Depends-on): Add dup2.
34560
34561         utimens: add test
34562         * modules/utimens-tests: New test.
34563         * tests/test-utimens.h: New file.
34564         * tests/test-futimens.h: Likewise.
34565         * tests/test-utimens.c: Likewise.
34566
34567         doc: mention timestamp portability issues
34568         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
34569         instead.
34570         * doc/posix-functions/utime.texi (utime): Likewise.
34571         * doc/posix-functions/utimes.texi (utimes): Likewise.
34572         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
34573         instead.
34574         * doc/posix-functions/futimens.texi (futimens): Mention utimens
34575         module.
34576         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34577         Mention weakness with symlink timestamps.
34578         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
34579         to utimensat/futimens instead.
34580         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
34581
34582         test-dup2: enhance test
34583         * tests/test-dup2.c (main): Also check AT_FDCWD.
34584
34585         test-stat-time: avoid more spurious failures
34586         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
34587         xfs; and avoid race if the two timestamps cross quantization edge.
34588
34589         relocatable: prefer 'file system' over 'filesystem'
34590         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
34591         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
34592         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
34593         * doc/relocatable.texi (Enabling Relocatability): Likewise.
34594         * lib/relocatable.c (compute_curr_prefix): Likewise.
34595
34596 2009-10-10  Jim Meyering  <meyering@redhat.com>
34597
34598         stat-time-tests: check for the usleep function
34599         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
34600
34601 2009-10-10  Bruno Haible  <bruno@clisp.org>
34602
34603         * modules/xnanosleep: Put the Link section after the Include section.
34604
34605 2009-10-09  Eric Blake  <ebb9@byu.net>
34606
34607         dup2: work around FreeBSD 6.1 bug
34608         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
34609         * doc/posix-functions/dup2.texi (dup2): Document it.
34610         Reported by Nelson H. F. Beebe and Jim Meyering.
34611
34612         test-stat-time: port to buggy NFS clients
34613         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
34614         (test_ctime): Also skip test if mtime and ctime are skewed.
34615
34616         maint: prefer 'file system' over 'filesystem'
34617         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
34618         * doc/posix-functions/lstat.texi (lstat): Likewise.
34619         * lib/file-has-acl.c (file_has_acl): Likewise.
34620         * lib/fwriteerror.c [TEST]: Likewise.
34621         * tests/test-areadlink.h (test_areadlink): Likewise.
34622         * tests/test-areadlinkat-with-size.c (main): Likewise.
34623         * tests/test-areadlinkat.c (main): Likewise.
34624         * tests/test-canonicalize-lgpl.c (main): Likewise.
34625         * tests/test-canonicalize.c (main): Likewise.
34626         * tests/test-fstatat.c (main): Likewise.
34627         * tests/test-linkat.c (main): Likewise.
34628         * tests/test-lstat.h (test_lstat_func): Likewise.
34629         * tests/test-mkdir.h (test_mkdir): Likewise.
34630         * tests/test-readlink.h (test_readlink): Likewise.
34631         * tests/test-remove.c (main): Likewise.
34632         * tests/test-rename.h (test_rename): Likewise.
34633         * tests/test-renameat.c (main): Likewise.
34634         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34635         * tests/test-symlink.h (test_symlink): Likewise.
34636         * tests/test-symlinkat.c (main): Likewise.
34637         * tests/test-unlink.h (test_unlink_func): Likewise.
34638         * tests/test-unlinkat.c (main): Likewise.
34639
34640         maint: make realtime library usage explicit
34641         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
34642         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
34643         * modules/settime (Link): Likewise.
34644         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
34645
34646         test-stat-time: speed up execution
34647         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
34648         warning on mingw.
34649         (nap): New helper function.
34650         (prepare_test): Use it to reduce sleep time.
34651         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
34652         execution.
34653         * modules/stat-time-tests (configure.ac): Check for usleep.
34654
34655 2009-10-09  Jim Meyering  <meyering@redhat.com>
34656
34657         selinux-h: always use getfilecon wrappers
34658         * lib/getfilecon.c: New file.
34659         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
34660         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
34661         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
34662         (fgetfilecon): Provide a stub.
34663         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
34664         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
34665         file unconditionally.
34666         When <selinux/selinux.h> is found, arrange to use wrappers.
34667         * modules/selinux-h (Files): Add getfilecon.c.
34668         (Makefile.am): Substitute include-next-related bits
34669         into the now-always-generated selinux/selinux.h file.
34670         * doc/glibc-functions/lgetfilecon.texi: New file.
34671         * doc/glibc-functions/fgetfilecon.texi: New file.
34672         * doc/glibc-functions/getfilecon.texi: New file.
34673         * doc/glibc-functions/getfilecon-desc.texi: New file.
34674         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
34675         which to pull in the new files.
34676         * MODULES.html.sh (Misc): Add selinux-h.
34677
34678 2009-10-08  Jim Meyering  <meyering@redhat.com>
34679
34680         unistd: fix comment typo
34681         * lib/unistd.in.h (euidaccess): Fix a comment typo.
34682
34683 2009-10-08  Eric Blake  <ebb9@byu.net>
34684
34685         areadlink: use SIZE_MAX consistently
34686         * modules/areadlink (Depends-on): Add stdint.
34687         * modules/areadlink-with-size (Depends-on): Likewise.
34688         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
34689         gives NULL; drop sys/types, since unistd gives size_t; and add
34690         stdint for SIZE_MAX.
34691         (SIZE_MAX): Rely on headers.
34692         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
34693         and add stdint.
34694         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
34695         (SIZE_MAX): Likewise.
34696         (INITIAL_BUF_SIZE): Turn into enum.
34697         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
34698
34699 2009-10-08  Jim Meyering  <meyering@redhat.com>
34700
34701         areadlinkat: avoid compilation failure
34702         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
34703         Fix typo in comment.
34704
34705 2009-10-07  Eric Blake  <ebb9@byu.net>
34706
34707         areadlinkat-with-size: new module
34708         * modules/areadlinkat-with-size: New module.
34709         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
34710         * lib/areadlink.h (areadlinkat): Declare it.
34711         * MODULES.html.sh (File system functions): Mention it.
34712         * modules/areadlinkat-with-size-tests: New test.
34713         * tests/test-areadlinkat-with-size.c: New file.
34714
34715         xreadlinkat: new module
34716         * modules/xreadlinkat: New module.
34717         * lib/xreadlinkat.c (xreadlinkat): New file.
34718         * lib/xreadlink.h (xreadlinkat): Declare it.
34719         * MODULES.html.sh (File system functions): Mention it.
34720
34721         areadlinkat: new module
34722         * lib/at-func.c (FUNC_FAIL): New define.
34723         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
34724         * modules/areadlinkat: New module.
34725         * lib/linkat.c (areadlinkat): Move...
34726         * lib/areadlinkat.c (areadlinkat): ...to new file.
34727         * lib/areadlink.h (areadlinkat): Declare it.
34728         * modules/linkat (Depends-on): Add areadlinkat.
34729         * MODULES.html.sh (File system functions): Mention it.
34730         * modules/areadlinkat-tests: New test.
34731         * tests/test-areadlinkat.c: New file.
34732
34733         areadlink, areadlink-with-size: add tests
34734         * modules/areadlink-tests: New test.
34735         * modules/areadlink-with-size-tests: Likewise.
34736         * tests/test-areadlink.h: New file.
34737         * tests/test-areadlink.c: Likewise.
34738         * tests/test-areadlink-with-size.c: Likewise.
34739
34740         maint: minor cleanups
34741         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
34742         _UNUSED_PARAMETER_ instead.
34743         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
34744         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
34745         * modules/linkat-tests (Files): Distribute test-link.h.
34746
34747         openat, utimens: whitespace cleanup
34748         * lib/openat.c: Prefer space throughout, rather than mix of 8
34749         spaces vs. tabs.
34750         * lib/at-func.c: Likewise.
34751         * lib/utimens.c: Likewise.
34752
34753         openat: avoid using wrong fd
34754         * lib/openat.c (openat_permissive): Reject user's fd if saving the
34755         working directory chooses same fd.
34756         * lib/at-func.c (AT_FUNC_NAME): Likewise.
34757
34758         mkdir, mkdirat: fix cygwin 1.5.x bug
34759         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
34760         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
34761         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
34762         bug.
34763         (gl_PREREQ_MKDIR): Delete unused macro.
34764         * modules/mkdir (Files): Track file rename.
34765         (configure.ac): Update macro name.
34766         * modules/openat (Depends-on): Add mkdir.
34767         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
34768
34769         mkdir, mkdirat: add tests
34770         * modules/mkdir-tests: New test.
34771         * tests/test-mkdir.h: New file.
34772         * tests/test-mkdir.c: Likewise.
34773         * tests/test-mkdirat.c: Likewise.
34774         * modules/openat-tests (Files): Add new files.
34775         (Makefile.am): Run new test.
34776
34777 2009-10-06  Eric Blake  <ebb9@byu.net>
34778
34779         doc: tweak *at function documentation
34780         * doc/posix-functions/faccessat.texi (faccessat): Mention
34781         known issue with replacement.
34782         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
34783         * doc/posix-functions/linkat.texi (linkat): Likewise.
34784         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
34785         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
34786         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34787         * doc/posix-functions/renameat.texi (renameat): Likewise.
34788         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
34789
34790         openat: fix GNU/Hurd bug in unlinkat
34791         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
34792         broken.
34793         * doc/posix-functions/unlink.texi (unlink): Document this.
34794         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
34795
34796         fdopendir: fix GNU/Hurd bug
34797         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
34798         allowing non-directory fds.
34799         * lib/fdopendir.c (rpl_fdopendir): Work around it.
34800         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
34801         * modules/dirent (Makefile.am): Substitute it.
34802         * lib/dirent.in.h (fdopendir): Declare replacement.
34803         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
34804         * tests/test-fdopendir.c (main): Test something other than
34805         /dev/null, since on Hurd that behaves like a directory.
34806
34807         test-symlink: port to GNU/Hurd
34808         * tests/test-symlink.h (test_symlink): Relax expected errno.
34809
34810         doc: tweak more cygwin information
34811         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
34812         now compatible with glibc.
34813         * doc/posix-functions/getopt.texi (getopt): Likewise.
34814
34815         getopt-gnu: add another test
34816         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
34817         guarantee behavior relied on by m4.
34818         * tests/test-getopt.c (main): Use it.
34819         * modules/getopt-posix-tests (Depends-on): Add setenv.
34820         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
34821
34822         getopt: fix compilation on darwin
34823         * lib/getopt.in.h (includes): Leave breadcrumbs during system
34824         include.
34825         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
34826         Reported by Ludovic Courtès.
34827
34828 2009-10-06  Bruno Haible  <bruno@clisp.org>
34829
34830         * modules/size_max (Description): Discourage its use.
34831         Reported by Simon Josefsson.
34832
34833 2009-10-06  Jim Meyering  <meyering@redhat.com>
34834
34835         linkat: avoid compilation failure
34836         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
34837
34838 2009-10-05  Eric Blake  <ebb9@byu.net>
34839
34840         linkat: support Linux 2.6.17
34841         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
34842         linkat on Linux, but allow cache variable override.
34843         * lib/linkat.c (rpl_linkat): Define override.
34844         * modules/linkat (Depends-on): Add symlinkat.
34845         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
34846         * modules/unistd (Makefile.am): Substitute it.
34847         * lib/unistd.in.h (linkat): Declare replacement.
34848         Reported by Pádraig Brady.
34849
34850         quotearg: port test to systems with C.UTF-8 locale
34851         * tests/test-quotearg.c (struct result_strings): Add another
34852         member, differentiating between C.ASCII and C.UTF-8 handling.
34853         (compare_strings): Add parameter.
34854         (main): Adjust all callers.
34855
34856         getopt: avoid clash with FreeBSD _getopt_internal
34857         * lib/getopt.in.h (_getopt_internal): Override the name.
34858         * lib/getopt_int.h (includes): Pick up any overrides.
34859         Reported by Reuben Thomas.
34860
34861         hash: allow C89 compilation
34862         * lib/hash.c (check_tuning): Move declaration before statement.
34863         Reported by Reuben Thomas.
34864
34865 2009-10-05  Karl Berry  <karl@gnu.org>
34866
34867         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
34868
34869 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
34870             Bruno Haible  <bruno@clisp.org>
34871
34872         * lib/uname.c (uname): Use a table-driven algorithm to compute
34873         Windows NT versions.
34874
34875 2009-10-04  Bruno Haible  <bruno@clisp.org>
34876
34877         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
34878         program_invocation_short_name.
34879         * modules/progname (configure.ac): Test for presence of
34880         program_invocation_short_name.
34881         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
34882
34883 2009-10-04  Bruno Haible  <bruno@clisp.org>
34884
34885         * lib/progname.c (set_program_name): Fix comment.
34886         Reported by Jim Meyering.
34887
34888 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34889             Bruno Haible  <bruno@clisp.org>
34890
34891         * lib/uname.c: Include <string.h>.
34892         (uname): Do only one call to GetVersionEx in the common case.
34893
34894 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34895             Bruno Haible  <bruno@clisp.org>
34896
34897         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
34898         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
34899         (uname): Add support for Windows CE and various non-x86 CPU types.
34900
34901 2009-10-03  Bruno Haible  <bruno@clisp.org>
34902
34903         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
34904         invocation to tests/configure.ac.
34905         Reported by Ian Beckwith <ianb@erislabs.net>.
34906
34907 2009-10-02  Eric Blake  <ebb9@byu.net>
34908
34909         fchdir: avoid compiler warning
34910         * lib/fchdir.c (canonicalize_file_name)
34911         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
34912
34913         test-open: support mingw errno values
34914         * tests/test-open.h (test_open): Relax test.
34915         * tests/test-fopen.h (test_fopen): Likewise.
34916         * tests/test-openat-safer.c (main): Likewise.
34917
34918         open: fix opening directory on mingw
34919         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
34920
34921         test-open: on GNU/Hurd, /dev/null is a directory
34922         * tests/test-fopen.h (main): Rename...
34923         (test_fopen): ...to this.  Use a guaranteed non-directory when
34924         confirming open behavior on trailing slash.
34925         * tests/test-openat-safer.c (main): Likewise.
34926         * tests/test-open.h (main): Likewise....
34927         (test_open): ...to this.
34928         * tests/test-fopen.c (main): Adjust caller.
34929         * tests/test-fopen-safer.c (main): Likewise.
34930         * tests/test-open.c (main): Likewise.
34931         * tests/test-fcntl-safer.c (main): Likewise.
34932         Reported by Samuel Thibault.
34933
34934         rename, fchdir: don't ignore chdir failure
34935         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
34936         * lib/rename.c (rpl_rename) [W32]: Likewise.
34937         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
34938         an empty destination directory if source cannot be renamed,
34939         although there is still possibility for failure.
34940         * doc/posix-functions/rename.texi (rename): Document the race.
34941         Reported by Jim Meyering.
34942
34943         maint: cleanup whitespace in recent commits
34944         * lib/rename.c (rpl_rename): Remove tabs.
34945         * tests/test-link.h (test_link): Likewise.
34946         * lib/fchdir.c (get_name): Likewise.
34947         Reported by Jim Meyering.
34948
34949 2009-10-02  Ben Pfaff  <blp@gnu.org>
34950
34951         relocatable-prog-wrapper: Add missing dependency on
34952         double-slash-root.
34953         * modules/relocatable-prog-wrapper: Add dependency.
34954         Reported by Ian Beckwith <ianb@erislabs.net>.
34955
34956 2009-10-02  Eric Blake  <ebb9@byu.net>
34957
34958         renameat: fix Solaris bugs
34959         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
34960         needed fixing.
34961         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
34962         * modules/stdio (Makefile.am): Substitute it.
34963         * lib/stdio.in.h (renameat): Declare replacement.
34964         * lib/renameat.c (rpl_renameat): Implement fix.
34965
34966         renameat: new module
34967         * modules/renameat: New file.
34968         * lib/renameat.c (renameat): Likewise.
34969         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
34970         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
34971         * modules/stdio (Makefile.am): Substitute them.
34972         * lib/stdio.in.h (renameat): Declare it.
34973         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34974         * doc/posix-functions/renameat.texi (renameat): Likewise.
34975         * modules/renameat-tests: New test.
34976         * tests/test-renameat.c: Likewise.
34977
34978         rename: fix mingw bugs
34979         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
34980         directory overwrite bugs.
34981
34982         rename: fix another cygwin 1.5 bug
34983         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
34984         checks.
34985         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
34986         unnecessary cygwin workarounds.  Also work around bug with moving
34987         full directory onto an empty one.
34988         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
34989
34990         rename-dest-slash: merge into rename module
34991         * modules/rename-dest-slash (Status): Mark obsolete.
34992         (Depends-on): Add rename.
34993         (Files): Let rename do it all.
34994         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
34995         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
34996         * m4/rename-dest-slash.m4: ...so this file can be deleted.
34997         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
34998         * lib/rename.c (rpl_rename): Update comments.
34999
35000         rename: fix cygwin 1.5.x bugs
35001         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
35002         * lib/rename.c (rpl_rename): Work around them.
35003         * modules/rename (Depends-on): Add same-inode.
35004
35005         rename: fix Solaris 10 bug
35006         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
35007         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
35008         was the only bug.
35009
35010         rename: fix Solaris 9 bug
35011         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
35012         on non-directory.  Avoid calling exit.
35013         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
35014         strdup.
35015         * modules/rename-tests (Depends-on): Drop lstat.
35016         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
35017         (gl_PREREQ_RENAME): Delete unused macro.
35018
35019         rename-dest-slash: fix NetBSD bug
35020         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
35021         links.
35022         * modules/rename-dest-slash (Depends-on): Add same-inode.
35023
35024         rename-tests: new test, exposes several platform bugs
35025         * modules/rename-tests: New file.
35026         * tests/test-rename.h: Likewise.
35027         * tests/test-rename.c: Likewise.
35028         * doc/posix-functions/rename.texi (rename): Improve documentation,
35029         including bugs that will eventually be fixed in gnulib.
35030
35031 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
35032
35033         * lib/uname.c: Include <stdlib.h>
35034         (uname): Assume version info is available.
35035
35036 2009-10-02  Jim Meyering  <meyering@redhat.com>
35037
35038         gnu-web-doc-update: correct --help output
35039         * build-aux/gnu-web-doc-update: Make --help output relevant.
35040
35041         gnu-web-doc-update: add standard options
35042         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
35043
35044         gnu-web-doc-update: New module.
35045         Use this script to automatically update the on-line web documentation
35046         for your GNU project at http://www.gnu.org/software/$pkg/manual/
35047         * modules/gnu-web-doc-update: New file, from coreutils.
35048         * build-aux/gnu-web-doc-update: New script.
35049
35050 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
35051
35052         link: LoadLibrary is not needed.
35053         * lib/link.c: Use GetModuleHandle.
35054
35055 2009-10-01  Eric Blake  <ebb9@byu.net>
35056
35057         getopt: bump serial number
35058         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
35059         change.
35060
35061         tests: tighten link, rmdir, and remove tests
35062         * tests/test-link.h (includes): No need to use <config.h> here.
35063         Clean up if directory hard link was created, otherwise test for
35064         trailing '.'.
35065         * tests/test-linkat.c (main): Simplify.
35066         * tests/test-remove.c (main): Enhance test for trailing '.'.
35067         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35068
35069 2009-10-01  Jim Meyering  <meyering@redhat.com>
35070
35071         maint.mk: requiring "make major" was annoying, for a "minor" release.
35072         What is intended is "stable", to contrast with alpha and beta,
35073         so require "make stable", not "make major".
35074         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
35075         (get_tool_versions): Likewise.
35076         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
35077
35078 2009-09-30  Ben Pfaff  <blp@gnu.org>
35079
35080         Fix broken build of replacement for Windows tmpfile().
35081         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
35082         flags argument added along with the 'mkostemp' module.
35083
35084 2009-09-28  Bruno Haible  <bruno@clisp.org>
35085
35086         Avoid identifier clash with POSIX function 'remove' defined as a macro.
35087         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
35088         to 'remove_elt'.
35089         (gl_list_remove): Update.
35090         * lib/gl_list.c (gl_list_remove): Update.
35091         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
35092         to 'remove_elt'.
35093         (gl_oset_remove): Update.
35094         * lib/gl_list.c (gl_oset_remove): Update.
35095         Reported by Eric Blake.
35096
35097 2009-09-28  Eric Blake  <ebb9@byu.net>
35098
35099         doc: mention yet more cygwin 1.7 status
35100         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
35101         cygwin.
35102         * doc/glibc-functions/execvpe.texi (execvpe): New file.
35103         * doc/gnulib.texi (Glibc unistd.h): Mention it.
35104
35105         argp: fix test failure
35106         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
35107         that are not upper-case.  Pass correct range to tolower.
35108
35109 2009-09-27  Jim Meyering  <meyering@redhat.com>
35110
35111         test-yesno: work around sparc-dash here-document infelicity
35112         Without this change, the literal \177 byte in a here document
35113         would make dash 0.5.5.1-3 access uninitialized memory.
35114         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
35115         Instead, use a marker, "@", and filter through tr to create the desired
35116         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
35117
35118 2009-09-27  Bruno Haible  <bruno@clisp.org>
35119
35120         Disable untested support for new flavours of ACLs on AIX.
35121         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
35122         progress.
35123         * lib/set-mode-acl.c (qset_acl): Likewise.
35124
35125 2008-12-07  Bruno Haible  <bruno@clisp.org>
35126
35127         Add support for new flavours of ACLs on AIX. (Untested.)
35128         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
35129         (file_has_acl): Add support for newer AIX.
35130         * lib/set-mode-acl.c (qset_acl): Likewise.
35131         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
35132         Rainer Tammer <tammer@tammer.net>.
35133
35134 2009-09-26  Eric Blake  <ebb9@byu.net>
35135
35136         argp: fix compilation of getopt
35137         * lib/getopt.in.h (includes): Use different guard than glibc.
35138         Reported by Sergey Poznyakoff.
35139
35140         doc: mention more cygwin 1.7 status
35141         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
35142         bug.
35143         * doc/posix-functions/execl.texi (execl): Likewise.
35144         * doc/posix-functions/execle.texi (execle): Likewise.
35145         * doc/posix-functions/execlp.texi (execlp): Likewise.
35146         * doc/posix-functions/execv.texi (execv): Likewise.
35147         * doc/posix-functions/execve.texi (execve): Likewise.
35148         * doc/posix-functions/execvp.texi (execvp): Likewise.
35149         * doc/glibc-functions/canonicalize_file_name.texi
35150         (canonicalize_file_name): Cygwin 1.7 now provides this.
35151         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
35152         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
35153         on AT_SYMLINK_NOFOLLOW.
35154
35155 2009-09-24  Eric Blake  <ebb9@byu.net>
35156
35157         test-linkat: make test more robust
35158         * tests/test-linkat.c (main): Avoid collision with EEXIST.
35159
35160         getopt: fix inclusion guards for cygwin
35161         * modules/getopt-posix (Depends-on): Add include-next.
35162         (Makefile.am): Substitute more items in replacement header.
35163         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
35164         <getopt.h>.
35165         * lib/getopt.in.h (includes): Use split inclusion guard, and
35166         prefer <getopt.h> over include <unistd.h> when one is present.
35167         (option): Also override name of 'struct option'.
35168
35169         same-inode: revert prior change; it is not yet ready
35170         * NEWS: Undo mention of this change.
35171         * lib/same-inode.h (same-inode.h): Undo tri-state change.
35172         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
35173         * lib/cycle-check.c (cycle_check): Likewise.
35174         * lib/same.c (same_name): Likewise.
35175         * lib/at-func2.c (at_func2): Likewise.
35176
35177 2009-09-23  Eric Blake  <ebb9@byu.net>
35178
35179         linkat: new module
35180         * modules/linkat: New file.
35181         * lib/at-func2.c (at_func2): Likewise.
35182         * lib/linkat.c (linkat): Likewise.
35183         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
35184         * lib/openat-priv.h (at_func2): Add declaration.
35185         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35186         * modules/unistd (Makefile.am): Substitute them.
35187         * lib/unistd.in.h (linkat): Declare it.
35188         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35189         * doc/posix-functions/linkat.texi (linkat): Likewise.
35190         * doc/posix-functions/link.texi (link): Tweak wording.
35191         * tests/test-link.c (main): Move guts...
35192         * tests/test-link.h (test_link): ...into new file.
35193         * modules/linkat-tests: New test.
35194         * tests/test-linkat.c: Likewise.
35195         * modules/link-tests (Files): Ship new file.
35196         (Depends-on): Add stdbool.
35197
35198         dirname: add library-safe mdir_name
35199         * lib/dirname.h (mdir_name): New prototype.
35200         * lib/dirname.c (dir_name): Move guts...
35201         (mdir_name): ...to new function that avoids xalloc_die.
35202
35203         fchdir: another mingw fix
35204         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
35205         * lib/fchdir.c (get_name): New helper method; skips canonicalize
35206         on mingw (where it has not yet been ported), and make it optional
35207         elsewhere.
35208         (_gl_register_fd): Use it.
35209
35210         same-inode: make SAME_INODE tri-state, to port to mingw
35211         * NEWS: Mention this change.
35212         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
35213         st_ino always being 0.
35214         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
35215         * lib/cycle-check.c (cycle_check): Likewise.
35216         * lib/same.c (same_name): Likewise.
35217
35218         lstat: avoid mingw compilation error
35219         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
35220         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
35221         lstat ourselves.
35222         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
35223         was adequate.
35224         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
35225         the checks for lstat.
35226         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
35227
35228         link: fix test failure on Solaris 9
35229         * lib/link.c (rpl_link): Don't assume link will catch bogus
35230         trailing slash on source.
35231
35232         test-symlinkat: enhance test
35233         * tests/test-readlink.c (main): Move guts...
35234         * tests/test-readlink.h (test_readlink): ...into new file.
35235         * tests/test-symlink.c (main): Move guts...
35236         * tests/test-symlink.h (test_symlink): ...into new file.
35237         * tests/test-symlinkat.c (main): Use new files for further
35238         coverage.
35239         (do_symlink, do_readlink): New helper functions.
35240         * modules/symlink-tests (Files): Ship new file.
35241         (Depends-on): Add stdbool.
35242         * modules/readlink-tests (Files): Ship new file.
35243         (Depends-on): Add stdbool.
35244         * modules/symlinkat-tests (Files): Use new files.
35245
35246 2009-09-23  Eric Blake  <ebb9@byu.net>
35247
35248         readlink: document portability issue with symlink length
35249         * doc/posix-functions/lstat.texi (lstat): Mention that some file
35250         systems have bogus st_size on symlinks, and mention the
35251         areadlink-with-size module.
35252         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
35253         * doc/posix-functions/readlink.texi (readlink): Mention the
35254         areadlink module, and ERANGE failure.
35255         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35256         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
35257
35258         readlink: fix Solaris 9 bug with trailing slash
35259         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
35260         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
35261         * doc/posix-functions/readlink.texi (readlink): Document this.
35262         * modules/readlink-tests: New test.
35263         * tests/test-readlink.c: Likewise.
35264
35265         readlink: fix cygwin 1.5.x bug with return type
35266         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
35267         * lib/unistd.in.h (readlink): Use ssize_t.
35268         * lib/readlink.c (readlink): Likewise.
35269         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35270         * modules/unistd (Makefile.am): Substitute it.
35271         * lib/unistd.in.h (readlink): Declare replacement.
35272         * doc/posix-functions/readlink.texi (readlink): Document this.
35273
35274         symlink: use throughout gnulib
35275         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
35276         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
35277         symlink is not used.
35278         * modules/symlinkat (Depends-on): Add symlink.
35279         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35280         * modules/canonicalize-tests (Depends-on): Likewise.
35281         * modules/lstat-tests (Depends-on): Likewise.
35282         * modules/openat-tests (Depends-on): Likewise.
35283         * modules/remove-tests (Depends-on): Likewise.
35284         * modules/rmdir-tests (Depends-on): Likewise.
35285         * modules/unlink-tests (Depends-on): Likewise.
35286         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
35287         * tests/test-canonicalize.c (symlink): Likewise.
35288         * tests/test-fstatat.c (symlink): Likewise.
35289         * tests/test-lstat.c (symlink): Likewise.
35290         * tests/test-remove.c (symlink): Likewise.
35291         * tests/test-rmdir.c (symlink): Likewise.
35292         * tests/test-unlink.c (symlink): Likewise.
35293         * tests/test-unlinkat.c (symlink): Likewise.
35294
35295         symlink: new module, for Solaris 9 bug
35296         * modules/symlink: New file.
35297         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
35298         * lib/symlink.c: Likewise.
35299         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
35300         * modules/unistd (Makefile.am): Substitute them.
35301         * lib/unistd.in.h (symlink): Declare replacement.
35302         * MODULES.html.sh (File system functions): Mention it.
35303         * doc/posix-functions/symlink.texi (symlink): Likewise.
35304         * modules/symlink-tests: New test.
35305         * tests/test-symlink.c: Likewise.
35306
35307 2009-09-23  Bruno Haible  <bruno@clisp.org>
35308
35309         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
35310         when needed.
35311         Test case: gnulib-tool --import --with-tests atexit inttypes.
35312         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
35313
35314 2009-09-23  Bruno Haible  <bruno@clisp.org>
35315
35316         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
35317         subcommand, not in a subshell.
35318
35319 2009-09-22  Eric Blake  <ebb9@byu.net>
35320
35321         unistd: sort replacement declarations
35322         * lib/unistd.in.h: Sort declarations.
35323
35324         open, openat: minor optimization
35325         * lib/open.c (open): If open succeeded, len is non-zero.
35326         * lib/openat.c (rpl_openat): Likewise.
35327
35328         link-follow: ensure correct result
35329         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
35330         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
35331         distinguish between possible failures.
35332
35333 2009-09-21  Eric Blake  <ebb9@byu.net>
35334
35335         fts: avoid compiler warning
35336         * lib/fts.c (dirent_inode_sort_may_be_useful)
35337         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
35338
35339 2009-09-19  Bruno Haible  <bruno@clisp.org>
35340
35341         * lib/progreloc.c (canonicalize_file_name): New declaration.
35342
35343 2009-09-19  Eric Blake  <ebb9@byu.net>
35344
35345         link: fix quoting
35346         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
35347
35348         openat: fix openat bugs on Solaris 9
35349         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
35350         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
35351         * modules/openat (Depends-on): Add open.
35352         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
35353         * modules/fcntl-h (Makefile.am): Substitute it.
35354         * lib/fcntl.in.h (openat): Declare replacement.
35355         * doc/posix-functions/openat.texi (openat): Document this.
35356
35357         openat: move fstatat and unlinkat into correct files
35358         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
35359         compiled.
35360         * lib/openat.c (fstatat, unlinkat): Move...
35361         * lib/fstatat.c (fstatat): ...into correct files.
35362         * lib/unlinkat.c (unlinkat): Likewise.
35363
35364         openat: fix unlinkat bugs on Solaris 9
35365         * lib/unlinkat.c (unlinkat): New file.
35366         * modules/openat (Depends-on): Add unlink.
35367         (Files): Distribute it.
35368         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
35369         trailing slash behavior is broken.
35370         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35371         * modules/unistd (Makefile.am): Substitute it.
35372         * lib/unistd.in.h (unlinkat): Declare replacement.
35373         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
35374
35375         openat: fix fstatat bugs on Solaris 9
35376         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
35377         stat.
35378         * doc/posix-functions/fstatat.texi (fstatat): Document this.
35379
35380         test-unlinkat: enhance test, to expose Solaris 9 bug
35381         * tests/test-unlink.c (main): Factor guts...
35382         * tests/test-unlink.h (test_rmdir_func): ...into new file.
35383         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
35384         * tests/test-rmdir.c (main): Adjust caller.
35385         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
35386         (unlinker): New helper function.
35387         (rmdirat): Enhance check.
35388         * modules/rmdir-tests (Depends-on): Add stdbool.
35389         * modules/unlink-tests (Depends-on): Likewise.
35390         (Files): Add test-unlink.h.
35391         * modules/openat-tests (Files): Likewise.
35392         (Depends-on): Add unlinkdir.
35393
35394         test-fstatat: new test, to expose Solaris 9 bugs
35395         * tests/test-stat.c (main): Factor guts...
35396         * tests/test-stat.h (test_stat_func): ...into new file.
35397         * tests/test-lstat.c (main): Factor guts...
35398         * tests/test-lstat.h (test_lstat_func): ...into new file.
35399         * tests/test-fstatat.c: New file.
35400         * modules/stat-tests (Files): Add test-stat.h.
35401         * modules/lstat-tests (Files): Add test-lstat.h.
35402         (Depends-on): Add stdbool.
35403         * modules/openat-tests (Depends-on): Add pathmax.
35404         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
35405         (Makefile.am): Run new test.
35406
35407         remove: new module, for mingw and Solaris 9 bugs
35408         * modules/remove: New file.
35409         * lib/remove.c: Likewise.
35410         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
35411         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
35412         * modules/stdio (Makefile.am): Use them.
35413         * lib/stdio.in.h (remove): Declare replacement.
35414         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35415         * doc/posix-functions/remove.texi (remove): Likewise.
35416         * modules/remove-tests: New test.
35417         * tests/test-remove.c: Likewise.
35418
35419         unlink: new module, for Solaris 9 bug
35420         * modules/unlink: New file.
35421         * lib/unlink.c: Likewise.
35422         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
35423         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35424         * modules/unistd (Makefile.am): Use them.
35425         * lib/unistd.in.h (stat): Declare replacement.
35426         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35427         * doc/posix-functions/unlink.texi (unlink): Likewise.
35428         * modules/unlink-tests: New test.
35429         * tests/test-unlink.c: Likewise.
35430
35431         lstat: fix Solaris 9 bug
35432         * lib/lstat.c (lstat): Also check for trailing slash on
35433         non-symlink, non-directories.  Use stat module to simplify logic.
35434         * doc/posix-functions/lstat.texi (lstat): Document it.
35435         * modules/lstat-tests (Depends-on): Add errno, same-inode.
35436         (configure.ac): Check for symlink.
35437         * tests/test-lstat.c (main): Add more tests.
35438
35439         stat: add as dependency to other modules
35440         * modules/chown (Depends-on): Add stat.
35441         * modules/euidaccess (Depends-on): Likewise.
35442         * modules/fchdir (Depends-on): Likewise.
35443         * modules/isdir (Depends-on): Likewise.
35444         * modules/link (Depends-on): Likewise.
35445         * modules/lstat (Depends-on): Likewise.
35446         * modules/mkdir-p (Depends-on): Likewise.
35447         * modules/modechange (Depends-on): Likewise.
35448         * modules/open (Depends-on): Likewise.
35449         * modules/readlink (Depends-on): Likewise.
35450         * modules/same (Depends-on): Likewise.
35451
35452         stat: fix Solaris 9 bug
35453         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
35454         slash.
35455         * lib/stat.c (rpl_stat): Work around it.
35456         * doc/posix-functions/stat.texi (stat): Update documentation.
35457
35458         stat: new module, for mingw bug
35459         * modules/stat: New file.
35460         * lib/stat.c: Likewise.
35461         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
35462         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35463         * modules/sys_stat (Makefile.am): Use them.
35464         * lib/sys_stat.in.h (stat): Declare replacement.
35465         * lib/openat.c (fstatat): Deal with lstat and stat being function
35466         macros.
35467         * modules/openat (Depends-on): Add inline.
35468         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35469         * doc/posix-functions/stat.texi (stat): Likewise.
35470         * modules/stat-tests: New test.
35471         * tests/test-stat.c: Likewise.
35472
35473 2009-09-19  Jim Meyering  <meyering@redhat.com>
35474
35475         syntax-check: detect unnecessary inclusion of canonicalize.h
35476         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
35477
35478 2009-09-19  Eric Blake  <ebb9@byu.net>
35479
35480         canonicalize-lgpl: adjust clients to use correct header
35481         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35482         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
35483         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
35484         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
35485         * lib/progreloc.c (includes): Likewise.
35486
35487 2009-09-19  Jim Meyering  <meyering@redhat.com>
35488
35489         test-posixtm.c: correct a comment
35490         * tests/test-posixtm.c: Correct first-line comment.
35491         Spotted by Eric Blake.
35492
35493 2009-09-16  Jim Meyering  <meyering@redhat.com>
35494
35495         posixtm-tests: make T const-correct; add a test case
35496         * tests/test-posixtm.c (T): Declare const.
35497         Add a test for -(2^31+1).
35498         Remove useless can-succeed-only-in-2002 test.
35499
35500         posixtm-tests: adjust the sole failing test
35501         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
35502         expected output matches what mktime now produces.  Cross-checked via
35503         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
35504
35505         posixtm: move #ifdef'd tests into a new module
35506         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
35507         * tests/test-posixtm.c: ... this new file.
35508         * modules/posixtm-tests: New module.
35509
35510 2009-09-19  Eric Blake  <ebb9@byu.net>
35511
35512         openat: simplify use of at-func.c
35513         * lib/at-func.c (includes): Include prerequisites here, to
35514         simplify requirements on client files.
35515         * lib/openat-priv.h: Add double-inclusion guard.
35516         * lib/faccessat.c (includes): Simplify.
35517         * lib/fchmodat.c (includes): Likewise.
35518         * lib/fchownat.c (includes): Likewise.
35519         * lib/mkdirat.c (includes): Likewise.
35520         * lib/mkfifoat.c (includes): Likewise.
35521         * lib/symlinkat.c (includes): Likewise.
35522
35523         openat: allow return of fd 0
35524         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
35525         * modules/save-cwd (Depends-on): Replace fcntl-safer with
35526         unistd-safer.
35527         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
35528         <fcntl.h>; this module does not leak fds.
35529         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
35530         must be allowed to return 0, leaving openat_safer to add the
35531         safety.
35532         (openat_permissive): Avoid writing to just-opened fd 2 if
35533         restoring the current directory fails.
35534         * lib/openat-die.c (openat_restore_fail): Add comment.
35535         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
35536         (save_cwd): Guarantee safe fd, but without use of open_safer.
35537         * tests/test-openat.c: New test.
35538         * modules/openat-tests (Files, Makefile.am): Distribute and build
35539         new file.
35540
35541         relocatable-prog-wrapper: fix build
35542         * modules/relocatable-prog-wrapper (Files): Update name of
35543         canonicalize m4 file, broken on 2009-09-17.
35544         Reported by emad hajjar <aleppos@hotmail.com>.
35545
35546 2009-09-19  Bruno Haible  <bruno@clisp.org>
35547
35548         * lib/safe-alloc.h: Use the standard header with GPL copyright.
35549         * lib/safe-alloc.c: Likewise.
35550         Reported by Ian Beckwith <ianb@erislabs.net>.
35551
35552 2009-09-18  Bruno Haible  <bruno@clisp.org>
35553
35554         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
35555         Reported by <erobles@sensacd.com.mx>.
35556
35557 2009-09-17  Eric Blake  <ebb9@byu.net>
35558
35559         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
35560         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
35561         slashes when checking if last component is missing.
35562         * tests/test-canonicalize.c (main): Test this.
35563
35564         canonicalize, canonicalize-lgpl: honor // if distinct from /
35565         * modules/canonicalize (Files): Add double-slash-root.m4.
35566         * modules/canonicalize-lgpl (Files): Likewise.
35567         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35568         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
35569         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
35570         fallback definition.
35571         (canonicalize_filename_mode): Use it to protect //.
35572         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
35573         (__realpath): Likewise.
35574         * tests/test-canonicalize.c (main): Test this.
35575         * tests/test-canonicalize-lgpl.c (main): Likewise.
35576         * modules/canonicalize-tests (Depends-on): Add same-inode.
35577         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35578
35579         canonicalize-lgpl: fix glibc bug with trailing slash
35580         * m4/canonicalize-lgpl.m4: Move contents...
35581         * m4/canonicalize.m4: ...here.
35582         (gl_CANONICALIZE_LGPL): Factor realpath check...
35583         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
35584         glibc 2.3.5 bug, fixed 2005-04-27.
35585         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
35586         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
35587         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
35588         * modules/canonicalize-lgpl (Files): Manage file rename.
35589         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35590         * modules/stdlib (Makefile.am): Substitute witness.
35591         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
35592         is needed.
35593         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
35594         replacement is required.
35595         * lib/canonicalize.c (canonicalize_file_name): Likewise.
35596         * doc/glibc-functions/canonicalize_file_name.texi
35597         (canonicalize_file_name): Document this.
35598         * doc/posix-functions/realpath.texi (realpath): Likewise.
35599
35600         canonicalize-lgpl: reject non-directory with trailing slash
35601         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
35602         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
35603         catches failures in glibc 2.3.5.
35604         * tests/test-canonicalize.c (main): Likewise.
35605
35606         canonicalize-lgpl: use native realpath if it works
35607         * lib/canonicalize-lgpl.c (realpath): Guard with
35608         FUNC_REALPATH_WORKS.
35609         * lib/stdlib.in.h (realpath): Make declaration optional based on
35610         HAVE_REALPATH.
35611         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
35612         native realpath works.
35613         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35614         * modules/stdlib (Makefile.am): Substitute witness.
35615
35616         canonicalize, canonicalize-lgpl: use <stdlib.h>
35617         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
35618         (Include): Mention <stdlib.h>.
35619         (configure.ac): Mention functions we provide.
35620         * modules/canonicalize (configure.ac): Likewise.
35621         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
35622         realpath if canonicalize_file_name is missing.
35623         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
35624         * modules/stdlib (Makefile.am): Substitute witnesses.
35625         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
35626         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
35627         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
35628         * NEWS: Document this.
35629         * doc/glibc-functions/canonicalize_file_name.texi
35630         (canonicalize_file_name): Likewise.
35631         * doc/posix-functions/realpath.texi (realpath): Likewise.
35632         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
35633
35634         test-canonicalize: consolidate into single C program
35635         * tests/test-canonicalize.sh: Delete; move setup into...
35636         * tests/test-canonicalize.c (main): ...the program, making it
35637         easier to run in debugger.  Add some tests.
35638         * modules/canonicalize-tests (Files): Remove unused file.
35639         (Depends-on): Add progname.
35640         (configure.ac, Makefile.am): Simplify.
35641
35642         test-canonicalize-lgpl: consolidate into single C program
35643         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
35644         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
35645         easier to run in debugger.  Add some tests.
35646         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
35647         (configure.ac, Makefile.am): Simplify.
35648
35649         canonicalize: avoid resolvepath
35650         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
35651         unnecessary checks.
35652         * lib/canonicalize.c (includes): Simplify.
35653         (canonicalize_file_name): Drop resolvepath implementation.
35654         * modules/canonicalize (Depends-on): Drop filenamecat.
35655
35656         canonicalize: don't lose errno
35657         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
35658         over calls to free.
35659
35660         canonicalize: simplify errno handling
35661         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
35662         assignment.
35663
35664         canonicalize, canonicalize-lgpl: update module dependencies
35665         * modules/canonicalize (Depends-on): Add extensions, lstat,
35666         pathmax, stdlib.
35667         (Files): Drop pathmax.h.
35668         (configure.ac): Adjust macro name.
35669         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
35670         lstat, stdlib, sys_stat.
35671         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
35672         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
35673         extensions.
35674         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
35675         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
35676         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
35677         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
35678         declaration, if available.
35679         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
35680         we can rely on the readlink module.
35681         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
35682         (includes): Use <unistd.h> unconditionally.
35683
35684 2009-09-17  Eric Blake  <ebb9@byu.net>
35685
35686         maint: make Include sections of modules consistent
35687         * modules/alloca: Use only header name; no need to list #include.
35688         * modules/alloca-opt: Likewise.
35689         * modules/arpa_inet: Likewise.
35690         * modules/canon-host: Likewise.
35691         * modules/configmake: Likewise.
35692         * modules/dirent: Likewise.
35693         * modules/eealloc: Likewise.
35694         * modules/environ: Likewise.
35695         * modules/fchdir: Likewise.
35696         * modules/fcntl: Likewise.
35697         * modules/fcntl-h: Likewise.
35698         * modules/gethrxtime: Likewise.
35699         * modules/gettime: Likewise.
35700         * modules/ignore-value: Likewise.
35701         * modules/inet_ntop: Likewise.
35702         * modules/inet_pton: Likewise.
35703         * modules/inttypes: Likewise.
35704         * modules/isnand-nolibm: Likewise.
35705         * modules/isnanf-nolibm: Likewise.
35706         * modules/mbchar: Likewise.
35707         * modules/mbfile: Likewise.
35708         * modules/mbiter: Likewise.
35709         * modules/mbuiter: Likewise.
35710         * modules/netdb: Likewise.
35711         * modules/netinet_in: Likewise.
35712         * modules/nproc: Likewise.
35713         * modules/pagealign_alloc: Likewise.
35714         * modules/poll: Likewise.
35715         * modules/printf-frexp: Likewise.
35716         * modules/pthread: Likewise.
35717         * modules/putenv: Likewise.
35718         * modules/random_r: Likewise.
35719         * modules/relocatable-prog: Likewise.
35720         * modules/search: Likewise.
35721         * modules/select: Likewise.
35722         * modules/selinux-h: Likewise.
35723         * modules/settime: Likewise.
35724         * modules/signal: Likewise.
35725         * modules/size_max: Likewise.
35726         * modules/socklen: Likewise.
35727         * modules/ssize_t: Likewise.
35728         * modules/stdarg: Likewise.
35729         * modules/stdbool: Likewise.
35730         * modules/stddef: Likewise.
35731         * modules/stdint: Likewise.
35732         * modules/stdio: Likewise.
35733         * modules/stdlib: Likewise.
35734         * modules/string: Likewise.
35735         * modules/strings: Likewise.
35736         * modules/sys_file: Likewise.
35737         * modules/sys_ioctl: Likewise.
35738         * modules/sys_select: Likewise.
35739         * modules/sys_socket: Likewise.
35740         * modules/sys_stat: Likewise.
35741         * modules/sys_time: Likewise.
35742         * modules/sys_times: Likewise.
35743         * modules/sys_utsname: Likewise.
35744         * modules/sys_wait: Likewise.
35745         * modules/sysexits: Likewise.
35746         * modules/time: Likewise.
35747         * modules/times: Likewise.
35748         * modules/tmpfile: Likewise.
35749         * modules/trim: Likewise.
35750         * modules/unistd: Likewise.
35751         * modules/wchar: Likewise.
35752         * modules/wctype: Likewise.
35753
35754 2009-09-17  Bruno Haible  <bruno@clisp.org>
35755
35756         Make getdate.y compile on QNX and NetBSD 5 / i386.
35757         * m4/getdate.m4 (gl_GETDATE): Conditionally define
35758         TIME_T_FITS_IN_LONG_INT.
35759         * lib/getdate.y (long_time_t): New type.
35760         (relative_time): Change type of 'seconds' field to long_time_t.
35761         (get_date): Update types of local variables. Check against overflow
35762         during conversion from long_time_t to time_t.
35763         Reported by Matt Kraai <kraai@ftbfs.org>
35764         and Hasso Tepper <hasso@netbsd.org>.
35765
35766 2009-09-17  Bruno Haible  <bruno@clisp.org>
35767
35768         * modules/COPYING: Update copyright years.
35769         * modules/README: Likeiwse.
35770         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
35771         Reported by Ian Beckwith <ianb@erislabs.net>.
35772
35773 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35774
35775         * users.txt: Update references for gnuit package.
35776
35777 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35778
35779         * m4/getdelim.m4: Fix typo in copyright line.
35780
35781 2009-09-17  Bruno Haible  <bruno@clisp.org>
35782
35783         * lib/atoll.c: Use the standard header with GPL copyright.
35784         * lib/argz.in.h: Likewise.
35785         * lib/glob.c: Likewise.
35786         * lib/glob-libc.h: Likewise.
35787         * lib/random_r.c: Likewise.
35788         * lib/siglist.h: Likewise.
35789         * lib/strsignal.c: Likewise.
35790         Reported by Ian Beckwith <ianb@erislabs.net>.
35791
35792 2009-09-17  Eric Blake  <ebb9@byu.net>
35793
35794         rmdir: ensure correct dependency order
35795         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
35796
35797 2009-09-17  Bruno Haible  <bruno@clisp.org>
35798
35799         Disable assertion that fails on NetBSD 5 / i386.
35800         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
35801         Reported by Sam Steingold <sds@gnu.org>
35802         and Hasso Tepper <hasso@netbsd.org>.
35803
35804 2009-09-16  Eric Blake  <ebb9@byu.net>
35805
35806         unlinkdir: port to mingw
35807         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
35808         on which no one can unlink a directory.
35809
35810         stdlib: sort witness names
35811         * modules/stdlib (Makefile.am): Sort replacements.
35812         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
35813         * lib/stdlib.in.h: Likewise.
35814
35815         parse-duration-tests: avoid link failure
35816         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
35817         LIBINTL.
35818         Reported by Tom G. Christensen.
35819
35820         openat-tests: ensure unlinkat behaves like rmdir
35821         * tests/test-rmdir.c (main): Factor guts...
35822         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
35823         * modules/rmdir-tests (Files): Ship new file.
35824         * modules/openat-tests: New test.
35825         * tests/test-unlinkat.c: Likewise.
35826
35827         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
35828         * modules/rmdir-errno (Status, Notice): Now obsolete.
35829
35830         rmdir: work around cygwin 1.5.x and mingw bugs
35831         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
35832         * lib/rmdir.c (rmdir): Work around it.
35833         * modules/rmdir (Status, Notice): No longer obsolete.
35834         (Files): Add dos.m4.
35835         (Depends-on): Add unistd.
35836         (configure.ac): Set witnesses.
35837         (License): Relax to LGPLv2+.
35838         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
35839         * modules/unistd (Makefile.am): Substitute witnesses.
35840         * lib/unistd.in.h (rmdir): Declare replacement.
35841         * doc/posix-functions/rmdir.texi (rmdir): Document this.
35842         * modules/rmdir-tests: New tests.
35843         * tests/test-rmdir.c: Likewise.
35844
35845 2009-09-15  Eric Blake  <ebb9@byu.net>
35846
35847         fchdir: improve use of replacement functions
35848         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
35849         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
35850         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
35851         REPLACE_CLOSEDIR.
35852         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
35853         * modules/sys_stat (Makefile.am): Substitute correct witness.
35854         * modules/dirent (Makefile.am): Likewise.
35855         * modules/unistd (Makefile.am): Likewise.
35856         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
35857         * lib/unistd.in.h (dup): Likewise.
35858         * lib/sys_stat.in.h (fstat): Likewise.
35859
35860         maint: ignore gnulib-tool temp files
35861         * .gitignore: Ignore files created during gnulib-tool --test.
35862
35863 2009-09-13  Jim Meyering  <meyering@redhat.com>
35864
35865         posixtm: don't reject a time that specify "60" as the number of seconds
35866         * lib/posixtm.c (posixtime): The code to reject invalid dates
35867         would also reject a time specified with the .60 suffix.
35868         But POSIX allows that, in order to accommodate leap seconds.
35869         So don't reject it.
35870         (main): Adjust tests accordingly.
35871         * modules/posixtm (Depends-on): Add stpcpy.
35872
35873 2009-09-11  Jim Meyering  <meyering@redhat.com>
35874
35875         announce-gen: include [$release_type] in emitted Subject:
35876         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
35877         e.g., [stable] in the emitted Subject: line.
35878
35879 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35880
35881         Remove obsolete macros from several modules.
35882         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
35883         obsolete Autoconf macros with their modern counterparts.
35884         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
35885         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
35886         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
35887         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
35888         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
35889         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
35890         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
35891         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
35892         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
35893         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
35894         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
35895         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
35896         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
35897         * m4/sockets.m4 (gl_SOCKETS): Likewise.
35898         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
35899         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
35900         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
35901         * m4/time_r.m4 (gl_TIME_R): Likewise.
35902         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
35903         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
35904         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
35905
35906         Fix copyright header in build-aux scripts.
35907         * build-aux/git-version-gen: Fix copyright header to match GPLv3
35908         recommendation.
35909         * build-aux/ncftpput-ftp: Likewise.
35910         * build-aux/update-copyright: Likewise.
35911
35912 2009-09-09  Eric Blake  <ebb9@byu.net>
35913
35914         test-link: allow Linux choice of errno
35915         * tests/test-link.c (main): Relax test for alternate error.
35916
35917         strndup: fix improper m4 caching
35918         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
35919         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
35920         (gl_PREREQ_STRNDUP): Delete.
35921         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
35922         * modules/string (Makefile.am): Substitute it.
35923         * lib/string.in.h (strndup): Modernize prototype.
35924
35925         getcwd: port to mingw
35926         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
35927         different from the POSIX assumptions made throughout the getcwd
35928         module; fortunately, the mingw getcwd does not need replacement.
35929         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
35930         * modules/getcwd-tests: New test.
35931         * tests/test-getcwd.c: Likewise.
35932
35933         link: fix platform bugs
35934         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
35935         * lib/link.c (link): Work around them.  Fix related mingw bug.
35936         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
35937         * modules/unistd (Makefile.am): Substitute it.
35938         * lib/unistd.in.h (link): Declare replacement.
35939         * doc/posix-functions/link.texi (link): Document this.
35940         * modules/link (Depends-on): Add strdup-posix, sys_stat.
35941
35942         test-link: consolidate into single C program, test more cases
35943         * tests/test-link.sh: Delete.
35944         * tests/test-link.c: Test more error conditions.  Exposes bugs on
35945         at least Cygwin and Solaris.
35946         * modules/link-tests (Files): Remove unused file.
35947         (Depends-on): Add errno, sys_stat.
35948         (Makefile.am): Simplify.
35949
35950 2009-09-08  Bruno Haible  <bruno@clisp.org>
35951
35952         Work around towlower, towupper bug on mingw.
35953         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
35954         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
35955         * doc/posix-functions/towlower.texi: Mention the mingw bug.
35956         * doc/posix-functions/towupper.texi: Likewise.
35957         Reported by Eric Blake.
35958
35959 2009-09-08  Jim Meyering  <meyering@redhat.com>
35960
35961         build: don't try to run autoheader if we don't use it
35962         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
35963         is not used in configure.ac.
35964
35965 2009-09-08  Eric Blake  <ebb9@byu.net>
35966
35967         euidaccess: fix compilation error
35968         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
35969
35970         rawmemchr: relax license
35971         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
35972         okay.
35973         Reported by Jim Meyering.
35974
35975         mkfifoat: new module
35976         * modules/mkfifoat: New file.
35977         * lib/mkfifoat.c: Likewise.
35978         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
35979         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35980         * modules/sys_stat (Makefile.am): Use them.
35981         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
35982         * MODULES.html.sh (File system functions): Mention module.
35983         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
35984         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
35985         * modules/mkfifoat-tests: New test.
35986         * tests/test-mkfifoat.c: Likewise.
35987
35988         strchrnul: relax license
35989         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
35990         okay.
35991         Reported by Jim Meyering.
35992
35993 2009-09-08  Eric Blake  <ebb9@byu.net>
35994
35995         fstatat: fix compilation on Solaris
35996         * lib/fstatat.c (includes): Add fcntl.h.
35997         Reported by Pádraig Brady.
35998
35999 2009-09-07  Eric Blake  <ebb9@byu.net>
36000
36001         rename: modernize replacement
36002         * modules/rename (Depends-on): Add stdio.
36003         (configure.ac): Declare witness.
36004         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
36005         stdio take care of replacement.
36006         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
36007         * modules/stdio (Makefile.am): Substitute them.
36008         * lib/stdio.in.h (rename): Declare replacement.
36009         * lib/rename.c (includes): Allow cross-compilation to non-windows
36010         machines.
36011         * doc/posix-functions/rename.texi (rename): Improve
36012         documentation.
36013
36014         stdio: sort witness names
36015         * modules/stdio (Makefile.am): Sort replacements.
36016         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36017         * lib/stdio.in.h: Likewise.
36018
36019         getcwd: minor cleanups
36020         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
36021         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
36022
36023         openat: provide more convenience names
36024         * modules/faccessat (configure.ac): Add C witness.
36025         * lib/unistd.in.h (readlinkat): Fix typo.
36026         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
36027         convenience wrappers.
36028         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
36029         wrappers in syntax checks.
36030
36031 2009-09-06  Eric Blake  <ebb9@byu.net>
36032
36033         doc: fix comments in recent patches
36034         * lib/faccessat.c: Mention correct function.
36035         * lib/fchmodat.c: Likewise.
36036         * lib/fchownat.c: Likewise.
36037         * lib/symlinkat.c: Likewise.
36038         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
36039         constants.
36040
36041         faccessat, symlinkat: continue cleanup of previous patch
36042         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
36043         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
36044         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
36045         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
36046         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
36047         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
36048         set.
36049
36050 2009-09-06  Bruno Haible  <bruno@clisp.org>
36051
36052         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
36053         (fstatat): Declare if GNULIB_FSTATAT is set.
36054         (mkdirat): Declare if GNULIB_MKDIRAT is set.
36055         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
36056         (unlinkat): Declare if GNULIB_UNLINKAT is set.
36057         * modules/fcntl-h (Files): Remove m4/openat.m4.
36058         * modules/sys_stat (Files): Remove m4/openat.m4.
36059         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
36060         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
36061         * modules/unistd (Files): Remove m4/openat.m4.
36062         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
36063         GNULIB_OPENAT.
36064         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
36065         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
36066         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
36067         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
36068         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
36069         gl_OPENAT_DEFAULTS.
36070         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
36071         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
36072         Don't require gl_OPENAT_DEFAULTS.
36073         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
36074         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
36075         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
36076         (gl_OPENAT_DEFAULTS): Remove macro.
36077
36078 2009-09-06  Bruno Haible  <bruno@clisp.org>
36079
36080         * modules/openat (configure.ac): Remove unneeded witness.
36081
36082 2009-09-06  Bruno Haible  <bruno@clisp.org>
36083
36084         Set errno to ENOSYS when a function is entirely unsupported.
36085         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
36086         EOPNOTSUPP.
36087         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
36088         * modules/chown (Depends-on): Remove errno.
36089
36090 2009-09-06  Bruno Haible  <bruno@clisp.org>
36091
36092         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
36093
36094 2009-09-06  Bruno Haible  <bruno@clisp.org>
36095
36096         * lib/sys_stat.in.h: Fix preprocessor command indentation.
36097
36098 2009-09-06  Ben Pfaff  <blp@gnu.org>
36099             Bruno Haible  <bruno@clisp.org>
36100
36101         Work around a glibc bug in strtok_r.
36102         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
36103         Undefine if UNDEFINE_STRTOK_R is set.
36104         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
36105         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36106         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
36107         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
36108         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
36109         UNDEFINE_STRTOK_R.
36110         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
36111
36112 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
36113
36114         exclude: minor fix
36115         * lib/exclude.c: Include wctype.h
36116
36117 2009-09-06  Akim Demaille  <demaille@gostai.com>
36118
36119         bootstrap: improve error message
36120         * build-aux/bootstrap (find_tool): Upon failure, report the list
36121         of candidates.
36122         Honor the initial value of the envvar.
36123
36124 2009-09-05  Eric Blake  <ebb9@byu.net>
36125
36126         symlinkat: new module
36127         * modules/symlinkat: New file.
36128         * lib/symlinkat.c: Likewise.
36129         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
36130         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
36131         * modules/unistd (Makefile.am): Use them.
36132         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
36133         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
36134         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
36135         * MODULES.html.sh (File system functions): Mention module.
36136         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36137         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
36138         * modules/symlinkat-tests: New test.
36139         * tests/test-symlinkat.c: Likewise.
36140
36141         test-openat-safer: add more checks
36142         * tests/test-openat-safer.c (main): Check more code paths.
36143
36144 2009-09-05  Jim Meyering  <meyering@redhat.com>
36145
36146         syntax-check: detect unnecessary inclusion of openat.h
36147         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
36148
36149 2009-09-05  Bruno Haible  <bruno@clisp.org>
36150
36151         Support towlower, towupper.
36152         * doc/posix-functions/towlower.texi: Mention module wctype.
36153         * doc/posix-functions/towupper.texi: Likewise.
36154         * lib/wctype.in.h (towlower, towupper): New functions.
36155         * tests/test-wctype.c: Include stdio.h, stdlib.h.
36156         (ASSERT): New macro.
36157         (e): New variable.
36158         (main): Test also towlower, towupper. Test WEOF argument.
36159         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36160
36161 2009-09-05  Bruno Haible  <bruno@clisp.org>
36162
36163         Fix conversion behaviour when the input is invalid.
36164         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
36165         mark occurring in first pass of indirect conversion.
36166         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
36167         input.
36168         Found by clang's static analyzer.
36169
36170 2009-09-05  Bruno Haible  <bruno@clisp.org>
36171
36172         * tests/test-striconveh.c (main): Test indirect conversion on platforms
36173         where direct conversion is possible.
36174
36175 2009-09-04  Eric Blake  <ebb9@byu.net>
36176
36177         openat: fail with ENOENT on empty name
36178         * lib/openat-proc.c (openat_proc_name): Special-case the empty
36179         buffer.
36180
36181         link-follow: fix logic bug in prior patch
36182         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
36183         reversed sense of yes and no in prior patch.  Avoid confusing
36184         compilation failure with desired semantics.
36185
36186         link-follow: accomodate mingw and cross-compilation
36187         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
36188         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
36189         cross-compilation results to -1, to make linkat easier to
36190         implement when cross-compiling.  Trivially support mingw.
36191         * modules/link-follow (configure.ac): Call new name.
36192         * NEWS: Mention this.
36193
36194 2009-09-03  Eric Blake  <ebb9@byu.net>
36195
36196         faccessat: compile replacement
36197         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
36198         needed.
36199
36200         fts: fix compilation error
36201         * lib/fts.c (includes): Re-add "openat.h", for
36202         openat_needs_fchdir.
36203
36204         faccessat: new module
36205         * modules/faccessat: New file.
36206         * lib/faccessat.c: Likewise.
36207         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
36208         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36209         * modules/unistd (Makefile.am): Use it.
36210         * lib/unistd.in.h (faccessat): Declare it.
36211         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
36212         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
36213         * MODULES.html.sh (File system functions): Mention it.
36214         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
36215         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
36216
36217         euidaccess: prefer POSIX over non-standard implementation
36218         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
36219         * lib/euidaccess.c (euidaccess): Use it if available.
36220
36221         openat: make template easier to use
36222         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
36223         AT_FUNC_F2 to be undefined.
36224         (VALIDATE_FLAG): New macro; use it to reject bad flags.
36225         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
36226         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
36227         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
36228         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
36229         Likewise.
36230         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
36231         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
36232         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
36233         Likewise.
36234
36235         openat: declare in POSIX headers
36236         * NEWS: Mention this.
36237         * modules/openat (configure.ac): Declare witnesses.
36238         (Depends-on): Add fcntl-h, sys_stat, unistd.
36239         (Include): Mention correct headers.
36240         * modules/fcntl-h (Depends-on): Add link-warning.
36241         (Files): Add openat.m4.
36242         (Makefile.am): Substitute witnesses.
36243         * modules/sys_stat (Files, Makefile.am): Likewise.
36244         * modules/unistd (Files, Makefile.am): Likewise.
36245         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
36246         (gl_OPENAT_DEFAULTS): New macro.
36247         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
36248         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
36249         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
36250         (SYS_STAT_H): Remove unused variable.
36251         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
36252         * lib/fcntl--.h (includes): Remove unneeded header.
36253         * lib/openat-safer.c (includes): Likewise.
36254         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
36255         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
36256         appropriate headers.
36257         (__OPENAT_PREFIX): Delete.
36258         * lib/fcntl.in.h (openat): Provide declaration.
36259         (AT_FDCWD): Fix Solaris bug.
36260         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
36261         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
36262         * lib/fchmodat.c (includes):  Adjust to find declaration.
36263         * lib/fchownat.c (includes): Likewise.
36264         * lib/mkdirat.c (includes): Likewise.
36265         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
36266         still visible.
36267
36268 2009-09-02  Eric Blake  <ebb9@byu.net>
36269
36270         errno: use consistently
36271         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
36272         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
36273         * lib/canonicalize.c (ELOOP): Likewise.
36274         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
36275         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
36276         * lib/lchown.c (EOPNOTSUPP): Likewise.
36277         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
36278         * lib/savewd.c (ESTALE): Likewise.
36279         * lib/settime.c (ENOSYS): Likewise.
36280         * lib/utimens.c (ENOSYS): Likewise.
36281         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
36282         * lib/chdir-safer.c (ELOOP): Likewise.
36283         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
36284         * modules/c-stack (Depends-on): Add errno.
36285         * modules/canonicalize (Depends-on): Likewise.
36286         * modules/chdir-safer (Depends-on): Likewise.
36287         * modules/fdopendir (Depends-on): Likewise.
36288         * modules/inet_ntop (Depends-on): Likewise.
36289         * modules/inet_pton (Depends-on): Likewise.
36290         * modules/lchown (Depends-on): Likewise.
36291         * modules/openat (Depends-on): Likewise.
36292         * modules/savewd (Depends-on): Likewise.
36293         * modules/settime (Depends-on): Likewise.
36294         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
36295
36296         fts: avoid leaking fds
36297         * modules/fts (Depends-on): Add cloexec.
36298         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
36299         flag.
36300
36301         fts: make directory fds more robust
36302         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
36303         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
36304
36305         backupfile, chdir-long, fts, savedir: make safer
36306         * lib/backupfile.c (includes): Use "dirent--.h", since
36307         numbered_backup can write to stderr during readdir.
36308         * lib/savedir.c (includes): Likewise.
36309         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
36310         emulation can write to stderr on failure.
36311         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
36312         * lib/getcwd.c: Document why opendir_safer is unused.
36313         * lib/glob.c: Likewise.
36314         * lib/scandir.c: Likewise.
36315         * lib/openat-proc.c: Likewise, for open_safer.
36316         * modules/backupfile (Depends-on): Add dirent-safer.
36317         * modules/savedir (Depends-on): Likewise.
36318         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
36319         * modules/chdir-long (Depends-on): Add openat-safer.
36320
36321         openat-safer: new module
36322         * modules/openat-safer: New file.
36323         * lib/openat-safer.c: Likewise.
36324         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
36325         * lib/fcntl-safer.h (openat_safer): Declare.
36326         * lib/fcntl--.h (openat): Override.
36327         * MODULES.html.sh (File descriptor based I/O): Mention it.
36328         * lib/openat.h: Add double-inclusion guards.
36329         * lib/openat.c (includes): Only include "fcntl-safer.h", not
36330         "fcntl--.h", so we can implement openat.
36331         * modules/openat-safer-tests: New test.
36332         * tests/test-openat-safer.c: New file.
36333
36334         dirent-safer: new module
36335         * modules/dirent-safer: New file.
36336         * lib/dirent--.h: Likewise.
36337         * lib/dirent-safer.h: Likewise.
36338         * lib/opendir-safer.c: Likewise.
36339         * m4/dirent-safer.m4: Likewise.
36340         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
36341         * modules/dirent-safer-tests: New test.
36342         * tests/test-dirent-safer.c: New file.
36343         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
36344
36345         fdopendir: optimize on mingw
36346         * lib/unistd.in.h (_gl_directory_name): New prototype.
36347         * lib/fchdir.c (_gl_directory_name): Implement it.
36348         (fchdir): Use it to simplify implementation.
36349         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
36350         fchdir, when available, to avoid calling [f]chdir().
36351
36352         fdopendir: split into its own module
36353         * lib/openat.c (fdopendir): Move...
36354         * lib/fdopendir.c: ...into new file.
36355         * modules/fdopendir: New module.
36356         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
36357         * modules/openat (Depends-on): Add fdopendir.
36358         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
36359         fdopendir here.
36360         * modules/savedir (Depends-on): Only need fdopendir, not full
36361         openat.
36362         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
36363         * lib/openat.h (fdopendir): Drop prototype.
36364         * lib/dirent.in.h (fdopendir): Provide prototype.
36365         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
36366         * modules/dirent (Makefile.am): Substitute them.
36367         * MODULES.html.sh (File system functions): Mention it.
36368         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
36369         * modules/fdopendir-tests: New file.
36370         * tests/test-fdopendir.c: Likewise.
36371
36372         fchdir: use more consistent macro convention
36373         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
36374         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
36375         REPLACE_FCHDIR, rather than relying on config.h macros.
36376         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
36377         inside a single make-time REPLACE_FCHDIR block, rather than using
36378         the config.h FCHDIR_REPLACEMENT.
36379         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
36380         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
36381         Manage fstat replacement.
36382         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
36383         REPLACE_FCHDIR.
36384         * modules/sys_stat (Files): Add m4/unistd_h.m4.
36385         (Makefile.am): Substitute REPLACE_FCHDIR.
36386         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
36387         FCHDIR_REPLACEMENT.
36388         * lib/dup-safer.c (dup_safer): Likewise.
36389         * lib/dup2.c (rpl_dup2): Likewise.
36390         * lib/dup3.c (rpl_dup3): Likewise.
36391         * lib/open.c (rpl_open): Likewise.
36392
36393         fchdir: simplify error handling, and support dup3
36394         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
36395         stdbool, malloc-posix, realloc-posix.
36396         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
36397         (ensure_dirs_slot): Return false on allocation failure.
36398         (rpl_dup2): Delete.
36399         (_gl_register_dup): New function.
36400         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
36401         (_gl_register_fd): Close fd on allocation failure.
36402         * lib/fcntl.in.h (_gl_register_fd): Update signature.
36403         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
36404         prototype.
36405         (rpl_dup2_fchdir): Delete prototype.
36406         * lib/open.c (open): Update caller.
36407         * lib/dup2.c (dup2): Track fchdir metadata.
36408         * lib/dup3.c (dup3): Likewise.
36409         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
36410         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
36411
36412 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36413
36414         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
36415         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
36416         don't pass arguments to AC_OUTPUT.
36417
36418 2009-09-02  Bruno Haible  <bruno@clisp.org>
36419
36420         * modules/mkdtemp (License): Relicense under LGPLv2+.
36421         Reported by Paolo Bonzini.
36422
36423 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36424
36425         Replace uses of obsolete autoconf macros in Jim's modules.
36426         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
36427         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
36428         can evoke a warning from autoconf when run with -Wobsolete
36429         enabled.  They were declared obsolete for good reasons (see
36430         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
36431         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
36432         should not continue using the deprecated macros.
36433         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
36434         obsolete Autoconf macros with modern counterparts.
36435         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
36436         * m4/dos.m4 (gl_AC_DOS): Likewise.
36437         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
36438         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
36439         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
36440         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
36441         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
36442         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
36443         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
36444         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
36445         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
36446         Likewise.
36447         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
36448         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
36449         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
36450         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
36451         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
36452         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
36453
36454 2009-09-01  Eric Blake  <ebb9@byu.net>
36455
36456         fchdir: fix off-by-one bug in previous patch
36457         * lib/fchdir.c (rpl_fstat): Use correct bounds.
36458         (_gl_unregister_fd): Delete useless if.
36459
36460 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
36461
36462         maint.mk: sort the list of syntax-check rules
36463         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
36464         easier to get a sense of progress when the rules are run sequentially
36465         and take a long time.
36466
36467 2009-09-01  Simon Josefsson  <simon@josefsson.org>
36468
36469         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
36470         * modules/netinet_in: Likewise.
36471         * modules/sys_file: Likewise.
36472         * modules/sys_ioctl: Likewise.
36473         * modules/sys_select: Likewise.
36474         * modules/sys_socket: Likewise.
36475         * modules/sys_stat: Likewise.
36476         * modules/sys_time: Likewise.
36477         * modules/sys_times: Likewise.
36478         * modules/sys_utsname: Likewise.
36479         * modules/sys_wait: Likewise.
36480
36481 2009-09-01  Jim Meyering  <meyering@redhat.com>
36482
36483         fts: help ensure that return values are not ignored
36484         * lib/fts_.h (__GNUC_PREREQ): Define.
36485         (__attribute_warn_unused_result__): Define.
36486         (fts_children, fts_close, fts_open, fts_read): Declare with
36487         __attribute_warn_unused_result__.
36488
36489         fts: fts_close now fails also when closing a dir file descriptor fails
36490         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
36491         and propagate to caller, along with errno.
36492
36493         announce-gen: correct formatting in --help output
36494         * build-aux/announce-gen (usage): Move the one-line description in
36495         --help output "up", to where it belongs, just after Usage:.
36496
36497 2009-08-31  Eric Blake  <ebb9@byu.net>
36498
36499         fchdir: port to mingw
36500         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
36501         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
36502         opened, then use a substitute.
36503         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
36504         replacement.
36505         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
36506         (_gl_register_fd): No need to check stat if open already filters
36507         all directories.
36508         (fchdir): Fix error condition to match POSIX.
36509         * modules/fchdir (Depends-on): Add sys_stat.
36510         * doc/posix-functions/open.texi (open): Document the limitation.
36511         * modules/fchdir-tests: New file.
36512         * tests/test-fchdir.c: Likewise.
36513
36514         canonicalize: allow cross-testing from cygwin to mingw
36515         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
36516         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
36517         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
36518         Likewise.
36519         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
36520         target does not support symlinks.
36521         * tests/test-canonicalize-lgpl.sh: Likewise.
36522
36523         chown: avoid compilation warning on mingw
36524         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
36525         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
36526         mingw.
36527         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
36528         * modules/chown (Depends-on): Add errno.
36529
36530 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
36531
36532         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
36533         command.
36534
36535 2009-08-31  Jim Meyering  <meyering@redhat.com>
36536
36537         canonicalize: remove useless initialization
36538         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
36539         initialization of local, "end".
36540
36541 2009-08-30  Bruno Haible  <bruno@clisp.org>
36542
36543         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
36544         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
36545         ENOSYS.
36546
36547 2009-08-30  Bruno Haible  <bruno@clisp.org>
36548
36549         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
36550         /usr/xpg4/bin/tr when it exists.
36551         * tests/test-pipe-filter-gi1.sh: Likewise.
36552
36553 2009-08-30  Bruno Haible  <bruno@clisp.org>
36554
36555         Work around deficient /usr/bin/id program on Solaris.
36556         * tests/test-file-has-acl.sh (ID): New variable.
36557         * tests/test-set-mode-acl.sh (ID): Likewise.
36558         * tests/test-copy-acl.sh (ID): Likewise.
36559         * tests/test-copy-file.sh (ID): Likewise.
36560
36561 2009-08-30  Bruno Haible  <bruno@clisp.org>
36562
36563         New module 'xstriconveh'.
36564         * lib/xstriconveh.h: New file.
36565         * lib/xstriconveh.c: New file.
36566         * modules/xstriconveh: New file.
36567
36568 2009-08-30  Bruno Haible  <bruno@clisp.org>
36569
36570         Make it easier to use mem_cd_iconveh.
36571         * lib/striconveh.h (iconveh_t): New type.
36572         (iconveh_open, iconveh_close): New declarations.
36573         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
36574         with a single 'const iconveh_t *' argument.
36575         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
36576         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
36577         with a single 'const iconveh_t *' argument.
36578         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
36579         * tests/test-striconveh.c (main): Update.
36580         * NEWS: Mention the change.
36581
36582 2009-08-30  Bruno Haible  <bruno@clisp.org>
36583
36584         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
36585         problem.
36586
36587 2009-08-30  Bruno Haible  <bruno@clisp.org>
36588
36589         Work around iconv_open problem on Solaris.
36590         * lib/iconv_open-solaris.gperf: New file.
36591         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
36592         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
36593         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
36594         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
36595         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
36596         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
36597
36598 2009-08-29  Jim Meyering  <meyering@redhat.com>
36599
36600         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
36601         * top/maint.mk (cvs-check): Remove target; it was just an alias
36602         to the better-named vc-diff-check.
36603         (maintainer-distcheck): Remove rule.  It was used only from
36604         the (alpha/beta/major) target, and all of its commands but one
36605         were coreutils-specific.
36606         (vc-dist): Remove rule.
36607         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
36608         Run vc-diff-check, not vc-dist.
36609         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
36610
36611 2009-08-27  Bruno Haible  <bruno@clisp.org>
36612
36613         * tests/test-bitrotate.c (main): Remove test that uses a shift count
36614         of 0.
36615
36616 2009-08-27  Bruno Haible  <bruno@clisp.org>
36617
36618         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
36619         compilers.
36620         * doc/func.texi: Document the SunPRO C bug.
36621
36622 2009-08-27  Bruno Haible  <bruno@clisp.org>
36623
36624         Fix link error on Solaris.
36625         * tests/test-parse-duration.c (xstrdup): Remove function.
36626
36627 2009-08-26  Pádraig Brady  <P@draigbrady.com>
36628
36629         ignore-value: handle pointer types, too
36630         * lib/ignore-value.h (__attribute__): Remove definition.
36631         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
36632         of a more concise and more-often effective "(void) i" statement.
36633         (ignore_ptr): New function to suppress warnings from functions that
36634         return pointers, and to make it explicit that one function doesn't
36635         handle all cases.
36636
36637 2009-08-25  Bruno Haible  <bruno@clisp.org>
36638
36639         dup2: work around a Linux bug.
36640         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
36641         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
36642         * doc/posix-functions/dup2.texi: Mention the Linux bug.
36643         Reported by Simon Josefsson.
36644
36645 2009-08-25  Jim Meyering  <meyering@redhat.com>
36646
36647         libguestfs uses gnulib
36648         * users.txt: Add libguestfs.
36649
36650 2009-08-24  Eric Blake  <ebb9@byu.net>
36651
36652         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
36653         * lib/pipe2.c (includes): Add binary-io.h.
36654         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
36655
36656 2009-08-24  Bruno Haible  <bruno@clisp.org>
36657
36658         Tolerate declared but missing accept4 syscall.
36659         * lib/accept4.c (accept4): Invoke original accept4 function first, if
36660         available.
36661         * lib/sys_socket.in.h (accept4): If the function is already present,
36662         override it.
36663         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
36664         * modules/accept4 (Makefile.am): Compile accept4.c always.
36665         Reported by Paolo Bonzini and Eric Blake.
36666
36667 2009-08-23  Bruno Haible  <bruno@clisp.org>
36668
36669         New module 'accept4'.
36670         * lib/sys_socket.in.h (accept4): New declaration.
36671         * lib/accept4.c: New file.
36672         * m4/accept4.m4: New file.
36673         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
36674         GNULIB_ACCEPT4, HAVE_ACCEPT4.
36675         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
36676         HAVE_ACCEPT4.
36677         * modules/accept4: New file.
36678         * doc/glibc-functions/accept4.texi: Mention the new module.
36679
36680 2009-08-24  Jim Meyering  <meyering@redhat.com>
36681
36682         progname: also set global program_invocation_name, when possible
36683         Before this change, a libtool-enabled program that calls glibc's
36684         error function would report the program name as
36685         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
36686         * modules/progname (configure.ac): Check for a declaration of
36687         program_invocation_name.
36688         * lib/progname.c:  Include <errno.h>.
36689         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
36690         Set program_invocation_name.
36691
36692 2009-08-23  Bruno Haible  <bruno@clisp.org>
36693
36694         * lib/dup3.c: Include <string.h>.
36695
36696 2009-08-23  Bruno Haible  <bruno@clisp.org>
36697
36698         * lib/dup3.c (dup3): Test only once whether the system actually exists.
36699         * lib/pipe2.c (pipe2): Likewise.
36700         Suggested by Eric Blake.
36701
36702 2009-08-23  Bruno Haible  <bruno@clisp.org>
36703
36704         Tolerate declared but missing dup3 syscall.
36705         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
36706         * lib/unistd.in.h (dup3): If the function is already present,
36707         override it.
36708         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
36709         * modules/dup3 (Makefile.am): Compile dup3.c always.
36710         Reported by Paolo Bonzini.
36711
36712 2009-08-23  Bruno Haible  <bruno@clisp.org>
36713
36714         Tolerate declared but missing pipe2 syscall.
36715         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
36716         available.
36717         * lib/unistd.in.h (pipe2): If the function is already present,
36718         override it.
36719         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
36720         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
36721         Reported by Paolo Bonzini.
36722
36723 2009-08-23  Bruno Haible  <bruno@clisp.org>
36724
36725         * lib/pipe2.c (pipe2): Move #ifs inside function.
36726
36727 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36728
36729         quotearg: document limitations of quote_these_too
36730         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
36731         those limitations are created.
36732         * lib/quotearg.h (set_char_quoting): Document that digits and
36733         letters that are special after backslash are not permitted.
36734         (quotearg_char): Cross-reference set_char_quoting documentation.
36735
36736 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
36737
36738         quotearg: implement custom_quoting_style
36739         * lib/quotearg.c: (struct quoting_options): Add left_quote and
36740         right_quote fields.
36741         (set_custom_quoting): New public function.
36742         (quotearg_buffer_restyled): Add left_quote and right_quote
36743         arguments, handle them very much like locale quoting, and update
36744         all uses.
36745         (quotearg_n_custom): New public function.
36746         (quotearg_n_custom_mem): New public function.
36747         (quotearg_custom): New public function.
36748         (quotearg_custom_mem): New public function.
36749         * lib/quotearg.h: Prototype and document new public functions.
36750         (enum quoting_style): For escape_quoting_style and
36751         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
36752         ignored even though they're otherwise like c_quoting_style.
36753         Add custom_quoting_style member and document with comparison to
36754         clocale_quoting_style.
36755         * tests/test-quotearg.c (custom_quotes): New array.
36756         (custom_results): New array.
36757         (main): Extend to test custom quoting.
36758
36759 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36760
36761         quotearg: fix right quote escaping when it's in quote_these_too
36762         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
36763         quote, be sure to prepend only one backslash.
36764         * tests/test-quotearg.c (use_quote_double_quotes): New function.
36765         (main): Test it.
36766
36767 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36768
36769         quotearg-tests: test escaping of embedded locale quotes
36770         * tests/test-quotearg.c (struct result_strings): Add member for
36771         new input.
36772         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
36773         (inputs): Add new input.
36774         (results_g): Add expected results.
36775         (flag_results): Likewise.
36776         (locale_results): Likewise.
36777         (compare_strings): Check those.
36778
36779 2009-08-23  Bruno Haible  <bruno@clisp.org>
36780
36781         Tests for module 'dup3'.
36782         * modules/dup3-tests: New file.
36783         * tests/test-dup3.c: New file.
36784
36785         New module 'dup3'.
36786         * lib/unistd.in.h (dup3): New declaration.
36787         * lib/dup3.c: New file.
36788         * m4/dup3.m4: New file.
36789         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
36790         HAVE_DUP3.
36791         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
36792         * modules/dup3: New file.
36793         * doc/glibc-functions/dup3.texi: Mention the new module.
36794
36795 2009-08-23  Bruno Haible  <bruno@clisp.org>
36796
36797         Tweak the dup2 test.
36798         * tests/test-dup2.c (main): Create the test file empty. Verify that an
36799         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
36800         the test file is still empty. Fix argument order of lseek.
36801
36802 2009-08-23  Bruno Haible  <bruno@clisp.org>
36803
36804         Avoid test link errors when the modules getopt-gnu, gettext are used.
36805         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
36806         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36807
36808 2009-08-23  Bruno Haible  <bruno@clisp.org>
36809
36810         Fix getdtablesize() on mingw.
36811         * lib/getdtablesize.c (getdtablesize): Implement differently.
36812         * lib/unistd.in.h (getdtablesize): Improve comment.
36813
36814 2009-08-23  Bruno Haible  <bruno@clisp.org>
36815
36816         New module 'mkostemp'.
36817         Based on Ulrich Drepper's 2007-08-10 change in glibc.
36818         * lib/stdlib.in.h (mksotemp): New declaration.
36819         * lib/mkostemp.c: New file, from glibc with modifications.
36820         * lib/tempname.h (GT_FILE): Remove outdated comment.
36821         (gen_tempname): Add flags argument.
36822         * lib/tempname.c (__GT_BIGFILE): Remove macro.
36823         (__GT_FILE): Map to 1.
36824         (small_open, large_open): Remove macros.
36825         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
36826         * lib/mkstemp.c (mkstemp): Update.
36827         * lib/mkdtemp.c (mkdtemp): Likewise.
36828         * m4/mkostemp.m4: New file.
36829         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
36830         HAVE_MKOSTEMP.
36831         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
36832         HAVE_MKOSTEMP.
36833         * modules/mkostemp: New file, based on modules/mkstemp.
36834         * doc/glibc-functions/mkostemp.texi: Mention the new module.
36835         * NEWS: Mention the change.
36836
36837 2009-08-23  Bruno Haible  <bruno@clisp.org>
36838
36839         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
36840         Reported by Eric Blake.
36841
36842 2009-08-23  Bruno Haible  <bruno@clisp.org>
36843
36844         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
36845         Reported by Eric Blake.
36846
36847 2009-08-23  Bruno Haible  <bruno@clisp.org>
36848
36849         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
36850         * modules/pipe2 (Depends-on): Likewise.
36851
36852 2009-08-23  Eric Blake  <ebb9@byu.net>
36853
36854         fcntl-h: add O_TTY_INIT support
36855         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
36856         * tests/test-fcntl-h.c (o): Test it.
36857         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36858
36859         fcntl-h: rename from fcntl, in preparation for fcntl(2)
36860         * modules/fcntl: Move <fcntl.h> header replacement...
36861         * modules/fcntl-h: ...to new name, so as not to collide with
36862         like-named function.
36863         * tests/test-fcntl.c: Rename...
36864         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
36865         * modules/fcntl-tests: Rename...
36866         * modules/fcntl-h-tests: ...to this.  Update test file name.
36867         * modules/chdir-long (Depends-on): Update clients.
36868         * modules/chdir-safer (Depends-on): Likewise.
36869         * modules/fcntl-safer (Depends-on): Likewise.
36870         * modules/fts (Depends-on): Likewise.
36871         * modules/mkancesdirs (Depends-on): Likewise.
36872         * modules/mkdir-p (Depends-on): Likewise.
36873         * modules/open (Depends-on): Likewise.
36874         * modules/savewd (Depends-on): Likewise.
36875         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
36876         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36877
36878 2009-08-22  Bruno Haible  <bruno@clisp.org>
36879
36880         * modules/binary-io (License): Relicense under LGPL.
36881         * modules/pipe2 (License): Likewise.
36882
36883 2009-08-22  Bruno Haible  <bruno@clisp.org>
36884
36885         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
36886         return value.
36887         * lib/pipe-filter-gi.c (filter_init): Likewise.
36888         Reported by Eric Blake.
36889
36890 2009-08-22  Bruno Haible  <bruno@clisp.org>
36891
36892         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
36893         * modules/pipe (Depends-on): Add pipe2.
36894
36895 2009-08-22  Bruno Haible  <bruno@clisp.org>
36896
36897         Tests for module 'pipe2'.
36898         * modules/pipe2-tests: New file.
36899         * tests/test-pipe2.c: New file.
36900
36901         New module 'pipe2'.
36902         * lib/unistd.in.h (pipe2): New declaration.
36903         * lib/pipe2.c: New file.
36904         * m4/pipe2.m4: New file.
36905         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
36906         HAVE_PIPE2.
36907         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
36908         * modules/pipe2: New file.
36909         * doc/glibc-functions/pipe2.texi: Mention the new module.
36910
36911 2009-08-22  Bruno Haible  <bruno@clisp.org>
36912
36913         Reference some new glibc functions.
36914         * doc/glibc-functions/accept4.texi: New file.
36915         * doc/glibc-functions/dup3.texi: New file.
36916         * doc/glibc-functions/mkostemp.texi: New file.
36917         * doc/glibc-functions/pipe2.texi: New file.
36918         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
36919         (Glibc sys/socket.h): Refer to accept4.
36920         (Glibc unistd.h): Refer to dup3, pipe2.
36921         Reported by Eric Blake.
36922
36923 2009-08-22  Jim Meyering  <meyering@redhat.com>
36924             Bruno Haible  <bruno@clisp.org>
36925
36926         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
36927         This makes it so packages using automake-1.11's silent-rules option
36928         can print e.g., a single "GEN    configmake.h" line, rather than
36929         the 30+ statements that perform the job.  If you want to see the
36930         actual commands, you can still run "make V=1".
36931         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
36932         so that make output is abbreviated when those variables are defined
36933         appropriately.
36934         * modules/argz: Likewise.
36935         * modules/arpa_inet: Likewise.
36936         * modules/byteswap: Likewise.
36937         * modules/configmake: Likewise.
36938         * modules/dirent: Likewise.
36939         * modules/errno: Likewise.
36940         * modules/fcntl: Likewise.
36941         * modules/float: Likewise.
36942         * modules/fnmatch: Likewise.
36943         * modules/getopt-posix: Likewise.
36944         * modules/glob: Likewise.
36945         * modules/iconv_open: Likewise.
36946         * modules/inttypes: Likewise.
36947         * modules/localcharset: Likewise.
36948         * modules/locale: Likewise.
36949         * modules/math: Likewise.
36950         * modules/netdb: Likewise.
36951         * modules/netinet_in: Likewise.
36952         * modules/poll: Likewise.
36953         * modules/posix_spawnp-tests: Likewise.
36954         * modules/sched: Likewise.
36955         * modules/search: Likewise.
36956         * modules/selinux-h: Likewise.
36957         * modules/signal: Likewise.
36958         * modules/spawn: Likewise.
36959         * modules/stdarg: Likewise.
36960         * modules/stdbool: Likewise.
36961         * modules/stddef: Likewise.
36962         * modules/stdint: Likewise.
36963         * modules/stdio: Likewise.
36964         * modules/stdlib: Likewise.
36965         * modules/string: Likewise.
36966         * modules/strings: Likewise.
36967         * modules/sys_file: Likewise.
36968         * modules/sys_ioctl: Likewise.
36969         * modules/sys_select: Likewise.
36970         * modules/sys_socket: Likewise.
36971         * modules/sys_stat: Likewise.
36972         * modules/sys_time: Likewise.
36973         * modules/sys_times: Likewise.
36974         * modules/sys_utsname: Likewise.
36975         * modules/sys_wait: Likewise.
36976         * modules/sysexits: Likewise.
36977         * modules/time: Likewise.
36978         * modules/unistd: Likewise.
36979         * modules/wchar: Likewise.
36980         * modules/wctype: Likewise.
36981
36982 2009-08-22  Jim Meyering  <meyering@redhat.com>
36983
36984         announce-gen: detect write failure
36985         * build-aux/announce-gen: Add Coda at end.
36986         Remove equivalent-but-more-verbose block at top.
36987
36988 2009-08-19  Akim Demaille  <demaille@gostai.com>
36989
36990         bootstrap: --help to stdout.
36991         * bootstrap (usage): Don't send --help to stderr.
36992         Use a here doc instead of a long string.
36993
36994 2009-08-21  Eric Blake  <ebb9@byu.net>
36995
36996         test-popen-safer: split from test-popen
36997         * tests/test-popen.c (main): Move...
36998         * tests/test-popen.h: ...into new file.
36999         * tests/test-popen-safer2.c: New file.
37000         * modules/popen-tests (Files): Add test-popen.h.
37001         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
37002         Suggested by Bruno Haible.
37003
37004         test-fcntl-safer: split from test-open
37005         * tests/test-open.c (main): Move...
37006         * tests/test-open.h: ...into new file.
37007         * tests/test-fcntl-safer.c: New file.
37008         * modules/open-tests (Files): Add test-open.h.
37009         * modules/fcntl-safer-tests: New file.
37010         Suggested by Bruno Haible.
37011
37012         test-fopen-safer: split from test-fopen
37013         * tests/test-fopen.c (main): Move...
37014         * tests/test-fopen.h: ...into new file.
37015         * tests/test-fopen-safer.c: New file.
37016         * modules/fopen-tests (Files): Add test-fopen.h.
37017         * modules/fopen-safer-tests: New file.
37018         Suggested by Bruno Haible.
37019
37020 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
37021
37022         popen-safer: test O_CLOEXEC at run-time.
37023         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
37024
37025 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
37026
37027         fcntl: move more flags to the header
37028         * lib/cloexec.c: Do not define FD_CLOEXEC here.
37029         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
37030         * lib/fcntl.in.h: Do both things here.
37031
37032 2009-08-21  Jim Meyering  <meyering@redhat.com>
37033
37034         consistently remove $@-t before redirecting to it
37035         * modules/argz: Remove $@-t and $@ before redirecting to the former.
37036         * modules/alloca-opt: Likewise.
37037         * modules/byteswap: Likewise.
37038         * modules/fnmatch: Likewise.
37039         * modules/getopt-posix: Likewise.
37040         * modules/glob: Likewise.
37041         * modules/poll: Likewise.
37042         * modules/posix_spawnp-tests: Likewise.
37043         * modules/sys_socket: Likewise.
37044         * modules/sysexits: Likewise.
37045
37046 2009-08-21  Eric Blake  <ebb9@byu.net>
37047
37048         popen: simplify access to original popen
37049         * lib/popen.c (rpl_popen): No need to worry about popen being a
37050         macro.
37051         Reported by Bruno Haible.
37052
37053 2009-08-20  Eric Blake  <ebb9@byu.net>
37054
37055         build: avoid some compiler warnings
37056         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
37057         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
37058         type.
37059         (new_exclude_segment, excluded_file_pattern_p)
37060         (excluded_file_name_p): Reduce scope.
37061         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
37062         old-style declaration.
37063
37064 2009-08-20  Simon Josefsson  <simon@josefsson.org>
37065
37066         * tests/test-exclude1.sh: Handle Windows EOL.
37067         * tests/test-exclude2.sh: Likewise.
37068         * tests/test-exclude3.sh: Likewise.
37069         * tests/test-exclude4.sh: Likewise.
37070         * tests/test-exclude5.sh: Likewise.
37071         * tests/test-exclude6.sh: Likewise.
37072         * tests/test-exclude7.sh: Likewise.
37073
37074 2009-08-19  Akim Demaille  <demaille@gostai.com>
37075
37076         bootstrap: find sha1sum when named gsha1sum.
37077         * bootstrap (find_tool): New.
37078         ($SHA1SUM): New.
37079         Use it.
37080
37081 2009-08-20  Jim Meyering  <meyering@redhat.com>
37082
37083         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
37084         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
37085         expression that converts "." in a file name to "\." in the resulting
37086         regexp.  Start with a dummy statement, so that prior shell variable
37087         definitions are expanded portably.  Reported by Simon Josefsson.
37088
37089 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
37090
37091         Fix polling for writeability of a screen buffer.
37092         * lib/poll.c: Distinguish input and screen buffers for the
37093         Win32 implementation.
37094         * lib/select.c: Likewise.
37095
37096 2009-08-19  Eric Blake  <ebb9@byu.net>
37097
37098         popen-safer: prevent popen from clobbering std descriptors
37099         * modules/popen-safer: New file.
37100         * lib/popen-safer.c: Likewise.
37101         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
37102         * lib/stdio--.h (popen): Provide override.
37103         * lib/stdio-safer.h (popen_safer): Provide declaration.
37104         * tests/test-popen.c (includes): Partially test this.
37105         * modules/popen-safer-tests: New file, for more tests.
37106         * tests/test-popen-safer.c: Likewise.
37107         * MODULES.html.sh (file stream based Input/Output): Mention it.
37108
37109         tests: test some of the *-safer modules
37110         * modules/fopen-safer (Depends-on): Add fopen.
37111         * modules/fcntl-safer (Depends-on): Add fcntl.
37112         * modules/stdlib-safer (Depends-on): Add stdlib.
37113         (configure.ac): Set indicator.
37114         * modules/unistd-safer (configure.ac): Likewise.
37115         * modules/tmpfile-safer (configure.ac): Likewise.
37116         (Depends-on): Add tmpfile.
37117         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
37118         active.
37119         * tests/test-fopen.c (includes): Test safer versions when they are
37120         in use.
37121         * tests/test-open.c (includes): Likewise.
37122
37123         popen: fix cygwin 1.5 bug when stdin closed
37124         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
37125         * modules/popen: New file.
37126         * modules/popen-tests: Likewise.
37127         * tests/test-popen.c: Likewise.
37128         * m4/popen.m4: Likewise.
37129         * lib/popen.c: Likewise.
37130         * lib/stdio.in.h (popen): New declaration.
37131         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
37132         * modules/stdio (Makefile.am): Likewise.
37133         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
37134
37135 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
37136
37137         maint.mk: give full control over update-copyright exclusions
37138         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
37139         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
37140         (update-copyright): Don't force inclusion of top-level
37141         ChangeLog.  Don't force exclusion of all COPYING files, but make
37142         them the default exclusion instead.
37143
37144 2009-08-16  Bruno Haible  <bruno@clisp.org>
37145
37146         Fix test failures on Solaris 10.
37147         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
37148         tests when Solaris iconv() is used.
37149         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
37150         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
37151         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
37152         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
37153         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
37154
37155 2009-08-16  Bruno Haible  <bruno@clisp.org>
37156
37157         Fix test failures on Solaris 10.
37158         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
37159         'tr' program and pass it as first argument.
37160         * tests/test-pipe-filter-gi1.sh: Likewise.
37161         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
37162         program as first argument.
37163         * tests/test-pipe-filter-gi1.c (main): Likewise.
37164
37165 2009-08-16  Eric Blake  <ebb9@byu.net>
37166
37167         fpurge: fix previous commits
37168         * modules/fpurge (Makefile.am): Make replacement conditional,
37169         partially reverting 2007-04-29 change; missed in previous
37170         attempt.
37171         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
37172         is missing.
37173
37174 2009-08-16  Bruno Haible  <bruno@clisp.org>
37175
37176         Clarify fpurge's effect on the file position.
37177         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
37178         * tests/test-fpurge.c (main): Make a second pass for checking the file
37179         position.
37180
37181 2009-08-16  Bruno Haible  <bruno@clisp.org>
37182
37183         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
37184         declaration of fpurge is missing.
37185         * tests/test-fpurge.c (main): Check that the file has not more contents
37186         than expected. Close the file before removing it.
37187
37188 2009-08-15  Eric Blake  <ebb9@byu.net>
37189
37190         fpurge: don't wrap working cygwin implementation
37191         * lib/fpurge.c (fpurge): Fix comment typo.
37192         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
37193         1.7 to avoid replacement.
37194         * tests/test-fpurge.c (main): Enhance test.
37195
37196 2009-08-15  Eric Blake  <ebb9@byu.net>
37197         and Jim Meyering  <meyering@redhat.com>
37198
37199         test-update-copyright: skip if perl is insufficient
37200         * tests/test-update-copyright.sh: Failure to run maintainer tool
37201         should not cause testsuite failure on cygwin 1.5.
37202
37203 2009-08-14  Eric Blake  <ebb9@byu.net>
37204
37205         doc: mention more functions added in cygwin 1.7.0
37206         * doc/posix-headers/limits.texi (limits.h): Update for recent
37207         cygwin additions.
37208         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
37209         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
37210         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
37211         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
37212         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
37213
37214 2009-08-14  Eric Blake  <ebb9@byu.net>
37215
37216         maint.mk: simplify update-copyright rule
37217         * top/maint.mk (update-copyright-local): Delete, and document how
37218         to do it in cfg.mk instead.
37219         (update-copyright-exclude-regexp): Delete, and document how to do
37220         it in .x-update-copyright instead.
37221         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
37222         exclude ChangeLog.
37223
37224 2009-08-14  Bruno Haible  <bruno@clisp.org>
37225
37226         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
37227
37228 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37229
37230         maint.mk: support update-copyright-env
37231         * top/maint.mk (update-copyright-env): Define place-holder.
37232         (update-copyright): Expand $(update-copyright-env) before
37233         invoking update-copyright.
37234
37235 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37236
37237         update-copyright: implement forced reformatting
37238         * build-aux/update-copyright: Implement and document
37239         UPDATE_COPYRIGHT_FORCE.
37240         * tests/test-update-copyright.sh: Test it.
37241
37242 2009-08-14  Eric Blake  <ebb9@byu.net>
37243         and Bruno Haible  <bruno@clisp.org>
37244
37245         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
37246         * tests/test-locale.c: Revert previous patch related to NULL.
37247         * tests/test-stdio.c: Likewise.
37248         * tests/test-stdlib.c: Likewise.
37249         * tests/test-string.c: Likewise.
37250         * tests/test-unistd.c: Likewise.
37251         * modules/time-tests (Depends-on): Add verify.
37252         * modules/wchar-tests (Depends-on): Likewise.
37253         * tests/test-time.c: Test for NULL compliance.
37254         * tests/test-wchar.c: Likewise.
37255         * modules/locale (Depends-on): Add stddef.
37256         * modules/stdio (Depends-on): Likewise.
37257         * modules/stdlib (Depends-on): Likewise.
37258         * modules/string (Depends-on): Likewise.
37259         * modules/time (Depends-on): Likewise.
37260         * modules/unistd (Depends-on): Likewise.
37261         * modules/wchar (Depends-on): Likewise.
37262         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
37263         * lib/stdlib.in.h (includes): Likewise.
37264         * lib/string.in.h (includes): Likewise.
37265         * lib/time.in.h (includes): Likewise.
37266         * lib/unistd.in.h (includes): Likewise.
37267         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
37268         replaced.
37269         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37270         * m4/stddef_h.m4: New file.
37271         * modules/stddef: Likewise.
37272         * lib/stddef.in.h: Likewise.
37273         * modules/stddef-tests: Likewise.
37274         * tests/test-stddef.c: Likewise.
37275         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
37276         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
37277         * doc/posix-headers/locale.texi (locale.h): Likewise.
37278         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
37279         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
37280         * doc/posix-headers/string.texi (string.h): Likewise.
37281         * doc/posix-headers/time.texi (time.h): Likewise.
37282         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
37283         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
37284
37285 2009-08-14  Eric Blake  <ebb9@byu.net>
37286
37287         doc: improve git diff of texinfo files
37288         * .gitattributes: Add rule for *.texi files, with hint on how to
37289         use it.
37290         Copied from m4, and based on a report by Bruno Haible.
37291
37292 2009-08-14  Bruno Haible  <bruno@clisp.org>
37293
37294         Disable multithread support by default on Cygwin 1.5.x for real.
37295         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
37296
37297 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37298
37299         update-copyright: much ado about intervals
37300         * build-aux/update-copyright: Implement and document
37301         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
37302         of copyright year intervals.
37303         Also, document UPDATE_COPYRIGHT_YEAR.
37304         * tests/test-update-copyright.sh: Test it.
37305
37306         update-copyright: convert 2-digit to 4-digit years
37307         * build-aux/update-copyright: Implement and document.
37308         * tests/test-update-copyright.sh: Update.
37309
37310 2009-08-14  Jim Meyering  <meyering@redhat.com>
37311
37312         test-exclude: avoid coreutils "make check" failure
37313         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
37314         just as in test-argmatch.c.
37315
37316 2009-08-13  Eric Blake  <ebb9@byu.net>
37317
37318         test-dup2: fix bad assumption
37319         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
37320         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
37321
37322         test-version-etc: fix CRLF portability issue
37323         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
37324         recognize \r.
37325         * tests/test-argp-version-etc-1.sh: Likewise.
37326
37327         getopt: update client modules
37328         * modules/argp (Depends-on): Use getopt-gnu.
37329         * modules/git-merge-changelog (Depends-on): Likewise.
37330         * modules/long-options (Depends-on): Likewise.
37331         * modules/xstrtol (Depends-on): Likewise.
37332
37333 2009-08-13  Simon Josefsson  <simon@josefsson.org>
37334
37335         * tests/test-version-etc.sh: Don't fail on different
37336         project/version.  Don't fail on CRLF differences.  Rewrite to use
37337         multiple -e instead of multiple sed forks, suggested by Eric Blake
37338         <ebb9@byu.net>.
37339         * tests/test-argp-version-etc-1.sh: Likewise.
37340
37341 2009-08-13  Simon Josefsson  <simon@josefsson.org>
37342
37343         * tests/test-version-etc.sh: Don't fail on different
37344         project/version.
37345
37346 2009-08-12  Bruno Haible  <bruno@clisp.org>
37347
37348         Tests for modules 'getopt-posix', 'getopt-gnu'.
37349         * modules/getopt-posix-tests: New file.
37350         * tests/test-getopt.c: New file.
37351         * tests/test-getopt.h: New file.
37352         * tests/test-getopt_long.h: New file.
37353
37354         New modules 'getopt-posix', 'getopt-gnu'.
37355         * modules/getopt-gnu: New file, renamed from modules/getopt.
37356         * modules/getopt-posix: New file.
37357         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
37358         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
37359         (gl_GETOPT): Remove macro.
37360         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
37361         Disable the test against BSD systems that declare optreset. Test
37362         against mingw bug. Test against lack of support of optional arguments
37363         on many platforms.
37364         * doc/glibc-headers/getopt.texi: Update module name and list of
37365         relevant platforms.
37366         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
37367         'getopt-gnu' and more portability problems.
37368         * NEWS: Mention the changes.
37369
37370 2009-08-12  Bruno Haible  <bruno@clisp.org>
37371
37372         Ensure that optarg etc. get declared by <unistd.h>.
37373         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
37374         AC_USE_SYSTEM_EXTENSIONS.
37375         * modules/getopt (Depends-on): Add 'extensions'.
37376
37377 2009-08-12  Bruno Haible  <bruno@clisp.org>
37378
37379         Avoid test link errors.
37380         * modules/pipe-filter-ii-tests (Makefile.am): Define
37381         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
37382         * modules/pipe-filter-gi-tests (Makefile.am): Define
37383         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
37384         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37385
37386 2009-08-12  Bruno Haible  <bruno@clisp.org>
37387
37388         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
37389         gl_GETOPT_SUBSTITUTE before.
37390         (gl_GETOPT): Use it.
37391         * m4/argp.m4 (gl_ARGP): Update.
37392         Reported by Sergey Poznyakoff.
37393
37394         * m4/getopt.m4: Reorder macros.
37395         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
37396         (gl_GETOPT_SUBSTITUTE): Remove macro.
37397
37398 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37399
37400         Minor improvement in gitlog-to-changelog
37401
37402         * build-aux/gitlog-to-changelog: New option `--format' makes
37403         output format string configurable.
37404
37405 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37406
37407         Optimize exclude: use hash tables for non-wildcard patterns.
37408
37409         * lib/exclude.c: Include hash.h and mbuiter.h
37410         (struct exclude_pattern, exclude_segment): New data types.
37411         (struct exclude): Rewrite.
37412         (fnmatch_pattern_has_wildcards): New function.
37413         (new_exclude_segment, free_exclude_segment): New functions.
37414         (excluded_file_pattern_p, excluded_file_name_p): New functions.
37415         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
37416         * lib/exclude.h (is_fnmatch_pattern): New prototype.
37417         * modules/exclude: Depend on hash and mbuiter.
37418
37419         * modules/exclude-tests: New file.
37420         * tests/test-exclude.c: New file.
37421         * tests/test-exclude1.sh: New file.
37422         * tests/test-exclude2.sh: New file.
37423         * tests/test-exclude3.sh: New file.
37424         * tests/test-exclude4.sh: New file.
37425         * tests/test-exclude5.sh: New file.
37426         * tests/test-exclude6.sh: New file.
37427         * tests/test-exclude7.sh: New file.
37428
37429 2009-08-12  Bruno Haible  <bruno@clisp.org>
37430
37431         Ensure that getopt() gets declared by <unistd.h>.
37432         * lib/unistd.in.h: Conditionally include getopt.h.
37433         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
37434         Set GNULIB_UNISTD_H_GETOPT.
37435         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37436         GNULIB_UNISTD_H_GETOPT.
37437         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
37438
37439 2009-08-12  Bruno Haible  <bruno@clisp.org>
37440
37441         Clarify logic.
37442         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
37443         gl_replace_getopt instead of GETOPT_H.
37444
37445 2009-08-12  Bruno Haible  <bruno@clisp.org>
37446
37447         * m4/getopt.m4: Add comments.
37448
37449 2009-08-12  Bruno Haible  <bruno@clisp.org>
37450
37451         Disable multithread support by default on Cygwin 1.5.x.
37452         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
37453         set gl_use_threads=no if not specified otherwise.
37454
37455 2009-08-11  Bruno Haible  <bruno@clisp.org>
37456
37457         Avoid compilation error on NetBSD 5.0.
37458         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
37459         * tests/test-stdio.c: Likewise.
37460         * tests/test-stdlib.c: Likewise.
37461         * tests/test-string.c: Likewise.
37462         * tests/test-unistd.c: Likewise.
37463         Reported by Greg Troxel <gdt@ir.bbn.com>
37464         at <https://savannah.gnu.org/support/?106973>.
37465
37466 2009-08-11  Bruno Haible  <bruno@clisp.org>
37467
37468         * modules/dup2-tests (Depends-on): Remove close.
37469
37470         Undo 2009-07-19 commit.
37471         * modules/acl-tests (Depends-on): Remove close.
37472         * modules/binary-io-tests (Depends-on): Likewise.
37473         * modules/closein-tests (Depends-on): Likewise.
37474         * modules/flock-tests (Depends-on): Likewise.
37475         * modules/fsync-tests (Depends-on): Likewise.
37476         * modules/lseek-tests (Depends-on): Likewise.
37477         * modules/pipe-tests (Depends-on): Likewise.
37478         * modules/posix_spawn-tests (Depends-on): Likewise.
37479         * modules/posix_spawnp-tests (Depends-on): Likewise.
37480         * modules/stat-time-tests (Depends-on): Likewise.
37481         * modules/yesno-tests (Depends-on): Likewise.
37482
37483 2009-08-10  Bruno Haible  <bruno@clisp.org>
37484
37485         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
37486
37487 2009-08-10  Bruno Haible  <bruno@clisp.org>
37488
37489         Fix a gcc warning.
37490         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
37491
37492 2009-08-10  Bruno Haible  <bruno@clisp.org>
37493
37494         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
37495         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
37496         not only the first time.
37497         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
37498         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
37499         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
37500         is 1, not only the the first time.
37501
37502 2009-08-10  Bruno Haible  <bruno@clisp.org>
37503
37504         Make it possible to use module 'gethostname' without module 'close'.
37505         * lib/unistd.in.h (close): Evoke a link error only if
37506         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
37507         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37508         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37509         * modules/unistd (Makefile.am): Substitute
37510         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37511         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
37512         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
37513         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
37514         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37515         * modules/sys_ioctl (Makefile.am): Substitute
37516         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37517         * modules/socket (configure.ac): On native Windows, set
37518         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
37519         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37520         Reported by Sam Steingold <sds@gnu.org>.
37521
37522 2009-08-10  Bruno Haible  <bruno@clisp.org>
37523
37524         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
37525         * modules/ioctl (configure.ac): Likewise.
37526
37527 2009-08-10  Bruno Haible  <bruno@clisp.org>
37528
37529         Avoid collision between gnulib wrapper and libintl wrapper.
37530         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
37531         already defined in intl/printf.c.
37532         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
37533         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
37534
37535 2009-08-09  Bruno Haible  <bruno@clisp.org>
37536
37537         Make <sys/select.h> really self-contained, also on Solaris 10.
37538         * lib/sys_select.in.h: Include <string.h>.
37539         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
37540         Solaris 10 problem.
37541         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
37542         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
37543         Reported by Jim Meyering.
37544
37545 2009-08-09  Bruno Haible  <bruno@clisp.org>
37546
37547         Avoid warnings from 'aclocal' that are due to a use of macro name
37548         AM_XGETTEXT_OPTION that is not defined in automake.
37549         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
37550         automake.
37551         * modules/error (configure.ac): Likewise.
37552         * modules/propername (configure.ac): Likewise.
37553         * modules/vasprintf (configure.ac): Likewise.
37554         * modules/verror (configure.ac): Likewise.
37555         * modules/xprintf (configure.ac): Likewise.
37556         * modules/xvasprintf (configure.ac): Likewise.
37557
37558 2009-08-08  Bruno Haible  <bruno@clisp.org>
37559
37560         Avoid compilation error in C++ mode.
37561         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
37562         Reported by Sam Steingold <sds@gnu.org>.
37563
37564 2009-08-08  Bruno Haible  <bruno@clisp.org>
37565
37566         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
37567         for the various Unix platforms.
37568         * doc/posix-headers/limits.texi: Update platforms list regarding
37569         HOST_NAME_MAX.
37570         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37571
37572 2009-08-07  Jim Meyering  <meyering@redhat.com>
37573
37574         selinux-at: fix typo in a comment
37575         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
37576         Spotted by Paolo Bonzini.
37577
37578         selinux-at: remove redundant m4 code, add documentation
37579         * modules/selinux-at (configure.ac): Remove redundant code.
37580         LIB_SELINUX is already set via the dependent module, selinux-h.
37581         (Include): Add quotes around selinux-at.h.
37582         * lib/selinux-at.h: Add documentation.
37583         Reported by Bruno Haible in
37584         http://marc.info/?l=gnulib-bug&m=124958988300749
37585
37586 2009-08-07  Bruno Haible  <bruno@clisp.org>
37587
37588         Avoid link error on MacOS X 10.3 and 10.4.
37589         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
37590         on non-ELF systems.
37591         * lib/argp-pv.c (argp_program_version): Likewise.
37592         Reported by Simon Josefsson.
37593
37594 2009-08-07  Simon Josefsson  <simon@josefsson.org>
37595
37596         * tests/test-version-etc.sh: Use $EXEEXT.
37597
37598 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
37599
37600         update-copyright: update documentation to point to maint.mk
37601         * build-aux/update-copyright: Here.
37602
37603 2009-08-06  Jim Meyering  <meyering@redhat.com>
37604
37605         maint.mk: support update-copyright-local
37606         * top/maint.mk (update-copyright-local): Define place-holder.
37607         (update-copyright): Depend on $(update-copyright-local).
37608
37609 2009-08-06  Jim Meyering  <meyering@redhat.com>
37610
37611         selinux-at: new module
37612         Initially written for coreutils, this module will soon be
37613         used by findutils, too.
37614         * MODULES.html.sh [Misc]: Add selinux-at.
37615         * lib/selinux-at.h: New file, from coreutils.
37616         * lib/selinux-at.c: Likewise.
37617         * modules/selinux-at: Likewise.
37618         (License): Change from LGPL to GPL, since it depends
37619         on the GPL'd openat module.
37620
37621         doc: update README
37622         * README: Remove references to cogito.
37623         Remove cvs-repo-updating instructions from 2007.
37624         Don't imply that CVS is better if you have limited disk space.
37625
37626 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37627
37628         update-copyright: support C-style comments
37629         * build-aux/update-copyright: Implement and document.
37630         * tests/test-update-copyright.sh: Test.
37631
37632 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37633
37634         update-copyright: support omitted "(C)"
37635         * build-aux/update-copyright: Implement and document.  Also,
37636         allow variable whitespace before "(C)".
37637         * tests/test-update-copyright.sh: Test.
37638
37639 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37640
37641         update-copyright: don't trip on non-FSF copyright statements
37642         * build-aux/update-copyright: Fix so that the first correctly
37643         formatted FSF copyright statement is recognized no matter what
37644         appears before it.  Update documentation.
37645         * tests/test-update-copyright.sh: Test that.
37646
37647 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37648
37649         update-copyright: clean up code a little
37650         * build-aux/update-copyright: Append "_re" to the name of any
37651         variable holding a regular expression.
37652         Replace "old" and "new" with "stmt" in variable names.
37653         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
37654         handled correctly.
37655         Format code more consistently.
37656
37657 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37658
37659         update-copyright-tests: improve portability
37660         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
37661         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
37662
37663 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37664
37665         update-copyright: support @copyright{} and &copy;
37666         * build-aux/update-copyright: Implement and document.
37667         * tests/test-update-copyright.sh: Test.
37668
37669 2009-08-04  Jim Meyering  <meyering@redhat.com>
37670
37671         update-copyright-tests: correctly test EOL=\r\n handling
37672         * tests/test-update-copyright.sh: Put \r at the end of some lines
37673         for the dos-eol tests.  Based on a patch by Joel E. Denny.
37674
37675         maint.mk: make update-copyright exclusion list more configurable
37676         * top/maint.mk (update-copyright): Default to excluding COPYING,
37677         but allow an override, in case someone does want to update that file.
37678
37679         maint.mk: don't update copyright date in COPYING
37680         * top/maint.mk (update-copyright): Exclude COPYING.
37681
37682         maint.mk: add a copyright-updating rule
37683         * top/maint.mk (update-copyright): New rule.
37684         Derived from coreutils/Makefile.am.
37685
37686         update-copyright: rename some variables
37687         * build-aux/update-copyright: Rename a few variables for clarity.
37688         Tweak syntax.  List Joel E. Denny as coauthor.
37689
37690 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37691
37692         update-copyright: fix bug for 2-digit last year and add tests
37693         * build-aux/update-copyright: Fix bug.
37694         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
37695         specified.
37696         * modules/update-copyright-tests: New
37697         * tests/test-update-copyright.sh: New.
37698
37699 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37700
37701         update-copyright: handle leading tabs in line prefix
37702         * build-aux/update-copyright: Count leading tabs as 8 spaces
37703         when computing margin.  This helps with the formatting of
37704         ChangeLogs, for example.
37705         Fix documentation a little.
37706
37707 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37708
37709         update-copyright: support EOL=\r\n
37710         * build-aux/update-copyright: Implement that.
37711
37712 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37713
37714         update-copyright: automatically format copyright statements
37715         * build-aux/update-copyright: Implement that.
37716         Also, be a little more predictable and safer by always failing
37717         when the full copyright format is not perfectly recognized as an
37718         unbroken whole.  Discussed at
37719         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
37720         Rewrite documentation.
37721
37722 2009-08-03  Bruno Haible  <bruno@clisp.org>
37723
37724         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
37725
37726 2009-08-02  Bruno Haible  <bruno@clisp.org>
37727
37728         Tests for module 'uname'.
37729         * modules/uname-tests: New file.
37730         * tests/test-uname.c: New file.
37731
37732         New module 'uname'.
37733         * lib/uname.c: New file.
37734         * m4/uname.m4: New file.
37735         * modules/uname: New file.
37736         * doc/posix-functions/uname.texi: Mention the new module.
37737
37738 2009-08-02  Bruno Haible  <bruno@clisp.org>
37739
37740         Tests for module 'sys_utsname'.
37741         * modules/sys_utsname-tests: New file.
37742         * tests/test-sys_utsname.c: New file.
37743
37744         New module 'sys_utsname'.
37745         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
37746         * m4/sys_utsname_h.m4: New file.
37747         * modules/sys_utsname: New file.
37748         * doc/posix-headers/sys_utsname.texi: Mention the new module.
37749
37750 2009-08-02  Bruno Haible  <bruno@clisp.org>
37751
37752         Implicitly initialize the sockets library.
37753         * lib/gethostname.c: Include sockets.h.
37754         (rpl_gethostname): Invoke gl_sockets_startup.
37755         * lib/socket.c: Include sockets.h.
37756         (rpl_socket): Invoke gl_sockets_startup.
37757         * modules/gethostname (Depends-on): Add sockets.
37758         * modules/socket (Depends-on): Likewise.
37759         * tests/test-poll.c: Don't include sockets.h.
37760         (main): Don't invoke gl_sockets_startup.
37761         * tests/test-select.c: Don't include sockets.h.
37762         (main): Don't invoke gl_sockets_startup.
37763
37764 2009-08-02  Bruno Haible  <bruno@clisp.org>
37765
37766         Allow multiple calls to gl_sockets_startup.
37767         * lib/sockets.c (initialized_sockets_version): New variable.
37768         (gl_sockets_startup): Do nothing if already called for this or a higher
37769         version.
37770         (gl_sockets_cleanup): Reset initialized_sockets_version.
37771
37772 2009-08-03  Simon Josefsson  <simon@josefsson.org>
37773
37774         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
37775         different project/version.
37776
37777 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
37778             Bruno Haible  <bruno@clisp.org>
37779
37780         Tests for module 'pipe-filter-gi'.
37781         * modules/pipe-filter-gi-tests: New file.
37782         * tests/test-pipe-filter-gi1.sh: New file.
37783         * tests/test-pipe-filter-gi1.c: New file.
37784         * tests/test-pipe-filter-gi2.sh: New file.
37785         * tests/test-pipe-filter-gi2-main.c: New file.
37786         * tests/test-pipe-filter-gi2-child.c: New file.
37787
37788         New module 'pipe-filter-gi'.
37789         * lib/pipe-filter-gi.c: New file.
37790         * modules/pipe-filter-gi: New file.
37791
37792 2009-08-02  Bruno Haible  <bruno@clisp.org>
37793             Paolo Bonzini  <bonzini@gnu.org>
37794
37795         Tests for module 'pipe-filter-ii'.
37796         * modules/pipe-filter-ii-tests: New file.
37797         * tests/test-pipe-filter-ii1.sh: New file.
37798         * tests/test-pipe-filter-ii1.c: New file.
37799         * tests/test-pipe-filter-ii2.sh: New file.
37800         * tests/test-pipe-filter-ii2-main.c: New file.
37801         * tests/test-pipe-filter-ii2-child.c: New file.
37802
37803         New module 'pipe-filter-ii'.
37804         * lib/pipe-filter.h: New file.
37805         * lib/pipe-filter-ii.c: New file.
37806         * lib/pipe-filter-aux.h: New file.
37807         * modules/pipe-filter-ii: New file.
37808
37809 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37810
37811         * lib/gc-libgcrypt.c: Change copyright to FSF.
37812         * lib/gc-gnulib.c: Likewise.
37813
37814 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
37815
37816         * lib/gethostname.c: Include limits.h.
37817
37818 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37819             Bruno Haible  <bruno@clisp.org>
37820
37821         Ensure HOST_NAME_MAX as part of the gethostname module.
37822         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
37823         define also HOST_NAME_MAX.
37824         * tests/test-gethostname.c: Include <limits.h>.
37825         (main): Check also HOST_NAME_MAX.
37826         * doc/posix-headers/limits.texi: Document the mingw problem.
37827
37828 2009-08-02  Bruno Haible  <bruno@clisp.org>
37829
37830         * lib/gethostname.c (gethostname): Fix handling of large len argument.
37831         Add comments.
37832
37833 2009-03-31  Simon Josefsson  <simon@josefsson.org>
37834
37835         * lib/gethostname.c: Add Windows wrapper.
37836         * m4/gethostname.m4: Look for gethostname in -lws2_32.
37837         * modules/gethostname: Depend on sys_socket & errno, for also
37838         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
37839         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
37840
37841 2009-07-31  Jim Meyering  <meyering@redhat.com>
37842
37843         getloadavg: fix symbol name in comment
37844         * lib/getloadavg.c: Correct a typo I introduced when adding
37845         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
37846         Matt Kraai spotted the problem.
37847
37848 2009-07-29  Matt Kraai  <mkraai@beckman.com>
37849
37850         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
37851         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
37852         code also if ! defined N_NAME_POINTER.
37853         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
37854         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
37855         but the n_name member is a 12-byte array.
37856
37857 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
37858
37859         update-copyright: generalize comment handling
37860         * build-aux/update-copyright: Handle copyright statements
37861         within more comment styles.
37862         Document usage.
37863         Report any file with an external copyright holder or parse failure.
37864
37865 2009-07-29  Jim Meyering  <meyering@redhat.com>
37866
37867         mktime: correct setting of REPLACE_MKTIME
37868         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
37869
37870         update-copyright: new module
37871         * modules/update-copyright: New file.
37872         * build-aux/update-copyright: New file.
37873         * MODULES.html.sh (maint+release support): Add update-copyright.
37874
37875 2009-07-27  Bruno Haible  <bruno@clisp.org>
37876
37877         Fix compilation error when <ctime> is used and mktime is replaced.
37878         * lib/time.in.h (mktime): New declaration.
37879         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
37880         REPLACE_MKTIME instead of defining mktime in config.h.
37881         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
37882         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
37883         Reported by Ross McFarland <rwmcfa1@neces.com>.
37884
37885 2009-07-27  Bruno Haible  <bruno@clisp.org>
37886
37887         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
37888         Reported by Matt Kraai <mkraai@beckman.com>.
37889
37890 2009-07-25  Jim Meyering  <meyering@redhat.com>
37891
37892         maint.mk: avoid warnings about missing files
37893         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
37894         diagnostic when .prev-version does not exist.
37895         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
37896         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
37897         nonexistent cfg.mk.
37898         Suggestions from Simon Josefsson.
37899
37900 2009-07-25  Bruno Haible  <bruno@clisp.org>
37901
37902         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
37903         defined as macros. Needed on QNX 6.4.1.
37904         Reported by Matt Kraai <mkraai@beckman.com>.
37905
37906 2009-07-23  Jim Meyering  <meyering@redhat.com>
37907
37908         maint.mk: invoke "make dist" with a working value of XZ_OPT
37909         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
37910
37911 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
37912
37913         Make fseeko.c compile on QNX.
37914         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
37915
37916 2009-07-22  Peter Simons  <simons@cryp.to>
37917
37918         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
37919         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
37920         * lib/md4.h: Likewise.
37921         * lib/md5.h: Likewise.
37922         * lib/sha1.h: Likewise.
37923         * lib/sha256.h: Likewise.
37924         * lib/sha512.h: Likewise.
37925
37926         tests-sha1: don't assign literal string to 'char *' variable
37927         * tests/test-sha1.c (main): Declare locals with "const" to match
37928         attributes of the right hand side.
37929
37930 2009-07-21  Eric Blake  <ebb9@byu.net>
37931
37932         dup2: fix more mingw problems
37933         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
37934         fd to itself.
37935         * doc/posix-functions/dup2.texi (dup2): Document the bug.
37936         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
37937         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
37938         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
37939         care of mingw bugs.
37940
37941 2009-07-21  Jim Meyering  <meyering@redhat.com>
37942
37943         vc-list-files: avoid failure when /bin/sh is dash
37944         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
37945         On some Debian based systems, /bin/sh is a symlink to dash, and running
37946         this command would omit the "/" following each 'tests' prefix:
37947           dash -x build-aux/vc-list-files -C . tests
37948         That is because bash and dash work differently:
37949           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
37950           bash ok
37951           dash odd
37952
37953 2009-07-21  Eric Blake  <ebb9@byu.net>
37954
37955         dup2-tests: test previous patch
37956         * modules/dup2-tests: New file.
37957         * tests/test-dup2.c: Likewise.
37958         * tests/test-open.c (main): Avoid unspecified behavior.
37959         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
37960         test.
37961
37962         dup2: work around mingw and cygwin 1.5 bug
37963         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
37964         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37965         * modules/unistd (Makefile.am): Substitute it.
37966         * lib/unistd.in.h (dup2): Declare the replacement.
37967         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
37968         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
37969         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
37970         * modules/execute (Depends-on): Add dup2.
37971         * modules/fseterr (Depends-on): Likewise.
37972         * modules/pipe (Depends-on): Likewise.
37973         * modules/posix_spawn-internal (Depends-on): Likewise.
37974
37975 2009-07-21  Bruno Haible  <bruno@clisp.org>
37976
37977         * modules/.gitattributes: New file.
37978
37979 2009-07-20  Bruno Haible  <bruno@clisp.org>
37980
37981         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
37982         (main): Use it.
37983
37984 2009-07-20  Eric Blake  <ebb9@byu.net>
37985
37986         test-pipe: make a bit more robust.
37987         * tests/test-pipe.c (myerr): Allow error messages regardless of
37988         what we do to stderr.
37989         (test_pipe): Rearrange to avoid deadlock.
37990         (child_main): Try a larger read, to ensure we avoided deadlock.
37991         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
37992         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
37993         if misused.
37994
37995 2009-07-19  Jim Meyering  <meyering@redhat.com>
37996
37997         fts: avoid false-positive cycle-detection
37998         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
37999         for each new command line argument.
38000
38001 2009-07-19  Bruno Haible  <bruno@clisp.org>
38002
38003         Fix build error on mingw with the modules sys_select and unistd.
38004         * modules/acl-tests (Depends-on): Add close.
38005         * modules/binary-io-tests (Depends-on): Likewise.
38006         * modules/closein-tests (Depends-on): Likewise.
38007         * modules/flock-tests (Depends-on): Likewise.
38008         * modules/fsync-tests (Depends-on): Likewise.
38009         * modules/lseek-tests (Depends-on): Likewise.
38010         * modules/pipe-tests (Depends-on): Likewise.
38011         * modules/posix_spawn-tests (Depends-on): Likewise.
38012         * modules/posix_spawnp-tests (Depends-on): Likewise.
38013         * modules/stat-time-tests (Depends-on): Likewise.
38014         * modules/yesno-tests (Depends-on): Likewise.
38015
38016 2009-07-19  Bruno Haible  <bruno@clisp.org>
38017
38018         Unify conditionals.
38019         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
38020         macros, not at the compiler macros.
38021         * lib/pipe.c: Likewise.
38022         * lib/execute.c: Likewise.
38023         * lib/spawni.c: Likewise.
38024
38025 2009-07-19  Bruno Haible  <bruno@clisp.org>
38026
38027         Fix handling of closed stdin/stdout/stderr on mingw.
38028         * lib/w32spawn.h: Include unistd.h.
38029         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
38030         file descriptor with O_NOINHERIT flag.
38031         (fd_safer_noinherit): New function, based on fd-safer.c.
38032         (dup_safer_noinherit): New function, based on dup-safer.c.
38033         (undup_safer_noinherit): New function.
38034         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
38035         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
38036         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
38037         instead of fd_safer.
38038         * tests/test-pipe.c: Include <windows.h>.
38039         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
38040         result.
38041
38042         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
38043         from main.
38044         (test_pipe): Pass an extra argument for disambiguation.
38045         (main): Invoke parent_main or child_main.
38046
38047         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
38048         consistently.
38049
38050 2009-07-18  Eric Blake  <ebb9@byu.net>
38051
38052         test-pipe: fix mingw build
38053         * tests/test-pipe.c (main): Avoid fcntl on mingw.
38054
38055 2009-07-18  Bruno Haible  <bruno@clisp.org>
38056
38057         * modules/pipe-tests (Makefile.am): Fix typo.
38058
38059 2009-07-18  Eric Blake  <ebb9@byu.net>
38060
38061         error: fix mingw build
38062         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
38063         Reported by Bruno Haible.
38064
38065         error: avoid undefined use of stdout
38066         * lib/error.c (error, error_at_line): Check that fd 1 is open
38067         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
38068         is handling faults and the close_stdout module wants to report the
38069         detection of closed stdout as an error.
38070
38071 2009-07-17  Eric Blake  <ebb9@byu.net>
38072
38073         pipe: be robust in face of closed fds
38074         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
38075         should cause child to misbehave.
38076         * modules/pipe-tests: New module.
38077         * tests/test-pipe.c: New file.
38078         * tests/test-pipe.sh: New file.
38079         Reported by Akim Demaille.
38080
38081 2009-07-14  Bruno Haible  <bruno@clisp.org>
38082
38083         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
38084         Reported by anonymous kc.
38085
38086 2009-07-07  Jim Meyering  <meyering@redhat.com>
38087
38088         maint.mk: don't look for translatable strings in *.m4 or *.mk
38089         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
38090         when searching for translatable strings.
38091
38092 2009-07-05  Jim Meyering  <meyering@redhat.com>
38093
38094         remove superfluous parentheses in STREQ definition
38095         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
38096         * lib/getugroups.c (STREQ): Likewise.
38097         * lib/fnmatch.c (STREQ): Likewise.
38098         Spotted by Bruno Haible.
38099
38100 2009-07-04  Jim Meyering  <meyering@redhat.com>
38101
38102         argv-iter: new module
38103         * MODULES.html.sh: Add argv-iter.
38104         * lib/argv-iter.c, lib/argv-iter.h: New files.
38105         * modules/argv-iter: New file.
38106         * modules/argv-iter-tests: New file.
38107         * tests/test-argv-iter.c: Test it.
38108
38109 2009-07-04  Bruno Haible  <bruno@clisp.org>
38110
38111         Fix assertion.
38112         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
38113         contains more exact copies of a given entry than file2, leave the extra
38114         copies unpaired rather than aborting.
38115         Reported by Eric Blake.
38116
38117 2009-07-02  Bruno Haible  <bruno@clisp.org>
38118
38119         Speedup git-merge-changelog for git cherry-pick.
38120         * lib/git-merge-changelog.c (struct entries_mapping): New type.
38121         (entries_mapping_get): New function, extracted from compute_mapping.
38122         (entries_mapping_reverse_get): New function.
38123         (compute_mapping): Add a 'full' argument. Return the result in a
38124         'struct entries_mapping'.
38125         (main): Update. Access the mappings through entries_mapping_get.
38126         Reported by Eric Blake.
38127
38128 2009-07-02  Bruno Haible  <bruno@clisp.org>
38129
38130         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
38131         best_i.
38132
38133 2009-07-02  Bruno Haible  <bruno@clisp.org>
38134
38135         Speed up approximate search for matching ChangeLog entries.
38136         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
38137         argument. Call fstrcmp_bounded instead of fstrcmp.
38138         (compute_mapping, try_split_merged_entry, main): Update callers.
38139
38140 2009-07-02  Bruno Haible  <bruno@clisp.org>
38141
38142         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
38143
38144 2009-06-30  Bruno Haible  <bruno@clisp.org>
38145
38146         Reduce the number of uc_is_cased calls.
38147         * lib/unicase.h (casing_suffix_context_t): Add
38148         'first_char_except_ignorable' field.
38149         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
38150         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
38151         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
38152         Update initializer.
38153         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
38154         case-ignorable characters.
38155         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
38156         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
38157         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
38158         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
38159         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
38160
38161 2009-06-30  Bruno Haible  <bruno@clisp.org>
38162
38163         Tests for module 'unicase/ignorable'.
38164         * modules/unicase/ignorable-tests: New file.
38165         * tests/unicase/test-ignorable.c: New file, generated by
38166         gen-uni-tables.
38167
38168         Tests for module 'unicase/cased'.
38169         * modules/unicase/cased-tests: New file.
38170         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
38171         * tests/unicase/test-predicate-part1.h: New file, derived from
38172         tests/unictype/test-predicate-part1.h.
38173         * tests/unicase/test-predicate-part2.h: New file, same as
38174         tests/unictype/test-predicate-part2.h.
38175
38176         Fix evaluation of "Before C" condition of FINAL_SIGMA.
38177         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
38178         (output_casing_properties): New function.
38179         (main): Call it.
38180         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
38181         * lib/unicase/cased.c: Include unictype/bitmap.h.
38182         (uc_is_cased): Define through a bitmap lookup.
38183         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
38184         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
38185         (uc_is_case_ignorable): Define through a bitmap lookup.
38186         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
38187         lib/unictype/bitmap.h.
38188         (Depends-on): Add inline. Clean up.
38189         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
38190         lib/unictype/bitmap.h.
38191         (Depends-on): Add inline. Clean up.
38192         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
38193         recognition.
38194         * tests/unicase/test-u16-tolower.c (main): Likewise.
38195         * tests/unicase/test-u32-tolower.c (main): Likewise.
38196
38197 2009-06-30  Bruno Haible  <bruno@clisp.org>
38198
38199         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
38200         * lib/unicase/u16-casemap.c: Likewise.
38201         * lib/unicase/u32-casemap.c: Likewise.
38202
38203 2009-06-29  Bruno Haible  <bruno@clisp.org>
38204
38205         Define u32_casefold as a wrapper around u32_ct_casefold.
38206         * lib/unicase/u32-casefold.c: Update.
38207         * modules/unicase/u32-casefold (Depends-on): Add
38208         unicase/u32-ct-casefold, unicase/empty-prefix-context,
38209         unicase/empty-suffix-context. Clean up.
38210
38211         Define u16_casefold as a wrapper around u16_ct_casefold.
38212         * lib/unicase/u16-casefold.c: Update.
38213         * modules/unicase/u16-casefold (Depends-on): Add
38214         unicase/u16-ct-casefold, unicase/empty-prefix-context,
38215         unicase/empty-suffix-context. Clean up.
38216
38217         Define u8_casefold as a wrapper around u8_ct_casefold.
38218         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
38219         * lib/unicase/u8-casefold.c: Update.
38220         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
38221         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38222
38223         Define u32_totitle as a wrapper around u32_ct_totitle.
38224         * lib/unicase/u32-totitle.c: Update.
38225         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
38226         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38227
38228         Define u16_totitle as a wrapper around u16_ct_totitle.
38229         * lib/unicase/u16-totitle.c: Update.
38230         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
38231         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38232
38233         Define u8_totitle as a wrapper around u8_ct_totitle.
38234         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
38235         functions.
38236         (FUNC): Delegate to U_CT_TOTITLE.
38237         * lib/unicase/u8-totitle.c: Update.
38238         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
38239         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38240
38241         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
38242         invocation.
38243         * modules/unicase/u32-tolower (Depends-on): Add
38244         unicase/empty-prefix-context, unicase/empty-suffix-context.
38245
38246         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
38247         invocation.
38248         * modules/unicase/u16-tolower (Depends-on): Add
38249         unicase/empty-prefix-context, unicase/empty-suffix-context.
38250
38251         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
38252         * modules/unicase/u8-tolower (Depends-on): Add
38253         unicase/empty-prefix-context, unicase/empty-suffix-context.
38254
38255         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
38256         invocation.
38257         * modules/unicase/u32-toupper (Depends-on): Add
38258         unicase/empty-prefix-context, unicase/empty-suffix-context.
38259
38260         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
38261         invocation.
38262         * modules/unicase/u16-toupper (Depends-on): Add
38263         unicase/empty-prefix-context, unicase/empty-suffix-context.
38264
38265         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
38266         * modules/unicase/u8-toupper (Depends-on): Add
38267         unicase/empty-prefix-context, unicase/empty-suffix-context.
38268
38269         New module 'unicase/u32-ct-casefold'.
38270         * lib/unicase/u32-ct-casefold.c: New file.
38271         * modules/unicase/u32-ct-casefold: New file.
38272
38273         New module 'unicase/u16-ct-casefold'.
38274         * lib/unicase/u16-ct-casefold.c: New file.
38275         * modules/unicase/u16-ct-casefold: New file.
38276
38277         New module 'unicase/u8-ct-casefold'.
38278         * lib/unicase/u8-ct-casefold.c: New file.
38279         * lib/unicase/u-ct-casefold.h: New file, derived from
38280         lib/unicase/u-casefold.h.
38281         * modules/unicase/u8-ct-casefold: New file.
38282
38283         New module 'unicase/u32-ct-totitle'.
38284         * lib/unicase/u32-ct-totitle.c: New file.
38285         * modules/unicase/u32-ct-totitle: New file.
38286
38287         New module 'unicase/u16-ct-totitle'.
38288         * lib/unicase/u16-ct-totitle.c: New file.
38289         * modules/unicase/u16-ct-totitle: New file.
38290
38291         New module 'unicase/u8-ct-totitle'.
38292         * lib/unicase/u8-ct-totitle.c: New file.
38293         * lib/unicase/u-ct-totitle.h: New file, derived from
38294         lib/unicase/u-totitle.h.
38295         * modules/unicase/u8-ct-totitle: New file.
38296
38297         New module 'unicase/u32-ct-tolower'.
38298         * lib/unicase/u32-ct-tolower.c: New file.
38299         * modules/unicase/u32-ct-tolower: New file.
38300
38301         New module 'unicase/u16-ct-tolower'.
38302         * lib/unicase/u16-ct-tolower.c: New file.
38303         * modules/unicase/u16-ct-tolower: New file.
38304
38305         New module 'unicase/u8-ct-tolower'.
38306         * lib/unicase/u8-ct-tolower.c: New file.
38307         * modules/unicase/u8-ct-tolower: New file.
38308
38309         New module 'unicase/u32-ct-toupper'.
38310         * lib/unicase/u32-ct-toupper.c: New file.
38311         * modules/unicase/u32-ct-toupper: New file.
38312
38313         New module 'unicase/u16-ct-toupper'.
38314         * lib/unicase/u16-ct-toupper.c: New file.
38315         * modules/unicase/u16-ct-toupper: New file.
38316
38317         New module 'unicase/u8-ct-toupper'.
38318         * lib/unicase/u8-ct-toupper.c: New file.
38319         * modules/unicase/u8-ct-toupper: New file.
38320
38321         Add context arguments to u*_casemap functions.
38322         * lib/unicase/unicasemap.h: Include unicase.h.
38323         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
38324         suffix_context arguments.
38325         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
38326         functions.
38327         (FUNC): Add prefix_context and suffix_context arguments. Use
38328         uc_is_cased and uc_is_case_ignorable.
38329         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
38330         * lib/unicase/u16-casemap.c: Likewise.
38331         * lib/unicase/u32-casemap.c: Likewise.
38332         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
38333         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38334         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
38335         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38336         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
38337         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38338
38339         New module 'unicase/u32-suffix-context'.
38340         * lib/unicase/u32-suffix-context.c: New file.
38341         * modules/unicase/u32-suffix-context: New file.
38342
38343         New module 'unicase/u16-suffix-context'.
38344         * lib/unicase/u16-suffix-context.c: New file.
38345         * modules/unicase/u16-suffix-context: New file.
38346
38347         New module 'unicase/u8-suffix-context'.
38348         * lib/unicase/u8-suffix-context.c: New file.
38349         * lib/unicase/u-suffix-context.h: New file.
38350         * modules/unicase/u8-suffix-context: New file.
38351
38352         New module 'unicase/empty-suffix-context'.
38353         * lib/unicase/empty-suffix-context.c: New file.
38354         * modules/unicase/empty-suffix-context: New file.
38355
38356         New module 'unicase/u32-prefix-context'.
38357         * lib/unicase/u32-prefix-context.c: New file.
38358         * modules/unicase/u32-prefix-context: New file.
38359
38360         New module 'unicase/u16-prefix-context'.
38361         * lib/unicase/u16-prefix-context.c: New file.
38362         * modules/unicase/u16-prefix-context: New file.
38363
38364         New module 'unicase/u8-prefix-context'.
38365         * lib/unicase/u8-prefix-context.c: New file.
38366         * lib/unicase/u-prefix-context.h: New file.
38367         * lib/unicase/context.h: New file.
38368         * modules/unicase/u8-prefix-context: New file.
38369
38370         New module 'unicase/empty-prefix-context'.
38371         * lib/unicase/empty-prefix-context.c: New file.
38372         * modules/unicase/empty-prefix-context: New file.
38373
38374         New module 'unicase/ignorable'.
38375         * lib/unicase/ignorable.c: New file.
38376         * modules/unicase/ignorable: New file.
38377
38378         New module 'unicase/cased'.
38379         * lib/unicase/caseprop.h: New file.
38380         * lib/unicase/cased.c: New file.
38381         * modules/unicase/cased: New file.
38382
38383         New functions for case mapping of substrings.
38384         * lib/unicase.h (casing_prefix_context_t): New type.
38385         (unicase_empty_prefix_context): New variable.
38386         (u8_casing_prefix_context, u16_casing_prefix_context,
38387         u32_casing_prefix_context, u8_casing_prefixes_context,
38388         u16_casing_prefixes_context, u32_casing_prefixes_context): New
38389         declarations.
38390         (casing_suffix_context_t): New type.
38391         (unicase_empty_suffix_context): New variable.
38392         (u8_casing_suffix_context, u16_casing_suffix_context,
38393         u32_casing_suffix_context, u8_casing_suffixes_context,
38394         u16_casing_suffixes_context, u32_casing_suffixes_context,
38395         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
38396         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
38397         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
38398         declarations.
38399
38400 2009-06-28  Jim Meyering  <meyering@redhat.com>
38401
38402         boostrap: indent only with spaces
38403         * build-aux/bootstrap: Indent only with spaces, never TABs.
38404
38405         bootstrap: split long lines
38406         * build-aux/bootstrap: Keep line length < 80.
38407
38408         bootstrap: sync from coreutils
38409         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
38410         just as autoreconf does.  Verify a list of prerequisite
38411         package-name,version-number pairs if defined in bootstrap.conf.
38412         Refer to README-prereq, if prerequisites are not satisfied.
38413
38414 2009-06-27  Eric Blake  <ebb9@byu.net>
38415
38416         tests: add test for bogus NULL definition
38417         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
38418         * tests/test-stdlib.c: Likewise.
38419         * tests/test-string.c: Likewise.
38420         * tests/test-locale.c: Likewise.
38421         * tests/test-unistd.c: Likewise.
38422         * modules/stdio-tests (Depends-on): Add verify.
38423         * modules/stdlib-tests (Depends-on): Likewise.
38424         * modules/string-tests (Depends-on): Likewise.
38425         * modules/locale-tests (Depends-on): Likewise.
38426         * modules/unistd-tests (Depends-on): Likewise.
38427
38428 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
38429
38430         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
38431         self-explaining comment.
38432         * m4/selinux-selinux-h: Update serial.
38433         (gl_LIBSELINUX): New macro, adding a warning for missing development
38434         packages to code extracted from...
38435         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
38436         Add warning for missing development packages here, too.
38437
38438 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
38439
38440         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
38441
38442 2009-06-25  Eric Blake  <ebb9@byu.net>
38443
38444         version-etc: fix regression
38445         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
38446         gcc.
38447         (version_etc): Use it, to catch bugs with trailing NULL.
38448         * lib/version-etc.c (version_etc_arn): Delete unused argument.
38449         (version_etc_va): Fix logic bug.
38450         * modules/version-etc-tests: Add test.
38451         * tests/test-version-etc.c: New file.
38452         * tests/test-version-etc.sh: Likewise.
38453
38454 2009-06-25  Sam Steingold  <sds@gnu.org>
38455
38456         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
38457         mbtowc declaration.
38458
38459 2009-06-25  Eric Blake  <ebb9@byu.net>
38460
38461         fpurge: migrate into <stdio.h>
38462         * lib/fpurge.h: Delete...
38463         * lib/stdio.in.h (fpurge): ...and declare here, instead.
38464         * lib/fpurge.c (fpurge): Change declaring header.
38465         * modules/fpurge (Files): Drop deleted file.
38466         (Depends-on): Add stdio.
38467         (configure.ac): Set witness.
38468         * modules/stdio (Makefile.am): Support fpurge macros.
38469         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38470         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
38471         * lib/fflush.c: Update client.
38472         * tests/test-fpurge.c: Likewise.
38473         * NEWS: Mention the change.
38474
38475 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38476
38477         * lib/argp-version-etc.c (program_authors): Add const
38478         qualifier.
38479         * lib/version-etc.c: Fix typos in the comments.
38480         * modules/argp-version-etc: Depends on version-etc.
38481
38482 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38483
38484         argp-version-etc: new module.
38485
38486         * lib/argp-version-etc.c: New file.
38487         * lib/argp-version-etc.h: New file.
38488         * modules/argp-version-etc: New file.
38489         * modules/argp-version-etc-tests: New file.
38490         * tests/test-argp-version-etc.c: New test.
38491         * tests/test-argp-version-etc-1.sh: New test.
38492
38493 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38494
38495         Provide additional interfaces and documentation for version-etc
38496         module.
38497
38498         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
38499         interfaces.
38500         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
38501         prototypes.
38502
38503 2009-06-24  Bruno Haible  <bruno@clisp.org>
38504
38505         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
38506         HAVE_LIB${NAME} macro.
38507         Reported by Sam Steingold <sds@gnu.org>.
38508
38509 2009-06-23  Simon Josefsson  <simon@josefsson.org>
38510
38511         * modules/hash-tests (test_hash_LDADD): Link to libintl when
38512         needed.
38513
38514 2009-06-21  Bruno Haible  <bruno@clisp.org>
38515
38516         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
38517         work.
38518         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
38519         together with LIB${NAME}, LTLIB${NAME}.
38520         Reported by Sam Steingold <sds@gnu.org>.
38521
38522 2009-06-20  Jim Meyering  <meyering@redhat.com>
38523
38524         tests: make sc_require_test_exit_idiom more generic
38525         * top/maint.mk (Exit_witness_file): New overridable variable.
38526         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
38527         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
38528
38529 2009-06-19  Jim Meyering  <meyering@redhat.com>
38530
38531         hash: reverse order of src/dst parameters in an internal interface
38532         * lib/hash.c (transfer_entries): Reverse order of parameters to
38533         put DST before SRC.  Adjust callers.
38534
38535         tests: test-hash: avoid wholesale duplication
38536         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
38537         Instead, use a loop and add a single conditional.
38538
38539         tests: test-hash: allow seed selection via a command line argument
38540         * tests/test-hash.c (get_seed): New function.
38541         (main): Use it.
38542
38543 2009-06-19  Eric Blake  <ebb9@byu.net>
38544
38545         hash: avoid memory leak on allocation failure
38546         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
38547         failure.  Factor repeated algorithm...
38548         (transfer_entries): ...into new helper routine.
38549         (hash_delete): React to hash_rehash return value.
38550
38551         hash: reduce memory pressure in hash_rehash no-op case
38552         * lib/hash.c (next_prime): Avoid overflow.
38553         (hash_initialize): Factor bucket size computation...
38554         (compute_bucket_size): ...into new helper function.
38555         (hash_rehash): Use new function and open coding to reduce memory
38556         pressure, and avoid a memory leak in USE_OBSTACK code.
38557         Reported by Jim Meyering.
38558
38559 2009-06-18  Eric Blake  <ebb9@byu.net>
38560
38561         hash: make rotation more obvious
38562         * modules/hash (Depends-on): Add bitrotate and stdint.
38563         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
38564         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
38565         (SIZE_MAX): Rely on headers for definition.
38566         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
38567         (raw_hasher): Use rotr_sz.
38568         Suggested by Jim Meyering.
38569
38570         hash: fix memory leak in last patch
38571         * lib/hash.c (hash_rehash): Avoid memory leak.
38572
38573         hash: avoid no-op rehashing
38574         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
38575
38576         hash: provide default callback functions
38577         * lib/hash.c (raw_hasher, raw_comparator): New functions.
38578         (hash_initialize): Use them as defaults.
38579         * tests/test-hash.c (main): Test this.
38580
38581         hash: minor optimization
38582         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
38583         when possible.
38584         (hash_initialize): Document this promise.
38585         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
38586         * tests/test-hash.c (hash_compare_strings): Test this.
38587
38588 2009-06-18  Bruno Haible  <bruno@clisp.org>
38589
38590         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
38591         going to be replaced anyway.
38592
38593 2009-06-18  Bruno Haible  <bruno@clisp.org>
38594
38595         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
38596         in one place.
38597         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
38598         be replaced anyway.
38599
38600 2009-06-18  Eric Blake  <ebb9@byu.net>
38601
38602         hash: check for resize before insertion
38603         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
38604         threshold before insertion, so that a pathological hash_rehash
38605         that fills every bucket can still trigger another rehash.
38606
38607 2009-06-18  Jim Meyering  <meyering@redhat.com>
38608
38609         hash-tests: add a loop around the small tests
38610         * tests/test-hash.c (main): Repeat small tests with selected
38611         small initial table sizes.
38612
38613 2009-06-17  Eric Blake  <ebb9@byu.net>
38614
38615         hash: minor cleanups
38616         * lib/hash.h (hash_entry): Make opaque, by moving...
38617         * lib/hash.c (hash_entry): ...here.
38618         (hash_insert): Clarify restrictions on what can be inserted.
38619         (hash_get_next): Clarify when it is safe to remove an element
38620         during traversal.
38621         (check_tuning): Skip verification when tuning is known safe.
38622         (hash_initialize): Clarify restrictions on tuning.
38623
38624 2009-06-17  Jim Meyering  <jim@meyering.net>
38625         and Eric Blake  <ebb9@byu.net>
38626
38627         hash-tests: new module
38628         * modules/hash-tests: New file.
38629         * tests/test-hash.c: New file.
38630
38631 2009-06-17  Eric Blake  <ebb9@byu.net>
38632
38633         strstr-simple: document new module
38634         * MODULES.html.sh: Document new module.
38635
38636         strstr, strcasestr: replace on platforms with broken memchr
38637         * modules/strstr: Split into...
38638         * modules/strstr-simple: ...new module that does not care about
38639         performance, but does care about glibc bug.
38640         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
38641         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
38642         if platform memchr is broken, per Debian bug 521737.
38643         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
38644         memchr.
38645         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
38646         * doc/posix-functions/strstr.texi (strstr): Document the fix.
38647         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
38648         * modules/mountlist (Depends-on): Add strstr-simple.
38649         * modules/gen-uni-tables (Depends-on): Likewise.
38650         * modules/argz (Depends-on): Add strstr.
38651
38652 2009-06-17  Bruno Haible  <bruno@clisp.org>
38653
38654         * modules/posix_spawn-internal (Depends-on): Add errno.
38655
38656 2009-06-17  Bruno Haible  <bruno@clisp.org>
38657
38658         Define missing ESTALE on Interix 3.5.
38659         * lib/errno.in.h (ESTALE): Assign a value if missing.
38660         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
38661         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
38662         missing.
38663         * doc/posix-headers/errno.texi: Mention the Interix bug.
38664         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
38665
38666 2009-06-15  Eric Blake  <ebb9@byu.net>
38667
38668         memchr, memchr2: add valgrind exception
38669         * lib/memchr.valgrind: New file.
38670         * lib/memchr2.valgrind: New file.
38671         * modules/memchr (Files): Distribute valgrind file.
38672         * modules/memchr2 (Files): Likewise.
38673
38674         docs: memchr is no longer obsolete
38675         * MODULES.html.sh: Move memchr from obsolete to string.h section.
38676         * lib/string.in.h (memchr): Simplify logic.
38677
38678 2009-06-14  Jim Meyering  <meyering@redhat.com>
38679
38680         link-follow: fix the "checking..." message to not mention trailing slash
38681         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
38682         never considered trailing slashes.
38683
38684 2009-06-14  Bruno Haible  <bruno@clisp.org>
38685
38686         * m4/memchr.m4: Mention also the bug on IA-64.
38687         * doc/posix-functions/memchr.texi: Likewise.
38688
38689 2009-06-12  Eric Blake  <ebb9@byu.net>
38690
38691         memchr: detect broken x86_64 and alpha implementations
38692         * modules/memchr-tests (Depends-on): Move mmap detection...
38693         * modules/memchr (Depends-on): ...here.
38694         (configure.ac): Set indicator.
38695         * lib/string.in.h (memchr): Declare replacement.
38696         * modules/string (Makefile.am): Trigger replacement.
38697         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
38698         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
38699         bugs.
38700         * doc/posix-functions/memchr.texi (memchr): Document the bug.
38701         * modules/getpagesize (License): Relax license.
38702
38703 2009-06-11  Bruno Haible  <bruno@clisp.org>
38704
38705         * lib/idpriv.h: Add more references.
38706
38707 2009-06-08  Bruno Haible  <bruno@clisp.org>
38708
38709         Tests for module 'idpriv-droptemp'.
38710         * modules/idpriv-droptemp-tests: New file.
38711         * tests/test-idpriv-droptemp.sh: New file.
38712         * tests/test-idpriv-droptemp.su.sh: New file.
38713         * tests/test-idpriv-droptemp.c: New file.
38714
38715         New module 'idpriv-droptemp'.
38716         * lib/idpriv-droptemp.c: New file.
38717         * modules/idpriv-droptemp: New file.
38718
38719 2009-06-08  Bruno Haible  <bruno@clisp.org>
38720
38721         Tests for module 'idpriv-drop'.
38722         * modules/idpriv-drop-tests: New file.
38723         * tests/test-idpriv-drop.sh: New file.
38724         * tests/test-idpriv-drop.su.sh: New file.
38725         * tests/test-idpriv-drop.c: New file.
38726
38727         New module 'idpriv-drop'.
38728         * lib/idpriv.h: New file.
38729         * lib-idpriv-drop.c: New file.
38730         * m4/idpriv.m4: New file.
38731         * modules/idpriv-drop: New file.
38732
38733 2009-06-08  Bruno Haible  <bruno@clisp.org>
38734
38735         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
38736         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38737         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38738         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38739         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38740         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38741         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38742
38743 2009-06-08  Eric Blake  <ebb9@byu.net>
38744
38745         test-strstr: use memory fence, when possible
38746         * tests/test-strstr.c (main): Use memory fence, in order to be
38747         more likely to trigger Debian bug 521737.
38748         * modules/strstr-tests (Files): Pull in additional files.
38749
38750         memchr: no longer obsolete, for wider field testing
38751         * modules/memchr (Status, Notice): Delete, this module is no
38752         longer obsolete.
38753         * modules/vasnprintf (Depends-on): Add memchr.
38754
38755 2009-06-07  Jim Meyering  <meyering@redhat.com>
38756
38757         hash: declare some functions with the warn_unused_result attribute
38758         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
38759
38760 2009-06-07  Bruno Haible  <bruno@clisp.org>
38761
38762         * tests/test-alignof.c: Don't test int64_t if it does not exist.
38763         Reported by Eric Blake.
38764
38765 2009-06-06  Eric Blake  <ebb9@byu.net>
38766
38767         test-alignof: fix typo with long double
38768         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
38769         compiler error.
38770
38771 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
38772
38773         Escape non-texinfo { and }s.
38774         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
38775         markup error.
38776
38777 2009-06-04  Jim Meyering  <meyering@redhat.com>
38778
38779         gitlog-to-changelog: don't infloop on an empty commit log
38780         * build-aux/gitlog-to-changelog: Warn about an empty log message.
38781         Reported by Boris Petersen <transacid@centerim.org>.
38782
38783 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
38784
38785         version-etc: extend for packagers
38786         Add three new configure options, intended for packagers:
38787           --with-packager="packager name"
38788           --with-packager-version="packager-specific version"
38789           --with-packager-bug-reports="packager bug reporting"
38790         An example with coreutils:
38791           $ ./configure \
38792             --with-packager=Gentoo \
38793             --with-packager-bug-report=http://bugs.gentoo.org/ \
38794             --with-packager-version="patchset 1.6"
38795           $ ./src/ls --version | head -n2
38796           ls (GNU coreutils) 7.1-dirty
38797           Packaged by Gentoo (patchset 1.6)
38798         Note that the bug reporting info via --help doesn't show up because
38799         coreutils uses its own custom emit_bug_reporting_address() implementation
38800         in src/system.h.  If it didn't, it'd look like:
38801           $ ./src/ls --help | tail -n4
38802           Report bugs to <bug-coreutils@gnu.org>.
38803           Report Gentoo bugs to <http://bugs.gentoo.org/>.
38804           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
38805           General help using GNU software: <http://www.gnu.org/gethelp/>.
38806         * lib/version-etc.c: Print new information, if provided.
38807         * m4/version-etc.m4: New file.
38808         * modules/version-etc (Files): Add m4/version-etc.m4.
38809         (configure.ac): Add gl_VERSION_ETC.
38810
38811 2009-05-31  Bruno Haible  <bruno@clisp.org>
38812
38813         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
38814         and 'int64_t'.
38815         * modules/alignof-tests (Dependencies): Add stdint.
38816         Reported by Eric Blake.
38817
38818 2009-05-31  Bruno Haible  <bruno@clisp.org>
38819
38820         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
38821         restriction due to compiler bugs.
38822         Reported by Eric Blake.
38823
38824 2009-05-31  Simon Josefsson  <simon@josefsson.org>
38825             Bruno Haible  <bruno@clisp.org>
38826
38827         Fix test-alignof failure.
38828         * lib/alignof.h (alignof_slot): New macro.
38829         (alignof_type): New macro, with the same semantics as the previous
38830         'alignof'.
38831         (alignof): Alias to alignof_slot.
38832         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
38833         check that the results are usable as constant expressions.
38834
38835 2009-05-31  Bruno Haible  <bruno@clisp.org>
38836
38837         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
38838         * tests/test-memchr.c (main): Check that memchr does not read past the
38839         first occurrence of the byte.
38840         * tests/test-strstr.c (main): Update comment.
38841         Suggested by Eric Blake.
38842
38843 2009-05-30  Bruno Haible  <bruno@clisp.org>
38844
38845         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
38846         detail how to use dumpbin.
38847         Reported by David Byron <dbyron@dbyron.com>.
38848
38849 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38850
38851         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
38852
38853 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38854
38855         * m4/manywarnings.m4: Add GCC 4.4 warnings.
38856
38857 2009-05-28  Bruno Haible  <bruno@clisp.org>
38858
38859         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
38860         build-aux/ files.
38861
38862 2009-05-28  Simon Josefsson  <simon@josefsson.org>
38863
38864         * gnulib-tool (func_import): Transform license on build-aux/ files too.
38865
38866 2009-05-27  Simon Josefsson  <simon@josefsson.org>
38867
38868         * gnulib-tool (sed_transform_main_lib_file)
38869         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
38870         regexps.
38871
38872 2009-05-26  Simon Josefsson  <simon@josefsson.org>
38873
38874         * tests/test-strstr.c: Add another self-test.
38875         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
38876         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
38877
38878 2009-05-23  Bruno Haible  <bruno@clisp.org>
38879
38880         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
38881         change.
38882
38883 2009-05-21  Bruno Haible  <bruno@clisp.org>
38884
38885         Simplify use of mode_t varargs.
38886         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
38887         uses 'mode_t' or 'int'.
38888         * lib/openat.c (openat): Likewise.
38889         * lib/open-safer.c (open_safer): Likewise.
38890         * m4/mode_t.m4: New file.
38891         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
38892         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
38893         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
38894         * modules/open (Files): Add m4/mode_t.m4.
38895         * modules/openat (Files): Likewise.
38896         * modules/fcntl-safer (Files): Likewise.
38897         Suggested by Eric Blake.
38898
38899 2009-05-21  Pádraig Brady  <P@draigbrady.com>
38900
38901         * doc/glibc-functions/fallocate.texi: New file.
38902         * doc/gnulib.texi: Include it.
38903
38904 2009-05-21  Eric Blake  <ebb9@byu.net>
38905             Bruno Haible  <bruno@clisp.org>
38906
38907         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
38908         invocations.
38909         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38910
38911 2009-05-21  Eric Blake  <ebb9@byu.net>
38912             Bruno Haible  <bruno@clisp.org>
38913
38914         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
38915         include_next. Fix of 2008-11-20 commit.
38916         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
38917         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
38918         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
38919         NEXT_MATH_H.
38920         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
38921         instead of NEXT_MATH_H.
38922
38923 2009-05-21  Bruno Haible  <bruno@clisp.org>
38924
38925         Avoid redefinition warnings for SIZE_MAX.
38926         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
38927         Reported by Simon Josefsson.
38928
38929 2009-05-21  Bruno Haible  <bruno@clisp.org>
38930
38931         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
38932         AC_CACHE_VAL.
38933
38934 2009-05-20  Bruno Haible  <bruno@clisp.org>
38935
38936         Make zeroptr.h work on mingw.
38937         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
38938         mprotect.
38939         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
38940         * modules/memchr2-tests (configure.ac): Likewise.
38941         * modules/memcmp-tests (configure.ac): Likewise.
38942         * modules/memmem-tests (configure.ac): Likewise.
38943         * modules/memrchr-tests (configure.ac): Likewise.
38944         Reported by Simon Josefsson.
38945
38946 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38947
38948         * tests/test-glob.c: Include string.h for strcmp prototype.
38949
38950 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38951
38952         * modules/getdelim (Depends-on): Add explicit stdint, although it
38953         was implicitly already pulled in via realloc-posix.
38954         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
38955
38956 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38957
38958         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
38959         G. Christensen" <tgc@jupiterrise.com>.
38960         * m4/sys_socket_h.m4: Check for sa_family_t.
38961         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
38962         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
38963         * tests/test-sys_socket.c: Check that sa_family_t works.
38964
38965 2009-05-18  Eric Blake  <ebb9@byu.net>
38966
38967         maint.mk: allow gnulib_dir in VPATH build
38968         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
38969
38970 2009-05-15  Jim Meyering  <meyering@redhat.com>
38971
38972         maint.mk: Give gnulib_dir a default definition.
38973         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
38974         Thus, most packages no longer need to specify this variable in cfg.mk
38975
38976 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
38977
38978         rename.m4: fix typos that would make non-mingw cross-configure fail
38979         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
38980
38981 2009-05-13  Eric Blake  <ebb9@byu.net>
38982
38983         mmap-anon: avoid out-of-order autoconf expansion
38984         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
38985         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
38986         * modules/memchr-tests (Depends-on): Add extensions.
38987         * modules/memchr2-tests (Depends-on): Add extensions.
38988         * modules/memcmp-tests (Depends-on): Add extensions.
38989         * modules/memmem-tests (Depends-on): Add extensions.
38990         * modules/memrchr-tests (Depends-on): Add extensions.
38991
38992 2009-05-13  Bruno Haible  <bruno@clisp.org>
38993
38994         Make some tests ISO C 99 compliant.
38995         * tests/zerosize-ptr.h: New file.
38996         * tests/test-memchr.c: Include zerosize-ptr.h.
38997         (main): Use a zero-size object pointer instead of NULL.
38998         * tests/test-memchr2.c: Include zerosize-ptr.h.
38999         (main): Use a zero-size object pointer instead of NULL.
39000         * tests/test-memcmp.c: Include zerosize-ptr.h.
39001         (main): Use a zero-size object pointer instead of NULL.
39002         * tests/test-memmem.c: Include zerosize-ptr.h.
39003         (main): Use a zero-size object pointer instead of NULL.
39004         * tests/test-memrchr.c: Include zerosize-ptr.h.
39005         (main): Use a zero-size object pointer instead of NULL.
39006         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
39007         m4/mmap-anon.m4.
39008         (Depends-on): Add getpagesize.
39009         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39010         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
39011         m4/mmap-anon.m4.
39012         (Depends-on): Add getpagesize.
39013         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39014         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
39015         m4/mmap-anon.m4.
39016         (Depends-on): Add getpagesize.
39017         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39018         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
39019         m4/mmap-anon.m4.
39020         (Depends-on): Add getpagesize.
39021         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39022         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
39023         m4/mmap-anon.m4.
39024         (Depends-on): Add getpagesize.
39025         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39026
39027 2009-05-12  Bruno Haible  <bruno@clisp.org>
39028
39029         Tests for module 'alignof'.
39030         * modules/alignof-tests: New file.
39031         * tests/test-alignof.c: New file.
39032
39033 2009-05-12  Bruno Haible  <bruno@clisp.org>
39034
39035         Fix alignof macro.
39036         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
39037         vendor compilers that are always correct.
39038
39039 2009-05-12  Bruno Haible  <bruno@clisp.org>
39040
39041         Make the MAP_ANONYMOUS detection work on HP-UX 11.
39042         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
39043         not whether its fully works.
39044
39045 2009-05-12  Bruno Haible  <bruno@clisp.org>
39046
39047         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
39048
39049 2009-05-12  Jim Meyering  <meyering@redhat.com>
39050
39051         * top/maint.mk: Adjust backslash alignment.
39052
39053 2009-05-11  Simon Josefsson  <simon@josefsson.org>
39054
39055         * top/maint.mk: Make $(srcdir)/build-aux configurable.
39056
39057 2009-05-11  Eric Blake  <ebb9@byu.net>
39058
39059         argp: avoid undefined behavior
39060         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
39061         macros.
39062
39063 2009-05-08  Simon Josefsson  <simon@josefsson.org>
39064
39065         * tests/test-vc-list-files-git.sh: Do git config of user.email and
39066         user.name to prevent git commit from complaining.
39067
39068 2009-05-10  Bruno Haible  <bruno@clisp.org>
39069
39070         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
39071         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
39072         it rewrites every file name only once.
39073         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
39074
39075 2009-05-08  Bruno Haible  <bruno@clisp.org>
39076
39077         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
39078         instead of 'max'.
39079
39080 2009-05-08  Simon Josefsson  <simon@josefsson.org>
39081
39082         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
39083         sockaddr_storage test.
39084
39085 2009-05-07  Simon Josefsson  <simon@josefsson.org>
39086
39087         * modules/sys_socket (Makefile.am): Substitute
39088         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
39089         * m4/sys_socket_h.m4: Check for sockaddr_storage.
39090         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
39091         * tests/test-sys_socket.c: Check sockaddr_storage.
39092
39093 2009-05-08  Bruno Haible  <bruno@clisp.org>
39094
39095         New module 'alignof'.
39096         * lib/alignof.h: New file.
39097         * modules/alignof: New file.
39098
39099 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39100             Bruno Haible  <bruno@clisp.org>
39101
39102         Fix test-file-has-acl on FreeBSD.
39103         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
39104         mask is implicitly added.
39105         * tests/test-file-has-acl.c: Include <signal.h>.
39106         (main): Terminate the test after 5 seconds.
39107         * modules/acl-tests (configure.ac): Check for alarm function.
39108
39109 2009-05-04  Bruno Haible  <bruno@clisp.org>
39110
39111         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
39112         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
39113         * modules/errno (configure.ac): Drop AC_REQUIRE.
39114         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
39115         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
39116
39117 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39118
39119         * modules/glob-tests: New module.
39120         * tests/test-glob.c: Add.
39121
39122 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39123
39124         * modules/fnmatch-tests: New module.
39125         * tests/test-fnmatch.c: Add.
39126
39127 2009-05-04  Eric Blake  <ebb9@byu.net>
39128
39129         maint: make the new no-submodule-changes rule VPATH-safe
39130         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
39131
39132 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39133             Bruno Haible  <bruno@clisp.org>
39134
39135         acl: Fix infinite loop on FreeBSD.
39136         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
39137         of return value from acl_get_entry.
39138         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
39139         Likewise.
39140
39141 2009-05-03  Bruno Haible  <bruno@clisp.org>
39142
39143         * lib/acl-internal.h (acl_entries): Clarify return value.
39144         * lib/acl_entries.c (acl_entries): Likewise.
39145
39146 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39147
39148         Bug fix in acl module.
39149         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
39150
39151 2009-05-03  Bruno Haible  <bruno@clisp.org>
39152
39153         Create gperf-generated file in the source dir, not in the build dir.
39154         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
39155         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
39156         * modules/unicase/locale-language (unicase/locale-languages.h):
39157         Likewise.
39158         * modules/unicase/special-casing (unicase/special-casing-table.h):
39159         Likewise.
39160         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
39161         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
39162         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
39163         Reported by Ralf Wildenhues.
39164
39165 2009-05-03  Bruno Haible  <bruno@clisp.org>
39166
39167         * modules/fnmatch (Description, configure.ac): Taken from
39168         fnmatch-posix.
39169         * modules/fnmatch-posix: Turn into a symbolic reference to the
39170         'fnmatch' module, and deprecate.
39171         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
39172
39173 2009-05-03  Bruno Haible  <bruno@clisp.org>
39174
39175         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
39176         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
39177         Reported by Ralf Wildenhues.
39178
39179 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39180
39181         * m4/fnmatch.m4: Fix fnmatch re-define.
39182
39183 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39184
39185         priv-set: new module and tests; adapt write-any-file
39186         * lib/priv-set.c: New file.
39187         * lib/priv-set.h: New file.
39188         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
39189         * lib/write-any-file.c: Simplify by using priv-set module.
39190         * m4/priv-set.m4: New file.
39191         * modules/priv-set: New file.
39192         * modules/unlinkdir: Add dependency on priv-set module.
39193         * modules/write-any-file: Likewise.
39194
39195         Tests for module 'priv-set'.
39196         * modules/priv-set-tests: New file.
39197         * tests/test-priv-set.c: New file.
39198
39199 2009-05-03  Jim Meyering  <meyering@redhat.com>
39200             Bruno Haible  <bruno@clisp.org>
39201
39202         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
39203         use the converted UTF-8 variant of the name instead.
39204
39205 2009-05-03  Jim Meyering  <meyering@redhat.com>
39206
39207         tests: tighten some getdate tests
39208         * tests/test-getdate.c (main): Tighten tests: require equality,
39209         not just greater than.  Set TZ envvar to UTC0.
39210
39211 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
39212
39213         getdate: correctly interpret "next monday" when run on a Monday
39214         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
39215         that e.g., "next tues" (when run on a tuesday) results in a date
39216         that is one week in the future, and not today's date.
39217         I.e., add a week when the wday is the same as the current one.
39218         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
39219         and earlier by Martin Bernreuther and Jan Minář.
39220         * tests/test-getdate.c (main): Check that "next DAY" is always in
39221         the future and that "last DAY" is always in the past.
39222
39223 2009-05-02  Jim Meyering  <meyering@redhat.com>
39224
39225         build: ensure that a release build fails when a submodule is unclean
39226         * top/maint.mk (no-submodule-changes): New rule.
39227         (alpha beta major): Depend on it.
39228
39229 2009-05-02  Bruno Haible  <bruno@clisp.org>
39230
39231         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
39232         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
39233         shell variable gl_fnmatch_required to detect which variant is
39234         requested.
39235         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
39236         gl_FUNC_FNMATCH_POSIX.
39237         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
39238         exclude fnmatch-posix.
39239
39240 2009-05-02  Bruno Haible  <bruno@clisp.org>
39241
39242         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
39243         * modules/mbsrtowcs (License): Change to LGPLv2+.
39244         * modules/strnlen1 (License): Likewise.
39245         Reported by Simon Josefsson.
39246
39247 2009-05-02  Bruno Haible  <bruno@clisp.org>
39248
39249         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
39250         "cross".
39251         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
39252         gnulib-tool was called with option --source-base=lib.
39253
39254 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39255
39256         Use automake *-local hooks without commands, for extensibility.
39257         * modules/localcharset (Makefile.am): Rename install-exec-local
39258         rule to install-exec-localcharset, and make it a prerequisite of
39259         install-exec-local.  Likewise, rename the uninstall-local rule to
39260         uninstall-localcharset, and make it a prerequisite of the former.
39261
39262 2009-05-01  Bruno Haible  <bruno@clisp.org>
39263
39264         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
39265         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
39266         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
39267         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
39268         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
39269         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
39270         m4/locale-zh.m4, m4/codeset.m4.
39271
39272         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
39273         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
39274         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
39275         m4/locale-zh.m4.
39276
39277         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
39278         REPLACE_WCRTOMB if mbstate_t must be replaced.
39279         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
39280         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
39281
39282 2009-05-01  Bruno Haible  <bruno@clisp.org>
39283
39284         Avoid compiler warnings when redefining macros defined by <libintl.h>.
39285         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
39286         dngettext, dcngettext, textdomain, bindtextdomain,
39287         bind_textdomain_codeset): Undefine before redefining.
39288
39289 2009-04-30  Bruno Haible  <bruno@clisp.org>
39290
39291         Fix bug introduced on 2009-04-25.
39292         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
39293         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
39294         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
39295         is defined.
39296         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
39297         is defined.
39298         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
39299         is defined.
39300         Reported by Elbert_Pol <elbert.pol@gmail.com>.
39301
39302 2009-04-28  Bruno Haible  <bruno@clisp.org>
39303
39304         Comment tweaks.
39305         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
39306         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
39307         * lib/unicase.h (u*_casexfrm): Likewise.
39308         Reported by Paolo Bonzini.
39309
39310 2009-04-28  Bruno Haible  <bruno@clisp.org>
39311
39312         Fix a compilation error.
39313         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
39314         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
39315         Reported by Jim Meyering.
39316
39317 2009-04-27  Bruno Haible  <bruno@clisp.org>
39318
39319         New module 'libunistring'.
39320         * modules/libunistring: New file.
39321         * m4/libunistring.m4: New file.
39322         * MODULES.html.sh (Unicode string functions): Add it.
39323
39324 2009-04-27  Eric Blake  <ebb9@byu.net>
39325
39326         maint.mk: allow package-specific header to provide <config.h>
39327         * top/maint.mk (sc_require_config_h): New variable.
39328         (sc_require_config_h, sc_require_config_h_first): Use it.
39329
39330 2009-04-27  Simon Josefsson  <simon@josefsson.org>
39331
39332         * top/maint.mk (sc_avoid_if_before_free): Except
39333         useless-if-before-free script.
39334
39335 2009-04-27  Eric Blake  <ebb9@byu.net>
39336
39337         maintainer-makefile: depend on all required helper scripts
39338         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
39339         useless-if-before-free.
39340         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
39341         version, rather than assuming gnulib checkout is available.
39342         Reported by Simen Josefsson.
39343
39344 2009-04-26  Bruno Haible  <bruno@clisp.org>
39345
39346         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
39347         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
39348         "../" or "..".
39349
39350 2009-04-26  Bruno Haible  <bruno@clisp.org>
39351
39352         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
39353         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
39354         AC_LIB_HAVE_LINKFLAGS.
39355
39356 2009-04-26  Bruno Haible  <bruno@clisp.org>
39357
39358         Simplify calling convention of u*_conv_from_encoding.
39359         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
39360         u32_conv_from_encoding): Expect a resultbuf argument and return the
39361         result directly as a pointer.
39362         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
39363         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
39364         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
39365         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
39366         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
39367         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
39368         Update.
39369         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
39370         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
39371         * lib/vasnprintf.c (VASNPRINTF): Update.
39372         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
39373         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
39374         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
39375         * NEWS: Mention the change.
39376
39377 2009-04-26  Bruno Haible  <bruno@clisp.org>
39378
39379         Simplify calling convention of u*_conv_to_encoding.
39380         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
39381         u32_conv_to_encoding): Expect a resultbuf argument and return the
39382         result directly as a pointer.
39383         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
39384         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
39385         freeing scaled_offsets if mem_iconveha failed.
39386         * lib/unicase/u-casexfrm.h (FUNC): Update.
39387         * lib/uninorm/u-normxfrm.h (FUNC): Update.
39388         * lib/vasnprintf.c (VASNPRINTF): Update.
39389         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
39390         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
39391         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
39392         * NEWS: Mention the change.
39393
39394 2009-04-26  Bruno Haible  <bruno@clisp.org>
39395
39396         Avoid test failures on AIX and OSF/1.
39397         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
39398         malloc(0).
39399         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
39400         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
39401         Likewise.
39402         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
39403         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
39404         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
39405         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
39406         * doc/posix-functions/malloc.texi: Document the portability problem
39407         related to malloc(0).
39408
39409 2009-04-26  Bruno Haible  <bruno@clisp.org>
39410
39411         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
39412         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
39413         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
39414
39415 2009-04-25  Bruno Haible  <bruno@clisp.org>
39416
39417         Avoid link error when creating a namespace clean library.
39418         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
39419         as macro with arguments if already defined as an alias.
39420         * lib/signbitf.c (gl_signbitf): Don't undefine.
39421         * lib/signbitd.c (gl_signbitd): Don't undefine.
39422         * lib/signbitl.c (gl_signbitl): Don't undefine.
39423
39424 2009-04-25  Jim Meyering  <meyering@redhat.com>
39425
39426         vc-list-files: fix another quoting bug
39427         * build-aux/vc-list-files: Avoid sed backslash expansion
39428         of pathological directory names.
39429
39430 2009-04-25  Eric Blake  <ebb9@byu.net>
39431
39432         vc-list-files: fix shell quoting error
39433         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
39434         timestamp.
39435
39436 2009-04-25  Jim Meyering  <meyering@redhat.com>
39437
39438         vc-list-files: restore lost functionality with subdir argument
39439         * build-aux/vc-list-files: When given a non-"." sub-directory
39440         argument, substitute the $dir/ prefix back onto each resulting name.
39441         Otherwise, coreutils' root_tests check would fail.
39442
39443 2009-04-24  Eric Blake  <ebb9@byu.net>
39444
39445         vc-list-files: ignore git symlinks
39446         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
39447         than ls-files, to ignore git symlinks.
39448
39449         maint.mk: import improvements from m4
39450         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
39451         (move_if_change): Delete unused macro.
39452         (news-date-check, vc-diff-check): Support VPATH builds.
39453         (announcement): Likewise.  Split --bootstrap-tools list...
39454         (boostrap-tools): ...into separate list, which can be overridden
39455         in cfg.mk.
39456         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
39457         requiring dependency on useless-if-before-free module.
39458         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
39459         Support VPATH builds.
39460
39461 2009-04-24  Jim Meyering  <meyering@redhat.com>
39462
39463         maint.mk: remove coreutils-specific rules and variables
39464         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
39465         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
39466         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
39467
39468         maint.mk: remove obsolete rule
39469         * top/maint.mk (rel-check): Remove rule.
39470         (WGET, WGETFLAGS): Remove now-unused variables.
39471
39472 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39473
39474         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
39475         consistency.
39476
39477         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
39478         '$(PATH_SEPARATOR)' instead of ':'.
39479
39480 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39481
39482         * lib/getopt1.c (main): Use 'const' for static array.
39483
39484 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39485
39486         * top/maint.mk: Sync with coreutils.
39487         * NEWS: Explain incompatibilities.
39488
39489 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39490             Bruno Haible  <bruno@clisp.org>
39491
39492         Fix cross-compilation results.
39493         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
39494         statement, as third argument of AC_TRY_RUN.
39495         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
39496         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
39497         Likewise.
39498         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
39499         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
39500         Likewise.
39501         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
39502         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
39503         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
39504
39505 2009-04-20  Bruno Haible  <bruno@clisp.org>
39506
39507         Avoid test failure on mingw.
39508         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
39509
39510 2009-04-20  Bruno Haible  <bruno@clisp.org>
39511
39512         Avoid compilation error on mingw.
39513         * modules/localename-tests (Depends-on): Add locale.
39514
39515 2009-04-19  Bruno Haible  <bruno@clisp.org>
39516
39517         Support for building a shared library on Windows platforms.
39518         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
39519         (main): Test the presence of UNINORM_NFC here.
39520         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
39521         (main): Test the presence of UNINORM_NFD here.
39522         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
39523         (main): Test the presence of UNINORM_NFKC here.
39524         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
39525         (main): Test the presence of UNINORM_NFKD here.
39526
39527 2009-04-19  Bruno Haible  <bruno@clisp.org>
39528
39529         Avoid a compiler warning.
39530         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
39531         Change type of variable 'sequence'.
39532
39533 2009-04-19  Bruno Haible  <bruno@clisp.org>
39534
39535         * modules/configmake (Makefile.am): When the contents of configmake.h
39536         does not change, arrange to preserve its modification time.
39537
39538 2009-04-17  Simon Josefsson  <simon@josefsson.org>
39539
39540         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
39541         gettext domain.
39542
39543 2009-04-16  Jim Meyering  <meyering@redhat.com>
39544
39545         useless-if-before-free: improve conversion code
39546         * build-aux/useless-if-before-free: Adjust code-in-comment to match
39547         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
39548
39549 2009-04-14  Bruno Haible  <bruno@clisp.org>
39550
39551         * modules/fcntl (Depends-on): Add extensions.
39552         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
39553
39554 2009-04-12  Ben Pfaff  <blp@gnu.org>
39555
39556         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
39557         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
39558
39559 2009-03-20  Ben Pfaff  <blp@gnu.org>
39560
39561         Make rename replace existing destinations on Windows.
39562         * m4/rename.m4: Add test for Mingw.
39563         * lib/rename.c: Add rename replacement that uses MoveFileEx with
39564         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
39565         * doc/posix-functions/rename.texi: Document.
39566
39567 2009-04-10  Bruno Haible  <bruno@clisp.org>
39568
39569         New include file "iconveh.h".
39570         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
39571         * lib/striconveh.h: Include it.
39572         (enum iconv_ilseq_handler): Remove definition.
39573         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
39574         striconveh.h.
39575         * lib/striconveha.c: Include striconveh.h.
39576         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
39577         * modules/striconveh (Files): Add lib/iconveh.h.
39578         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
39579         lib/striconveh.h.
39580
39581 2009-04-10  Bruno Haible  <bruno@clisp.org>
39582
39583         * lib/uniconv.h: Update comment.
39584
39585 2009-04-10  Bruno Haible  <bruno@clisp.org>
39586
39587         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
39588         always.
39589         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
39590         * lib/unistr/u16-mbtouc-aux.c: Likewise.
39591         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
39592         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
39593         "unistring-notinline.h", so that the function gets defined always.
39594         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
39595         * lib/unistr/u8-uctomb.c: Likewise.
39596         * lib/unistr/u16-mbtouc.c: Likewise.
39597         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
39598         * lib/unistr/u16-uctomb.c: Likewise.
39599         * lib/unistr/u32-mbtouc.c: Likewise.
39600         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
39601         * lib/unistr/u32-uctomb.c: Likewise.
39602
39603 2009-04-10  Bruno Haible  <bruno@clisp.org>
39604
39605         Mark 'utime' obsolete.
39606         * modules/utime (Status, Notice): New sections.
39607         Suggested by Jim Meyering.
39608
39609         Fix cross-compile guess for utime test.
39610         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
39611         autoconf.
39612         * doc/posix-functions/utime.texi: Give more precisions.
39613         Reported by Jan <ipif@ymail.com>.
39614
39615 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
39616
39617         filevercmp: correct today's change
39618         * lib/filevercmp.c: Also handle coreutils' test inputs.
39619         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
39620
39621         Fix regression in 'filevercmp' module. Thanks Sven Joachim
39622         for reporting it.
39623         * lib/filevercmp.c: Special handle for "", "." and "..".
39624         * tests/test-filevercmp.c: Enlarge the set suite.
39625
39626 2009-04-07  Jim Meyering  <meyering@redhat.com>
39627
39628         useless-if-before-free: show how to remove braced useless free, too
39629         * build-aux/useless-if-before-free: still only in a comment, though.
39630
39631 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
39632
39633         maint.mk: import changes to syntax-check macros from coreutils
39634         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
39635         Use them in the relevant macros.
39636
39637 2009-04-06  Bruno Haible  <bruno@clisp.org>
39638
39639         Fix unportable use of bit-fields.
39640         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
39641         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
39642         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
39643
39644 2009-04-06  Bruno Haible  <bruno@clisp.org>
39645
39646         Avoid test failures on AIX and OSF/1.
39647         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
39648         that malloc(0) = NULL.
39649         * tests/unicase/test-u8-tolower.c (check): Likewise.
39650         * tests/unicase/test-u8-totitle.c (check): Likewise.
39651         * tests/unicase/test-u8-toupper.c (check): Likewise.
39652         * tests/unicase/test-u16-casefold.c (check): Likewise.
39653         * tests/unicase/test-u16-tolower.c (check): Likewise.
39654         * tests/unicase/test-u16-totitle.c (check): Likewise.
39655         * tests/unicase/test-u16-toupper.c (check): Likewise.
39656         * tests/unicase/test-u32-casefold.c (check): Likewise.
39657         * tests/unicase/test-u32-tolower.c (check): Likewise.
39658         * tests/unicase/test-u32-totitle.c (check): Likewise.
39659         * tests/unicase/test-u32-toupper.c (check): Likewise.
39660         * tests/uninorm/test-u8-nfc.c (check): Likewise.
39661         * tests/uninorm/test-u8-nfd.c (check): Likewise.
39662         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
39663         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
39664         * tests/uninorm/test-u16-nfc.c (check): Likewise.
39665         * tests/uninorm/test-u16-nfd.c (check): Likewise.
39666         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
39667         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
39668         * tests/uninorm/test-u32-nfc.c (check): Likewise.
39669         * tests/uninorm/test-u32-nfd.c (check): Likewise.
39670         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
39671         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
39672
39673 2009-04-05  Bruno Haible  <bruno@clisp.org>
39674
39675         Work around an autoconf limitation.
39676         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
39677         comment line if it would be longer than 3 KB.
39678
39679 2009-04-05  Bruno Haible  <bruno@clisp.org>
39680
39681         Avoid test failure with libiconv-1.13.
39682         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
39683         of the expected test results.
39684
39685 2009-04-05  Bruno Haible  <bruno@clisp.org>
39686
39687         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
39688         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
39689         that it should be installed.
39690
39691 2009-04-05  Bruno Haible  <bruno@clisp.org>
39692
39693         * gnulib-tool: New option --copy-file.
39694         (func_usage): Document it.
39695         (func_dest_tmpfilename): Moved out of func_import.
39696         (func_add_file, func_update_file): New functions, extracted from
39697         func_import.
39698         (func_import): Update.
39699
39700 2009-04-05  Karl Berry  <karl@gnu.org>
39701
39702         * README: prominently mention gnulib-tool.
39703         Rearrange sections so getting the code is near the top.
39704
39705 2009-04-05  Bruno Haible  <bruno@clisp.org>
39706
39707         * lib/unicase.h: Mention u*_cmp2.
39708         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39709         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
39710         * lib/unicase/ulc-casecmp.c: Likewise.
39711         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
39712         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
39713         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
39714         unistr/u8-cmp.
39715         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
39716         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
39717         unistr/u16-cmp.
39718         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
39719         unistr/u32-cmp.
39720
39721         * lib/uninorm.h: Mention u*_cmp2.
39722         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39723         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
39724         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
39725         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
39726         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
39727         unistr/u8-cmp.
39728         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
39729         unistr/u16-cmp.
39730         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
39731         unistr/u32-cmp.
39732
39733         New module 'unistr/u32-cmp2'.
39734         * lib/unistr/u32-cmp2.c: New file.
39735         * modules/unistr/u32-cmp2: New file.
39736
39737         New module 'unistr/u16-cmp2'.
39738         * lib/unistr/u16-cmp2.c: New file.
39739         * modules/unistr/u16-cmp2: New file.
39740
39741         New module 'unistr/u8-cmp2'.
39742         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
39743         * lib/unistr/u8-cmp2.c: New file.
39744         * lib/unistr/u-cmp2.h: New file.
39745         * modules/unistr/u8-cmp2: New file.
39746
39747 2009-04-05  Bruno Haible  <bruno@clisp.org>
39748
39749         * lib/unictype.h (uc_property_is_valid): New macro.
39750         * tests/unictype/test-pr_byname.c (main): Use it.
39751
39752         * lib/unistr.h: Doc fixes.
39753         * lib/uniconv.h: Doc fixes.
39754         * lib/unictype.h: Doc fixes.
39755
39756 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
39757
39758         Port coreutils 7.2 to Solaris 8.
39759
39760         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
39761         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
39762         for Solaris 8.  This is a bit of a hack, as it means it's the
39763         caller's responsibility to add -lnsl if needed, but most likely it
39764         won't be needed since only getaddrinfo uses this and getaddrinfo
39765         isn't needed on Solaris 8.
39766
39767         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
39768         problem to Solaris 8 encountered with coreutils 7.2, which
39769         resulted in a message "fnmatch.c:292: warning: passing argument 4
39770         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
39771         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
39772
39773 2009-04-03  Simon Josefsson  <simon@josefsson.org>
39774
39775         * m4/ld-version-script.m4: Add FIXME comment.
39776
39777 2009-04-02  Simon Josefsson  <simon@josefsson.org>
39778
39779         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
39780         SOVERSION variable.
39781
39782 2009-04-02  Bruno Haible  <bruno@clisp.org>
39783
39784         * Makefile (info, html, dvi, pdf): Combine the rules.
39785         Suggested by Jim Meyering.
39786
39787 2009-04-01  Bruno Haible  <bruno@clisp.org>
39788
39789         * Makefile (info, html, dvi, pdf): New targets.
39790         Reported by Reuben Thomas <rrt@sc3d.org>.
39791
39792 2009-04-01  Bruno Haible  <bruno@clisp.org>
39793
39794         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
39795         can be put into PATH.
39796         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
39797
39798 2009-04-01  Bruno Haible  <bruno@clisp.org>
39799
39800         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
39801
39802 2009-04-01  Bruno Haible  <bruno@clisp.org>
39803
39804         Rename module 'visibility'.
39805         * modules/lib-symbol-visibility: Renamed from modules/visibility.
39806         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
39807         * doc/gnulib.texi: Update.
39808         * MODULES.html.sh (Misc): Update.
39809         * NEWS: Mention the change.
39810
39811 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39812
39813         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
39814         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
39815         Eric Blake <ebb9@byu.net> for review.
39816         * MODULES.html.sh: Add lib-msvc-compat.
39817         * doc/gnulib.texi: Link to new section.
39818         * m4/ld-output-def.m4: New file.
39819         * doc/ld-output-def.texi: New file.
39820
39821 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39822
39823         Rename ld-version-script to lib-symbol-versions.  Suggested by
39824         Bruno Haible <bruno@clisp.org>.
39825         * modules/ld-version-script: Renamed to lib-symbol-versions.
39826         * doc/ld-version-script.texi: Fix module name.
39827         * MODULES.html.sh: Add lib-symbol-versions.
39828
39829 2009-03-31  Simon Josefsson  <simon@josefsson.org>
39830
39831         * modules/u64-tests: New file.
39832         * tests/test-u64.c: New file.
39833
39834 2009-03-04  Simon Josefsson  <simon@josefsson.org>
39835
39836         * MODULES.html.sh: Mention u64.
39837         * modules/u64: New module.
39838         * modules/crypto/sha512: Depend on u64 module instead of providing
39839         u64.h.
39840
39841 2009-03-27  Eric Blake  <ebb9@byu.net>
39842
39843         test-strerror: make debugging EAI_SYSTEM easier
39844         * modules/getaddrinfo-tests (Depends-on): Add strerror.
39845         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
39846         failure was EAI_SYSTEM.
39847
39848 2009-03-25  Bruno Haible  <bruno@clisp.org>
39849
39850         Fix a problem with --enable-relocatable on Solaris 7.
39851         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
39852         since 2008-02-24.
39853
39854 2009-03-25  Eric Blake  <ebb9@byu.net>
39855
39856         test-sockets: avoid gcc warning
39857         * tests/test-sockets.c (main): Silence compiler warning.
39858
39859 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
39860
39861         New modules nproc, pthread, contributed by Glen Lenker.
39862
39863         * MODULES.html.sh: Add pthread, nproc.
39864         * lib/nproc.c: New file.
39865         * lib/nproc.h: New file.
39866         * lib/pthread.in.h: New file.
39867         * m4/pthread.m4: New file.
39868         * modules/nproc: New file.
39869         * modules/pthread: New file.
39870
39871 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39872
39873         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
39874         New variable.
39875
39876 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
39877
39878         filevercmp: handle simple~ and numbered.~3~ backup suffixes
39879         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
39880         * tests/test-filevercmp.c: Add tests for backup suffixes.
39881
39882 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39883
39884         * modules/stdlib (Depends-on): Add stdint, needed when defining
39885         struct random_data on, for example, HP-UX 10.20.  Reported by
39886         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39887
39888 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39889
39890         * lib/readline.c (readline): Call fflush on stdout after printing
39891         prompt.
39892
39893 2009-03-20  Bruno Haible  <bruno@clisp.org>
39894
39895         Remove dependency from 'close' module to -lws2_32 on native Windows.
39896         * lib/close-hook.h: New file.
39897         * lib/close-hook.c: New file.
39898         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
39899         w32sock.h.
39900         (_gl_close_fd_maybe_socket): Remove function.
39901         (rpl_close): Invoke execute_all_close_hooks instead of
39902         _gl_close_fd_maybe_socket.
39903         * lib/sockets.c: Include close-hook.h, w32sock.h.
39904         (close_fd_maybe_socket): New function, essentially from lib/close.c.
39905         (close_sockets_hook): New variable.
39906         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
39907         (gl_sockets_cleanup): Unregister it.
39908         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
39909         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
39910         * modules/close-hook: New file.
39911         * modules/close (Files): Remove lib/w32sock.h.
39912         (Depends-on): Add close-hook.
39913         (Link): Remove section.
39914         * modules/sockets (Files): Add lib/w32sock.h.
39915         (Depends-on): Add close-hook.
39916         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
39917         invocation.
39918         * NEWS: Mention that LIB_CLOSE is gone.
39919
39920 2009-03-23  Eric Blake  <ebb9@byu.net>
39921
39922         signal-tests: test previous patch
39923         * tests/test-signal.c: New file.
39924         * modules/signal-tests: Likewise.
39925
39926         signal.h: always support 'volatile sig_atomic_t'
39927         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
39928         (gl_SIGNAL_H_DEFAULTS): Add a default.
39929         * modules/signal (Makefile.am): Substitute if needed.
39930         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
39931         users can blindly add volatile.
39932         * doc/posix-headers/signal.texi (signal.h): Document it.
39933         Reported by Matthew Woehlke.
39934
39935 2009-03-23  Jim Meyering  <meyering@redhat.com>
39936
39937         pathmax: PATH_MAX: use pathconf only when available
39938         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
39939         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
39940         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
39941         This avoids a link failure in a PSP cross-compilation environment
39942         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
39943
39944         * lib/vasnprintf.c (divide): Fix typo in comment.
39945
39946 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39947
39948         * gnulib-tool (func_filter_filelist): Fix comment.
39949
39950 2009-03-20  Bruno Haible  <bruno@clisp.org>
39951
39952         Make sockets.h self-contained.
39953         * lib/sockets.c: Include sockets.h first.
39954         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
39955
39956 2009-03-19  Eric Blake  <ebb9@byu.net>
39957
39958         doc: mention more functions added in cygwin 1.7.0
39959         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
39960         addition.
39961         * doc/posix-functions/log2f.texi: Likewise.
39962
39963 2009-03-19  Jim Meyering  <meyering@redhat.com>
39964
39965         fsusage: avoid syntax error due to statement-before-declaration
39966         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
39967         after all declarations.  Reported by Matthew Woehlke in
39968         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
39969
39970 2009-03-18  Eric Blake  <ebb9@byu.net>
39971
39972         build-aux/compile: sync from automake
39973         * build-aux/compile: New file, from automake.
39974         * config/srclist.txt: Mention build-aux/compile.
39975
39976 2009-03-17  Bruno Haible  <bruno@clisp.org>
39977
39978         * lib/git-merge-changelog.c: Fix typo in comment.
39979         Reported by Reuben Thomas <rrt@sc3d.org>.
39980
39981 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
39982
39983         * m4/regex.m4: update and improve help for
39984         --without-included-regex.
39985
39986 2009-03-17  Simon Josefsson  <simon@josefsson.org>
39987
39988         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
39989         failure on missing include files.
39990
39991 2009-03-17  Eric Blake  <ebb9@byu.net>
39992
39993         doc: mention more functions added in cygwin 1.7.0
39994         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
39995         addition.
39996         * doc/posix-functions/fwscanf.texi: Likewise.
39997         * doc/posix-functions/swprintf.texi: Likewise.
39998         * doc/posix-functions/swscanf.texi: Likewise.
39999         * doc/posix-functions/vfwprintf.texi: Likewise.
40000         * doc/posix-functions/vfwscanf.texi: Likewise.
40001         * doc/posix-functions/vswprintf.texi: Likewise.
40002         * doc/posix-functions/vswscanf.texi: Likewise.
40003         * doc/posix-functions/vwprintf.texi: Likewise.
40004         * doc/posix-functions/vwscanf.texi: Likewise.
40005         * doc/posix-functions/wcscasecmp.texi: Likewise.
40006         * doc/posix-functions/wcsdup.texi: Likewise.
40007         * doc/posix-functions/wcsftime.texi: Likewise.
40008         * doc/posix-functions/wcsncasecmp.texi: Likewise.
40009         * doc/posix-functions/wprintf.texi: Likewise.
40010         * doc/posix-functions/wscanf.texi: Likewise.
40011         * doc/glibc-functions/gethostbyname2.texi: Likewise.
40012
40013 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40014
40015         maint.mk: really add $(AM_MAKEFLAGS)
40016         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
40017         was inadvertently omitted in the last commit.
40018         Spotted by Bruno Haible.
40019
40020         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
40021         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
40022         $(AM_MAKEFLAGS)' rather than plain `make'.
40023
40024         gnulib-tool: execute $MAKE not make
40025         * gnulib-tool: Default $MAKE to 'make'.
40026         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
40027         than make.  Initialize $MAKE in the do-autobuild script.
40028
40029         gnulib-tool: use $MAKE not make in generated files
40030         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
40031         make, in generated files.  Initialize $MAKE in the do-autobuild
40032         script.
40033
40034         * top/GNUmakefile (_have-git-version-gen): Fix typo.
40035
40036         GNUmakefile: disable parallelism only for multiple, recursive targets
40037         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
40038         additions in the Makefile.
40039         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
40040         by Automake.
40041         (.NOTPARALLEL): Only disable parallel builds if multiple targets
40042         are listed on the command line and at least one of them is
40043         listed in $(ALL_RECURSIVE_TARGETS).
40044
40045 2009-03-14  Bruno Haible  <bruno@clisp.org>
40046
40047         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
40048         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
40049         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
40050         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
40051         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
40052         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
40053         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
40054         unistr/u8-uctomb.
40055         * modules/unistr/u8-strchr (Depends-on): Likewise.
40056         * modules/unistr/u8-strrchr (Depends-on): Likewise.
40057         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
40058         unistr/u16-uctomb.
40059         * modules/unistr/u16-strchr (Depends-on): Likewise.
40060         * modules/unistr/u16-strrchr (Depends-on): Likewise.
40061
40062 2009-03-12  Bruno Haible  <bruno@clisp.org>
40063
40064         Work around select() bug on Interix 3.5.
40065         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
40066         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
40067         * m4/select.m4: New file.
40068         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
40069         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
40070         * modules/select (Files): Add m4/select.m4.
40071         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
40072         * modules/nanosleep (Depends-on): Add select.
40073         * modules/poll (Depends-on): Likewise.
40074         * doc/posix-functions/select.texi: Mention the Interix bug.
40075         Reported by Markus Duft <mduft@gentoo.org>.
40076
40077         * lib/select.c: Renamed from lib/winsock-select.c.
40078         * modules/select (Files): Add lib/select.c, remove
40079         lib/winsock-select.c.
40080         (configure.ac): Update.
40081
40082 2009-03-12  Jim Meyering  <meyering@redhat.com>
40083
40084         avoid gcc warnings about unused macro definitions
40085         * lib/readtokens.c (STREQ): Remove unused definition.
40086         * lib/xmalloc.c (SIZE_MAX): Likewise.
40087         * lib/openat-die.c (N_): Likewise.
40088         * lib/mountlist.c (SIZE_MAX): Remove definition.
40089         Instead, include <stdint.h>.
40090         * lib/readutmp.c: Likewise.
40091         * modules/readutmp (Depends-on): Add stdint.
40092         * modules/mountlist (Depends-on): Add stdint.
40093         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
40094
40095 2009-03-10  Bruno Haible  <bruno@clisp.org>
40096
40097         Tests for module 'mbmemcasecoll'.
40098         * modules/mbmemcasecoll-tests: New file.
40099         * tests/test-mbmemcasecoll1.sh: New file.
40100         * tests/test-mbmemcasecoll2.sh: New file.
40101         * tests/test-mbmemcasecoll3.sh: New file.
40102         * tests/test-mbmemcasecoll.c: New file.
40103
40104         New module 'mbmemcasecoll'.
40105         * lib/mbmemcasecoll.h: New file.
40106         * lib/mbmemcasecoll.c: New file.
40107         * modules/mbmemcasecoll: New file.
40108
40109         * tests/test-mbmemcasecmp.h: New file, extracted from
40110         tests/test-mbmemcasecmp.c.
40111         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
40112         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
40113         (main): Update.
40114         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
40115
40116 2009-03-09  Bruno Haible  <bruno@clisp.org>
40117
40118         Tests for module 'mbmemcasecmp'.
40119         * modules/mbmemcasecmp-tests: New file.
40120         * tests/test-mbmemcasecmp1.sh: New file.
40121         * tests/test-mbmemcasecmp2.sh: New file.
40122         * tests/test-mbmemcasecmp3.sh: New file.
40123         * tests/test-mbmemcasecmp.c: New file.
40124
40125         New module 'mbmemcasecmp'.
40126         * lib/mbmemcasecmp.h: New file.
40127         * lib/mbmemcasecmp.c: New file.
40128         * modules/mbmemcasecmp: New file.
40129
40130 2009-03-09  Bruno Haible  <bruno@clisp.org>
40131
40132         Tests for module 'unicase/ulc-casecoll'.
40133         * modules/unicase/ulc-casecoll-tests: New file.
40134         * tests/unicase/test-ulc-casecoll1.sh: New file.
40135         * tests/unicase/test-ulc-casecoll2.sh: New file.
40136         * tests/unicase/test-ulc-casecoll.c: New file.
40137
40138         New module 'unicase/ulc-casecoll'.
40139         * lib/unicase.h (ulc_casecoll): New declaration.
40140         * lib/unicase/ulc-casecoll.c: New file.
40141         * modules/unicase/ulc-casecoll: New file.
40142
40143         New module 'unicase/ulc-casexfrm'.
40144         * lib/unicase.h (ulc_casexfrm): New declaration.
40145         * lib/unicase/ulc-casexfrm.c: New file.
40146         * modules/unicase/ulc-casexfrm: New file.
40147
40148 2009-03-09  Bruno Haible  <bruno@clisp.org>
40149
40150         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
40151         invocations.
40152
40153         * m4/mbscasecmp.m4: Remove file.
40154         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
40155         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
40156
40157         * m4/mbscasestr.m4: Remove file.
40158         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
40159         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
40160
40161         * m4/mbschr.m4: Remove file.
40162         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
40163         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
40164
40165         * m4/mbscspn.m4: Remove file.
40166         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
40167         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
40168
40169         * m4/mbslen.m4: Remove file.
40170         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
40171         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
40172
40173         * m4/mbsncasecmp.m4: Remove file.
40174         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
40175         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
40176
40177         * m4/mbsnlen.m4: Remove file.
40178         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
40179         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
40180
40181         * m4/mbspbrk.m4: Remove file.
40182         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
40183         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
40184
40185         * m4/mbspcasecmp.m4: Remove file.
40186         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
40187         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
40188
40189         * m4/mbsrchr.m4: Remove file.
40190         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
40191         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
40192
40193         * m4/mbssep.m4: Remove file.
40194         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
40195         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
40196
40197         * m4/mbsspn.m4: Remove file.
40198         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
40199         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
40200
40201         * m4/mbsstr.m4: Remove file.
40202         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
40203         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
40204
40205         * m4/mbstok_r.m4: Remove file.
40206         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
40207         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
40208
40209         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
40210
40211         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
40212         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
40213
40214         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
40215
40216 2009-03-08  Bruno Haible  <bruno@clisp.org>
40217
40218         Tests for module 'unicase/ulc-casecmp'.
40219         * modules/unicase/ulc-casecmp-tests: New file.
40220         * tests/unicase/test-ulc-casecmp1.sh: New file.
40221         * tests/unicase/test-ulc-casecmp2.sh: New file.
40222         * tests/unicase/test-ulc-casecmp.c: New file.
40223
40224         New module 'unicase/ulc-casecmp'.
40225         * lib/unicase.h (ulc_casecmp): New declaration.
40226         * lib/unicase/ulc-casecmp.c: New file.
40227         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
40228         'const SRC_UNIT *'.
40229         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
40230         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
40231         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
40232         * modules/unicase/ulc-casecmp: New file.
40233
40234         Tests for module 'unicase/u32-is-cased'.
40235         * modules/unicase/u32-is-cased-tests: New file.
40236         * tests/unicase/test-u32-is-cased.c: New file.
40237
40238         Tests for module 'unicase/u16-is-cased'.
40239         * modules/unicase/u16-is-cased-tests: New file.
40240         * tests/unicase/test-u16-is-cased.c: New file.
40241
40242         Tests for module 'unicase/u8-is-cased'.
40243         * modules/unicase/u8-is-cased-tests: New file.
40244         * tests/unicase/test-u8-is-cased.c: New file.
40245         * tests/unicase/test-is-cased.h: New file.
40246
40247         New module 'unicase/u32-is-cased'.
40248         * lib/unicase/u32-is-cased.c: New file.
40249         * modules/unicase/u32-is-cased: New file.
40250
40251         New module 'unicase/u16-is-cased'.
40252         * lib/unicase/u16-is-cased.c: New file.
40253         * modules/unicase/u16-is-cased: New file.
40254
40255         New module 'unicase/u8-is-cased'.
40256         * lib/unicase/u8-is-cased.c: New file.
40257         * lib/unicase/u-is-cased.h: New file.
40258         * modules/unicase/u8-is-cased: New file.
40259
40260         Tests for module 'unicase/u32-is-casefolded'.
40261         * modules/unicase/u32-is-casefolded-tests: New file.
40262         * tests/unicase/test-u32-is-casefolded.c: New file.
40263
40264         Tests for module 'unicase/u16-is-casefolded'.
40265         * modules/unicase/u16-is-casefolded-tests: New file.
40266         * tests/unicase/test-u16-is-casefolded.c: New file.
40267
40268         Tests for module 'unicase/u8-is-casefolded'.
40269         * modules/unicase/u8-is-casefolded-tests: New file.
40270         * tests/unicase/test-u8-is-casefolded.c: New file.
40271         * tests/unicase/test-is-casefolded.h: New file.
40272
40273         New module 'unicase/u32-is-casefolded'.
40274         * lib/unicase/u32-is-casefolded.c: New file.
40275         * modules/unicase/u32-is-casefolded: New file.
40276
40277         New module 'unicase/u16-is-casefolded'.
40278         * lib/unicase/u16-is-casefolded.c: New file.
40279         * modules/unicase/u16-is-casefolded: New file.
40280
40281         New module 'unicase/u8-is-casefolded'.
40282         * lib/unicase/u8-is-casefolded.c: New file.
40283         * modules/unicase/u8-is-casefolded: New file.
40284
40285         Tests for module 'unicase/u32-is-titlecase'.
40286         * modules/unicase/u32-is-titlecase-tests: New file.
40287         * tests/unicase/test-u32-is-titlecase.c: New file.
40288
40289         Tests for module 'unicase/u16-is-titlecase'.
40290         * modules/unicase/u16-is-titlecase-tests: New file.
40291         * tests/unicase/test-u16-is-titlecase.c: New file.
40292
40293         Tests for module 'unicase/u8-is-titlecase'.
40294         * modules/unicase/u8-is-titlecase-tests: New file.
40295         * tests/unicase/test-u8-is-titlecase.c: New file.
40296         * tests/unicase/test-is-titlecase.h: New file.
40297
40298         New module 'unicase/u32-is-titlecase'.
40299         * lib/unicase/u32-is-titlecase.c: New file.
40300         * modules/unicase/u32-is-titlecase: New file.
40301
40302         New module 'unicase/u16-is-titlecase'.
40303         * lib/unicase/u16-is-titlecase.c: New file.
40304         * modules/unicase/u16-is-titlecase: New file.
40305
40306         New module 'unicase/u8-is-titlecase'.
40307         * lib/unicase/u8-is-titlecase.c: New file.
40308         * modules/unicase/u8-is-titlecase: New file.
40309
40310         Tests for module 'unicase/u32-is-lowercase'.
40311         * modules/unicase/u32-is-lowercase-tests: New file.
40312         * tests/unicase/test-u32-is-lowercase.c: New file.
40313
40314         Tests for module 'unicase/u16-is-lowercase'.
40315         * modules/unicase/u16-is-lowercase-tests: New file.
40316         * tests/unicase/test-u16-is-lowercase.c: New file.
40317
40318         Tests for module 'unicase/u8-is-lowercase'.
40319         * modules/unicase/u8-is-lowercase-tests: New file.
40320         * tests/unicase/test-u8-is-lowercase.c: New file.
40321         * tests/unicase/test-is-lowercase.h: New file.
40322
40323         New module 'unicase/u32-is-lowercase'.
40324         * lib/unicase/u32-is-lowercase.c: New file.
40325         * modules/unicase/u32-is-lowercase: New file.
40326
40327         New module 'unicase/u16-is-lowercase'.
40328         * lib/unicase/u16-is-lowercase.c: New file.
40329         * modules/unicase/u16-is-lowercase: New file.
40330
40331         New module 'unicase/u8-is-lowercase'.
40332         * lib/unicase/u8-is-lowercase.c: New file.
40333         * modules/unicase/u8-is-lowercase: New file.
40334
40335         Tests for module 'unicase/u32-is-uppercase'.
40336         * modules/unicase/u32-is-uppercase-tests: New file.
40337         * tests/unicase/test-u32-is-uppercase.c: New file.
40338
40339         Tests for module 'unicase/u16-is-uppercase'.
40340         * modules/unicase/u16-is-uppercase-tests: New file.
40341         * tests/unicase/test-u16-is-uppercase.c: New file.
40342
40343         Tests for module 'unicase/u8-is-uppercase'.
40344         * modules/unicase/u8-is-uppercase-tests: New file.
40345         * tests/unicase/test-u8-is-uppercase.c: New file.
40346         * tests/unicase/test-is-uppercase.h: New file.
40347
40348         New module 'unicase/u32-is-uppercase'.
40349         * lib/unicase/u32-is-uppercase.c: New file.
40350         * modules/unicase/u32-is-uppercase: New file.
40351
40352         New module 'unicase/u16-is-uppercase'.
40353         * lib/unicase/u16-is-uppercase.c: New file.
40354         * modules/unicase/u16-is-uppercase: New file.
40355
40356         New module 'unicase/u8-is-uppercase'.
40357         * lib/unicase/u8-is-uppercase.c: New file.
40358         * modules/unicase/u8-is-uppercase: New file.
40359
40360         New module 'unicase/u32-is-invariant'.
40361         * lib/unicase/u32-is-invariant.c: New file.
40362         * modules/unicase/u32-is-invariant: New file.
40363
40364         New module 'unicase/u16-is-invariant'.
40365         * lib/unicase/u16-is-invariant.c: New file.
40366         * modules/unicase/u16-is-invariant: New file.
40367
40368         New module 'unicase/u8-is-invariant'.
40369         * lib/unicase/u8-is-invariant.c: New file.
40370         * lib/unicase/invariant.h: New file.
40371         * lib/unicase/u-is-invariant.h: New file.
40372         * modules/unicase/u8-is-invariant: New file.
40373
40374         Tests for module 'unicase/u32-casecoll'.
40375         * modules/unicase/u32-casecoll-tests: New file.
40376         * tests/unicase/test-u32-casecoll.c: New file.
40377
40378         Tests for module 'unicase/u16-casecoll'.
40379         * modules/unicase/u16-casecoll-tests: New file.
40380         * tests/unicase/test-u16-casecoll.c: New file.
40381
40382         Tests for module 'unicase/u8-casecoll'.
40383         * modules/unicase/u8-casecoll-tests: New file.
40384         * tests/unicase/test-u8-casecoll.c: New file.
40385
40386         New module 'unicase/u32-casecoll'.
40387         * lib/unicase/u32-casecoll.c: New file.
40388         * modules/unicase/u32-casecoll: New file.
40389
40390         New module 'unicase/u16-casecoll'.
40391         * lib/unicase/u16-casecoll.c: New file.
40392         * modules/unicase/u16-casecoll: New file.
40393
40394         New module 'unicase/u8-casecoll'.
40395         * lib/unicase/u8-casecoll.c: New file.
40396         * lib/unicase/u-casecoll.h: New file.
40397         * modules/unicase/u8-casecoll: New file.
40398
40399         New module 'unicase/u32-casexfrm'.
40400         * lib/unicase/u32-casexfrm.c: New file.
40401         * modules/unicase/u32-casexfrm: New file.
40402
40403         New module 'unicase/u16-casexfrm'.
40404         * lib/unicase/u16-casexfrm.c: New file.
40405         * modules/unicase/u16-casexfrm: New file.
40406
40407         New module 'unicase/u8-casexfrm'.
40408         * lib/unicase/u8-casexfrm.c: New file.
40409         * lib/unicase/u-casexfrm.h: New file.
40410         * modules/unicase/u8-casexfrm: New file.
40411
40412         Tests for module 'unicase/u32-casecmp'.
40413         * modules/unicase/u32-casecmp-tests: New file.
40414         * tests/unicase/test-u32-casecmp.c: New file.
40415
40416         Tests for module 'unicase/u16-casecmp'.
40417         * modules/unicase/u16-casecmp-tests: New file.
40418         * tests/unicase/test-u16-casecmp.c: New file.
40419
40420         Tests for module 'unicase/u8-casecmp'.
40421         * modules/unicase/u8-casecmp-tests: New file.
40422         * tests/unicase/test-u8-casecmp.c: New file.
40423         * tests/unicase/test-casecmp.h: New file.
40424
40425         New module 'unicase/u32-casecmp'.
40426         * lib/unicase/u32-casecmp.c: New file.
40427         * modules/unicase/u32-casecmp: New file.
40428
40429         New module 'unicase/u16-casecmp'.
40430         * lib/unicase/u16-casecmp.c: New file.
40431         * modules/unicase/u16-casecmp: New file.
40432
40433         New module 'unicase/u8-casecmp'.
40434         * lib/unicase/u8-casecmp.c: New file.
40435         * lib/unicase/u-casecmp.h: New file.
40436         * modules/unicase/u8-casecmp: New file.
40437
40438         Tests for module 'unicase/u32-casefold'.
40439         * modules/unicase/u32-casefold-tests: New file.
40440         * tests/unicase/test-u32-casefold.c: New file.
40441
40442         Tests for module 'unicase/u16-casefold'.
40443         * modules/unicase/u16-casefold-tests: New file.
40444         * tests/unicase/test-u16-casefold.c: New file.
40445
40446         Tests for module 'unicase/u8-casefold'.
40447         * modules/unicase/u8-casefold-tests: New file.
40448         * tests/unicase/test-u8-casefold.c: New file.
40449
40450         New module 'unicase/u32-casefold'.
40451         * lib/unicase/u32-casefold.c: New file.
40452         * modules/unicase/u32-casefold: New file.
40453
40454         New module 'unicase/u16-casefold'.
40455         * lib/unicase/u16-casefold.c: New file.
40456         * modules/unicase/u16-casefold: New file.
40457
40458         New module 'unicase/u8-casefold'.
40459         * lib/unicase/u8-casefold.c: New file.
40460         * lib/unicase/u-casefold.h: New file.
40461         * modules/unicase/u8-casefold: New file.
40462
40463         New module 'unicase/tocasefold'.
40464         * lib/unicase/casefold.h: New file.
40465         * lib/unicase/tocasefold.c: New file.
40466         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
40467         * modules/unicase/tocasefold: New file.
40468
40469         Tests for module 'unicase/u32-totitle'.
40470         * modules/unicase/u32-totitle-tests: New file.
40471         * tests/unicase/test-u32-totitle.c: New file.
40472
40473         Tests for module 'unicase/u16-totitle'.
40474         * modules/unicase/u16-totitle-tests: New file.
40475         * tests/unicase/test-u16-totitle.c: New file.
40476
40477         Tests for module 'unicase/u8-totitle'.
40478         * modules/unicase/u8-totitle-tests: New file.
40479         * tests/unicase/test-u8-totitle.c: New file.
40480
40481         New module 'unicase/u32-totitle'.
40482         * lib/unicase/u32-totitle.c: New file.
40483         * modules/unicase/u32-totitle: New file.
40484
40485         New module 'unicase/u16-totitle'.
40486         * lib/unicase/u16-totitle.c: New file.
40487         * modules/unicase/u16-totitle: New file.
40488
40489         New module 'unicase/u8-totitle'.
40490         * lib/unicase/u8-totitle.c: New file.
40491         * lib/unicase/u-totitle.h: New file.
40492         * modules/unicase/u8-totitle: New file.
40493
40494         Tests for module 'unicase/u32-tolower'.
40495         * modules/unicase/u32-tolower-tests: New file.
40496         * tests/unicase/test-u32-tolower.c: New file.
40497
40498         Tests for module 'unicase/u16-tolower'.
40499         * modules/unicase/u16-tolower-tests: New file.
40500         * tests/unicase/test-u16-tolower.c: New file.
40501
40502         Tests for module 'unicase/u8-tolower'.
40503         * modules/unicase/u8-tolower-tests: New file.
40504         * tests/unicase/test-u8-tolower.c: New file.
40505
40506         New module 'unicase/u32-tolower'.
40507         * lib/unicase/u32-tolower.c: New file.
40508         * modules/unicase/u32-tolower: New file.
40509
40510         New module 'unicase/u16-tolower'.
40511         * lib/unicase/u16-tolower.c: New file.
40512         * modules/unicase/u16-tolower: New file.
40513
40514         New module 'unicase/u8-tolower'.
40515         * lib/unicase/u8-tolower.c: New file.
40516         * modules/unicase/u8-tolower: New file.
40517
40518         Tests for module 'unicase/u32-toupper'.
40519         * modules/unicase/u32-toupper-tests: New file.
40520         * tests/unicase/test-u32-toupper.c: New file.
40521
40522         Tests for module 'unicase/u16-toupper'.
40523         * modules/unicase/u16-toupper-tests: New file.
40524         * tests/unicase/test-u16-toupper.c: New file.
40525
40526         Tests for module 'unicase/u8-toupper'.
40527         * modules/unicase/u8-toupper-tests: New file.
40528         * tests/unicase/test-u8-toupper.c: New file.
40529
40530         New module 'unicase/u32-toupper'.
40531         * lib/unicase/u32-toupper.c: New file.
40532         * modules/unicase/u32-toupper: New file.
40533
40534         New module 'unicase/u16-toupper'.
40535         * lib/unicase/u16-toupper.c: New file.
40536         * modules/unicase/u16-toupper: New file.
40537
40538         New module 'unicase/u8-toupper'.
40539         * lib/unicase/u8-toupper.c: New file.
40540         * modules/unicase/u8-toupper: New file.
40541
40542         New module 'unicase/u32-casemap'.
40543         * lib/unicase/u32-casemap.c: New file.
40544         * modules/unicase/u32-casemap: New file.
40545
40546         New module 'unicase/u16-casemap'.
40547         * lib/unicase/u16-casemap.c: New file.
40548         * modules/unicase/u16-casemap: New file.
40549
40550         New module 'unicase/u8-casemap'.
40551         * lib/unicase/unicasemap.h: New file.
40552         * lib/unicase/u8-casemap.c: New file.
40553         * lib/unicase/u-casemap.h: New file.
40554         * modules/unicase/u8-casemap: New file.
40555
40556         New module 'unicase/special-casing'.
40557         * lib/unicase/special-casing.h: New file.
40558         * lib/unicase/special-casing.c: New file.
40559         * lib/unicase/special-casing-table.gperf: New file, generated by
40560         gen-uni-tables.c.
40561         * modules/unicase/special-casing: New file.
40562
40563         Tests for module 'unicase/locale-language'.
40564         * modules/unicase/locale-language-tests: New file.
40565         * tests/unicase/test-locale-language.sh: New file.
40566         * tests/unicase/test-locale-language.c: New file.
40567
40568         New module 'unicase/locale-language'.
40569         * lib/unicase/locale-language.c: New file.
40570         * lib/unicase/locale-languages.gperf: New file.
40571         * modules/unicase/locale-language: New file.
40572
40573         Generate more tables for case conversion and case folding.
40574         * lib/gen-uni-tables.c (SCC_*): New enum items.
40575         (struct special_casing_rule): New type.
40576         (casing_rules, num_casing_rules, allocated_casing_rules): New
40577         variables.
40578         (add_casing_rule, fill_casing_rules): New functions.
40579         (struct casefold_rule): New type.
40580         (casefolding_rules, num_casefolding_rules,
40581         allocated_casefolding_rules): New variables.
40582         (fill_casefolding_rules): New function.
40583         (unicode_casefold): New variable.
40584         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
40585         sort_casing_rules, output_casing_rules): New functions.
40586         (main): Accept to more arguments: SpecialCasing.txt and
40587         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
40588         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
40589         Output mapping for casefolding.
40590
40591         * lib/unicase.h: Include stdbool.h, uninorm.h.
40592         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
40593         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
40594         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
40595         arguments.
40596         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
40597         resultp arguments.
40598         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
40599         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
40600         resultp arguments.
40601         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
40602         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
40603         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
40604         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
40605         declarations.
40606         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
40607
40608 2009-03-08  Bruno Haible  <bruno@clisp.org>
40609
40610         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40611         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
40612         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
40613         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40614
40615 2009-03-07  Bruno Haible  <bruno@clisp.org>
40616
40617         Adjust u*_normcmp, u*_normcoll API.
40618         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40619         u16_normcoll, u32_normcoll): Change failure conventions.
40620         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
40621         errno and return -1.
40622         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40623
40624 2009-03-07  Bruno Haible  <bruno@clisp.org>
40625
40626         Tests for module 'uninorm/u32-normcoll'.
40627         * modules/uninorm/u32-normcoll-tests: New file.
40628         * tests/uninorm/test-u32-normcoll.c: New file.
40629
40630         Tests for module 'uninorm/u16-normcoll'.
40631         * modules/uninorm/u16-normcoll-tests: New file.
40632         * tests/uninorm/test-u16-normcoll.c: New file.
40633
40634         Tests for module 'uninorm/u8-normcoll'.
40635         * modules/uninorm/u8-normcoll-tests: New file.
40636         * tests/uninorm/test-u8-normcoll.c: New file.
40637
40638 2009-03-07  Bruno Haible  <bruno@clisp.org>
40639
40640         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
40641         tests/uninorm/test-u32-normcmp.c.
40642         * tests/uninorm/test-u32-normcmp.c: Include it.
40643         (test_nonascii): New function, extracted from main. Add some more
40644         tests.
40645         (main): Invoke test_ascii and test_nonascii.
40646         * modules/uninorm/u32-normcmp-tests (Files): Add
40647         tests/uninorm/test-u32-normcmp.h.
40648         (Depends-on): Remove uninorm/u32-normcmp.
40649
40650         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
40651         tests/uninorm/test-u16-normcmp.c.
40652         * tests/uninorm/test-u16-normcmp.c: Include it.
40653         (test_nonascii): New function, extracted from main. Add some more
40654         tests.
40655         (main): Invoke test_ascii and test_nonascii.
40656         * modules/uninorm/u16-normcmp-tests (Files): Add
40657         tests/uninorm/test-u16-normcmp.h.
40658         (Depends-on): Remove uninorm/u16-normcmp.
40659
40660         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
40661         tests/uninorm/test-u8-normcmp.c.
40662         * tests/uninorm/test-u8-normcmp.c: Include it.
40663         (test_nonascii): New function, extracted from main. Add some more
40664         tests.
40665         (main): Invoke test_ascii and test_nonascii.
40666         * modules/uninorm/u8-normcmp-tests (Files): Add
40667         tests/uninorm/test-u8-normcmp.h.
40668         (Depends-on): Remove uninorm/u8-normcmp.
40669
40670 2009-03-07  Bruno Haible  <bruno@clisp.org>
40671
40672         New module 'uninorm/u32-normcoll'.
40673         * lib/uninorm/u32-normcoll.c: New file.
40674         * modules/uninorm/u32-normcoll: New file.
40675
40676         New module 'uninorm/u16-normcoll'.
40677         * lib/uninorm/u16-normcoll.c: New file.
40678         * modules/uninorm/u16-normcoll: New file.
40679
40680         New module 'uninorm/u8-normcoll'.
40681         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
40682         declarations.
40683         * lib/uninorm/u8-normcoll.c: New file.
40684         * lib/uninorm/u-normcoll.h: New file.
40685         * modules/uninorm/u8-normcoll: New file.
40686
40687         New module 'uninorm/u32-normxfrm'.
40688         * lib/uninorm/u32-normxfrm.c: New file.
40689         * modules/uninorm/u32-normxfrm: New file.
40690
40691         New module 'uninorm/u16-normxfrm'.
40692         * lib/uninorm/u16-normxfrm.c: New file.
40693         * modules/uninorm/u16-normxfrm: New file.
40694
40695         New module 'uninorm/u8-normxfrm'.
40696         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
40697         declarations.
40698         * lib/uninorm/u8-normxfrm.c: New file.
40699         * lib/uninorm/u-normxfrm.h: New file.
40700         * modules/uninorm/u8-normxfrm: New file.
40701
40702 2009-03-07  Bruno Haible  <bruno@clisp.org>
40703
40704         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
40705         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
40706         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
40707
40708 2009-03-07  Bruno Haible  <bruno@clisp.org>
40709
40710         New module 'memxfrm'.
40711         * lib/memxfrm.h: New file.
40712         * lib/memxfrm.c: New file.
40713         * modules/memxfrm: New file.
40714
40715 2009-03-07  Bruno Haible  <bruno@clisp.org>
40716
40717         New module 'memcmp2'.
40718         * lib/memcmp2.h: New file.
40719         * lib/memcmp2.c: New file.
40720         * modules/memcmp2: New file.
40721
40722 2009-03-07  Bruno Haible  <bruno@clisp.org>
40723
40724         Tests for module 'uninorm/decomposing-form'.
40725         * modules/uninorm/decomposing-form-tests: New file.
40726         * tests/uninorm/test-decomposing-form.c: New file.
40727
40728         New module 'uninorm/decomposing-form'.
40729         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
40730         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
40731         Add 'decomposing_variant' field.
40732         * lib/uninorm/decomposing-form.c: New file.
40733         * lib/uninorm/nfc.c (uninorm_nfc): Update.
40734         * lib/uninorm/nfd.c (uninorm_nfd): Update.
40735         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
40736         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
40737         * modules/uninorm/decomposing-form: New file.
40738         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
40739         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
40740
40741 2009-03-07  Bruno Haible  <bruno@clisp.org>
40742
40743         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
40744         strings.
40745
40746 2009-03-06  Bruno Haible  <bruno@clisp.org>
40747
40748         Tests for module 'uninorm/u32-normcmp'.
40749         * tests/uninorm/test-u32-normcmp.c: New file.
40750         * modules/uninorm/u32-normcmp-tests: New file.
40751
40752         Tests for module 'uninorm/u16-normcmp'.
40753         * tests/uninorm/test-u16-normcmp.c: New file.
40754         * modules/uninorm/u16-normcmp-tests: New file.
40755
40756         Tests for module 'uninorm/u8-normcmp'.
40757         * tests/uninorm/test-u8-normcmp.c: New file.
40758         * modules/uninorm/u8-normcmp-tests: New file.
40759
40760         New module 'uninorm/u32-normcmp'.
40761         * lib/uninorm/u32-normcmp.c: New file.
40762         * modules/uninorm/u32-normcmp: New file.
40763
40764         New module 'uninorm/u16-normcmp'.
40765         * lib/uninorm/u16-normcmp.c: New file.
40766         * modules/uninorm/u16-normcmp: New file.
40767
40768         New module 'uninorm/u8-normcmp'.
40769         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
40770         declarations.
40771         * lib/uninorm/u8-normcmp.c: New file.
40772         * lib/uninorm/u-normcmp.h: New file.
40773         * modules/uninorm/u8-normcmp: New file.
40774
40775 2009-03-06  Bruno Haible  <bruno@clisp.org>
40776
40777         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
40778         Reported by Eric Blake.
40779
40780 2009-03-06  Eric Blake  <ebb9@byu.net>
40781             Bruno Haible  <bruno@clisp.org>
40782
40783         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
40784         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
40785         condition.
40786         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40787         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
40788         condition.
40789         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40790
40791 2009-03-06  Eric Blake  <ebb9@byu.net>
40792
40793         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
40794         to avoid compiler warnings.
40795         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
40796
40797 2009-03-05  Bruno Haible  <bruno@clisp.org>
40798
40799         * tests/test-ftell.c (main): Disable test beyond end of file on
40800         FreeMiNT.
40801         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40802
40803 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
40804
40805         * lib/filevercmp.c: Move hidden files up in ordering.
40806         * tests/test-filevercmp.c: Add tests for hidden files.
40807
40808 2009-03-04  Bruno Haible  <bruno@clisp.org>
40809
40810         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
40811         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
40812         AM_CFLAGS.
40813         Reported by Simon Josefsson.
40814
40815 2009-03-03  Bruno Haible  <bruno@clisp.org>
40816
40817         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
40818         Reported by Simon Josefsson.
40819
40820         * doc/ld-version-script.texi: Update node reference.
40821
40822 2009-03-03  Bruno Haible  <bruno@clisp.org>
40823
40824         * modules/visibility (License): Change to 'unlimited'.
40825         Suggested by Simon Josefsson.
40826
40827 2009-03-03  Jim Meyering  <meyering@redhat.com>
40828
40829         unlinkdir: cannot_unlink_dir may modify process state
40830         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
40831         it's neither thread-safe nor appropriate for use in a library.
40832
40833 2009-03-03  Eric Blake  <ebb9@byu.net>
40834
40835         test-closein: silence test under Darwin
40836         * tests/test-closein.sh: Ignore stderr from cat, since we don't
40837         care if it dies from EPIPE or EBADF.
40838
40839 2009-03-03  Bruno Haible  <bruno@clisp.org>
40840
40841         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
40842         earlier.
40843         * doc/visibility.texi: Fix @node and @section.
40844
40845 2009-03-03  Simon Josefsson  <simon@josefsson.org>
40846
40847         * doc/gnulib.texi: Link to sections for ld version script and
40848         visibility.
40849         * doc/visibility.texi: Add @node and @section.
40850         * modules/ld-version-script: New module.
40851         * m4/ld-version-script.m4: New file.
40852         * doc/ld-version-script.texi: New file.
40853
40854 2009-03-02  David Lutterkort  <lutter@redhat.com>
40855
40856         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
40857         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40858
40859 2009-03-02  Bruno Haible  <bruno@clisp.org>
40860
40861         * doc/visibility.texi: Mention libtool's -export-symbols option.
40862
40863 2009-03-02  Jim Meyering  <meyering@redhat.com>
40864
40865         announce-gen: new option: --no-print-checksums
40866         * build-aux/announce-gen (usage): Describe it.
40867         (print_checksums): Print a newline here, not in the [*] footnote.
40868         (main): Honor it.
40869
40870 2009-03-01  Bruno Haible  <bruno@clisp.org>
40871
40872         Use socklen_t in the native Windows replacements prototypes.
40873         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
40874         instead of 'int'.
40875         * lib/getsockopt.c (rpl_getsockopt): Likewise.
40876         * lib/setsockopt.c (rpl_setsockopt): Likewise.
40877         * modules/getsockopt (Depends-on): Add socklen.
40878         * modules/setsockopt (Depends-on): Add socklen.
40879
40880 2009-03-01  Bruno Haible  <bruno@clisp.org>
40881
40882         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
40883         least 4.2.
40884
40885 2009-03-01  Eric Blake  <ebb9@byu.net>
40886             Bruno Haible  <bruno@clisp.org>
40887
40888         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
40889         error messages.
40890         * lib/wait-process.c (wait_subprocess): Omit error message about
40891         deadly signal sent to the child of termsigp != NULL.
40892
40893 2009-03-01  Eric Blake  <ebb9@byu.net>
40894
40895         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
40896
40897 2009-03-01  Bruno Haible  <bruno@clisp.org>
40898
40899         Avoid a gcc warning.
40900         * tests/test-sched.c (b): Make global.
40901         Reported by Eric Blake.
40902
40903 2009-01-19  Martin Lambers  <marlam@marlam.de>
40904
40905         Provide POSIX semantics for socket timeout options on W32.
40906         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
40907         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
40908         * modules/setsockopt: Depend on sys_time module for struct timeval.
40909         * modules/getsockopt: Depend on sys_time module for struct timeval.
40910
40911 2009-03-01  Simon Josefsson  <simon@josefsson.org>
40912
40913         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
40914         __USE_GNU, for consistency with netdb.in.h.
40915         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40916
40917 2009-03-01  Bruno Haible  <bruno@clisp.org>
40918
40919         More support for FreeMiNT.
40920         * lib/fseeko.c (rpl_fseeko): Complete last commit.
40921         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40922
40923 2009-03-01  Bruno Haible  <bruno@clisp.org>
40924
40925         More support for FreeMiNT.
40926         * lib/fpurge.c (fpurge): Correct last commit.
40927         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40928
40929 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40930
40931         Fix unportable awk script in vc-list-files.
40932         * build-aux/vc-list-files: In the replacement awk script, use
40933         substr with a second argument of 1, not zero.
40934         Report by Simon Josefsson.
40935
40936 2009-02-28  Bruno Haible  <bruno@clisp.org>
40937
40938         More support for FreeMiNT.
40939         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
40940         to FreeMiNT today.
40941         * lib/fwriting.c (fwriting): Likewise.
40942         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
40943
40944 2009-02-28  Bruno Haible  <bruno@clisp.org>
40945
40946         * tests/test-freadseek.c (main): Disable test beyond end of file on
40947         FreeMiNT.
40948         * tests/test-ftello.c (main): Likewise.
40949         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40950
40951 2009-02-28  Bruno Haible  <bruno@clisp.org>
40952
40953         Add tentative support for FreeMiNT.
40954         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
40955         * lib/fpurge.c (fpurge): Likewise.
40956         * lib/freadable.c (freadable): Likewise.
40957         * lib/freading.c (freading): Likewise.
40958         * lib/freadptr.c (freadptr): Likewise.
40959         * lib/freadseek.c (freadptrinc): Likewise.
40960         * lib/fseeko.c (rpl_fseeko): Likewise.
40961         * lib/fseterr.c (fseterr): Likewise.
40962         * lib/fwritable.c (fwritable): Likewise.
40963         * lib/fwriting.c (fwriting): Likewise.
40964         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
40965         Hourihane.
40966         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40967
40968 2009-02-28  Bruno Haible  <bruno@clisp.org>
40969
40970         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
40971         SIGCHLD.
40972         Reported by Jim Meyering.
40973
40974 2009-02-28  Bruno Haible  <bruno@clisp.org>
40975
40976         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
40977         Mention the results of these tests on various platforms.
40978         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
40979         order.
40980         * doc/posix-functions/printf.texi: Likewise.
40981         * doc/posix-functions/snprintf.texi: Likewise.
40982         * doc/posix-functions/sprintf.texi: Likewise.
40983         * doc/posix-functions/vfprintf.texi: Likewise.
40984         * doc/posix-functions/vprintf.texi: Likewise.
40985         * doc/posix-functions/vsnprintf.texi: Likewise.
40986         * doc/posix-functions/vsprintf.texi: Likewise.
40987         * doc/glibc-functions/obstack_printf.texi: Likewise.
40988         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
40989
40990 2009-02-28  Bruno Haible  <bruno@clisp.org>
40991
40992         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
40993         Reported by Loïc Minier <lool@dooz.org>.
40994
40995 2009-02-27  Bruno Haible  <bruno@clisp.org>
40996
40997         * gnulib-tool (func_import): Make the sed expression used to create the
40998         sed script for updating the .gitignore file POSIX compliant.
40999         Reported by Eric Blake.
41000
41001 2009-02-27  Bruno Haible  <bruno@clisp.org>
41002
41003         * gnulib-tool (sed): Don't alias as "sed --posix".
41004         Reported by Eric Blake.
41005
41006 2009-02-27  Bruno Haible  <bruno@clisp.org>
41007
41008         Avoid test link errors.
41009         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
41010         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
41011         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
41012         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
41013         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41014
41015 2009-02-27  Bruno Haible  <bruno@clisp.org>
41016
41017         Avoid spurious "(cached)" in configure output.
41018         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
41019         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
41020         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
41021         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
41022         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
41023         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
41024         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
41025         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
41026         Reported by Eric Blake.
41027
41028 2009-02-27  Eric Blake  <ebb9@byu.net>
41029
41030         printf: fix regression in previous patch
41031         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
41032
41033 2009-02-27  Bruno Haible  <bruno@clisp.org>
41034
41035         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
41036         value.
41037         * lib/stdint.in.h: Likewise.
41038         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
41039
41040 2009-02-27  Eric Blake  <ebb9@byu.net>
41041
41042         doc: mention more functions added in cygwin 1.7.0
41043         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
41044         addition.
41045         * doc/posix-functions/open_wmemstream.texi: Likewise.
41046         * doc/posix-functions/wcsnlen.texi: Likewise.
41047         * doc/posix-functions/wcsnrtombs.texi: Likewise.
41048         * doc/posix-functions/wcstod.texi: Likewise.
41049         * doc/posix-functions/wcstof.texi: Likewise.
41050         * doc/posix-functions/wcstoimax.texi: Likewise.
41051         * doc/posix-functions/wcstok.texi: Likewise.
41052         * doc/posix-functions/wcstoumax.texi: Likewise.
41053
41054         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
41055         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
41056         * doc/posix-functions/fprintf.texi: Update.
41057         * doc/posix-functions/printf.texi: Update.
41058         * doc/posix-functions/snprintf.texi: Update.
41059         * doc/posix-functions/sprintf.texi: Update.
41060         * doc/posix-functions/vfprintf.texi: Update.
41061         * doc/posix-functions/vprintf.texi: Update.
41062         * doc/posix-functions/vsnprintf.texi: Update.
41063         * doc/posix-functions/vsprintf.texi: Update.
41064         * doc/glibc-functions/obstack_printf.texi: Update.
41065         * doc/glibc-functions/obstack_vprintf.texi: Update.
41066
41067 2009-02-26  Eric Blake  <ebb9@byu.net>
41068
41069         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
41070         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
41071         compilation bug by using runtime conversion.
41072         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
41073         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
41074         * modules/ceill-tests (Files): Use nan.h.
41075         * modules/floorl-tests (Files): Likewise.
41076         * modules/frexpl-tests (Files): Likewise.
41077         * modules/isnanl-tests (Files): Likewise.
41078         * modules/ldexpl-tests (Files): Likewise.
41079         * modules/roundl-tests (Files): Likewise.
41080         * modules/truncl-tests (Files): Likewise.
41081         * tests/test-ceill.c (main): Use a working NaN.
41082         * tests/test-floorl.c (main): Likewise.
41083         * tests/test-frexpl.c (main): Likewise.
41084         * tests/test-isnan.c (test_long_double): Likewise.
41085         * tests/test-isnanl.h (main): Likewise.
41086         * tests/test-ldexpl.h (main): Likewise.
41087         * tests/test-roundl.h (main): Likewise.
41088         * tests/test-truncl.h (main): Likewise.
41089         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
41090
41091 2009-02-26  Eric Blake  <ebb9@byu.net>
41092             Bruno Haible  <bruno@clisp.org>
41093
41094         Work around a *printf bug with %ls on Solaris.
41095         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
41096         precision is specified, sprintf stops converting the wide string
41097         argument when the number of bytes that have been produced by this
41098         conversion equals or exceeds the precision.
41099         * doc/posix-functions/fprintf.texi: Update.
41100         * doc/posix-functions/printf.texi: Update.
41101         * doc/posix-functions/snprintf.texi: Update.
41102         * doc/posix-functions/sprintf.texi: Update.
41103         * doc/posix-functions/vfprintf.texi: Update.
41104         * doc/posix-functions/vprintf.texi: Update.
41105         * doc/posix-functions/vsnprintf.texi: Update.
41106         * doc/posix-functions/vsprintf.texi: Update.
41107         * doc/glibc-functions/obstack_printf.texi: Update.
41108         * doc/glibc-functions/obstack_vprintf.texi: Update.
41109
41110 2009-02-26  Eric Blake  <ebb9@byu.net>
41111
41112         stdlib: favor compiler check of random.h
41113         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
41114         to avoid an ObjC random.h installed by Swarm.
41115
41116 2009-02-26  Bruno Haible  <bruno@clisp.org>
41117
41118         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
41119         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
41120         Reported by Gary V. Vaughan <gary@gnu.org>.
41121
41122 2009-02-26  Bruno Haible  <bruno@clisp.org>
41123
41124         Fix *printf behaviour regarding the %ls directive.
41125         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
41126         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
41127         NEED_PRINTF_DIRECTIVE_LS.
41128         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
41129         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
41130         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41131         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
41132         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
41133         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
41134         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
41135         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41136         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41137         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41138         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41139         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
41140         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41141         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41142         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41143         * doc/posix-functions/fprintf.texi: Update.
41144         * doc/posix-functions/printf.texi: Update.
41145         * doc/posix-functions/snprintf.texi: Update.
41146         * doc/posix-functions/sprintf.texi: Update.
41147         * doc/posix-functions/vfprintf.texi: Update.
41148         * doc/posix-functions/vprintf.texi: Update.
41149         * doc/posix-functions/vsnprintf.texi: Update.
41150         * doc/posix-functions/vsprintf.texi: Update.
41151         * doc/glibc-functions/obstack_printf.texi: Update.
41152         * doc/glibc-functions/obstack_vprintf.texi: Update.
41153         Reported by Eric Blake.
41154
41155 2009-02-25  Bruno Haible  <bruno@clisp.org>
41156
41157         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
41158         with known value.
41159         Reported by Gary V. Vaughan <gary@gnu.org>.
41160
41161 2009-02-25  Bruno Haible  <bruno@clisp.org>
41162
41163         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
41164         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
41165         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
41166         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
41167         Reported by Gary V. Vaughan <gary@gnu.org>.
41168
41169 2009-02-25  Bruno Haible  <bruno@clisp.org>
41170
41171         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
41172         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
41173         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
41174         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
41175         Reported by Gary V. Vaughan <gary@gnu.org>.
41176
41177 2009-02-25  Eric Blake  <ebb9@byu.net>
41178
41179         tests: skip fseek/ftell tests if ungetc is broken
41180         * m4/ungetc.m4: New file.
41181         * modules/fseek-tests: Split test, so ungetc dependency is
41182         separate from rest of test.
41183         * modules/fseeko-tests: Likewise.
41184         * modules/ftell-tests: Likewise.
41185         * modules/ftello-tests: Likewise.
41186         * tests/test-fseek.c (main): Isolate ungetc dependency.
41187         * tests/test-fseeko.c (main): Likewise.
41188         * tests/test-ftell.c (main): Likewise.
41189         * tests/test-ftello.c (main): Likewise.
41190         * tests/test-fseek2.sh: New file.
41191         * tests/test-fseeko2.sh: Likewise.
41192         * tests/test-ftell2.sh: Likewise.
41193         * tests/test-ftello2.sh: Likewise.
41194
41195 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
41196
41197         test-getaddrinfo: fix usage of skip return code 77
41198         * tests/test-gettaddrinfo.c: Return skip code 77 only
41199         for first occurance of skip (4x77 is not 77)
41200
41201 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
41202
41203         strtod: avoid C99 decl-after-statement
41204         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
41205
41206 2009-02-24  Eric Blake  <ebb9@byu.net>
41207
41208         strtod: detect HP-UX 11.31 bug
41209         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
41210         Reported by Gary V. Vaughan.
41211
41212 2009-02-23  Bruno Haible  <bruno@clisp.org>
41213
41214         Fix invalid read past end of memory block.
41215         * lib/vasnprintf.c (DCHAR_SET): Define.
41216         (local_wcslen): Define only when needed.
41217         (local_strnlen, local_wcsnlen): New functions.
41218         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
41219         directives that involve a conversion ourselves.
41220         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
41221         wcsnlen, mbrtowc, wcrtomb.
41222         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
41223         * tests/test-vasprintf-posix.c (test_function): Likewise.
41224         * tests/test-snprintf-posix.h (test_function): Likewise.
41225         * tests/test-sprintf-posix.h (test_function): Likewise.
41226         Reported by Ben Pfaff <blp@cs.stanford.edu>.
41227
41228 2009-02-22  Bruno Haible  <bruno@clisp.org>
41229
41230         Implement new clarified decomposition of Hangul syllables.
41231         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
41232         of type LTV, return only a pairwise decomposition.
41233         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
41234         Likewise.
41235         * tests/uninorm/test-decomposition.c (main): Updated expected result.
41236         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
41237         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
41238
41239 2009-02-22  Bruno Haible  <bruno@clisp.org>
41240
41241         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
41242         zero-length results and shrink excess allocated memory.
41243         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
41244         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
41245         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
41246         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
41247         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
41248         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
41249         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
41250         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
41251         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
41252         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
41253         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
41254         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
41255
41256 2009-02-21  Bruno Haible  <bruno@clisp.org>
41257
41258         * doc/gnulib.texi: Include safe-alloc.texi earlier.
41259         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
41260         spaces after a period. Put a space between a macro name and its
41261         argument list. Trivial rewordings.
41262         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
41263         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
41264         (main): Return 0 explicitly.
41265
41266 2009-02-21  Bruno Haible  <bruno@clisp.org>
41267
41268         Tests for module 'uninorm/filter'.
41269         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
41270         * modules/uninorm/filter-tests: New file.
41271
41272         New module 'uninorm/filter'.
41273         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
41274         uninorm_filter_flush, uninorm_filter_free): New declarations.
41275         * lib/uninorm/uninorm-filter.c: New file.
41276         * modules/uninorm/filter: New file.
41277
41278 2009-02-21  Bruno Haible  <bruno@clisp.org>
41279
41280         Tests for module 'uninorm/nfkc'.
41281         * tests/uninorm/test-nfkc.c: New file.
41282         * tests/uninorm/test-u8-nfkc.c: New file.
41283         * tests/uninorm/test-u16-nfkc.c: New file.
41284         * tests/uninorm/test-u32-nfkc.c: New file.
41285         * tests/uninorm/test-u32-nfkc-big.sh: New file.
41286         * tests/uninorm/test-u32-nfkc-big.c: New file.
41287         * modules/uninorm/nfkc-tests: New file.
41288
41289         New module 'uninorm/nfkc'.
41290         * lib/uninorm/nfkc.c: New file.
41291         * modules/uninorm/nfkc: New file.
41292
41293         Tests for module 'uninorm/nfkd'.
41294         * tests/uninorm/test-nfkd.c: New file.
41295         * tests/uninorm/test-u8-nfkd.c: New file.
41296         * tests/uninorm/test-u16-nfkd.c: New file.
41297         * tests/uninorm/test-u32-nfkd.c: New file.
41298         * tests/uninorm/test-u32-nfkd-big.sh: New file.
41299         * tests/uninorm/test-u32-nfkd-big.c: New file.
41300         * modules/uninorm/nfkd-tests: New file.
41301
41302         New module 'uninorm/nfkd'.
41303         * lib/uninorm/nfkd.c: New file.
41304         * modules/uninorm/nfkd: New file.
41305
41306         Tests for module 'uninorm/nfc'.
41307         * tests/uninorm/test-nfc.c: New file.
41308         * tests/uninorm/test-u8-nfc.c: New file.
41309         * tests/uninorm/test-u16-nfc.c: New file.
41310         * tests/uninorm/test-u32-nfc.c: New file.
41311         * tests/uninorm/test-u32-nfc-big.sh: New file.
41312         * tests/uninorm/test-u32-nfc-big.c: New file.
41313         * modules/uninorm/nfc-tests: New file.
41314
41315         New module 'uninorm/nfc'.
41316         * lib/uninorm/nfc.c: New file.
41317         * modules/uninorm/nfc: New file.
41318
41319         Tests for module 'uninorm/nfd'.
41320         * tests/uninorm/test-nfd.c: New file.
41321         * tests/uninorm/test-u8-nfd.c: New file.
41322         * tests/uninorm/test-u16-nfd.c: New file.
41323         * tests/uninorm/test-u32-nfd.c: New file.
41324         * tests/uninorm/test-u32-nfd-big.sh: New file.
41325         * tests/uninorm/test-u32-nfd-big.c: New file.
41326         * tests/uninorm/test-u32-normalize-big.h: New file.
41327         * tests/uninorm/test-u32-normalize-big.c: New file.
41328         * tests/uninorm/NormalizationTest.txt: New file, created from
41329         Unicode 5.1.0 NormalizationTest.txt.
41330         * modules/uninorm/nfd-tests: New file.
41331
41332         New module 'uninorm/nfd'.
41333         * lib/uninorm/nfd.c: New file.
41334         * modules/uninorm/nfd: New file.
41335
41336         New module 'uninorm/u32-normalize'.
41337         * lib/uninorm/u32-normalize.c: New file.
41338         * modules/uninorm/u32-normalize: New file.
41339
41340         New module 'uninorm/u16-normalize'.
41341         * lib/uninorm/u16-normalize.c: New file.
41342         * modules/uninorm/u16-normalize: New file.
41343
41344         New module 'uninorm/u8-normalize'.
41345         * lib/uninorm/u8-normalize.c: New file.
41346         * lib/uninorm/normalize-internal.h: New file.
41347         * lib/uninorm/u-normalize-internal.h: New file.
41348         * modules/uninorm/u8-normalize: New file.
41349
41350         New module 'uninorm/decompose-internal'.
41351         * lib/uninorm/decompose-internal.c: New file.
41352         * modules/uninorm/decompose-internal: New file.
41353
41354         Tests for module 'uninorm/composition'.
41355         * tests/uninorm/test-composition.c: New file.
41356         * modules/uninorm/composition-tests: New file.
41357
41358         New module 'uninorm/composition'.
41359         * lib/uninorm/composition.c: New file.
41360         * lib/uninorm/composition-table.gperf: New file, generated by
41361         gen-uni-tables.
41362         * modules/uninorm/composition: New file.
41363
41364         Tests for module 'uninorm/compat-decomposition'.
41365         * tests/uninorm/test-compat-decomposition.c: New file.
41366         * modules/uninorm/compat-decomposition-tests: New file.
41367
41368         New module 'uninorm/compat-decomposition'.
41369         * lib/uninorm/decompose-internal.h: New file.
41370         * lib/uninorm/compat-decomposition.c: New file.
41371         * modules/uninorm/compat-decomposition: New file.
41372
41373         Tests for module 'uninorm/canonical-decomposition'.
41374         * tests/uninorm/test-canonical-decomposition.c: New file.
41375         * modules/uninorm/canonical-decomposition-tests: New file.
41376
41377         New module 'uninorm/canonical-decomposition'.
41378         * lib/uninorm/canonical-decomposition.c: New file.
41379         * modules/uninorm/canonical-decomposition: New file.
41380
41381         Tests for module 'uninorm/decomposition'.
41382         * tests/uninorm/test-decomposition.c: New file.
41383         * modules/uninorm/decomposition-tests: New file.
41384
41385         New module 'uninorm/decomposition'.
41386         * lib/uninorm/decomposition.c: New file.
41387         * modules/uninorm/decomposition: New file.
41388
41389         New module 'uninorm/decomposition-table'.
41390         * lib/uninorm/decomposition-table.h: New file.
41391         * lib/uninorm/decomposition-table.c: New file.
41392         * lib/uninorm/decomposition-table1.h: New file, generated by
41393         gen-uni-tables.
41394         * lib/uninorm/decomposition-table2.h: New file, generated by
41395         gen-uni-tables.
41396         * modules/uninorm/decomposition-table: New file.
41397
41398         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
41399         (UC_DECOMP_*): New enumeration items.
41400         (get_decomposition): New function.
41401         (struct decomp_table): New type.
41402         (output_decomposition, output_decomposition_tables): New functions.
41403         (unicode_composition_exclusions): New variable.
41404         (fill_composition_exclusions, debug_output_composition_tables): New
41405         functions.
41406         (main): Accept one more argument. Invoke fill_composition_exclusions.
41407         Output decomposition and composition tables.
41408
41409         New module 'uninorm/base'.
41410         * lib/uninorm.h: New file.
41411         * lib/unictype.h: Update comment.
41412         * modules/uninorm/base: New file.
41413
41414 2009-02-21  David Lutterkort  <lutter@redhat.com>
41415
41416         Tests for module 'safe-alloc'.
41417         * tests/test-safe-alloc.c: New file.
41418         * modules/safe-alloc-tests: New file.
41419
41420         New module 'safe-alloc'.
41421         * lib/safe-alloc.h: New file.
41422         * lib/safe-alloc.c: New file.
41423         * m4/safe-alloc.m4: New file.
41424         * modules/safe-alloc: New file.
41425         * doc/safe-alloc.texi: New file.
41426         * doc/gnulib.texi: Include it.
41427         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
41428         safe-alloc.
41429
41430 2009-02-18  Bruno Haible  <bruno@clisp.org>
41431
41432         Fix link error on non-glibc systems.
41433         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
41434         variable.
41435         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41436
41437 2009-02-18  Jim Meyering  <meyering@redhat.com>
41438
41439         fts: avoid used-uninitialized error due to recent change
41440         * lib/fts.c (fts_read): Guard uses of the new member,
41441         parent->fts_n_dirs_remaining, since it's not relevant for
41442         the parent of a directory specified on the command-line.
41443
41444 2009-02-17  James Youngman  <jay@gnu.org>
41445             Bruno Haible  <bruno@clisp.org>
41446
41447         * m4/include_next.m4: Reformulate comment.
41448
41449 2009-02-16  Jim Meyering  <meyering@redhat.com>
41450
41451         fts: add #if guards so that the fts_lgpl module still builds
41452         * lib/fts.c: Guard just-added hash-table-using parts with
41453         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
41454         Reported by Simon Josefsson.
41455
41456 2009-02-15  Bruno Haible  <bruno@clisp.org>
41457
41458         * modules/array-mergesort-tests: New file.
41459         * tests/test-array-mergesort.c: New file.
41460
41461         New module 'array-mergesort'.
41462         * modules/array-mergesort: New file.
41463         * lib/array-mergesort.h: New file.
41464
41465 2009-02-15  Bruno Haible  <bruno@clisp.org>
41466
41467         Fix 2009-02-07 commit.
41468         * lib/gen-uni-tables.c (output_predicate, output_category,
41469         output_combclass, output_bidi_category, output_decimal_digit,
41470         output_digit, output_numeric, output_mirror, output_scripts,
41471         output_ident_category, output_simple_mapping): Fix format directives.
41472         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
41473
41474 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
41475
41476         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
41477         fixes are available from IBM.
41478
41479 2009-02-13  Jim Meyering  <meyering@redhat.com>
41480
41481         fts: arrange not to stat non-directories in more cases
41482         This makes GNU find (when it doesn't need to stat each file)
41483         *much* more efficient at traversing reiserfs file systems.
41484         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
41485         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
41486         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
41487         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
41488         (leaf_optimization_applies): New function.
41489         (LCO_hash, LCO_compare): New helper functions.
41490         (link_count_optimize_ok): New function.
41491         (fts_stat): Initialize new member (if dir).
41492         (fts_read): Decrement parent's fts_n_dirs_remaining count if
41493         we've just stat'ed a directory.  Skip the stat call when possible.
41494         ---
41495         Note this AFS-related exchange:
41496         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
41497         and note find's pioctl call in find/fstype.c.
41498         But that is necessary only if you want to enable the
41499         optimization for AFS, and for now, I don't.
41500
41501         fts: move a function definition "up" (no semantic change)
41502         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
41503         "up" to precede upcoming use of a related function.
41504
41505 2009-02-11  Jim Meyering  <meyering@redhat.com>
41506
41507         fts: correct internal computation of nlinks (optimization-related)
41508         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
41509         whether the current entry is a directory, so don't test it.
41510
41511 2009-02-10  Bruno Haible  <bruno@clisp.org>
41512
41513         Tests for module 'uniwbrk/ulc-wordbreaks'.
41514         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
41515         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
41516         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
41517
41518         Tests for module 'uniwbrk/u32-wordbreaks'.
41519         * modules/uniwbrk/u32-wordbreaks-tests: New file.
41520         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
41521
41522         Tests for module 'uniwbrk/u16-wordbreaks'.
41523         * modules/uniwbrk/u16-wordbreaks-tests: New file.
41524         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
41525
41526         Tests for module 'uniwbrk/u8-wordbreaks'.
41527         * modules/uniwbrk/u8-wordbreaks-tests: New file.
41528         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
41529
41530 2009-02-10  Bruno Haible  <bruno@clisp.org>
41531
41532         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
41533         property.
41534         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
41535         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
41536         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
41537
41538 2009-02-10  Simon Josefsson  <simon@josefsson.org>
41539
41540         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
41541         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
41542
41543 2009-02-10  Bruno Haible  <bruno@clisp.org>
41544
41545         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
41546         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
41547         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
41548         * lib/unilbrk/u8-possible-linebreaks.c: Update.
41549         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
41550         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
41551
41552 2009-02-09  Simon Josefsson  <simon@josefsson.org>
41553
41554         * lib/sockets.h (gl_fd_to_handle): New function.
41555
41556         * tests/test-sockets.c: Call gl_fd_to_handle.
41557
41558 2009-02-09  Bruno Haible  <bruno@clisp.org>
41559
41560         * doc/havelib.texi: Document the conventions on bi-arch systems.
41561
41562 2009-02-08  Bruno Haible  <bruno@clisp.org>
41563
41564         Document the AC_LIB_LINKFLAGS macro.
41565         * doc/havelib.texi: New file, mostly written on 2005-05-24.
41566         * doc/gnulib.texi: Include it.
41567
41568 2009-02-08  Bruno Haible  <bruno@clisp.org>
41569
41570         Fix wrong order of sections, compared to TOC.
41571         * doc/gnulib.texi: Include relocatable-maint.texi after the
41572         "Regular expressions" node, not before.
41573
41574 2009-02-08  Bruno Haible  <bruno@clisp.org>
41575
41576         Tests for module 'unicase/totitle'.
41577         * modules/unicase/totitle-tests: New file.
41578
41579         Tests for module 'unicase/tolower'.
41580         * modules/unicase/tolower-tests: New file.
41581
41582         Tests for module 'unicase/toupper'.
41583         * modules/unicase/toupper-tests: New file.
41584         * tests/unicase/test-mapping-part1.h: New file.
41585         * tests/unicase/test-mapping-part2.h: New file.
41586
41587         New module 'unicase/totitle'.
41588         * modules/unicase/totitle: New file.
41589         * lib/unicase/totitle.c: New file.
41590
41591         New module 'unicase/tolower'.
41592         * modules/unicase/tolower: New file.
41593         * lib/unicase/tolower.c: New file.
41594
41595         New module 'unicase/toupper'.
41596         * modules/unicase/toupper: New file.
41597         * lib/unicase/toupper.c: New file.
41598         * lib/unicase/simple-mapping.h: New file.
41599
41600         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
41601         (mapping_table): New structure.
41602         (output_simple_mapping): New function.
41603         (main): Invoke output_simple_mapping_test and output_simple_mapping.
41604         * modules/gen-uni-tables (Description): Update.
41605         * lib/unicase/toupper.h: New file, automatically generated by
41606         gen-uni-tables.
41607         * lib/unicase/tolower.h: New file, automatically generated by
41608         gen-uni-tables.
41609         * lib/unicase/totitle.h: New file, automatically generated by
41610         gen-uni-tables.
41611         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
41612         gen-uni-tables.
41613         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
41614         gen-uni-tables.
41615         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
41616         gen-uni-tables.
41617
41618         New module 'unicase/base'.
41619         * modules/unicase/base: New file.
41620         * lib/unicase.h: New file.
41621
41622 2009-02-08  Bruno Haible  <bruno@clisp.org>
41623
41624         New module 'uniwbrk/ulc-wordbreaks'.
41625         * modules/uniwbrk/ulc-wordbreaks: New file.
41626         * lib/uniwbrk/ulc-wordbreaks.c: New file.
41627
41628         New module 'uniwbrk/u32-wordbreaks'.
41629         * modules/uniwbrk/u32-wordbreaks: New file.
41630         * lib/uniwbrk/u32-wordbreaks.c: New file.
41631
41632         New module 'uniwbrk/u16-wordbreaks'.
41633         * modules/uniwbrk/u16-wordbreaks: New file.
41634         * lib/uniwbrk/u16-wordbreaks.c: New file.
41635
41636         New module 'uniwbrk/u8-wordbreaks'.
41637         * modules/uniwbrk/u8-wordbreaks: New file.
41638         * lib/uniwbrk/u8-wordbreaks.c: New file.
41639         * lib/uniwbrk/u-wordbreaks.h: New file.
41640
41641         New module 'uniwbrk/table'.
41642         * modules/uniwbrk/table: New file.
41643         * lib/uniwbrk/wbrktable.h: New file.
41644         * lib/uniwbrk/wbrktable.c: New file.
41645
41646         New module 'uniwbrk/wordbreak-property'.
41647         * modules/uniwbrk/wordbreak-property: New file.
41648         * lib/uniwbrk/wordbreak-property.c: New file.
41649
41650         * lib/gen-uni-tables.c (WBP_*): New enum items.
41651         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
41652         (unicode_org_wbp): New variable.
41653         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
41654         New functions.
41655         (wbp_table): New structure.
41656         (output_wbp, output_wbrk_tables): New functions.
41657         (main): Accept additional argument. Invoke fill_org_wbp,
41658         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
41659         output_wbrk_tables.
41660         * modules/gen-uni-tables (Description): Update.
41661         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
41662         gen-uni-tables.
41663
41664         New module 'uniwbrk/base'.
41665         * modules/uniwbrk/base: New file.
41666         * lib/uniwbrk.h: New file.
41667
41668 2009-02-08  Bruno Haible  <bruno@clisp.org>
41669
41670         Update to Unicode 5.1.0.
41671         * lib/gen-uni-tables.c (is_property_alphabetic): Include
41672         U+2185..U+2188.
41673         (is_property_default_ignorable_code_point): Don't include characters
41674         of category Cc or Cs and not-a-characters.
41675         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
41676         U+0D79, U+109E, U+109F, U+A60C.
41677         * lib/unictype/bidi_of.h: Regenerated.
41678         * lib/unictype/blocks.h: Regenerated.
41679         * lib/unictype/categ_C.h: Regenerated.
41680         * lib/unictype/categ_Cf.h: Regenerated.
41681         * lib/unictype/categ_Cn.h: Regenerated.
41682         * lib/unictype/categ_L.h: Regenerated.
41683         * lib/unictype/categ_Ll.h: Regenerated.
41684         * lib/unictype/categ_Lm.h: Regenerated.
41685         * lib/unictype/categ_Lo.h: Regenerated.
41686         * lib/unictype/categ_Lu.h: Regenerated.
41687         * lib/unictype/categ_M.h: Regenerated.
41688         * lib/unictype/categ_Mc.h: Regenerated.
41689         * lib/unictype/categ_Me.h: Regenerated.
41690         * lib/unictype/categ_Mn.h: Regenerated.
41691         * lib/unictype/categ_N.h: Regenerated.
41692         * lib/unictype/categ_Nd.h: Regenerated.
41693         * lib/unictype/categ_Nl.h: Regenerated.
41694         * lib/unictype/categ_No.h: Regenerated.
41695         * lib/unictype/categ_P.h: Regenerated.
41696         * lib/unictype/categ_Pd.h: Regenerated.
41697         * lib/unictype/categ_Pe.h: Regenerated.
41698         * lib/unictype/categ_Pf.h: Regenerated.
41699         * lib/unictype/categ_Pi.h: Regenerated.
41700         * lib/unictype/categ_Po.h: Regenerated.
41701         * lib/unictype/categ_Ps.h: Regenerated.
41702         * lib/unictype/categ_S.h: Regenerated.
41703         * lib/unictype/categ_Sk.h: Regenerated.
41704         * lib/unictype/categ_Sm.h: Regenerated.
41705         * lib/unictype/categ_So.h: Regenerated.
41706         * lib/unictype/categ_of.h: Regenerated.
41707         * lib/unictype/combining.h: Regenerated.
41708         * lib/unictype/ctype_alnum.h: Regenerated.
41709         * lib/unictype/ctype_alpha.h: Regenerated.
41710         * lib/unictype/ctype_graph.h: Regenerated.
41711         * lib/unictype/ctype_lower.h: Regenerated.
41712         * lib/unictype/ctype_print.h: Regenerated.
41713         * lib/unictype/ctype_punct.h: Regenerated.
41714         * lib/unictype/ctype_upper.h: Regenerated.
41715         * lib/unictype/decdigit.h: Regenerated.
41716         * lib/unictype/digit.h: Regenerated.
41717         * lib/unictype/mirror.h: Regenerated.
41718         * lib/unictype/numeric.h: Regenerated.
41719         * lib/unictype/pr_alphabetic.h: Regenerated.
41720         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
41721         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
41722         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
41723         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
41724         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
41725         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
41726         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
41727         * lib/unictype/pr_combining.h: Regenerated.
41728         * lib/unictype/pr_dash.h: Regenerated.
41729         * lib/unictype/pr_decimal_digit.h: Regenerated.
41730         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
41731         * lib/unictype/pr_deprecated.h: Regenerated.
41732         * lib/unictype/pr_diacritic.h: Regenerated.
41733         * lib/unictype/pr_extender.h: Regenerated.
41734         * lib/unictype/pr_format_control.h: Regenerated.
41735         * lib/unictype/pr_grapheme_base.h: Regenerated.
41736         * lib/unictype/pr_grapheme_extend.h: Regenerated.
41737         * lib/unictype/pr_grapheme_link.h: Regenerated.
41738         * lib/unictype/pr_id_continue.h: Regenerated.
41739         * lib/unictype/pr_id_start.h: Regenerated.
41740         * lib/unictype/pr_ideographic.h: Regenerated.
41741         * lib/unictype/pr_ignorable_control.h: Regenerated.
41742         * lib/unictype/pr_lowercase.h: Regenerated.
41743         * lib/unictype/pr_math.h: Regenerated.
41744         * lib/unictype/pr_numeric.h: Regenerated.
41745         * lib/unictype/pr_other_alphabetic.h: Regenerated.
41746         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
41747         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
41748         * lib/unictype/pr_other_id_continue.h: Regenerated.
41749         * lib/unictype/pr_other_lowercase.h: Regenerated.
41750         * lib/unictype/pr_other_math.h: Regenerated.
41751         * lib/unictype/pr_punctuation.h: Regenerated.
41752         * lib/unictype/pr_sentence_terminal.h: Regenerated.
41753         * lib/unictype/pr_soft_dotted.h: Regenerated.
41754         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
41755         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
41756         * lib/unictype/pr_unified_ideograph.h: Regenerated.
41757         * lib/unictype/pr_uppercase.h: Regenerated.
41758         * lib/unictype/pr_xid_continue.h: Regenerated.
41759         * lib/unictype/pr_xid_start.h: Regenerated.
41760         * lib/unictype/pr_zero_width.h: Regenerated.
41761         * lib/unictype/scripts.h: Regenerated.
41762         * lib/unictype/scripts_byname.gperf: Regenerated.
41763         * lib/unictype/sy_java_ident.h: Regenerated.
41764         * lib/unilbrk/lbrkprop1.h: Regenerated.
41765         * lib/unilbrk/lbrkprop2.h: Regenerated.
41766         * tests/unictype/test-categ_C.c: Regenerated.
41767         * tests/unictype/test-categ_Cf.c: Regenerated.
41768         * tests/unictype/test-categ_Cn.c: Regenerated.
41769         * tests/unictype/test-categ_L.c: Regenerated.
41770         * tests/unictype/test-categ_Ll.c: Regenerated.
41771         * tests/unictype/test-categ_Lm.c: Regenerated.
41772         * tests/unictype/test-categ_Lo.c: Regenerated.
41773         * tests/unictype/test-categ_Lu.c: Regenerated.
41774         * tests/unictype/test-categ_M.c: Regenerated.
41775         * tests/unictype/test-categ_Mc.c: Regenerated.
41776         * tests/unictype/test-categ_Me.c: Regenerated.
41777         * tests/unictype/test-categ_Mn.c: Regenerated.
41778         * tests/unictype/test-categ_N.c: Regenerated.
41779         * tests/unictype/test-categ_Nd.c: Regenerated.
41780         * tests/unictype/test-categ_Nl.c: Regenerated.
41781         * tests/unictype/test-categ_No.c: Regenerated.
41782         * tests/unictype/test-categ_P.c: Regenerated.
41783         * tests/unictype/test-categ_Pd.c: Regenerated.
41784         * tests/unictype/test-categ_Pe.c: Regenerated.
41785         * tests/unictype/test-categ_Pf.c: Regenerated.
41786         * tests/unictype/test-categ_Pi.c: Regenerated.
41787         * tests/unictype/test-categ_Po.c: Regenerated.
41788         * tests/unictype/test-categ_Ps.c: Regenerated.
41789         * tests/unictype/test-categ_S.c: Regenerated.
41790         * tests/unictype/test-categ_Sk.c: Regenerated.
41791         * tests/unictype/test-categ_Sm.c: Regenerated.
41792         * tests/unictype/test-categ_So.c: Regenerated.
41793         * tests/unictype/test-ctype_alnum.c: Regenerated.
41794         * tests/unictype/test-ctype_alpha.c: Regenerated.
41795         * tests/unictype/test-ctype_graph.c: Regenerated.
41796         * tests/unictype/test-ctype_lower.c: Regenerated.
41797         * tests/unictype/test-ctype_print.c: Regenerated.
41798         * tests/unictype/test-ctype_punct.c: Regenerated.
41799         * tests/unictype/test-ctype_upper.c: Regenerated.
41800         * tests/unictype/test-decdigit.h: Regenerated.
41801         * tests/unictype/test-digit.h: Regenerated.
41802         * tests/unictype/test-numeric.h: Regenerated.
41803         * tests/unictype/test-pr_alphabetic.c: Regenerated.
41804         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
41805         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
41806         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
41807         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
41808         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
41809         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
41810         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
41811         * tests/unictype/test-pr_combining.c: Regenerated.
41812         * tests/unictype/test-pr_dash.c: Regenerated.
41813         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
41814         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
41815         * tests/unictype/test-pr_deprecated.c: Regenerated.
41816         * tests/unictype/test-pr_diacritic.c: Regenerated.
41817         * tests/unictype/test-pr_extender.c: Regenerated.
41818         * tests/unictype/test-pr_format_control.c: Regenerated.
41819         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
41820         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
41821         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
41822         * tests/unictype/test-pr_id_continue.c: Regenerated.
41823         * tests/unictype/test-pr_id_start.c: Regenerated.
41824         * tests/unictype/test-pr_ideographic.c: Regenerated.
41825         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
41826         * tests/unictype/test-pr_lowercase.c: Regenerated.
41827         * tests/unictype/test-pr_math.c: Regenerated.
41828         * tests/unictype/test-pr_numeric.c: Regenerated.
41829         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
41830         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
41831         Regenerated.
41832         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
41833         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
41834         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
41835         * tests/unictype/test-pr_other_math.c: Regenerated.
41836         * tests/unictype/test-pr_punctuation.c: Regenerated.
41837         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
41838         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
41839         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
41840         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
41841         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
41842         * tests/unictype/test-pr_uppercase.c: Regenerated.
41843         * tests/unictype/test-pr_xid_continue.c: Regenerated.
41844         * tests/unictype/test-pr_xid_start.c: Regenerated.
41845         * tests/unictype/test-pr_zero_width.c: Regenerated.
41846
41847         Update to Unicode 5.1.0.
41848         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
41849         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
41850         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
41851         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
41852         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
41853         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
41854         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
41855         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
41856         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
41857         (nonspacing_table_ind): Update.
41858         * tests/uniwidth/test-uc_width2.sh: Update expected result.
41859
41860         Update to Unicode 5.1.0.
41861         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
41862         code transform.
41863         * lib/uniname/uniname.c (unicode_character_name,
41864         unicode_name_character): Add the range 0x1Fxxx to the code transform.
41865         * lib/uniname/uninames.h: Regenerated.
41866         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
41867
41868 2009-02-07  Bruno Haible  <bruno@clisp.org>
41869
41870         Merge gen-ctype and gen-lbrk into a single program.
41871         * lib/gen-uni-tables.c: New file, incorporating
41872         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
41873         Add directory prefixes to the names of the generated files.
41874         * lib/unictype/gen-ctype.c: Remove file.
41875         * lib/unilbrk/gen-lbrk.c: Remove file.
41876         * modules/gen-uni-tables: New file.
41877         * modules/unictype/gen-ctype: Remove file.
41878         * modules/unilbrk/gen-lbrk: Remove file.
41879
41880 2009-02-07  Bruno Haible  <bruno@clisp.org>
41881
41882         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
41883
41884         New module 'unistr/u32-strcoll'.
41885         * modules/unistr/u32-strcoll: New file.
41886         * lib/unistr/u32-strcoll.c: New file.
41887
41888         New module 'unistr/u16-strcoll'.
41889         * modules/unistr/u16-strcoll: New file.
41890         * lib/unistr/u16-strcoll.c: New file.
41891
41892         New module 'unistr/u8-strcoll'.
41893         * modules/unistr/u8-strcoll: New file.
41894         * lib/unistr/u8-strcoll.c: New file.
41895         * lib/unistr/u-strcoll.h: New file.
41896
41897 2009-02-07  Bruno Haible  <bruno@clisp.org>
41898
41899         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
41900         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41901         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41902         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
41903         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
41904         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
41905
41906 2009-02-07  Bruno Haible  <bruno@clisp.org>
41907
41908         Make 64-bit clean.
41909         * lib/unictype/gen-ctype.c (output_predicate, output_category,
41910         output_combclass, output_bidi_category, output_decimal_digit,
41911         output_digit, output_numeric, output_mirror, output_scripts,
41912         output_ident_category): Use proper width specifier in format strings.
41913
41914 2009-02-07  Bruno Haible  <bruno@clisp.org>
41915
41916         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
41917         failure behaviour.
41918
41919 2009-02-07  Jim Meyering  <meyering@redhat.com>
41920
41921         regex: avoid compilation failure with upcoming gcc-4.4
41922         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
41923         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
41924         "... error: integer overflow in preprocessor expression".
41925
41926 2009-02-05  Ben Pfaff  <blp@gnu.org>
41927
41928         Fix link errors on Windows when close module is used.
41929         * modules/close: Add $(LIB_CLOSE) to Link section.
41930         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
41931         $(LIB_CLOSE) on Windows.
41932
41933 2009-02-05  Jim Meyering  <meyering@redhat.com>
41934
41935         still avoid unused-parameter warnings, but do it cleanly
41936         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
41937         (get_fs_usage): Cast to void instead.
41938         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
41939         (dev_from_mount_options, read_file_system_list): Cast to void.
41940         Prompted by Bruno Haible.
41941
41942 2009-02-04  Jim Meyering  <meyering@redhat.com>
41943
41944         fsusage.c: correct copyright year
41945         * lib/fsusage.c: Reflect year in which the change is pushed into
41946
41947         avoid misc. warnings
41948         * lib/fsusage.c (UNUSED_PARAM): Define.
41949         (get_fs_usage): Mark parameter "disk" as unused.
41950         * lib/getugroups.c (getgrent): Use "void" in prototype.
41951         * lib/mountlist.c: Mark unused parameters.
41952         (read_file_system_list): Declare a local with "const".
41953         * lib/nanosleep.c (getnow): Declare static.
41954         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
41955
41956         dirfd: set errno upon failure
41957         * lib/dirfd.c: Include <errno.h>.
41958         Set errno to ENOTSUP when returning -1.
41959         * modules/dirfd (Depends-on): Add errno.
41960         Suggested by John Kodis <kodis@comcast.net>.
41961
41962 2009-02-01  Bruno Haible  <bruno@clisp.org>
41963
41964         Don't assume sizeof (long) >= sizeof (void *).
41965         * lib/memcmp.c: Include stdint.h.
41966         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
41967         srcp2 to 'const byte *'.
41968         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
41969         types to uintptr_t.
41970         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
41971         * modules/memcmp (Depends-on): Add stdint.
41972         Reported by Ozkan Sezer <sezeroz@gmail.com>.
41973
41974 2009-01-30  Eric Blake  <ebb9@byu.net>
41975
41976         fix more require-before-expand issues
41977         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
41978         expand, AC_PROG_AWK.
41979         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
41980
41981 2009-01-28  Eric Blake  <ebb9@byu.net>
41982
41983         version-etc: use consistent URL formatting
41984         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
41985         Improve formatting.  Use fputs for string without %.
41986
41987 2009-01-28  Jim Meyering  <meyering@redhat.com>
41988
41989         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
41990         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
41991         "underquoted definition of NAME" from autoconf-2.59.
41992
41993 2009-01-28  Bruno Haible  <bruno@clisp.org>
41994
41995         * doc/gnulib.texi: Add "Obsolete modules" to index.
41996
41997 2009-01-28  Jim Meyering  <meyering@redhat.com>
41998
41999         useless-if-before-free: recognize more variants
42000         * build-aux/useless-if-before-free: Also recognize e.g.,
42001         if (NULL != p) free (p);
42002
42003 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
42004
42005         test-getaddrinfo: skip (don't fail) this test when there's no network
42006         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
42007         on the presumption that it means you lack network access.
42008
42009 2009-01-26  Jim Meyering  <meyering@redhat.com>
42010
42011         fflush: avoid warnings on modern systems
42012         * lib/fflush.c (rpl_fflush): Move declarations of locals,
42013         pos and result, into scopes where they're used.
42014
42015 2009-01-26  Eric Blake  <ebb9@byu.net>
42016
42017         Silence warning reintroduced by recent extensions patch.
42018         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
42019         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
42020         autoconf.
42021
42022         Backport improved autoconf semantics of AC_DEFUN_ONCE.
42023         * m4/00gnulib.m4: New file.
42024         * gnulib-tool (func_get_filelist): Always use it.
42025         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
42026         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
42027
42028 2009-01-25  Bruno Haible  <bruno@clisp.org>
42029
42030         Make test-quotearg work on MacOS X and AIX.
42031         * tests/test-quotearg.sh: New file.
42032         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
42033         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
42034         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
42035         include <libintl.h>.
42036         (fake_locale): Remove variable.
42037         (gettext, dgettext, dcgettext): Remove functions.
42038         (main): Instead of setting a fake locale, set a real locale. Call
42039         textdomain and bindtextdomain.
42040         * modules/quotearg-tests (Files): Add the new files.
42041         (Depends-on): Add gettext, setenv, unsetenv.
42042         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
42043         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
42044         Augment TESTS_ENVIRONMENT.
42045
42046 2009-01-25  Bruno Haible  <bruno@clisp.org>
42047
42048         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
42049         fr_FR.ISO8859-1 locale on MacOS X.
42050         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
42051         ja_JP.eucJP locale on MacOS X.
42052         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
42053         zh_CN.GB18030 locale on MacOS X.
42054
42055 2009-01-25  Bruno Haible  <bruno@clisp.org>
42056
42057         Avoid link errors on MacOS X 10.3.
42058         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
42059         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
42060
42061 2009-01-25  Bruno Haible  <bruno@clisp.org>
42062
42063         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
42064         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
42065         * modules/pipe (Files): Remove m4/posix_spawn.m4.
42066         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
42067         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
42068         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
42069         posix_spawnattr_init, posix_spawnattr_setsigmask,
42070         posix_spawnattr_setflags, posix_spawnattr_destroy.
42071
42072         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
42073         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
42074         * modules/execute (Files): Remove m4/posix_spawn.m4.
42075         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
42076         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
42077         posix_spawnattr_init, posix_spawnattr_setsigmask,
42078         posix_spawnattr_setflags, posix_spawnattr_destroy.
42079
42080 2009-01-25  Bruno Haible  <bruno@clisp.org>
42081
42082         * lib/glthread/threadlib.c: Include <stdlib.h>.
42083
42084 2009-01-25  Bruno Haible  <bruno@clisp.org>
42085
42086         * lib/glthread/threadlib.c (dummy): New declaration.
42087
42088 2009-01-25  Bruno Haible  <bruno@clisp.org>
42089
42090         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
42091         multibyte characters also for the GB18030 encoding. Don't crash when
42092         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
42093
42094 2009-01-25  Bruno Haible  <bruno@clisp.org>
42095
42096         Avoid redefining 'struct random_data' on OSF/1 5.1.
42097         * lib/stdlib.in.h: Include <random.h> if it exists.
42098         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
42099         HAVE_RANDOM_H. Include <random.h> when testing whether
42100         'struct random_data' exists.
42101         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
42102
42103 2009-01-25  Bruno Haible  <bruno@clisp.org>
42104
42105         Don't install charset.alias on MacOS X >= 10.3.
42106         * lib/localcharset.c (DARWIN7): New macro.
42107         (get_charset_aliases): Hardcode the result for Darwin7.
42108         * modules/localcharset (install-exec-local): Don't install
42109         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
42110
42111 2009-01-25  Bruno Haible  <bruno@clisp.org>
42112
42113         Don't install charset.alias on mingw and Cygwin.
42114         * modules/localcharset (install-exec-local): Don't install
42115         charset.alias on mingw and Cygwin, if the file does not yet exist.
42116         The result for these platforms is hardcoded in localcharset.c.
42117
42118 2009-01-25  Bruno Haible  <bruno@clisp.org>
42119
42120         Make it possible again to use AC_GNU_SOURCE together with gnulib.
42121         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
42122         before requiring AC_USE_SYSTEM_EXTENSIONS.
42123
42124 2009-01-25  Jim Meyering  <meyering@redhat.com>
42125
42126         c-strtod: avoid warnings
42127         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
42128         "assignment discards qualifiers from pointer target type" warnings.
42129
42130 2009-01-24  Bruno Haible  <bruno@clisp.org>
42131
42132         Add support for non-UTF-8 locales on MacOS X.
42133         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
42134         canonical encodings. For Darwin 7 and newer, don't map traditional
42135         encodings to UTF-8.
42136         Reported by Vincent Lefevre <vincent@vinc17.org>
42137         at <http://savannah.gnu.org/bugs/?25235>.
42138
42139 2009-01-24  Bruno Haible  <bruno@clisp.org>
42140
42141         * doc/gnulib.texi (Obsolete modules): New section.
42142         Reported by Mike Frysinger <vapier@gentoo.org>.
42143
42144 2009-01-24  Bruno Haible  <bruno@clisp.org>
42145
42146         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
42147         (%.dvi): New rule.
42148
42149 2009-01-24  Bruno Haible  <bruno@clisp.org>
42150
42151         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
42152         Reported by Eric Blake.
42153
42154 2009-01-24  Bruno Haible  <bruno@clisp.org>
42155
42156         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
42157         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
42158         Reported by Gary V. Vaughan <gary@gnu.org>.
42159
42160 2009-01-24  Bruno Haible  <bruno@clisp.org>
42161
42162         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
42163
42164 2009-01-23  Bruno Haible  <bruno@clisp.org>
42165
42166         Make c-strtod, c-strtold usable in libraries.
42167         * lib/c-strtod.c: Include string.h instead of xalloc.h.
42168         (C_STRTOD): Call strdup instead of xstrdup.
42169         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
42170         * modules/c-strtold (Depends-on): Likewise.
42171         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
42172         * NEWS: Mention the change.
42173         Reported by Michael Gold <mgold@ncf.ca>.
42174
42175 2009-01-23  Jim Meyering  <meyering@redhat.com>
42176
42177         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
42178         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
42179         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
42180
42181 2009-01-23  Simon Josefsson  <simon@josefsson.org>
42182
42183         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
42184         GNU CoreUtils.
42185         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
42186         * modules/version-etc (Description): Update.
42187
42188 2009-01-22  Bruno Haible  <bruno@clisp.org>
42189
42190         Cache the C locale object.
42191         * lib/c-strtod.c (c_locale_cache): New variable.
42192         (c_locale): New function.
42193         (C_STRTOD): Use it, and don't call freelocale.
42194         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
42195         Suggested by Paolo Bonzini.
42196
42197 2009-01-21  Bruno Haible  <bruno@clisp.org>
42198
42199         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
42200         conditions other than overflow.
42201
42202 2009-01-21  Bruno Haible  <bruno@clisp.org>
42203
42204         * lib/c-strtod.c: Include errno.h.
42205         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
42206         value from STRTOD_L and STRTOD.
42207
42208 2009-01-21  Bruno Haible  <bruno@clisp.org>
42209         and Jim Meyering  <meyering@redhat.com>
42210
42211         nanosleep: skip configure test (fail it) for apple universal builds
42212         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
42213         universal builds, assume that nanosleep does not work.
42214         * modules/nanosleep (Depends-on): Add multiarch.
42215
42216         mktime: skip configure test (fail it) for apple universal builds
42217         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
42218         universal builds, assume that mktime does not work.
42219         * modules/mktime (Depends-on): Add multiarch.
42220
42221 2009-01-21  Eric Blake  <ebb9@byu.net>
42222
42223         multiarch: avoid expand-before-require warning
42224         * modules/multiarch (configure.ac): Require, rather than expand,
42225         gl_MULTIARCH.
42226         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
42227         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
42228         enforce that all clients require it.  Partial reversion of
42229         2008-12-29 patch.
42230
42231         error: avoid expand-before-require warning
42232         * modules/errno (configure.ac): Require, rather than expand,
42233         gl_HEADER_ERRNO_H.
42234         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
42235         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
42236         enforce that all clients require it.
42237
42238         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
42239         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
42240         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
42241         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
42242
42243 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
42244
42245         Revert:
42246         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
42247
42248         regex: do not depend on obsolete modules.
42249         * modules/regex: Remove memcmp and memmove.
42250
42251 2009-01-20  Bruno Haible  <bruno@clisp.org>
42252
42253         Make the 'link' module link on Windows NT 4.
42254         * lib/link.c (_WIN32_WINNT): Don't define.
42255         (CreateHardLinkFuncType): New type.
42256         (CreateHardLinkFunc, initialized): New variables.
42257         (initialize): New function.
42258         (link): Invoke CreateHardLink indirectly through the function pointer.
42259
42260 2009-01-20  Bruno Haible  <bruno@clisp.org>
42261
42262         Fix compilation failure on mingw.
42263         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
42264
42265 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
42266
42267         * doc/c-strtod.texi: Mention a couple of restrictions.
42268
42269 2009-01-20  Jim Meyering  <meyering@redhat.com>
42270
42271         gettimeofday: move more declarations out of functions
42272         * lib/gettimeofday.c: Move extern declarations of tzset and
42273         gmtime out of containing functions.  Prompted by Bruno Haible.
42274
42275 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
42276
42277         regex: do not depend on obsolete modules.
42278         * modules/regex: Remove memcmp and memmove.
42279
42280 2009-01-19  Bruno Haible  <bruno@clisp.org>
42281
42282         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
42283         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
42284         gl_BIGENDIAN, not AC_C_BIGENDIAN.
42285         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
42286         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
42287
42288 2009-01-19  Bruno Haible  <bruno@clisp.org>
42289
42290         * tests/test-link.c: Include <errno.h>.
42291         (main): Exit with code 77 when a hard link cannot be created due to
42292         the file system.
42293         * tests/test-link.sh: Skip test when a hard link cannot be created due
42294         to the file system.
42295         Suggested by Eric Blake.
42296
42297 2009-01-19  Martin Lambers  <marlam@marlam.de>
42298
42299         * modules/link-tests: New file.
42300         * tests/test-link.sh: New file.
42301         * tests/test-link.c: New file.
42302
42303 2009-01-19  Eric Blake  <ebb9@byu.net>
42304
42305         doc: mention another function added in cygwin 1.7.0
42306         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
42307         Another new function in cygwin 1.7.
42308
42309 2009-01-19  Bruno Haible  <bruno@clisp.org>
42310
42311         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
42312         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
42313         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
42314         gl_BIGENDIAN, not AC_C_BIGENDIAN.
42315         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
42316         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
42317         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
42318         * m4/md4.m4 (gl_MD4): Likewise.
42319         * m4/md5.m4 (gl_MD5): Likewise.
42320         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
42321         * m4/sha1.m4 (gl_SHA1): Likewise.
42322         * m4/sha256.m4 (gl_SHA256): Likewise.
42323         * m4/sha512.m4 (gl_SHA512): Likewise.
42324
42325 2009-01-19  Bruno Haible  <bruno@clisp.org>
42326
42327         * modules/uniname/uniname-tests (Depends-on): Add progname.
42328         * tests/uniname/test-uninames.c: Include progname.h.
42329         (main): Call set_program_name.
42330
42331         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
42332         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
42333         (main): Call set_program_name.
42334
42335         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
42336         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
42337         (main): Call set_program_name.
42338
42339         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
42340         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
42341         (main): Call set_program_name.
42342
42343         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
42344         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
42345         (main): Call set_program_name.
42346
42347         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
42348         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
42349         (main): Call set_program_name.
42350
42351         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
42352         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
42353         (main): Call set_program_name.
42354
42355         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
42356         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
42357         (main): Call set_program_name.
42358
42359         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
42360         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
42361         (main): Call set_program_name.
42362
42363 2009-01-19  Eric Blake  <ebb9@byu.net>
42364
42365         test-unistd: test previous patch
42366         * tests/test-unistd.c: Test *_FILENO macros.
42367
42368         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
42369         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42370         Guarantee a definition.
42371         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
42372         * modules/unistd-safer (Depends-on): Add dependency on unistd.
42373         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
42374         * lib/dup-safer.c (STDERR_FILENO): Likewise.
42375         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42376         Likewise.
42377         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
42378         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
42379         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42380         Likewise.
42381         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
42382         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
42383         (STDERR_FILENO): Likewise.
42384         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
42385         (STDERR_FILENO): Likewise.
42386         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
42387         (STDERR_FILENO): Likewise.
42388         Reported by Elbert Pol.
42389
42390 2009-01-19  Eric Blake  <ebb9@byu.net>
42391
42392         doc: mention more functions added in cygwin 1.7.0
42393         * doc/posix-functions/abort.texi (abort): Update wording related
42394         to cygwin.
42395         * doc/posix-functions/daylight.texi (daylight): Likewise.
42396         * doc/posix-functions/optarg.texi (optarg): Likewise.
42397         * doc/posix-functions/optarg.texi (opterr): Likewise.
42398         * doc/posix-functions/optarg.texi (optind): Likewise.
42399         * doc/posix-functions/optarg.texi (optopt): Likewise.
42400         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
42401         worked in 1.5.x, and was withdrawn in 1.7.
42402         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
42403         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
42404         cygwin versions.
42405         * doc/posix-functions/perror.texi (perror): Likewise.
42406         * doc/posix-functions/printf.texi (printf): Likewise.
42407         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
42408         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
42409         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
42410         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
42411         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
42412         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
42413         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
42414         Likewise.
42415         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
42416         Likewise.
42417         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
42418         this function.
42419         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
42420         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
42421         Likewise.
42422         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
42423         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
42424         * doc/posix-functions/confstr.texi (confstr): Likewise.
42425         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
42426         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
42427         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
42428         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
42429         * doc/posix-functions/fputws.texi (fputws): Likewise.
42430         * doc/posix-functions/fwide.texi (fwide): Likewise.
42431         * doc/posix-functions/getwc.texi (getwc): Likewise.
42432         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
42433         * doc/posix-functions/putwc.texi (putwc): Likewise.
42434         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
42435         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
42436         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
42437         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
42438         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
42439         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
42440         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
42441         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
42442         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
42443         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
42444         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
42445
42446 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
42447
42448         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
42449         * lib/ioctl.c: Include <sys/ioctl.h>.
42450
42451 2009-01-19  Simon Josefsson  <simon@josefsson.org>
42452
42453         * modules/getdate-tests (Depends-on): Add progname.
42454         * tests/test-getdate.c: Use progname module, to avoid link errors
42455         on non-glibc systems.
42456
42457 2009-01-18  Simon Josefsson  <simon@josefsson.org>
42458
42459         * modules/filenamecat-tests (Depends-on): Add progname.
42460         * modules/fstrcmp-tests (Depends-on): Likewise.
42461
42462         * tests/test-filenamecat.c: Use progname module, to avoid link
42463         errors on non-glibc systems.
42464         * tests/test-fstrcmp.c: Likewise.
42465
42466 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
42467
42468         gettimeofday: avoid warning: nested extern declaration of 'localtime'
42469         * lib/gettimeofday.c: Move extern declaration out of function.
42470
42471 2009-01-18  Bruno Haible  <bruno@clisp.org>
42472
42473         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
42474         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
42475         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
42476
42477 2009-01-18  Bruno Haible  <bruno@clisp.org>
42478
42479         * lib/strftime.c (MEMPCPY): Remove unused macro.
42480         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
42481
42482 2009-01-18  Martin Lambers  <marlam@marlam.de>
42483
42484         New module 'link'.
42485         * lib/unistd.in.h (link): New declaration.
42486         * lib/link.c: New file.
42487         * m4/link.m4: New file.
42488         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
42489         HAVE_LINK.
42490         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
42491         * modules/link: New file.
42492         * doc/posix-functions/link.texi: Mention the new module.
42493
42494 2009-01-18  Bruno Haible  <bruno@clisp.org>
42495
42496         * tests/test-avltree_list.c (main): Call set_program_name.
42497         * tests/test-avltree_oset.c (main): Likewise.
42498         * tests/test-obstack-printf.c: Include progname.h.
42499         (main): Call set_program_name.
42500         * tests/test-quotearg.c: Include progname.h.
42501         (main): Call set_program_name.
42502         * tests/test-xmemdup0.c: Include progname.h.
42503         (main): Call set_program_name.
42504
42505 2009-01-18  Bruno Haible  <bruno@clisp.org>
42506
42507         New module 'alphasort'.
42508         * lib/dirent.in.h (alphasort): New declaration.
42509         * lib/alphasort.c: New file, from glibc with modifications.
42510         * m4/alphasort.m4: New file.
42511         * modules/alphasort: New file.
42512         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
42513         HAVE_ALPHASORT.
42514         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
42515         HAVE_ALPHASORT.
42516         * doc/posix-functions/alphasort.texi: Mention the new module and the
42517         portability problems.
42518
42519 2009-01-18  Bruno Haible  <bruno@clisp.org>
42520
42521         New module 'scandir'.
42522         * lib/dirent.in.h (scandir): New declaration.
42523         * lib/scandir.c: New file, from glibc with modifications.
42524         * m4/scandir.m4: New file.
42525         * modules/scandir: New file.
42526         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
42527         HAVE_SCANDIR.
42528         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
42529         HAVE_SCANDIR.
42530         * doc/posix-functions/scandir.texi: Mention the new module and the
42531         portability problems.
42532
42533 2009-01-17  Bruno Haible  <bruno@clisp.org>
42534
42535         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
42536         Update documentation.
42537         (func_remove_suffix): Escape all dots in the suffix. Update
42538         documentation.
42539         (func_filter_filelist): Update documentation.
42540         Reported by Ralf Wildenhues.
42541
42542 2009-01-17  Bruno Haible  <bruno@clisp.org>
42543
42544         * modules/dprintf-posix-tests: New file.
42545         * tests/test-dprintf-posix.sh: New file.
42546         * tests/test-dprintf-posix.c: New file.
42547
42548         New modules 'dprintf', 'dprintf-posix'.
42549         * lib/stdio.in.h (dprintf): New declaration.
42550         * lib/dprintf.c: New file.
42551         * m4/dprintf.m4: New file.
42552         * m4/dprintf-posix.m4: New file.
42553         * modules/dprintf: New file.
42554         * modules/dprintf-posix: New file.
42555         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
42556         HAVE_DPRINTF, REPLACE_DPRINTF.
42557         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
42558         HAVE_DPRINTF, REPLACE_DPRINTF.
42559         * doc/posix-functions/dprintf.texi: Mention the new modules.
42560
42561 2009-01-17  Bruno Haible  <bruno@clisp.org>
42562
42563         * modules/vdprintf-posix-tests: New file.
42564         * tests/test-vdprintf-posix.sh: New file.
42565         * tests/test-vdprintf-posix.c: New file.
42566
42567         New modules 'vdprintf', 'vdprintf-posix'.
42568         * lib/stdio.in.h (vdprintf): New declaration.
42569         * lib/vdprintf.c: New file.
42570         * m4/vdprintf.m4: New file.
42571         * m4/vdprintf-posix.m4: New file.
42572         * modules/vdprintf: New file.
42573         * modules/vdprintf-posix: New file.
42574         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
42575         HAVE_VDPRINTF, REPLACE_VDPRINTF.
42576         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
42577         HAVE_VDPRINTF, REPLACE_VDPRINTF.
42578         * doc/posix-functions/vdprintf.texi: Mention the new modules.
42579
42580 2009-01-17  Bruno Haible  <bruno@clisp.org>
42581
42582         Fix replacement of fopen on mingw.
42583         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
42584         mingw.
42585
42586 2009-01-17  Bruno Haible  <bruno@clisp.org>
42587
42588         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
42589         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
42590
42591 2009-01-17  Bruno Haible  <bruno@clisp.org>
42592
42593         Avoid test-fflush2.sh failure on mingw.
42594         * tests/test-fflush2.c: Include binary-io.h.
42595         (main): Put standard input into binary mode.
42596         * modules/fflush-tests (Depends-on): Add binary-io.
42597
42598 2009-01-17  Bruno Haible  <bruno@clisp.org>
42599
42600         * lib/wchar.in.h: In another particular situation, include only the
42601         system's <wchar.h> file.
42602         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
42603         Reported by Albert Chin-A-Young <china@thewrittenword.com>
42604         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
42605
42606 2009-01-17  Bruno Haible  <bruno@clisp.org>
42607
42608         Support for stripping executables in --enable-relocatable.
42609         * build-aux/install-reloc: Expect one more argument, or an environment
42610         variable RELOC_STRIP_PROG. If set, strip the destination program and
42611         its wrapper.
42612         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
42613         RELOC_STRIP_PROG.
42614         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
42615         to set RELOCATABLE_STRIP.
42616         * NEWS: Mention the new Makefile requirement.
42617
42618 2009-01-17  Bruno Haible  <bruno@clisp.org>
42619
42620         * build-aux/install-reloc: Remove debugging information left over by
42621         C compiler on MacOS X.
42622
42623 2009-01-17  Bruno Haible  <bruno@clisp.org>
42624
42625         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
42626         * lib/progreloc.c (find_executable): Fix type of pointer passed to
42627         _NSGetExecutablePath.
42628
42629 2009-01-16  Jim Meyering  <meyering@redhat.com>
42630
42631         strerror: avoid warnings about discarding "const"
42632         * lib/strerror.c (rpl_strerror): Instead of returning a const
42633         string from each and every "case", use a variable, and add a single
42634         cast after the switch.
42635
42636 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
42637
42638         * lib/arpa_inet.in.h: Add extern "C" block for C++.
42639
42640 2009-01-16  Bruno Haible  <bruno@clisp.org>
42641
42642         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
42643         array initializer syntax that also works in C++ mode.
42644         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42645
42646 2009-01-16  Jim Meyering  <meyering@redhat.com>
42647
42648         poll: suppress a warning
42649         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
42650         to ignore "...unsigned expression < 0 is always false" warnings.
42651
42652 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
42653
42654         poll: remove declarations of unused variables
42655         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
42656         sockbuf and optlen.
42657
42658 2009-01-15  Bruno Haible  <bruno@clisp.org>
42659
42660         Make fflush-after-ungetc POSIX compliant on BSD systems.
42661         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
42662         (clear_ungetc_buffer): Implement also for other systems.
42663         (rpl_fflush): On glibc systems, invoke
42664         clear_ungetc_buffer_preserving_position. Otherwise, invoke
42665         clear_ungetc_buffer after fetching the stream's position, not before.
42666
42667 2009-01-15  Bruno Haible  <bruno@clisp.org>
42668
42669         Make fflush-after-ungetc POSIX compliant on glibc systems.
42670         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
42671         after ungetc.
42672         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
42673         (rpl_fflush): On glibc systems, simply call the system's fflush
42674         function after clearing the ungetc buffer.
42675         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
42676         Instead, lseek only to the end of file, then use the system's fseeko
42677         for the rest. On glibc systems, reset the EOF indicator bit.
42678
42679 2009-01-15  Jim Meyering  <meyering@redhat.com>
42680
42681         openmp.m4: revert quote-adding change, for portability to older autoconf
42682         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
42683         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
42684         Simon Josefsson noticed the problem when using autoconf-2.61.
42685
42686 2009-01-15  Bruno Haible  <bruno@clisp.org>
42687
42688         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
42689         * tests/test-fflush2.c (ASSERT): Always fail.
42690         (main): Add two tests for fflush() after ungetc(), taking into account
42691         the Austin Group's clarification.
42692         Suggested by Eric Blake.
42693
42694 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
42695
42696         mktime.m4: remove K&R-style function prototypes
42697         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
42698         for the Sun C++ compiler.
42699
42700 2009-01-14  Bruno Haible  <bruno@clisp.org>
42701
42702         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
42703         while including <wchar.h>.
42704         * lib/wchar.in.h: In two particular situations on HP-UX, include only
42705         the system's <wchar.h> file.
42706         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42707
42708 2009-01-14  Bruno Haible  <bruno@clisp.org>
42709
42710         * m4/csharp.m4: Don't mention gettext on the serial number line.
42711         * m4/csharpexec.m4: Likewise.
42712         * m4/eaccess.m4: Likewise.
42713         * m4/javaexec.m4: Likewise.
42714         * m4/sig_atomic_t.m4: Likewise.
42715         * m4/tmpdir.m4: Likewise.
42716         * m4/intldir.m4: Bump gettext version.
42717         * m4/lib-ld.m4: Likewise.
42718
42719 2009-01-14  Bruno Haible  <bruno@clisp.org>
42720
42721         * lib/progname.c (set_program_name): Add more comments.
42722         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
42723
42724 2009-01-14  Simon Josefsson  <simon@josefsson.org>
42725
42726         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
42727         were sys/stat.h does not define it.
42728
42729 2009-01-14  Jim Meyering  <meyering@redhat.com>
42730
42731         many *.m4 files: improve m4 quoting
42732         99% of this change was performed by running the following commands:
42733         git ls-files | grep '\.m4$' | xargs perl -pi \
42734           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
42735           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42736           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42737           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
42738         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
42739         The remainder were to add Copyright dates, increment serial numbers,
42740         undo some changes in comments, exclude m4/intl.m4, and add quotes
42741         around the "1" in ",1" where the unusual spacing prohibited the
42742         above regexps from doing the job.  For more details, see
42743         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
42744         * m4/acl.m4: Modified.
42745         * m4/afs.m4: Likewise.
42746         * m4/alloca.m4: Likewise.
42747         * m4/argp.m4: Likewise.
42748         * m4/argz.m4: Likewise.
42749         * m4/atexit.m4: Likewise.
42750         * m4/bison-i18n.m4: Likewise.
42751         * m4/bison.m4: Likewise.
42752         * m4/byteswap.m4: Likewise.
42753         * m4/c-stack.m4: Likewise.
42754         * m4/c-strtod.m4: Likewise.
42755         * m4/calloc.m4: Likewise.
42756         * m4/canonicalize-lgpl.m4: Likewise.
42757         * m4/chown.m4: Likewise.
42758         * m4/clock_time.m4: Likewise.
42759         * m4/codeset.m4: Likewise.
42760         * m4/copy-file.m4: Likewise.
42761         * m4/csharp.m4: Likewise.
42762         * m4/csharpcomp.m4: Likewise.
42763         * m4/csharpexec.m4: Likewise.
42764         * m4/d-ino.m4: Likewise.
42765         * m4/d-type.m4: Likewise.
42766         * m4/dirfd.m4: Likewise.
42767         * m4/double-slash-root.m4: Likewise.
42768         * m4/eaccess.m4: Likewise.
42769         * m4/eealloc.m4: Likewise.
42770         * m4/environ.m4: Likewise.
42771         * m4/errno_h.m4: Likewise.
42772         * m4/euidaccess.m4: Likewise.
42773         * m4/execute.m4: Likewise.
42774         * m4/fatal-signal.m4: Likewise.
42775         * m4/fchdir.m4: Likewise.
42776         * m4/fcntl_h.m4: Likewise.
42777         * m4/fileblocks.m4: Likewise.
42778         * m4/filenamecat.m4: Likewise.
42779         * m4/findprog.m4: Likewise.
42780         * m4/flexmember.m4: Likewise.
42781         * m4/fnmatch.m4: Likewise.
42782         * m4/fopen.m4: Likewise.
42783         * m4/fpending.m4: Likewise.
42784         * m4/fprintf-posix.m4: Likewise.
42785         * m4/free.m4: Likewise.
42786         * m4/frexp.m4: Likewise.
42787         * m4/frexpl.m4: Likewise.
42788         * m4/fsusage.m4: Likewise.
42789         * m4/ftruncate.m4: Likewise.
42790         * m4/gc-camellia.m4: Likewise.
42791         * m4/gc-random.m4: Likewise.
42792         * m4/gc.m4: Likewise.
42793         * m4/getaddrinfo.m4: Likewise.
42794         * m4/getcwd-abort-bug.m4: Likewise.
42795         * m4/getcwd-path-max.m4: Likewise.
42796         * m4/getdate.m4: Likewise.
42797         * m4/getdomainname.m4: Likewise.
42798         * m4/getgroups.m4: Likewise.
42799         * m4/gethostname.m4: Likewise.
42800         * m4/gethrxtime.m4: Likewise.
42801         * m4/getline.m4: Likewise.
42802         * m4/getloadavg.m4: Likewise.
42803         * m4/getndelim2.m4: Likewise.
42804         * m4/getpass.m4: Likewise.
42805         * m4/gettext.m4: Likewise.
42806         * m4/gettime.m4: Likewise.
42807         * m4/gettimeofday.m4: Likewise.
42808         * m4/gnulib-common.m4: Likewise.
42809         * m4/group-member.m4: Likewise.
42810         * m4/host-os.m4: Likewise.
42811         * m4/iconv.m4: Likewise.
42812         * m4/iconv_open.m4: Likewise.
42813         * m4/inet_ntop.m4: Likewise.
42814         * m4/inet_pton.m4: Likewise.
42815         * m4/inline.m4: Likewise.
42816         * m4/intldir.m4: Likewise.
42817         * m4/intlmacosx.m4: Likewise.
42818         * m4/intmax.m4: Likewise.
42819         * m4/intmax_t.m4: Likewise.
42820         * m4/inttypes.m4: Likewise.
42821         * m4/inttypes_h.m4: Likewise.
42822         * m4/inttypes-pri.m4: Likewise.
42823         * m4/isapipe.m4: Likewise.
42824         * m4/isnand.m4: Likewise.
42825         * m4/isnanf.m4: Likewise.
42826         * m4/isnanl.m4: Likewise.
42827         * m4/javacomp.m4: Likewise.
42828         * m4/javaexec.m4: Likewise.
42829         * m4/jm-winsz1.m4: Likewise.
42830         * m4/jm-winsz2.m4: Likewise.
42831         * m4/lchown.m4: Likewise.
42832         * m4/lcmessage.m4: Likewise.
42833         * m4/ldexpl.m4: Likewise.
42834         * m4/lib-ld.m4: Likewise.
42835         * m4/lib-link.m4: Likewise.
42836         * m4/libsigsegv.m4: Likewise.
42837         * m4/link-follow.m4: Likewise.
42838         * m4/localcharset.m4: Likewise.
42839         * m4/locale-fr.m4: Likewise.
42840         * m4/locale-ja.m4: Likewise.
42841         * m4/locale-tr.m4: Likewise.
42842         * m4/locale-zh.m4: Likewise.
42843         * m4/lock.m4: Likewise.
42844         * m4/longlong.m4: Likewise.
42845         * m4/ls-mntd-fs.m4: Likewise.
42846         * m4/lstat.m4: Likewise.
42847         * m4/malloc.m4: Likewise.
42848         * m4/mathl.m4: Likewise.
42849         * m4/mbrtowc.m4: Likewise.
42850         * m4/mbstate_t.m4: Likewise.
42851         * m4/mbswidth.m4: Likewise.
42852         * m4/memchr.m4: Likewise.
42853         * m4/memcmp.m4: Likewise.
42854         * m4/memcpy.m4: Likewise.
42855         * m4/memmem.m4: Likewise.
42856         * m4/memmove.m4: Likewise.
42857         * m4/mempcpy.m4: Likewise.
42858         * m4/memrchr.m4: Likewise.
42859         * m4/memset.m4: Likewise.
42860         * m4/minmax.m4: Likewise.
42861         * m4/mkdir-slash.m4: Likewise.
42862         * m4/mkdtemp.m4: Likewise.
42863         * m4/mktime.m4: Likewise.
42864         * m4/mmap-anon.m4: Likewise.
42865         * m4/mountlist.m4: Likewise.
42866         * m4/nanosleep.m4: Likewise.
42867         * m4/nls.m4: Likewise.
42868         * m4/nocrash.m4: Likewise.
42869         * m4/open.m4: Likewise.
42870         * m4/openat.m4: Likewise.
42871         * m4/openmp.m4: Likewise.
42872         * m4/pathmax.m4: Likewise.
42873         * m4/perl.m4: Likewise.
42874         * m4/physmem.m4: Likewise.
42875         * m4/pipe.m4: Likewise.
42876         * m4/po.m4: Likewise.
42877         * m4/poll.m4: Likewise.
42878         * m4/posixtm.m4: Likewise.
42879         * m4/posixver.m4: Likewise.
42880         * m4/printf-frexp.m4: Likewise.
42881         * m4/printf-frexpl.m4: Likewise.
42882         * m4/printf-posix.m4: Likewise.
42883         * m4/printf-posix-rpl.m4: Likewise.
42884         * m4/printf.m4: Likewise.
42885         * m4/progtest.m4: Likewise.
42886         * m4/putenv.m4: Likewise.
42887         * m4/readline.m4: Likewise.
42888         * m4/readlink.m4: Likewise.
42889         * m4/readutmp.m4: Likewise.
42890         * m4/realloc.m4: Likewise.
42891         * m4/regex.m4: Likewise.
42892         * m4/relocatable.m4: Likewise.
42893         * m4/relocatable-lib.m4: Likewise.
42894         * m4/rename-dest-slash.m4: Likewise.
42895         * m4/rename.m4: Likewise.
42896         * m4/rmdir-errno.m4: Likewise.
42897         * m4/rmdir.m4: Likewise.
42898         * m4/roundf.m4: Likewise.
42899         * m4/roundl.m4: Likewise.
42900         * m4/rpmatch.m4: Likewise.
42901         * m4/save-cwd.m4: Likewise.
42902         * m4/selinux-selinux-h.m4: Likewise.
42903         * m4/setenv.m4: Likewise.
42904         * m4/settime.m4: Likewise.
42905         * m4/sig2str.m4: Likewise.
42906         * m4/sig_atomic_t.m4: Likewise.
42907         * m4/signalblocking.m4: Likewise.
42908         * m4/signbit.m4: Likewise.
42909         * m4/sigpipe.m4: Likewise.
42910         * m4/sockets.m4: Likewise.
42911         * m4/sockpfaf.m4: Likewise.
42912         * m4/st_dm_mode.m4: Likewise.
42913         * m4/stat-time.m4: Likewise.
42914         * m4/stdbool.m4: Likewise.
42915         * m4/stdint.m4: Likewise.
42916         * m4/stdint_h.m4: Likewise.
42917         * m4/stpcpy.m4: Likewise.
42918         * m4/stpncpy.m4: Likewise.
42919         * m4/strcase.m4: Likewise.
42920         * m4/strchrnul.m4: Likewise.
42921         * m4/strcspn.m4: Likewise.
42922         * m4/strdup.m4: Likewise.
42923         * m4/strftime.m4: Likewise.
42924         * m4/strndup.m4: Likewise.
42925         * m4/strnlen.m4: Likewise.
42926         * m4/strpbrk.m4: Likewise.
42927         * m4/strptime.m4: Likewise.
42928         * m4/strsep.m4: Likewise.
42929         * m4/strtod.m4: Likewise.
42930         * m4/strtoimax.m4: Likewise.
42931         * m4/strtok_r.m4: Likewise.
42932         * m4/strtol.m4: Likewise.
42933         * m4/strtoll.m4: Likewise.
42934         * m4/strtoul.m4: Likewise.
42935         * m4/strtoull.m4: Likewise.
42936         * m4/strtoumax.m4: Likewise.
42937         * m4/strverscmp.m4: Likewise.
42938         * m4/threadlib.m4: Likewise.
42939         * m4/timegm.m4: Likewise.
42940         * m4/tm_gmtoff.m4: Likewise.
42941         * m4/tmpdir.m4: Likewise.
42942         * m4/tmpfile.m4: Likewise.
42943         * m4/tzset.m4: Likewise.
42944         * m4/uintmax_t.m4: Likewise.
42945         * m4/unlinkdir.m4: Likewise.
42946         * m4/unlocked-io.m4: Likewise.
42947         * m4/uptime.m4: Likewise.
42948         * m4/userspec.m4: Likewise.
42949         * m4/utimbuf.m4: Likewise.
42950         * m4/utime.m4: Likewise.
42951         * m4/utimes-null.m4: Likewise.
42952         * m4/utimes.m4: Likewise.
42953         * m4/vararrays.m4: Likewise.
42954         * m4/vasnprintf.m4: Likewise.
42955         * m4/vfprintf-posix.m4: Likewise.
42956         * m4/vprintf-posix.m4: Likewise.
42957         * m4/wait-process.m4: Likewise.
42958         * m4/wchar_t.m4: Likewise.
42959         * m4/wint_t.m4: Likewise.
42960         * m4/write-any-file.m4: Likewise.
42961         * m4/yield.m4: Likewise.
42962
42963 2009-01-13  Bruno Haible  <bruno@clisp.org>
42964
42965         Avoid test-copy-file.sh failures when ACL support insufficient.
42966         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
42967         TESTS_ENVIRONMENT.
42968         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
42969         Reported by Jim Meyering.
42970
42971 2009-01-13  Bruno Haible  <bruno@clisp.org>
42972
42973         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
42974         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
42975         * modules/unistdio/u8-printf-parse (Files): Likewise.
42976         * modules/unistdio/u32-printf-parse (Files): Likewise.
42977         * modules/unistdio/ulc-printf-parse (Files): Likewise.
42978
42979 2009-01-13  Simon Josefsson  <simon@josefsson.org>
42980
42981         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
42982         and m4/inttypes_h.m4 too.
42983
42984 2009-01-12  Eric Blake  <ebb9@byu.net>
42985
42986         tests: IRIX 6.2 cc can't compile -0.0 into .data
42987         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
42988         rather than at compile-time.
42989         * tests/test-floorl.c (minus_zero): Likewise.
42990         * tests/test-frexpl.c (minus_zero): Likewise.
42991         * tests/test-isnan.c (minus_zerol): Likewise.
42992         * tests/test-isnanl.h (minus_zero): Likewise.
42993         * tests/test-ldexpl.c (minus_zero): Likewise.
42994         * tests/test-roundl.c (minus_zero): Likewise.
42995         * tests/test-signbit.c (minus_zerol): Likewise.
42996         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
42997         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
42998         * tests/test-truncl.c (minus_zero): Likewise.
42999         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
43000         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
43001         Reported by Tom G. Christensen and Nelson H. F. Beebe.
43002
43003 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43004
43005         regex: fix glibc bug 9697
43006         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
43007         handling.
43008
43009 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43010
43011         regex: fix glibc bug 697
43012         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
43013         being NULL also if there are no backreferences.
43014
43015 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43016
43017         regex: merge glibc changes
43018         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
43019         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
43020         re_string_skip_chars, re_string_reconstruct): Likewise.
43021         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
43022
43023 2009-01-07  Jim Meyering  <meyering@redhat.com>
43024
43025         poll: filter through cppi
43026         * lib/poll.c: Indent cpp directives to reflect nesting.
43027
43028 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
43029
43030         poll: don't return uninitialized
43031         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
43032
43033 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
43034
43035         avoid compile failure on AIX 6.1
43036         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
43037         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
43038
43039 2009-01-04  Jim Meyering  <meyering@redhat.com>
43040
43041         remove duplicate inclusion of <stdio.h>
43042         * tests/test-fprintf-posix.c: Likewise.
43043         * tests/test-printf-posix.c: Likewise.
43044         * tests/test-snprintf-posix.c: Likewise.
43045         * tests/test-sprintf-posix.c: Likewise.
43046         * tests/test-vasprintf-posix.c: Likewise.
43047         * tests/test-vfprintf-posix.c: Likewise.
43048         * tests/test-vprintf-posix.c: Likewise.
43049         * tests/test-vsnprintf-posix.c: Likewise.
43050         * tests/test-vsprintf-posix.c: Likewise.
43051
43052 2009-01-03  Jim Meyering  <meyering@redhat.com>
43053
43054         gnulib-tool: fix sed-based filtering
43055         * gnulib-tool (func_filter_filelist): Remove extra backslash
43056         in sed_fff_filter definition.
43057
43058 2009-01-02  Jim Meyering  <meyering@redhat.com>
43059
43060         strftime: avoid compilation failure on Solaris 2.6
43061         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
43062         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
43063         Don't #define mbrlen or mbsinit, since now they're guaranteed to
43064         be available.  Reported by Tom G. Christensen.  Details in
43065         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
43066
43067 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43068             Bruno Haible  <bruno@clisp.org>
43069
43070         Speed up gnulib-tool by doing more string processing through shell
43071         built-ins.
43072         * gnulib-tool (fast_func_append): New variable.
43073         (func_remove_prefix, func_remove_suffix): New functions.
43074         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
43075         (func_filter_filelist): New function.
43076         (func_get_dependencies): Use func_remove_suffix instead of sed.
43077         (func_get_automake_snippet): Use func_filter_filelist instead of a
43078         subshell and sed invocation.
43079
43080 2009-01-01  Bruno Haible  <bruno@clisp.org>
43081
43082         Fix a security bug.
43083         * gnulib-tool (func_import, import, update): Don't allow the characters
43084         '"', '$', '`', '\' in macro arguments that become part of commands that
43085         are evaluated.
43086
43087 2009-01-01  Bruno Haible  <bruno@clisp.org>
43088
43089         * gnulib-tool (func_reset_sigpipe): Add more comments.
43090
43091 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43092
43093         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
43094         func_emit_tests_Makefile_am, func_import): Abort loops early if we
43095         already know the answer.
43096
43097 2009-01-01  Jim Meyering  <meyering@redhat.com>
43098
43099         * lib/version-etc.c (version_etc_va): Update copyright year.
43100
43101 2008-12-30  Bruno Haible  <bruno@clisp.org>
43102
43103         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
43104         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
43105         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
43106
43107 2008-12-29  Eric Blake  <ebb9@byu.net>
43108
43109         multiarch: avoid autoconf AC_REQUIRE bug
43110         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
43111         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
43112         2.63 and older.
43113         Reported by Bruno Haible, and analyzed in
43114         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
43115
43116 2008-12-29  Bruno Haible  <bruno@clisp.org>
43117
43118         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
43119         files in subdirectories correctly.
43120         Reported by Ralf Wildenhues.
43121
43122 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43123
43124         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
43125         rather than 'join FILE -', for Solaris join.
43126
43127 2008-12-29  Bruno Haible  <bruno@clisp.org>
43128
43129         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
43130         quoting.
43131         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
43132         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
43133         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
43134         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
43135         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
43136         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
43137         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
43138         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
43139         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
43140         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
43141         * m4/nls.m4 (AM_NLS): Likewise.
43142         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
43143         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
43144         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
43145         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
43146         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
43147         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
43148         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
43149         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
43150         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
43151         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
43152         * m4/xsize.m4 (gl_XSIZE): Likewise.
43153         Suggested by Jim Meyering.
43154
43155 2008-11-17  Bruce Korb  <bkorb@gnu.org>
43156
43157         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
43158         * lib/parse-duration.c: use a switch instead of cascading if's.
43159
43160 2008-12-29  Eric Blake  <ebb9@byu.net>
43161
43162         wchar.h: supply WEOF on Irix 5.3
43163         * lib/wchar.in.h (wint_t): Also supply WEOF.
43164         * lib/wctype.in.h (wint_t): Likewise.
43165         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
43166         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
43167         Reported by Tom G. Christensen.
43168
43169 2008-12-26  Bruno Haible  <bruno@clisp.org>
43170
43171         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
43172         i486, i586, i686.
43173
43174 2008-12-26  Bruno Haible  <bruno@clisp.org>
43175
43176         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
43177
43178 2008-12-26  Bruno Haible  <bruno@clisp.org>
43179
43180         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
43181         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
43182         not __STDC_CONSTANT_MACROS.
43183         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
43184
43185 2008-12-25  Bruno Haible  <bruno@clisp.org>
43186
43187         Add support for universal builds to vasnprintf.
43188         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
43189         universal builds, guess no.
43190         * modules/vasnprintf-posix (Depends-on): Add multiarch.
43191         * modules/vasprintf-posix (Depends-on): Likewise.
43192         * modules/fprintf-posix (Depends-on): Likewise.
43193         * modules/vfprintf-posix (Depends-on): Likewise.
43194         * modules/snprintf-posix (Depends-on): Likewise.
43195         * modules/vsnprintf-posix (Depends-on): Likewise.
43196         * modules/sprintf-posix (Depends-on): Likewise.
43197         * modules/vsprintf-posix (Depends-on): Likewise.
43198         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43199         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43200         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43201         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43202         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43203         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43204         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43205
43206         Add support for universal builds to <inttypes.h>.
43207         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
43208         _SCNu64_PREFIX): In Apple
43209         universal builds, define directly, using _LP64.
43210         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
43211         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
43212         * modules/inttypes (Depends-on): Add multiarch.
43213         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
43214
43215         Add support for universal builds to <stdint.h>.
43216         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
43217         universal builds, define directly, using _LP64.
43218         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
43219         Apple universal builds, don't test for the size and suffix of ptrdiff_t
43220         and size_t.
43221         * modules/stdint (Depends-on): Add multiarch.
43222         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
43223
43224         New module 'multiarch'.
43225         * modules/multiarch: New file.
43226         * m4/multiarch.m4: New file.
43227
43228 2008-12-25  Bruno Haible  <bruno@clisp.org>
43229
43230         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
43231
43232 2008-12-25  Bruno Haible  <bruno@clisp.org>
43233
43234         * modules/btowc (License): Relicense under LGPLv2+.
43235         * modules/mbsinit (License): Likewise.
43236         * modules/mbrtowc (License): Likewise.
43237         * modules/wcrtomb (License): Likewise.
43238         * modules/streq (License): Likewise.
43239         Reported by David Lutterkort <lutter@redhat.com>.
43240
43241 2008-12-23  Bruno Haible  <bruno@clisp.org>
43242
43243         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
43244
43245 2008-12-23  Bruno Haible  <bruno@clisp.org>
43246
43247         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
43248         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
43249         GETADDRINFO_LIB, not in LIBS.
43250         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
43251         * modules/canon-host (Link): Likewise.
43252         * NEWS: Mention the change.
43253         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
43254         GETADDRINFO_LIB.
43255
43256 2008-12-22  Bruno Haible  <bruno@clisp.org>
43257
43258         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
43259         * doc/posix-functions/iswalpha_l.texi: Likewise.
43260         * doc/posix-functions/iswblank_l.texi: Likewise.
43261         * doc/posix-functions/iswcntrl_l.texi: Likewise.
43262         * doc/posix-functions/iswctype_l.texi: Likewise.
43263         * doc/posix-functions/iswdigit_l.texi: Likewise.
43264         * doc/posix-functions/iswgraph_l.texi: Likewise.
43265         * doc/posix-functions/iswlower_l.texi: Likewise.
43266         * doc/posix-functions/iswprint_l.texi: Likewise.
43267         * doc/posix-functions/iswpunct_l.texi: Likewise.
43268         * doc/posix-functions/iswspace_l.texi: Likewise.
43269         * doc/posix-functions/iswupper_l.texi: Likewise.
43270         * doc/posix-functions/iswxdigit_l.texi: Likewise.
43271         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
43272         * doc/posix-functions/open_wmemstream.texi: Likewise.
43273         * doc/posix-functions/swscanf.texi: Likewise.
43274         * doc/posix-functions/towctrans_l.texi: Likewise.
43275         * doc/posix-functions/towlower.texi: Likewise.
43276         * doc/posix-functions/towlower_l.texi: Likewise.
43277         * doc/posix-functions/towupper.texi: Likewise.
43278         * doc/posix-functions/towupper_l.texi: Likewise.
43279         * doc/posix-functions/vfwprintf.texi: Likewise.
43280         * doc/posix-functions/vfwscanf.texi: Likewise.
43281         * doc/posix-functions/vswscanf.texi: Likewise.
43282         * doc/posix-functions/vwprintf.texi: Likewise.
43283         * doc/posix-functions/vwscanf.texi: Likewise.
43284         * doc/posix-functions/wcpcpy.texi: Likewise.
43285         * doc/posix-functions/wcpncpy.texi: Likewise.
43286         * doc/posix-functions/wcscasecmp.texi: Likewise.
43287         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
43288         * doc/posix-functions/wcscoll_l.texi: Likewise.
43289         * doc/posix-functions/wcsdup.texi: Likewise.
43290         * doc/posix-functions/wcsncasecmp.texi: Likewise.
43291         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
43292         * doc/posix-functions/wcsnlen.texi: Likewise.
43293         * doc/posix-functions/wcsnrtombs.texi: Likewise.
43294         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
43295         * doc/posix-functions/wctrans_l.texi: Likewise.
43296         * doc/posix-functions/wctype_l.texi: Likewise.
43297         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
43298         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
43299         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
43300         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
43301         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
43302         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
43303         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
43304         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
43305         * doc/glibc-functions/wcschrnul.texi: Likewise.
43306         * doc/glibc-functions/wcsftime_l.texi: Likewise.
43307         * doc/glibc-functions/wcstod_l.texi: Likewise.
43308         * doc/glibc-functions/wcstof_l.texi: Likewise.
43309         * doc/glibc-functions/wcstol_l.texi: Likewise.
43310         * doc/glibc-functions/wcstold_l.texi: Likewise.
43311         * doc/glibc-functions/wcstoll_l.texi: Likewise.
43312         * doc/glibc-functions/wcstoq.texi: Likewise.
43313         * doc/glibc-functions/wcstoul_l.texi: Likewise.
43314         * doc/glibc-functions/wcstoull_l.texi: Likewise.
43315         * doc/glibc-functions/wcstouq.texi: Likewise.
43316         * doc/glibc-functions/wmempcpy.texi: Likewise.
43317
43318 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
43319             Eric Blake  <ebb9@byu.net>
43320             Paolo Bonzini  <bonzini@gnu.org>
43321             Bruno Haible  <bruno@clisp.org>
43322
43323         Make c-stack work on Haiku.
43324         * lib/c-stack.c (SA_ONSTACK): Define fallback.
43325         (c_stack_action): Use SA_ONSTACK flag.
43326
43327 2008-12-22  Bruno Haible  <bruno@clisp.org>
43328
43329         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
43330
43331 2008-12-22  Bruno Haible  <bruno@clisp.org>
43332
43333         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
43334         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
43335         being overridden.
43336         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
43337         New macros.
43338         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
43339         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
43340         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
43341         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
43342
43343 2008-12-22  Bruno Haible  <bruno@clisp.org>
43344
43345         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
43346         from test code.
43347
43348 2008-12-22  Eric Blake  <ebb9@byu.net>
43349
43350         Avoid gcc warnings on cygwin.
43351         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
43352         Avoid unused variable.
43353         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
43354         Likewise.
43355
43356 2008-12-22  Bruno Haible  <bruno@clisp.org>
43357
43358         Remove HAVE_MBRTOWC conditionals.
43359         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
43360         (mbscasecmp): Assume mbrtowc function.
43361         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
43362         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
43363         * lib/mbschr.c: Include mbuiter.h unconditionally.
43364         (mbschr): Assume mbrtowc function.
43365         * lib/mbscspn.c: Include mbuiter.h unconditionally.
43366         (mbscspn): Assume mbrtowc function.
43367         * lib/mbslen.c: Include mbuiter.h unconditionally.
43368         (mbslen): Assume mbrtowc function.
43369         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
43370         (mbsncasecmp): Assume mbrtowc function.
43371         * lib/mbsnlen.c: Include mbiter.h unconditionally.
43372         (mbsnlen): Assume mbrtowc function.
43373         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
43374         (mbspbrk): Assume mbrtowc function.
43375         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
43376         (mbspcasecmp): Assume mbrtowc function.
43377         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
43378         (mbsrchr): Assume mbrtowc function.
43379         * lib/mbssep.c: Include mbuiter.h unconditionally.
43380         (mbssep): Assume mbrtowc function.
43381         * lib/mbsspn.c: Include mbuiter.h unconditionally.
43382         (mbsspn): Assume mbrtowc function.
43383         * lib/mbsstr.c: Include mbuiter.h unconditionally.
43384         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
43385         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
43386         (mbstok_r): Assume mbrtowc function.
43387         * lib/propername.c: Include mbuiter.h unconditionally.
43388         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
43389         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
43390         (trim2): Assume mbrtowc function.
43391         * lib/mbswidth.c (mbsinit): Remove fallback definition.
43392         (mbsnwidth): Assume mbrtowc function.
43393         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
43394         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
43395         fallback definitions.
43396         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
43397
43398 2008-12-22  Bruno Haible  <bruno@clisp.org>
43399
43400         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
43401
43402 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
43403
43404         * modules/regex: Request emulations for the mb*/wc* functions we need.
43405         * m4/regex.m4: Don't look for those functions here.
43406         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
43407
43408 2008-12-22  Bruno Haible  <bruno@clisp.org>
43409
43410         * modules/fnmatch (Depends-on): Remove duplicated dependency.
43411
43412 2008-12-21  Bruno Haible  <bruno@clisp.org>
43413
43414         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
43415         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
43416         (Include): Remove conditionalization.
43417         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
43418         (Include): Remove conditionalization.
43419         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
43420         (Include): Remove conditionalization.
43421         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
43422         * m4/mbfile.m4 (gl_MBFILE): Likewise.
43423         * NEWS: Mention the change.
43424         Reported by Alan Hourihane <alanh@fairlite.co.uk>
43425         via Sergey Poznyakoff <gray@gnu.org.ua>.
43426
43427 2008-12-21  Bruno Haible  <bruno@clisp.org>
43428
43429         * MODULES.html.sh (Extended multibyte and wide character utilities
43430         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
43431         wcrtomb, wcsrtombs.
43432         (Support for systems lacking POSIX:2008): Add accept, bind, close,
43433         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
43434         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
43435         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
43436
43437 2008-12-21  Bruno Haible  <bruno@clisp.org>
43438
43439         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
43440
43441 2008-12-21  Bruno Haible  <bruno@clisp.org>
43442
43443         * modules/wcsnrtombs-tests: New file.
43444         * tests/test-wcsnrtombs1.sh: New file.
43445         * tests/test-wcsnrtombs2.sh: New file.
43446         * tests/test-wcsnrtombs3.sh: New file.
43447         * tests/test-wcsnrtombs4.sh: New file.
43448         * tests/test-wcsnrtombs.c: New file.
43449
43450         New module 'wcsnrtombs'.
43451         * lib/wchar.in.h (wcsnrtombs): New declaration.
43452         * lib/wcsnrtombs.c: New file.
43453         * lib/wcsrtombs-state.c: New file.
43454         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
43455         (internal_state): Remove variable.
43456         * m4/wcsnrtombs.m4: New file.
43457         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
43458         compilation units.
43459         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
43460         HAVE_WCSNRTOMBS.
43461         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
43462         HAVE_WCSNRTOMBS.
43463         * modules/wcsnrtombs: New file.
43464         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
43465         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
43466
43467 2008-12-21  Bruno Haible  <bruno@clisp.org>
43468
43469         * modules/wcsrtombs-tests: New file.
43470         * tests/test-wcsrtombs1.sh: New file.
43471         * tests/test-wcsrtombs2.sh: New file.
43472         * tests/test-wcsrtombs3.sh: New file.
43473         * tests/test-wcsrtombs4.sh: New file.
43474         * tests/test-wcsrtombs.c: New file.
43475
43476         New module 'wcsrtombs'.
43477         * lib/wchar.in.h (wcsrtombs): New declaration.
43478         * lib/wcsrtombs.c: New file.
43479         * m4/wcsrtombs.m4: New file.
43480         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
43481         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
43482         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
43483         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
43484         * modules/wcsrtombs: New file.
43485         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
43486         bugs.
43487
43488 2008-12-21  Bruno Haible  <bruno@clisp.org>
43489
43490         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
43491         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
43492         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
43493         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
43494         if not correct.
43495         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
43496         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
43497         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43498         m4/locale-zh.m4, m4/codeset.m4.
43499         * doc/posix-functions/wcrtomb.texi: Document the bug.
43500
43501 2008-12-21  Bruno Haible  <bruno@clisp.org>
43502
43503         Work around a btowc() bug on IRIX 6.5.
43504         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
43505         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
43506         REPLACE_WTOBC if not.
43507         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
43508         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
43509         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
43510
43511 2008-12-21  Bruno Haible  <bruno@clisp.org>
43512
43513         * modules/wcrtomb-tests: New file.
43514         * tests/test-wcrtomb.sh: New file.
43515         * tests/test-wcrtomb.c: New file.
43516
43517         New module 'wcrtomb'.
43518         * lib/wchar.in.h (wcrtomb): New declaration.
43519         * lib/wcrtomb.c: New file.
43520         * m4/wcrtomb.m4: New file.
43521         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
43522         HAVE_WCRTOMB.
43523         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
43524         HAVE_WCRTOMB.
43525         * modules/wcrtomb: New file.
43526         * doc/posix-functions/wcrtomb.texi: Mention the new module.
43527
43528 2008-12-21  Bruno Haible  <bruno@clisp.org>
43529
43530         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
43531         * modules/mbsrtowcs (Files): Likewise.
43532         * modules/wctob (Files): Likewise.
43533         * modules/c-strcase-tests (Files): Likewise.
43534         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
43535         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
43536         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
43537         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
43538         * modules/vasnprintf-posix-tests (Files): Likewise.
43539
43540 2008-12-21  William Pursell  <bill.pursell@gmail.com>
43541
43542         gitlog-to-changelog: pass all command-line arguments to git-log
43543         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
43544         it is sometimes convenient to filter the commits in various ways.
43545         gitlog-to-changelog only allows --since to specify a start date,
43546         but git-log itself supports many other filtering mechanisms.
43547         At the moment, I want to filter by branch name.  Rather than
43548         adding a --branch option to gitlog-to-changelog, it seems more
43549         flexible to simply pass all options directly to git-log and let
43550         git do the work.  Notice that this effectively makes --since a
43551         redundant option for gitlog-to-changelog, but removing it would
43552         require current usage to change since calls would then require
43553         an additional '--'.
43554
43555 2008-12-21  Bruno Haible  <bruno@clisp.org>
43556
43557         * modules/mbsnrtowcs-tests: New file.
43558         * tests/test-mbsnrtowcs1.sh: New file.
43559         * tests/test-mbsnrtowcs2.sh: New file.
43560         * tests/test-mbsnrtowcs3.sh: New file.
43561         * tests/test-mbsnrtowcs4.sh: New file.
43562         * tests/test-mbsnrtowcs.c: New file.
43563
43564         New module 'mbsnrtowcs'.
43565         * lib/wchar.in.h (mbsnrtowcs): New declaration.
43566         * lib/mbsnrtowcs.c: New file.
43567         * lib/mbsrtowcs-state.c: New file.
43568         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
43569         (internal_state): Remove variable.
43570         * m4/mbsnrtowcs.m4: New file.
43571         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
43572         compilation units.
43573         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
43574         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
43575         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
43576         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
43577         * modules/mbsnrtowcs: New file.
43578         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
43579         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
43580         portability problem.
43581
43582 2008-12-21  Bruno Haible  <bruno@clisp.org>
43583
43584         Work around mbsrtowcs bug.
43585         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
43586         (gl_FUNC_MBSRTOWCS): Invoke it.
43587         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43588         m4/locale-zh.m4.
43589         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
43590
43591 2008-12-21  Bruno Haible  <bruno@clisp.org>
43592
43593         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
43594
43595 2008-12-21  Bruno Haible  <bruno@clisp.org>
43596
43597         Update doc for AIX.
43598         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
43599         16-bit wchar_t type.
43600         * doc/posix-functions/btowc.texi: Likewise.
43601         * doc/posix-functions/fgetwc.texi: Likewise.
43602         * doc/posix-functions/fgetws.texi: Likewise.
43603         * doc/posix-functions/fputwc.texi: Likewise.
43604         * doc/posix-functions/fputws.texi: Likewise.
43605         * doc/posix-functions/fwide.texi: Likewise.
43606         * doc/posix-functions/fwprintf.texi: Likewise.
43607         * doc/posix-functions/fwscanf.texi: Likewise.
43608         * doc/posix-functions/getwchar.texi: Likewise.
43609         * doc/posix-functions/getwc.texi: Likewise.
43610         * doc/posix-functions/iswalnum.texi: Likewise.
43611         * doc/posix-functions/iswalpha.texi: Likewise.
43612         * doc/posix-functions/iswblank.texi: Likewise.
43613         * doc/posix-functions/iswcntrl.texi: Likewise.
43614         * doc/posix-functions/iswctype.texi: Likewise.
43615         * doc/posix-functions/iswdigit.texi: Likewise.
43616         * doc/posix-functions/iswgraph.texi: Likewise.
43617         * doc/posix-functions/iswlower.texi: Likewise.
43618         * doc/posix-functions/iswprint.texi: Likewise.
43619         * doc/posix-functions/iswpunct.texi: Likewise.
43620         * doc/posix-functions/iswspace.texi: Likewise.
43621         * doc/posix-functions/iswupper.texi: Likewise.
43622         * doc/posix-functions/iswxdigit.texi: Likewise.
43623         * doc/posix-functions/mbrtowc.texi: Likewise.
43624         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43625         * doc/posix-functions/mbstowcs.texi: Likewise.
43626         * doc/posix-functions/mbtowc.texi: Likewise.
43627         * doc/posix-functions/putwchar.texi: Likewise.
43628         * doc/posix-functions/putwc.texi: Likewise.
43629         * doc/posix-functions/swprintf.texi: Likewise.
43630         * doc/posix-functions/tolower.texi: Likewise.
43631         * doc/posix-functions/toupper.texi: Likewise.
43632         * doc/posix-functions/towctrans.texi: Likewise.
43633         * doc/posix-functions/ungetwc.texi: Likewise.
43634         * doc/posix-functions/vswprintf.texi: Likewise.
43635         * doc/posix-functions/wcrtomb.texi: Likewise.
43636         * doc/posix-functions/wcscat.texi: Likewise.
43637         * doc/posix-functions/wcschr.texi: Likewise.
43638         * doc/posix-functions/wcscmp.texi: Likewise.
43639         * doc/posix-functions/wcscoll.texi: Likewise.
43640         * doc/posix-functions/wcscpy.texi: Likewise.
43641         * doc/posix-functions/wcscspn.texi: Likewise.
43642         * doc/posix-functions/wcsftime.texi: Likewise.
43643         * doc/posix-functions/wcslen.texi: Likewise.
43644         * doc/posix-functions/wcsncat.texi: Likewise.
43645         * doc/posix-functions/wcsncmp.texi: Likewise.
43646         * doc/posix-functions/wcsncpy.texi: Likewise.
43647         * doc/posix-functions/wcspbrk.texi: Likewise.
43648         * doc/posix-functions/wcsrchr.texi: Likewise.
43649         * doc/posix-functions/wcsrtombs.texi: Likewise.
43650         * doc/posix-functions/wcsspn.texi: Likewise.
43651         * doc/posix-functions/wcsstr.texi: Likewise.
43652         * doc/posix-functions/wcstod.texi: Likewise.
43653         * doc/posix-functions/wcstof.texi: Likewise.
43654         * doc/posix-functions/wcstoimax.texi: Likewise.
43655         * doc/posix-functions/wcstok.texi: Likewise.
43656         * doc/posix-functions/wcstold.texi: Likewise.
43657         * doc/posix-functions/wcstoll.texi: Likewise.
43658         * doc/posix-functions/wcstol.texi: Likewise.
43659         * doc/posix-functions/wcstombs.texi: Likewise.
43660         * doc/posix-functions/wcstoull.texi: Likewise.
43661         * doc/posix-functions/wcstoul.texi: Likewise.
43662         * doc/posix-functions/wcstoumax.texi: Likewise.
43663         * doc/posix-functions/wcswidth.texi: Likewise.
43664         * doc/posix-functions/wcsxfrm.texi: Likewise.
43665         * doc/posix-functions/wctob.texi: Likewise.
43666         * doc/posix-functions/wctomb.texi: Likewise.
43667         * doc/posix-functions/wctrans.texi: Likewise.
43668         * doc/posix-functions/wctype.texi: Likewise.
43669         * doc/posix-functions/wcwidth.texi: Likewise.
43670         * doc/posix-functions/wmemchr.texi: Likewise.
43671         * doc/posix-functions/wmemcmp.texi: Likewise.
43672         * doc/posix-functions/wmemcpy.texi: Likewise.
43673         * doc/posix-functions/wmemmove.texi: Likewise.
43674         * doc/posix-functions/wmemset.texi: Likewise.
43675         * doc/posix-functions/wprintf.texi: Likewise.
43676         * doc/posix-functions/wscanf.texi: Likewise.
43677
43678 2008-12-21  Bruno Haible  <bruno@clisp.org>
43679
43680         Update doc for HP-UX 11.11.
43681         * doc/posix-functions/btowc.texi: Clarify that the function is missing
43682         in HP-UX version 11.00, not in all versions of HP-UX 11.
43683         * doc/posix-functions/fwide.texi: Likewise.
43684         * doc/posix-functions/fwprintf.texi: Likewise.
43685         * doc/posix-functions/fwscanf.texi: Likewise.
43686         * doc/posix-functions/inet_ntop.texi: Likewise.
43687         * doc/posix-functions/inet_pton.texi: Likewise.
43688         * doc/posix-functions/mbrlen.texi: Likewise.
43689         * doc/posix-functions/mbrtowc.texi: Likewise.
43690         * doc/posix-functions/mbsinit.texi: Likewise.
43691         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43692         * doc/posix-functions/swprintf.texi: Likewise.
43693         * doc/posix-functions/swscanf.texi: Likewise.
43694         * doc/posix-functions/towctrans.texi: Likewise.
43695         * doc/posix-functions/vfwprintf.texi: Likewise.
43696         * doc/posix-functions/vswprintf.texi: Likewise.
43697         * doc/posix-functions/vwprintf.texi: Likewise.
43698         * doc/posix-functions/wcrtomb.texi: Likewise.
43699         * doc/posix-functions/wcsrtombs.texi: Likewise.
43700         * doc/posix-functions/wcsstr.texi: Likewise.
43701         * doc/posix-functions/wctob.texi: Likewise.
43702         * doc/posix-functions/wctrans.texi: Likewise.
43703         * doc/posix-functions/wmemchr.texi: Likewise.
43704         * doc/posix-functions/wmemcmp.texi: Likewise.
43705         * doc/posix-functions/wmemcpy.texi: Likewise.
43706         * doc/posix-functions/wmemmove.texi: Likewise.
43707         * doc/posix-functions/wmemset.texi: Likewise.
43708         * doc/posix-functions/wprintf.texi: Likewise.
43709         * doc/posix-functions/wscanf.texi: Likewise.
43710
43711 2008-12-21  Bruno Haible  <bruno@clisp.org>
43712
43713         Work around a portability problem.
43714         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
43715         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
43716
43717 2008-12-20  Bruno Haible  <bruno@clisp.org>
43718
43719         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
43720         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
43721         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
43722         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
43723         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
43724
43725         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
43726         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
43727         set.
43728         (GNULIB_defined_mbstate_t): New macro.
43729         (mbsinit): Redefine if REPLACE_MBSINIT is set.
43730         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
43731         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
43732         reuses the system's mbrtowc function but works around the bugs.
43733         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
43734         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
43735         macros.
43736         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
43737         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
43738         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
43739         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
43740         REPLACE_MBSINIT if mbsinit needs to be overridden.
43741         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
43742         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43743         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
43744         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43745         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43746         m4/locale-zh.m4.
43747         (Depends): Add mbsinit.
43748         * modules/mbsinit (Depends): Add mbrtowc.
43749         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
43750
43751 2008-12-20  Bruno Haible  <bruno@clisp.org>
43752
43753         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
43754         so that there are no conversion errors on AIX.
43755         * tests/test-mbsrtowcs.c (main): LIkewise.
43756
43757 2008-12-20  Bruno Haible  <bruno@clisp.org>
43758
43759         Work around wctob bug on Solaris <= 9.
43760         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
43761         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
43762         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
43763         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
43764         * modules/wctob (Files): Add m4/locale-fr.m4.
43765         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
43766
43767 2008-12-20  Bruno Haible  <bruno@clisp.org>
43768
43769         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
43770         /dev/null.
43771         * tests/test-select-in.sh: Likewise.
43772         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43773
43774 2008-12-20  Bruno Haible  <bruno@clisp.org>
43775
43776         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
43777         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
43778         Cygwin 1.5.x.
43779
43780 2008-12-20  Bruno Haible  <bruno@clisp.org>
43781
43782         Ensure mbstate_t is defined on HP-UX 11.11.
43783         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
43784         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
43785         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
43786         AC_USE_SYSTEM_EXTENSIONS.
43787         * modules/fnmatch (Depends-on): Add extensions.
43788         * modules/mbrlen (Depends-on): Likewise.
43789         * modules/mbrtowc (Depends-on): Likewise.
43790         * modules/mbsinit (Depends-on): Likewise.
43791         * modules/mbsrtowcs (Depends-on): Likewise.
43792         * modules/mbswidth (Depends-on): Likewise.
43793         * modules/quotearg (Depends-on): Likewise.
43794         * modules/strftime (Depends-on): Likewise.
43795
43796 2008-12-20  Bruno Haible  <bruno@clisp.org>
43797
43798         Ensure wctob is declared on IRIX 6.5.
43799         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
43800         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
43801         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
43802         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
43803         of HAVE_WCTOB.
43804         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
43805         HAVE_WCTOB.
43806         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
43807
43808 2008-12-19  Bruno Haible  <bruno@clisp.org>
43809
43810         * modules/mbsrtowcs-tests: New file.
43811         * tests/test-mbsrtowcs1.sh: New file.
43812         * tests/test-mbsrtowcs2.sh: New file.
43813         * tests/test-mbsrtowcs3.sh: New file.
43814         * tests/test-mbsrtowcs4.sh: New file.
43815         * tests/test-mbsrtowcs.c: New file.
43816
43817         New module 'mbsrtowcs'.
43818         * lib/wchar.in.h (mbsrtowcs): New declaration.
43819         * lib/mbsrtowcs.c: New file.
43820         * m4/mbsrtowcs.m4: New file.
43821         * modules/mbsrtowcs: New file.
43822         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
43823         HAVE_MBSRTOWCS.
43824         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
43825         HAVE_MBSRTOWCS.
43826         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
43827
43828 2008-12-19  Bruno Haible  <bruno@clisp.org>
43829
43830         New module 'mbrlen'.
43831         * lib/wchar.in.h (mbrlen): New declaration.
43832         * lib/mbrlen.c: New file.
43833         * m4/mbrlen.m4: New file.
43834         * modules/mbrlen: New file.
43835         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
43836         HAVE_MBRLEN.
43837         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
43838         HAVE_MBRLEN.
43839         * doc/posix-functions/mbrlen.texi: Document the new module.
43840
43841 2008-12-19  Bruno Haible  <bruno@clisp.org>
43842
43843         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
43844         * modules/mbrtowc (Depends-on): Add verify.
43845         Suggested by Paul Eggert.
43846
43847 2008-12-18  Bruno Haible  <bruno@clisp.org>
43848
43849         * modules/mbsinit-tests: New file.
43850         * tests/test-mbsinit.sh: New file.
43851         * tests/test-mbsinit.c: New file.
43852
43853 2008-12-18  Bruno Haible  <bruno@clisp.org>
43854
43855         * modules/mbrtowc-tests: New file.
43856         * tests/test-mbrtowc1.sh: New file.
43857         * tests/test-mbrtowc2.sh: New file.
43858         * tests/test-mbrtowc3.sh: New file.
43859         * tests/test-mbrtowc4.sh: New file.
43860         * tests/test-mbrtowc.c: New file.
43861
43862         New module 'mbrtowc'.
43863         * lib/wchar.in.h (mbstate_t): Override when the system does not have
43864         mbsinit and mbrtowc.
43865         (mbrtowc): New declaration.
43866         * lib/mbrtowc.c: New file.
43867         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
43868         * modules/mbrtowc: New file.
43869         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
43870         HAVE_MBRTOWC.
43871         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
43872         HAVE_MBRTOWC.
43873         * doc/posix-functions/mbrtowc.texi: Document the new module.
43874
43875 2008-12-18  Bruno Haible  <bruno@clisp.org>
43876
43877         New module 'wctob'.
43878         * lib/wchar.in.h (wctob): New declaration.
43879         * lib/wctob.c: New file.
43880         * m4/wctob.m4: New file.
43881         * modules/wctob: New file.
43882         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
43883         HAVE_WCTOB.
43884         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
43885         * doc/posix-functions/wctob.texi: Document the new module.
43886
43887 2008-12-18  Bruno Haible  <bruno@clisp.org>
43888
43889         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
43890         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
43891
43892 2008-12-18  Simon Josefsson  <simon@josefsson.org>
43893
43894         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
43895         G. Christensen" <tgc@jupiterrise.com>.
43896
43897         * lib/flock.c: Need to include errno.h.  Reported by "Tom
43898         G. Christensen" <tgc@jupiterrise.com>.
43899
43900         * lib/flock.c: Need to include string.h.  Reported by "Tom
43901         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
43902         <ebb9@byu.net>.
43903
43904 2008-12-18  Bruno Haible  <bruno@clisp.org>
43905
43906         * m4/locale-ja.m4: New file, from GNU gettext.
43907
43908 2008-12-17  Bruno Haible  <bruno@clisp.org>
43909
43910         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
43911         Suggested by Eric Blake.
43912
43913 2008-12-17  Bruno Haible  <bruno@clisp.org>
43914
43915         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
43916
43917 2008-12-17  Bruno Haible  <bruno@clisp.org>
43918
43919         * lib/mbsinit.c: Include verify.h. Verify an assumption.
43920         * modules/mbsinit (Depends-on): Add verify.
43921         Suggested by Paul Eggert.
43922
43923 2008-12-17  Bruno Haible  <bruno@clisp.org>
43924
43925         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
43926         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
43927         gl_FUNC_MBRTOWC.
43928         * m4/mbiter.m4 (gl_MBITER): LIkewise.
43929         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
43930         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
43931         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
43932         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
43933         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
43934         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
43935         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
43936         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
43937         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
43938         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
43939         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
43940         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
43941         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
43942         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
43943         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43944         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
43945         * modules/trim (configure.ac): Likewise.
43946
43947 2008-12-17  Bruno Haible  <bruno@clisp.org>
43948
43949         * modules/btowc-tests: New file.
43950         * tests/test-btowc1.sh: New file.
43951         * tests/test-btowc2.sh: New file.
43952         * tests/test-btowc.c: New file.
43953
43954         New module 'btowc'.
43955         * lib/wchar.in.h (btowc): New declaration.
43956         * lib/btowc.c: New file.
43957         * m4/btowc.m4: New file.
43958         * modules/btowc: New file.
43959         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
43960         HAVE_BTOWC.
43961         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
43962         * doc/posix-functions/btowc.texi: Document the new module.
43963
43964 2008-12-17  Bruno Haible  <bruno@clisp.org>
43965
43966         New module 'mbsinit'.
43967         * lib/wchar.in.h (mbsinit): New declaration.
43968         * lib/mbsinit.c: New file.
43969         * m4/mbsinit.m4: New file.
43970         * modules/mbsinit: New file.
43971         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
43972         HAVE_MBSINIT.
43973         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
43974         HAVE_MBSINIT.
43975         * doc/posix-functions/mbsinit.texi: Document the new module.
43976
43977 2008-12-16  Bruno Haible  <bruno@clisp.org>
43978
43979         * lib/unistd.in.h: Add comment.
43980         * tests/test-environ.c: Don't include <stdlib.h>.
43981
43982 2008-12-16  Bruno Haible  <bruno@clisp.org>
43983
43984         * lib/parse-duration.h (parse_duration): Document return value
43985         convention.
43986         * lib/parse-duration.c: Include specification header first. Add
43987         comments.
43988         (_): Remove macro.
43989         (parse_year_month_day, parse_hour_minute_second): Move side effects
43990         outside of strchr call.
43991         (parse_non_iso8601): Move side effects outside of isspace call.
43992         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
43993         call.
43994
43995 2008-12-16  Bruno Haible  <bruno@clisp.org>
43996
43997         * tests/test-parse-duration.sh: Produce no output when the test
43998         succeeds.
43999
44000 2008-12-16  Bruno Haible  <bruno@clisp.org>
44001
44002         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
44003         expressions.
44004
44005 2008-12-15  Bruno Haible  <bruno@clisp.org>
44006
44007         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
44008         * doc/glibc-functions/flistxattr.texi: Likewise.
44009         * doc/glibc-functions/fopencookie.texi: Likewise.
44010         * doc/glibc-functions/fremovexattr.texi: Likewise.
44011         * doc/glibc-functions/fsetxattr.texi: Likewise.
44012         * doc/glibc-functions/getxattr.texi: Likewise.
44013         * doc/glibc-functions/lgetxattr.texi: Likewise.
44014         * doc/glibc-functions/listxattr.texi: Likewise.
44015         * doc/glibc-functions/llistxattr.texi: Likewise.
44016         * doc/glibc-functions/lremovexattr.texi: Likewise.
44017         * doc/glibc-functions/lsetxattr.texi: Likewise.
44018         * doc/glibc-functions/removexattr.texi: Likewise.
44019         * doc/glibc-functions/setxattr.texi: Likewise.
44020         * doc/posix-functions/open_memstream.texi: Likewise.
44021
44022 2008-12-15  Eric Blake  <ebb9@byu.net>
44023
44024         Update doc for cygwin 1.7.
44025         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
44026         functions.
44027         * doc/posix-functions/fchmodat.texi: Likewise.
44028         * doc/posix-functions/fchownat.texi: Likewise.
44029         * doc/posix-functions/fdopendir.texi: Likewise.
44030         * doc/posix-functions/fmemopen.texi: Likewise.
44031         * doc/posix-functions/freeaddrinfo.texi: Likewise.
44032         * doc/posix-functions/fstatat.texi: Likewise.
44033         * doc/posix-functions/futimens.texi: Likewise.
44034         * doc/posix-functions/gai_strerror.texi: Likewise.
44035         * doc/posix-functions/getaddrinfo.texi: Likewise.
44036         * doc/posix-functions/getnameinfo.texi: Likewise.
44037         * doc/posix-functions/if_freenameindex.texi: Likewise.
44038         * doc/posix-functions/if_indextoname.texi: Likewise.
44039         * doc/posix-functions/if_nameindex.texi: Likewise.
44040         * doc/posix-functions/if_nametoindex.texi: Likewise.
44041         * doc/posix-functions/insque.texi: Likewise.
44042         * doc/posix-functions/linkat.texi: Likewise.
44043         * doc/posix-functions/llrint.texi: Likewise.
44044         * doc/posix-functions/llrintf.texi: Likewise.
44045         * doc/posix-functions/llrintl.texi: Likewise.
44046         * doc/posix-functions/lockf.texi: Likewise.
44047         * doc/posix-functions/lrintl.texi: Likewise.
44048         * doc/posix-functions/mkdirat.texi: Likewise.
44049         * doc/posix-functions/mkfifoat.texi: Likewise.
44050         * doc/posix-functions/mknodat.texi: Likewise.
44051         * doc/posix-functions/mq_close.texi: Likewise.
44052         * doc/posix-functions/mq_getattr.texi: Likewise.
44053         * doc/posix-functions/mq_notify.texi: Likewise.
44054         * doc/posix-functions/mq_open.texi: Likewise.
44055         * doc/posix-functions/mq_receive.texi: Likewise.
44056         * doc/posix-functions/mq_send.texi: Likewise.
44057         * doc/posix-functions/mq_setattr.texi: Likewise.
44058         * doc/posix-functions/mq_timedreceive.texi: Likewise.
44059         * doc/posix-functions/mq_timedsend.texi: Likewise.
44060         * doc/posix-functions/mq_unlink.texi: Likewise.
44061         * doc/posix-functions/open_memstream.texi: Likewise.
44062         * doc/posix-functions/openat.texi: Likewise.
44063         * doc/posix-functions/posix_fadvise.texi: Likewise.
44064         * doc/posix-functions/posix_fallocate.texi: Likewise.
44065         * doc/posix-functions/posix_madvise.texi: Likewise.
44066         * doc/posix-functions/posix_memalign.texi: Likewise.
44067         * doc/posix-functions/posix_openpt.texi: Likewise.
44068         * doc/posix-functions/readlinkat.texi: Likewise.
44069         * doc/posix-functions/remque.texi: Likewise.
44070         * doc/posix-functions/renameat.texi: Likewise.
44071         * doc/posix-functions/rintl.texi: Likewise.
44072         * doc/posix-functions/sem_unlink.texi: Likewise.
44073         * doc/posix-functions/shm_open.texi: Likewise.
44074         * doc/posix-functions/shm_unlink.texi: Likewise.
44075         * doc/posix-functions/signgam.texi: Likewise.
44076         * doc/posix-functions/sigset.texi: Likewise.
44077         * doc/posix-functions/stpcpy.texi: Likewise.
44078         * doc/posix-functions/stpncpy.texi: Likewise.
44079         * doc/posix-functions/strerror.texi: Likewise.
44080         * doc/posix-functions/strtod.texi: Likewise.
44081         * doc/posix-functions/symlinkat.texi: Likewise.
44082         * doc/posix-functions/unlinkat.texi: Likewise.
44083         * doc/posix-functions/utimensat.texi: Likewise.
44084         * doc/glibc-functions/bindresvport.texi: Likewise.
44085         * doc/glibc-functions/dn_expand.texi: Likewise.
44086         * doc/glibc-functions/exp10.texi: Likewise.
44087         * doc/glibc-functions/exp10f.texi: Likewise.
44088         * doc/glibc-functions/fgetxattr.texi: Likewise.
44089         * doc/glibc-functions/flistxattr.texi: Likewise.
44090         * doc/glibc-functions/fopencookie.texi: Likewise.
44091         * doc/glibc-functions/freeifaddrs.texi: Likewise.
44092         * doc/glibc-functions/fremovexattr.texi: Likewise.
44093         * doc/glibc-functions/fsetxattr.texi: Likewise.
44094         * doc/glibc-functions/getifaddrs.texi: Likewise.
44095         * doc/glibc-functions/getxattr.texi: Likewise.
44096         * doc/glibc-functions/lgetxattr.texi: Likewise.
44097         * doc/glibc-functions/listxattr.texi: Likewise.
44098         * doc/glibc-functions/llistxattr.texi: Likewise.
44099         * doc/glibc-functions/lremovexattr.texi: Likewise.
44100         * doc/glibc-functions/lsetxattr.texi: Likewise.
44101         * doc/glibc-functions/pow10.texi: Likewise.
44102         * doc/glibc-functions/pow10f.texi: Likewise.
44103         * doc/glibc-functions/rcmd_af.texi: Likewise.
44104         * doc/glibc-functions/removexattr.texi: Likewise.
44105         * doc/glibc-functions/res_init.texi: Likewise.
44106         * doc/glibc-functions/res_mkquery.texi: Likewise.
44107         * doc/glibc-functions/res_query.texi: Likewise.
44108         * doc/glibc-functions/res_querydomain.texi: Likewise.
44109         * doc/glibc-functions/res_send.texi: Likewise.
44110         * doc/glibc-functions/rresvport_af.texi: Likewise.
44111         * doc/glibc-functions/setxattr.texi: Likewise.
44112         * doc/glibc-functions/strcasestr.texi: Likewise.
44113
44114 2008-12-15  Bruno Haible  <bruno@clisp.org>
44115
44116         Fix compilation error on OSF/1 4.0.
44117         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
44118         <sys/time.h>, simply delegate to the system header.
44119         Reported by Daniel Richard G. <oss@teragram.com>.
44120
44121 2008-12-15  Bruno Haible  <bruno@clisp.org>
44122
44123         * doc/posix-functions/openat.texi: Mention the 'openat' module.
44124         * doc/posix-functions/fchmodat.texi: Likewise.
44125         * doc/posix-functions/fchownat.texi: Likewise.
44126         * doc/posix-functions/fdopendir.texi: Likewise.
44127         * doc/posix-functions/fstatat.texi: Likewise.
44128         * doc/posix-functions/mkdirat.texi: Likewise.
44129         * doc/posix-functions/unlinkat.texi: Likewise.
44130
44131 2008-12-14  Bruno Haible  <bruno@clisp.org>
44132
44133         Update doc for POSIX:2008.
44134         * doc/posix-functions/faccessat.texi: New file.
44135         * doc/posix-functions/fchmodat.texi: New file.
44136         * doc/posix-functions/fchownat.texi: New file.
44137         * doc/posix-functions/fdopendir.texi: New file.
44138         * doc/posix-functions/fstatat.texi: New file.
44139         * doc/posix-functions/futimens.texi: New file.
44140         * doc/posix-functions/linkat.texi: New file.
44141         * doc/posix-functions/mkdirat.texi: New file.
44142         * doc/posix-functions/mkfifoat.texi: New file.
44143         * doc/posix-functions/mknodat.texi: New file.
44144         * doc/posix-functions/open_wmemstream.texi: New file.
44145         * doc/posix-functions/openat.texi: New file.
44146         * doc/posix-functions/psiginfo.texi: New file.
44147         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
44148         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
44149         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
44150         * doc/posix-functions/readlinkat.texi: New file.
44151         * doc/posix-functions/renameat.texi: New file.
44152         * doc/posix-functions/strerror_l.texi: New file.
44153         * doc/posix-functions/symlinkat.texi: New file.
44154         * doc/posix-functions/unlinkat.texi: New file.
44155         * doc/posix-functions/utimensat.texi: New file.
44156         * doc/gnulib.texi (Function Substitutes): Add these subsections.
44157
44158 2008-12-14  Bruno Haible  <bruno@clisp.org>
44159
44160         Update doc for POSIX:2008.
44161         * doc/posix-functions/alphasort.texi: Renamed from
44162         doc/glibc-functions/alphasort.texi.
44163         * doc/posix-functions/dirfd.texi: Renamed from
44164         doc/glibc-functions/dirfd.texi.
44165         * doc/posix-functions/dprintf.texi: Renamed from
44166         doc/glibc-functions/dprintf.texi.
44167         * doc/posix-functions/duplocale.texi: Renamed from
44168         doc/glibc-functions/duplocale.texi.
44169         * doc/posix-functions/fexecve.texi: Renamed from
44170         doc/glibc-functions/fexecve.texi.
44171         * doc/posix-functions/fmemopen.texi: Renamed from
44172         doc/glibc-functions/fmemopen.texi.
44173         * doc/posix-functions/freelocale.texi: Renamed from
44174         doc/glibc-functions/freelocale.texi.
44175         * doc/posix-functions/getdate_err.texi: Renamed from
44176         doc/glibc-functions/getdate_err.texi.
44177         * doc/posix-functions/isalnum_l.texi: Renamed from
44178         doc/glibc-functions/isalnum_l.texi.
44179         * doc/posix-functions/isalpha_l.texi: Renamed from
44180         doc/glibc-functions/isalpha_l.texi.
44181         * doc/posix-functions/isblank_l.texi: Renamed from
44182         doc/glibc-functions/isblank_l.texi.
44183         * doc/posix-functions/iscntrl_l.texi: Renamed from
44184         doc/glibc-functions/iscntrl_l.texi.
44185         * doc/posix-functions/isdigit_l.texi: Renamed from
44186         doc/glibc-functions/isdigit_l.texi.
44187         * doc/posix-functions/isgraph_l.texi: Renamed from
44188         doc/glibc-functions/isgraph_l.texi.
44189         * doc/posix-functions/islower_l.texi: Renamed from
44190         doc/glibc-functions/islower_l.texi.
44191         * doc/posix-functions/isprint_l.texi: Renamed from
44192         doc/glibc-functions/isprint_l.texi.
44193         * doc/posix-functions/ispunct_l.texi: Renamed from
44194         doc/glibc-functions/ispunct_l.texi.
44195         * doc/posix-functions/isspace_l.texi: Renamed from
44196         doc/glibc-functions/isspace_l.texi.
44197         * doc/posix-functions/isupper_l.texi: Renamed from
44198         doc/glibc-functions/isupper_l.texi.
44199         * doc/posix-functions/iswalnum_l.texi: Renamed from
44200         doc/glibc-functions/iswalnum_l.texi.
44201         * doc/posix-functions/iswalpha_l.texi: Renamed from
44202         doc/glibc-functions/iswalpha_l.texi.
44203         * doc/posix-functions/iswblank_l.texi: Renamed from
44204         doc/glibc-functions/iswblank_l.texi.
44205         * doc/posix-functions/iswcntrl_l.texi: Renamed from
44206         doc/glibc-functions/iswcntrl_l.texi.
44207         * doc/posix-functions/iswctype_l.texi: Renamed from
44208         doc/glibc-functions/iswctype_l.texi.
44209         * doc/posix-functions/iswdigit_l.texi: Renamed from
44210         doc/glibc-functions/iswdigit_l.texi.
44211         * doc/posix-functions/iswgraph_l.texi: Renamed from
44212         doc/glibc-functions/iswgraph_l.texi.
44213         * doc/posix-functions/iswlower_l.texi: Renamed from
44214         doc/glibc-functions/iswlower_l.texi.
44215         * doc/posix-functions/iswprint_l.texi: Renamed from
44216         doc/glibc-functions/iswprint_l.texi.
44217         * doc/posix-functions/iswpunct_l.texi: Renamed from
44218         doc/glibc-functions/iswpunct_l.texi.
44219         * doc/posix-functions/iswspace_l.texi: Renamed from
44220         doc/glibc-functions/iswspace_l.texi.
44221         * doc/posix-functions/iswupper_l.texi: Renamed from
44222         doc/glibc-functions/iswupper_l.texi.
44223         * doc/posix-functions/iswxdigit_l.texi: Renamed from
44224         doc/glibc-functions/iswxdigit_l.texi.
44225         * doc/posix-functions/isxdigit_l.texi: Renamed from
44226         doc/glibc-functions/isxdigit_l.texi.
44227         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
44228         doc/glibc-functions/mbsnrtowcs.texi.
44229         * doc/posix-functions/mkdtemp.texi: Renamed from
44230         doc/glibc-functions/mkdtemp.texi.
44231         * doc/posix-functions/newlocale.texi: Renamed from
44232         doc/glibc-functions/newlocale.texi.
44233         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
44234         doc/glibc-functions/nl_langinfo_l.texi.
44235         * doc/posix-functions/open_memstream.texi: Renamed from
44236         doc/glibc-functions/open_memstream.texi.
44237         * doc/posix-functions/opterr.texi: Renamed from
44238         doc/glibc-functions/opterr.texi.
44239         * doc/posix-functions/optind.texi: Renamed from
44240         doc/glibc-functions/optind.texi.
44241         * doc/posix-functions/optopt.texi: Renamed from
44242         doc/glibc-functions/optopt.texi.
44243         * doc/posix-functions/psignal.texi: Renamed from
44244         doc/glibc-functions/psignal.texi.
44245         * doc/posix-functions/scandir.texi: Renamed from
44246         doc/glibc-functions/scandir.texi.
44247         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
44248         doc/glibc-functions/sched_get_priority_min.texi.
44249         * doc/posix-functions/signgam.texi: Renamed from
44250         doc/glibc-functions/signgam.texi.
44251         * doc/posix-functions/stpcpy.texi: Renamed from
44252         doc/glibc-functions/stpcpy.texi.
44253         * doc/posix-functions/stpncpy.texi: Renamed from
44254         doc/glibc-functions/stpncpy.texi.
44255         * doc/posix-functions/strcasecmp_l.texi: Renamed from
44256         doc/glibc-functions/strcasecmp_l.texi.
44257         * doc/posix-functions/strcoll_l.texi: Renamed from
44258         doc/glibc-functions/strcoll_l.texi.
44259         * doc/posix-functions/strfmon_l.texi: Renamed from
44260         doc/glibc-functions/strfmon_l.texi.
44261         * doc/posix-functions/strftime_l.texi: Renamed from
44262         doc/glibc-functions/strftime_l.texi.
44263         * doc/posix-functions/strncasecmp_l.texi: Renamed from
44264         doc/glibc-functions/strncasecmp_l.texi.
44265         * doc/posix-functions/strndup.texi: Renamed from
44266         doc/glibc-functions/strndup.texi.
44267         * doc/posix-functions/strnlen.texi: Renamed from
44268         doc/glibc-functions/strnlen.texi.
44269         * doc/posix-functions/strsignal.texi: Renamed from
44270         doc/glibc-functions/strsignal.texi.
44271         * doc/posix-functions/strxfrm_l.texi: Renamed from
44272         doc/glibc-functions/strxfrm_l.texi.
44273         * doc/posix-functions/timer_gettime.texi: Renamed from
44274         doc/glibc-functions/timer_gettime.texi.
44275         * doc/posix-functions/tolower_l.texi: Renamed from
44276         doc/glibc-functions/tolower_l.texi.
44277         * doc/posix-functions/toupper_l.texi: Renamed from
44278         doc/glibc-functions/toupper_l.texi.
44279         * doc/posix-functions/towctrans_l.texi: Renamed from
44280         doc/glibc-functions/towctrans_l.texi.
44281         * doc/posix-functions/towlower_l.texi: Renamed from
44282         doc/glibc-functions/towlower_l.texi.
44283         * doc/posix-functions/towupper_l.texi: Renamed from
44284         doc/glibc-functions/towupper_l.texi.
44285         * doc/posix-functions/uselocale.texi: Renamed from
44286         doc/glibc-functions/uselocale.texi.
44287         * doc/posix-functions/vdprintf.texi: Renamed from
44288         doc/glibc-functions/vdprintf.texi.
44289         * doc/posix-functions/wcpcpy.texi:
44290         Renamed from doc/glibc-functions/wcpcpy.texi.
44291         * doc/posix-functions/wcpncpy.texi: Renamed from
44292         doc/glibc-functions/wcpncpy.texi.
44293         * doc/posix-functions/wcscasecmp.texi: Renamed from
44294         doc/glibc-functions/wcscasecmp.texi.
44295         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
44296         doc/glibc-functions/wcscasecmp_l.texi.
44297         * doc/posix-functions/wcscoll_l.texi: Renamed from
44298         doc/glibc-functions/wcscoll_l.texi.
44299         * doc/posix-functions/wcsdup.texi: Renamed from
44300         doc/glibc-functions/wcsdup.texi.
44301         * doc/posix-functions/wcsncasecmp.texi: Renamed from
44302         doc/glibc-functions/wcsncasecmp.texi.
44303         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
44304         doc/glibc-functions/wcsncasecmp_l.texi.
44305         * doc/posix-functions/wcsnlen.texi: Renamed from
44306         doc/glibc-functions/wcsnlen.texi.
44307         * doc/posix-functions/wcsnrtombs.texi: Renamed from
44308         doc/glibc-functions/wcsnrtombs.texi.
44309         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
44310         doc/glibc-functions/wcsxfrm_l.texi.
44311         * doc/posix-functions/wctrans_l.texi: Renamed from
44312         doc/glibc-functions/wctrans_l.texi.
44313         * doc/posix-functions/wctype_l.texi: Renamed from
44314         doc/glibc-functions/wctype_l.texi.
44315         * doc/gnulib.texi (Function Substitutes): Add these subsections.
44316         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
44317         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
44318         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
44319         these subsections.
44320         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
44321         Remove sections.
44322
44323 2008-12-14  Bruno Haible  <bruno@clisp.org>
44324
44325         Update doc for POSIX:2008.
44326         * doc/posix-functions/*.texi: Update URL of POSIX specification.
44327
44328 2008-12-14  Bruno Haible  <bruno@clisp.org>
44329
44330         Update doc for POSIX:2008.
44331         * doc/pastposix-functions/bcmp.texi: Renamed from
44332         doc/posix-functions/bcmp.texi.
44333         * doc/pastposix-functions/bcopy.texi: Renamed from
44334         doc/posix-functions/bcopy.texi.
44335         * doc/pastposix-functions/bsd_signal.texi: Renamed from
44336         doc/posix-functions/bsd_signal.texi.
44337         * doc/pastposix-functions/bzero.texi: Renamed from
44338         doc/posix-functions/bzero.texi.
44339         * doc/pastposix-functions/ecvt.texi: Renamed from
44340         doc/posix-functions/ecvt.texi.
44341         * doc/pastposix-functions/fcvt.texi: Renamed from
44342         doc/posix-functions/fcvt.texi.
44343         * doc/pastposix-functions/ftime.texi: Renamed from
44344         doc/posix-functions/ftime.texi.
44345         * doc/pastposix-functions/gcvt.texi: Renamed from
44346         doc/posix-functions/gcvt.texi.
44347         * doc/pastposix-functions/getcontext.texi: Renamed from
44348         doc/posix-functions/getcontext.texi.
44349         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
44350         doc/posix-functions/gethostbyaddr.texi.
44351         * doc/pastposix-functions/gethostbyname.texi: Renamed from
44352         doc/posix-functions/gethostbyname.texi.
44353         * doc/pastposix-functions/getwd.texi: Renamed from
44354         doc/posix-functions/getwd.texi.
44355         * doc/pastposix-functions/h_errno.texi: Renamed from
44356         doc/posix-functions/h_errno.texi.
44357         * doc/pastposix-functions/index.texi: Renamed from
44358         doc/posix-functions/index.texi.
44359         * doc/pastposix-functions/makecontext.texi: Renamed from
44360         doc/posix-functions/makecontext.texi.
44361         * doc/pastposix-functions/mktemp.texi: Renamed from
44362         doc/posix-functions/mktemp.texi.
44363         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
44364         doc/posix-functions/pthread_attr_getstackaddr.texi.
44365         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
44366         doc/posix-functions/pthread_attr_setstackaddr.texi.
44367         * doc/pastposix-functions/rindex.texi: Renamed from
44368         doc/posix-functions/rindex.texi.
44369         * doc/pastposix-functions/scalb.texi: Renamed from
44370         doc/posix-functions/scalb.texi.
44371         * doc/pastposix-functions/setcontext.texi: Renamed from
44372         doc/posix-functions/setcontext.texi.
44373         * doc/pastposix-functions/swapcontext.texi: Renamed from
44374         doc/posix-functions/swapcontext.texi.
44375         * doc/pastposix-functions/ualarm.texi: Renamed from
44376         doc/posix-functions/ualarm.texi.
44377         * doc/pastposix-functions/usleep.texi: Renamed from
44378         doc/posix-functions/usleep.texi.
44379         * doc/pastposix-functions/vfork.texi: Renamed from
44380         doc/posix-functions/vfork.texi.
44381         * doc/pastposix-functions/wcswcs.texi: Renamed from
44382         doc/posix-functions/wcswcs.texi.
44383         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
44384         (Function Substitutes): Update.
44385
44386 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44387
44388         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
44389         m4/strerror.m4.
44390
44391 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44392             Bruno Haible  <bruno@clisp.org>
44393
44394         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
44395
44396 2008-12-13  Bruno Haible  <bruno@clisp.org>
44397
44398         * modules/strtoull (Depends-on): Remove unistd.
44399
44400 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44401
44402         * modules/strtoull (Depends-on): Add stdlib.
44403
44404 2008-12-11  Simon Josefsson  <simon@josefsson.org>
44405
44406         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
44407
44408 2008-12-10  Jim Meyering  <meyering@redhat.com>
44409
44410         gl_ASSERT: don't say assertions are disabled when they're not
44411         * m4/assert.m4 (gl_ASSERT): Do not make configure report
44412         "checking whether to enable assertions... no", when they are in
44413         fact enabled.  This is solely a bug in the output of configure.
44414         In spite of saying "no", NDEBUG was not defined in that case.
44415         Also, as noted by Eric Blake, leave assertions enabled upon
44416         --enable-assert=INVALID.
44417
44418 2008-12-10  Bruno Haible  <bruno@clisp.org>
44419
44420         Change MODULES.html to refer to POSIX:2008 where possible.
44421         * MODULES.html.sh (POSIX2008_URL): New variable.
44422         (posix_headers): Remove sys/timeb, ucontext.
44423         (posix2001_headers): New variable.
44424         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
44425         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
44426         index, makecontext, mktemp, pthread_attr_getstackaddr,
44427         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
44428         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
44429         (posix2001_functions): New variable.
44430         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
44431         otherwise.
44432
44433 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44434
44435         add missing include to parse-duration.c
44436         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
44437         * modules/parse-duration (Depends-on): Add xalloc.
44438
44439         fix sed script reading maint.mk
44440         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
44441         (syntax-check-rules): Use it.
44442
44443 2008-12-09  Bruno Haible  <bruno@clisp.org>
44444
44445         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
44446         MacOS X 10.4/PowerPC.
44447         Reported by Simon Josefsson.
44448
44449 2008-12-08  Jim Meyering  <meyering@redhat.com>
44450
44451         work around mingw's lack of some S_IF definitions
44452         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
44453         Reported by Simon Josefsson.
44454
44455 2008-12-08  Bruno Haible  <bruno@clisp.org>
44456
44457         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
44458         applied to variables. Needed on MacOS X 10.4/PowerPC.
44459         Reported by Simon Josefsson.
44460
44461 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
44462         and Eric Blake  <ebb9@byu.net>
44463
44464         assert: honor --enable-assert
44465         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
44466         order to honor --enable-assert, rather than treating it as a
44467         synonym for --disable-assert.
44468
44469 2008-12-08  Jim Meyering  <meyering@redhat.com>
44470
44471         * lib/posixtm.c: Remove now-useless declaration of mktime.
44472
44473         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
44474
44475 2008-12-07  Bruno Haible  <bruno@clisp.org>
44476
44477         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
44478         test_once): Mark functions as static.
44479         * tests/test-tls.c (test_tls): Likewise.
44480
44481 2008-12-07  Bruno Haible  <bruno@clisp.org>
44482
44483         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
44484         iconv_register_autodetect.
44485
44486 2008-12-07  Jim Meyering  <meyering@redhat.com>
44487
44488         posixtm.c: avoid a warning
44489         * lib/posixtm.c (posixtime): Don't initialize tm0.
44490         It's no longer needed to placate gcc4's -Wuninitialized,
44491         and the attempt to placate would elicit a new warning.
44492
44493         unicodeio.c: mark unused parameters
44494         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
44495         (fallback_failure_callback): Likewise.
44496
44497 2008-12-07  Bruno Haible  <bruno@clisp.org>
44498
44499         * gnulib-tool (func_create_testdir): When building the tests
44500         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
44501         Reported by Simon Josefsson.
44502
44503 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44504
44505         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
44506
44507 2008-12-06  Bruno Haible  <bruno@clisp.org>
44508
44509         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
44510         Suggested by Eric Blake.
44511
44512 2008-12-06  Bruno Haible  <bruno@clisp.org>
44513
44514         Fix a c-stack test failure on MacOS X.
44515         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
44516         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
44517         handler for SIGBUS as well.
44518         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
44519         install a signal handler for SIGBUS as well.
44520         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
44521
44522 2008-12-06  Bruno Haible  <bruno@clisp.org>
44523
44524         Advocacy documentation.
44525         * doc/gnulib-intro.texi (Benefits): New section.
44526         * doc/gnulib.texi: Update.
44527
44528 2008-12-06  Bruno Haible  <bruno@clisp.org>
44529
44530         Document the 'manywarnings' module.
44531         * doc/manywarnings.texi: New file.
44532         * doc/gnulib.texi: Include it.
44533
44534 2008-12-05  Eric Blake  <ebb9@byu.net>
44535
44536         tests: silence some gcc warnings
44537         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
44538         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
44539         type mismatches.
44540
44541 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44542             Bruno Haible  <bruno@clisp.org>
44543
44544         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
44545
44546 2008-11-29  Jim Meyering  <meyering@redhat.com>
44547
44548         unicodeio.c: mark unused parameters
44549         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
44550         (fallback_failure_callback): Likewise.
44551
44552         fts: fix a thinko
44553         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
44554         (set_stat_type): Return S_IF*-valued "type" directly.
44555         Prompted by James Youngman's spotting a related bug.
44556         Confirmed by further testing through find.
44557
44558         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
44559         * lib/fts.c (D_TYPE): Define.
44560         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
44561         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
44562         (s_ifmt_shift_bits): New function.
44563         (set_stat_type): New function.
44564         (fts_build): When not calling fts_stat, call set_stat_type
44565         to propagate dirent.d_type info to fts_read caller.
44566         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
44567         fts_statp->st_mode type information may be valid.
44568
44569 2008-11-28  Simon Josefsson  <simon@josefsson.org>
44570
44571         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
44572         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
44573         <sds@gnu.org>.
44574
44575 2008-11-20  Bruno Haible  <bruno@clisp.org>
44576
44577         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
44578         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
44579         INCLUDE_NEXT.
44580         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
44581         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
44582         * modules/math (Makefile.am): Substitute
44583         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
44584         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44585
44586 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
44587             Bruno Haible  <bruno@clisp.org>
44588
44589         * lib/stdint.in.h: Define all type macros so that their expansion is
44590         a single typedef'ed token. Fixes a compilation failure in Boost which
44591         does "using ::int8_t;".
44592
44593 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44594
44595         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
44596         gl_MANYWARN_ALL_GCC.
44597         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
44598         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
44599         * modules/manywarnings: New file.
44600         * MODULES.html.sh: Mention manywarnings module.
44601
44602 2008-11-18  Bruno Haible  <bruno@clisp.org>
44603
44604         * doc/gnulib-tool.texi (Unit tests): New section.
44605
44606 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44607
44608         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
44609         paths like 'lib/po/foo.po'.
44610
44611 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44612
44613         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
44614         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
44615
44616 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44617
44618         * m4/warnings.m4: Use CPPFLAGS to really check whether the
44619         parameter works.
44620
44621 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44622
44623         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
44624
44625 2008-11-17  Bruce Korb  <bkorb@gnu.org>
44626
44627         * modules/parse-duration-tests: New file.
44628         * tests/test-parse-duration.sh: New file.
44629         * tests/test-parse-duration.c: New file.
44630
44631         New module 'parse-duration'.
44632         * lib/parse-duration.h: New file.
44633         * lib/parse-duration.c: New file.
44634         * modules/parse-duration: New file.
44635
44636 2008-11-17  Bruno Haible  <bruno@clisp.org>
44637
44638         * tests/test-select-out.sh: Comment out the first pipe test.
44639         Reported by Simon Josefsson.
44640
44641 2008-11-17  Bruno Haible  <bruno@clisp.org>
44642
44643         * modules/getaddrinfo (Depends-on): Add servent, hostent.
44644         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
44645         gl_HOSTENT.
44646
44647 2008-11-17  Bruno Haible  <bruno@clisp.org>
44648
44649         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
44650         -lnetwork and -lnet. Needed for Haiku and BeOS.
44651
44652 2008-11-16  Bruno Haible  <bruno@clisp.org>
44653
44654         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
44655
44656 2008-11-16  Bruno Haible  <bruno@clisp.org>
44657
44658         Avoid test failure on Haiku.
44659         * tests/test-fsync.c: Include <errno.h>.
44660         (main): Don't require that fsync (0) fails.
44661
44662 2008-11-15  Bruno Haible  <bruno@clisp.org>
44663
44664         New module 'hostent'.
44665         * modules/hostent: New file.
44666         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
44667
44668 2008-11-15  Bruno Haible  <bruno@clisp.org>
44669
44670         New module 'servent'.
44671         * modules/servent: New file.
44672         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
44673
44674 2008-11-15  Bruno Haible  <bruno@clisp.org>
44675
44676         Avoid generating same test program with two different rules.
44677         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
44678         test-frexp to test-frexp-nolibm.
44679         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
44680         test-frexpl to test-frexpl-nolibm.
44681
44682 2008-11-15  Bruno Haible  <bruno@clisp.org>
44683
44684         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
44685         $(FREXPL_LIBM).
44686
44687 2008-11-15  Bruno Haible  <bruno@clisp.org>
44688
44689         * lib/netdb.in.h: Activate the definitions also when the system's
44690         <netdb.h> has 'struct addrinfo'.
44691         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
44692         EAI_OVERFLOW or AI_NUMERICSERV.
44693         * doc/posix-headers/netdb.texi: Document the problem.
44694
44695 2008-11-15  Bruno Haible  <bruno@clisp.org>
44696
44697         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
44698
44699         Make the 'sched' module work on platforms where <sched.h> exists but
44700         is incomplete (such as Haiku).
44701         * lib/sched.in.h; Include the system's <sched.h> if it exists.
44702         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
44703         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
44704         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
44705         HAVE_STRUCT_SCHED_PARAM.
44706         * modules/sched (Depends-on): Add include_next.
44707         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
44708         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
44709         * doc/posix-headers/sched.texi: Document the issue.
44710
44711 2008-11-13  Jim Meyering  <meyering@redhat.com>
44712
44713         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
44714         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
44715         test would fail due to the difference in the Report bugs to ...
44716         line.  The expected address is empty, "<>", while the actual
44717         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
44718
44719 2008-11-12  Bruno Haible  <bruno@clisp.org>
44720
44721         lstat: don't compile lstat.c on systems lacking lstat
44722         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
44723         which don't have lstat; this is handled by lib/sys_stat.in.h already.
44724         Reported by Daniel P. Berrange via Jim Meyering.
44725
44726 2008-11-12  Jim Meyering  <meyering@redhat.com>
44727
44728         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
44729
44730 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44731
44732         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
44733         instead.
44734
44735 2008-11-12  Bruno Haible  <bruno@clisp.org>
44736
44737         * lib/unicodeio.c: Include unistr.h.
44738         (utf8_wctomb): Remove function.
44739         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
44740
44741 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44742
44743         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
44744         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
44745         <bruno@clisp.org>.
44746         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
44747
44748 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44749
44750         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
44751         * doc/gnulib.texi: Add section for warnings.
44752
44753 2008-11-11  Bruno Haible  <bruno@clisp.org>
44754
44755         * lib/sockets.h: Add a comment.
44756
44757 2008-11-11  Karl Berry  <karl@gnu.org>
44758
44759         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
44760
44761 2008-11-11  Eric Blake  <ebb9@byu.net>
44762
44763         fdl.texi: avoid git symlinks
44764         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
44765
44766 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44767
44768         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
44769
44770 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44771
44772         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
44773         (gl_WARN_ADD): Substitute $2 if literal.
44774
44775 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44776
44777         * m4/warning.m4: Remove.
44778
44779 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44780
44781         * m4/warnings.m4: Almost complete rewrite. :-)
44782
44783 2008-11-10  Simon Josefsson  <simon@josefsson.org>
44784
44785         * modules/warnings: New module.
44786         * m4/warnings.m4: New file.
44787         * MODULES.html.sh: Mention warnings module.
44788         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
44789         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44790
44791 2008-11-10  Eric Blake  <ebb9@byu.net>
44792
44793         fdl.texi: make a symlink to the latest version
44794         * doc/standards.texi: Revert today's earlier change.
44795         * doc/fdl-1.2.texi: Rename from old fdl.texi...
44796         * doc/fdl.texi: ...and replace this with a symlink to the newer
44797         fdl-1.3.texi.
44798
44799 2008-11-10  Bruno Haible  <bruno@clisp.org>
44800
44801         * tests/test-select-fd.c (main): Accept the result file name as fourth
44802         argument.
44803         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
44804         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
44805
44806 2008-11-10  Bruno Haible  <bruno@clisp.org>
44807
44808         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
44809         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
44810         as autoconf-substituted macros.
44811         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
44812         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
44813         gl_NETDB_H_DEFAULTS. Set these variables.
44814         * modules/netdb (Makefile.am): Substitute these variables.
44815
44816 2008-11-10  Eric Blake  <ebb9@byu.net>
44817
44818         standards.texi: include correct file for FDL 1.3
44819         * doc/standards.texi (GNU Free Documentation License): Change
44820         include file to pull in FDL 1.3, not 1.2.
44821
44822         fdl.texi: revert accidental change to license
44823         * doc/fdl.texi: This is FDL 1.2, not 1.3.
44824
44825 2008-11-10  Bruno Haible  <bruno@clisp.org>
44826
44827         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
44828         cross-compiling guesses also when the native compile gives no result.
44829
44830 2008-11-10  Bruno Haible  <bruno@clisp.org>
44831
44832         * lib/spawni.c (__spawni): Force variable into the stack.
44833
44834 2008-11-10  Bruno Haible  <bruno@clisp.org>
44835
44836         Add support for Haiku.
44837         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
44838         glibc and BeOS, but also on Haiku.
44839         * lib/fpurge.c (fpurge): Likewise.
44840         * lib/freadable.c (freadable): Likewise.
44841         * lib/freadahead.c (freadahead): Likewise.
44842         * lib/freading.c (freading): Likewise.
44843         * lib/freadptr.c (freadptr): Likewise.
44844         * lib/freadseek.c (freadptrinc): Likewise.
44845         * lib/fseeko.c (rpl_fseeko): Likewise.
44846         * lib/fseterr.c (fseterr): Likewise.
44847         * lib/fwritable.c (fwritable): Likewise.
44848         * lib/fwriting.c (fwriting): Likewise.
44849         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
44850
44851 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44852
44853         * lib/config.charset: Treat Haiku like BeOS.
44854
44855 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44856
44857         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
44858         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
44859
44860 2008-11-08  Bruno Haible  <bruno@clisp.org>
44861
44862         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
44863         AC_CACHE_CHECK.
44864
44865 2008-11-08  Bruno Haible  <bruno@clisp.org>
44866
44867         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
44868
44869 2008-11-08  Bruno Haible  <bruno@clisp.org>
44870
44871         * tests/test-select-fd.c: New file.
44872         * tests/test-select-in.sh: New file.
44873         * tests/test-select-out.sh: New file.
44874         * tests/test-select-stdin.c: New file.
44875         * modules/select-tests (Files): Add the new files.
44876         (Depends-on): Add gettimeofday.
44877         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
44878         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
44879         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
44880
44881 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
44882             Bruno Haible  <bruno@clisp.org>
44883
44884         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
44885
44886 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
44887
44888         * build-aux/pmccabe2html: Added support for C++ source files.
44889
44890 2008-11-05  Ben Pfaff  <blp@gnu.org>
44891
44892         Fix lib/close.c build on Windows.
44893         * modules/close (Files): Add lib/w32sock.h.
44894
44895 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
44896
44897         Accept Bison's NEWS format.
44898         * build-aux/announce-gen (print_news_deltas): Tweak
44899         $re_prefix.
44900
44901 2008-11-04  Bruno Haible  <bruno@clisp.org>
44902
44903         * modules/random_r (Maintainer): Add glibc.
44904
44905 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44906
44907         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
44908         by karl@freefriends.org (Karl Berry).
44909         * doc/alloca.texi: Likewise.
44910         * doc/c-ctype.texi: Likewise.
44911         * doc/c-strcase.texi: Likewise.
44912         * doc/c-strcaseeq.texi: Likewise.
44913         * doc/c-strcasestr.texi: Likewise.
44914         * doc/c-strstr.texi: Likewise.
44915         * doc/c-strtod.texi: Likewise.
44916         * doc/c-strtold.texi: Likewise.
44917         * doc/ctime.texi: Likewise.
44918         * doc/error.texi: Likewise.
44919         * doc/fdl.texi: Likewise.
44920         * doc/gcd.texi: Likewise.
44921         * doc/getdate.texi: Likewise.
44922         * doc/gnulib-intro.texi: Likewise.
44923         * doc/gnulib-tool.texi: Likewise.
44924         * doc/gnulib.texi: Likewise.
44925         * doc/inet_ntoa.texi: Likewise.
44926         * doc/maintain.texi: Likewise.
44927         * doc/make-stds.texi: Likewise.
44928         * doc/quote.texi: Likewise.
44929         * doc/regexprops-generic.texi: Likewise.
44930         * doc/standards.texi: Likewise.
44931         * doc/verify.texi: Likewise.
44932         * doc/visibility.texi: Likewise.
44933         * doc/gnulib.texi (GNU Free Documentation License): Include
44934         fdl-1.3.texi instead of fdl.texi.
44935
44936 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44937
44938         * doc/fdl-1.3.texi: New file, from
44939         <http://www.gnu.org/licenses/fdl-1.3.texi>.
44940         * modules/fdl-1.3: Add.
44941         * MODULES.html.sh: Add fdl-1.3.
44942
44943 2008-11-03  Bruno Haible  <bruno@clisp.org>
44944
44945         Make determination of absolute name of header file work with AIX xlc.
44946         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
44947         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
44948         preprocessing.
44949         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44950         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
44951
44952 2008-11-03  Simon Josefsson  <simon@josefsson.org>
44953
44954         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
44955         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
44956         <ludo@gnu.org>.
44957
44958 2008-11-02  Bruno Haible  <bruno@clisp.org>
44959
44960         Mark 'strpbrk' obsolete.
44961         * modules/strpbrk (Status, Notice): New sections.
44962         * modules/strtok_r (Depends-on): Add strpbrk.
44963
44964 2008-11-02  Bruno Haible  <bruno@clisp.org>
44965
44966         Mark 'strdup' obsolete.
44967         * modules/strdup (Status, Notice): New sections.
44968         * modules/findprog (Depends-on): Add strdup.
44969         * modules/getaddrinfo (Depends-on): Likewise.
44970         * modules/localename (Depends-on): Likewise.
44971         * modules/relocatable-lib (Depends-on): Likewise.
44972         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
44973         * modules/relocatable-prog (Depends-on): Likewise.
44974         * modules/trim (Depends-on): Likewise.
44975         * modules/unictype/gen-ctype (Depends-on): Likewise.
44976         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44977
44978 2008-11-02  Bruno Haible  <bruno@clisp.org>
44979
44980         Mark 'strcspn' obsolete.
44981         * modules/strcspn (Status, Notice): New sections.
44982
44983 2008-11-02  Bruno Haible  <bruno@clisp.org>
44984
44985         Mark 'rmdir' obsolete.
44986         * modules/rmdir (Status, Notice): New sections.
44987         * modules/clean-temp (Depends-on): Add rmdir.
44988         * modules/openat (Depends-on): Likewise.
44989
44990 2008-11-02  Bruno Haible  <bruno@clisp.org>
44991
44992         Mark 'raise' obsolete.
44993         * modules/raise (Status, Notice): New sections.
44994         (Include): Specify <signal.h>.
44995         * modules/stdio (Depends-on): Add raise.
44996         * modules/write (Depends-on): Likewise.
44997
44998 2008-11-02  Bruno Haible  <bruno@clisp.org>
44999
45000         Mark 'memset' obsolete.
45001         * modules/memset (Status, Notice): New sections.
45002
45003 2008-11-02  Bruno Haible  <bruno@clisp.org>
45004
45005         Mark 'memmove' obsolete.
45006         * modules/memmove (Status, Notice): New sections.
45007         * modules/argp (Depends-on): Add memmove.
45008         * modules/argz (Depends-on): Likewise.
45009         * modules/canonicalize (Depends-on): Likewise.
45010         * modules/canonicalize-lgpl (Depends-on): Likewise.
45011         * modules/fts (Depends-on): Likewise.
45012         * modules/getcwd (Depends-on): Likewise.
45013         * modules/human (Depends-on): Likewise.
45014         * modules/regex (Depends-on): Likewise.
45015         * modules/striconveh (Depends-on): Likewise.
45016         * modules/trim (Depends-on): Likewise.
45017         * modules/unistr/u8-move (Depends-on): Likewise.
45018         * modules/unistr/u16-move (Depends-on): Likewise.
45019         * modules/unistr/u32-move (Depends-on): Likewise.
45020
45021 2008-11-02  Bruno Haible  <bruno@clisp.org>
45022
45023         Mark 'memcpy' obsolete.
45024         * modules/memcpy (Status, Notice): New sections.
45025
45026 2008-11-02  Bruno Haible  <bruno@clisp.org>
45027
45028         Mark 'memcmp' obsolete.
45029         * modules/memcmp (Status, Notice): New sections.
45030         * modules/argmatch (Depends-on): Add memchr.
45031         * modules/backupfile (Depends-on): Likewise.
45032         * modules/c-strcasestr (Depends-on): Likewise.
45033         * modules/crypto/des (Depends-on): Likewise.
45034         * modules/csharpcomp (Depends-on): Likewise.
45035         * modules/fnmatch (Depends-on): Likewise.
45036         * modules/git-merge-changelog (Depends-on): Likewise.
45037         * modules/isnand (Depends-on): Likewise.
45038         * modules/isnand-nolibm (Depends-on): Likewise.
45039         * modules/isnanf (Depends-on): Likewise.
45040         * modules/isnanf-nolibm (Depends-on): Likewise.
45041         * modules/isnanl (Depends-on): Likewise.
45042         * modules/isnanl-nolibm (Depends-on): Likewise.
45043         * modules/mbchar (Depends-on): Likewise.
45044         * modules/memcoll (Depends-on): Likewise.
45045         * modules/quotearg (Depends-on): Likewise.
45046         * modules/regex (Depends-on): Likewise.
45047         * modules/relocatable-prog (Depends-on): Likewise.
45048         * modules/same (Depends-on): Likewise.
45049         * modules/signbit (Depends-on): Likewise.
45050         * modules/strcasestr-simple (Depends-on): Likewise.
45051         * modules/unictype/gen-ctype (Depends-on): Likewise.
45052         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
45053         * modules/uniname/uniname (Depends-on): Likewise.
45054         * modules/unistr/u8-cmp (Depends-on): Likewise.
45055
45056 2008-11-02  Bruno Haible  <bruno@clisp.org>
45057
45058         Mark 'memchr' obsolete.
45059         * modules/memchr (Status, Notice): New sections.
45060         * modules/argp (Depends-on): Add memchr.
45061         * modules/base64 (Depends-on): Likewise.
45062         * modules/c-strcasestr (Depends-on): Likewise.
45063         * modules/chdir-long (Depends-on): Likewise.
45064         * modules/fnmatch (Depends-on): Likewise.
45065         * modules/getsubopt (Depends-on): Likewise.
45066         * modules/git-merge-changelog (Depends-on): Likewise.
45067         * modules/glob (Depends-on): Likewise.
45068         * modules/strcasestr-simple (Depends-on): Likewise.
45069         * modules/strnlen (Depends-on): Likewise.
45070
45071 2008-11-02  Bruno Haible  <bruno@clisp.org>
45072
45073         Mark 'atexit' obsolete.
45074         * modules/atexit (Status, Notice): New sections.
45075         * modules/chdir-long (Depends-on): Add atexit.
45076         * modules/wait-process (Depends-on): Likewise.
45077
45078 2008-11-02  Bruno Haible  <bruno@clisp.org>
45079
45080         * gnulib-tool: New option --with-obsolete.
45081         (func_usage): Document it.
45082         (func_modules_transitive_closure): Drop obsolete dependencies if
45083         incobsolete is not true.
45084         (func_import): Read and save the incobsolete variable to the cache.
45085
45086 2008-11-02  Bruno Haible  <bruno@clisp.org>
45087
45088         * modules/TEMPLATE-EXTENDED: New field 'Status'.
45089         * gnulib-tool: New option --extract-status.
45090         (func_usage): Document it.
45091         (sed_extract_prog): Recognize it.
45092         (func_get_status): New function.
45093
45094 2008-10-30  Simon Josefsson  <simon@josefsson.org>
45095
45096         * modules/sockets (License): Change from LGPL to LGPLv2+.
45097
45098 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45099
45100         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
45101
45102 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45103
45104         * MODULES.html.sh (Support for systems lacking POSIX:2001):
45105         Mention times and sys_times.
45106         * modules/sys_times, modules/sys_times-tests: New modules.
45107         * modules/times, modules/times-tests: Likewise
45108         * m4/sys_times_h.m4: New file.
45109         * lib/sys_times.in.h: Likewise
45110         * lib/times.c: Likewise.
45111         * tests/test-sys_times.c: Likewise.
45112         * tests/test-times.c: Likewise.
45113         * doc/posix-headers/sys_times.texi: Update.
45114         * doc/posix-functions/times.texi: Update.
45115
45116 2008-10-28  Jim Meyering  <meyering@redhat.com>
45117
45118         * modules/tempname (Depends-on): Add lstat.
45119
45120         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
45121
45122 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45123
45124         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
45125         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
45126         using idiom used elsewhere in gnulib.
45127
45128 2008-10-27  Jim Meyering  <meyering@redhat.com>
45129
45130         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
45131
45132 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45133
45134         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
45135         TESTS_ENVIRONMENT, for shell scripts that needs to call built
45136         programs.
45137         * tests/test-argp-2.sh: Use $EXEEXT when needed.
45138
45139 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45140
45141         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
45142
45143 2008-10-27  Bruno Haible  <bruno@clisp.org>
45144
45145         * tests/test-lstat.c: Include <stdio.h>.
45146
45147 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45148
45149         * modules/lstat-tests: New module.
45150         * tests/test-lstat.c: New file.
45151
45152 2008-10-26  Jim Meyering  <meyering@redhat.com>
45153
45154         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
45155
45156 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45157             Bruno Haible  <bruno@clisp.org>
45158
45159         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
45160         * modules/configmake (Include): Add a note that the include must come
45161         after all system headers.
45162         * lib/javaversion.c: Include configmake.h after all other includes.
45163
45164 2008-10-26  Bruno Haible  <bruno@clisp.org>
45165
45166         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
45167         HAVE_STRUCT_RANDOM_DATA to 1.
45168         (gl_STDLIB_H): Simplify.
45169
45170 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45171
45172         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
45173         substitute HAVE_STRUCT_RANDOM_DATA.
45174         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
45175         random_data.
45176         * modules/stdlib (Makefile.am): Substitute
45177         HAVE_STRUCT_RANDOM_DATA.
45178
45179 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45180
45181         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
45182         * doc/gnulib-intro.texi (Copyright): Likewise.
45183
45184 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45185
45186         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
45187         findings.
45188
45189 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
45190             Bruno Haible  <bruno@clisp.org>
45191
45192         * lib/unistd.in.h: Include <winsock2.h>.
45193         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
45194         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
45195         Provide dummy declarations.
45196         (gethostname): Override.
45197         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
45198         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
45199         gl_PREREQ_SYS_H_WINSOCK2.
45200         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
45201         * doc/posix-functions/gethostname.texi: More details.
45202
45203 2008-10-25  Bruno Haible  <bruno@clisp.org>
45204
45205         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
45206         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
45207         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
45208
45209         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
45210         here ...
45211         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
45212         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
45213         gl_UNISTD_H_DEFAULTS.
45214
45215 2008-10-25  Eric Blake  <ebb9@byu.net>
45216
45217         signbit: avoid spurious compiler failure
45218         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
45219         declarations inside function.
45220
45221 2008-10-24  Simon Josefsson  <simon@josefsson.org>
45222             Bruno Haible  <bruno@clisp.org>
45223
45224         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
45225         * modules/random_r (Depends-on): Add stdint.
45226
45227 2008-10-24  Bruno Haible  <bruno@clisp.org>
45228
45229         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
45230         Eggert.
45231         * modules/strerror (License): Likewise.
45232
45233 2008-10-24  Jim Meyering  <meyering@redhat.com>
45234
45235         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
45236         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
45237
45238 2008-10-24  Eric Blake  <ebb9@byu.net>
45239
45240         getgroups: fix compilation when getgroups is available
45241         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
45242         but with <config.h> override of getgroups disabled.
45243
45244 2008-10-24  Simon Josefsson  <simon@josefsson.org>
45245
45246         * doc/gnulib.texi (Header files): Add note about C++ problems.
45247         Explained by Bruno Haible <bruno@clisp.org>.
45248
45249 2008-10-23  Bruno Haible  <bruno@clisp.org>
45250
45251         Define a dummy SA_NODEFER macro on Interix.
45252         * lib/signal.in.h (SA_NODEFER): Define fallback.
45253         Reported by Aleksey Cheusov <cheusov@tut.by> via
45254         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
45255
45256 2008-10-23  Bruno Haible  <bruno@clisp.org>
45257
45258         * modules/freadahead (License): Change to LGPLv2+.
45259         Suggested by Simon Josefsson.
45260
45261 2008-10-23  Jim Meyering  <meyering@redhat.com>
45262
45263         random_r: new module
45264         * modules/random_r: New file.
45265         * m4/random_r.m4: New file.
45266         * lib/random_r.c: New file, from glibc.
45267         * modules/random_r-tests: New file.
45268         * tests/test-random_r.c: New file.
45269         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
45270          Declare.
45271         (RAND_MAX): Define.
45272         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
45273         * modules/stdlib: Substitute them, too.
45274         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
45275         * doc/glibc-functions/initstate_r.texi: Mention the new module.
45276         * doc/glibc-functions/random_r.texi: Likewise.
45277         * doc/glibc-functions/setstate_r.texi: Likewise.
45278         * doc/glibc-functions/srandom_r.texi: Likewise.
45279         * config/srclist.txt: Mention it.
45280
45281 2008-10-23  David Lutterkort  <lutter@redhat.com>
45282
45283         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
45284         link requirement
45285
45286 2008-10-23  Jim Meyering  <meyering@redhat.com>
45287
45288         selinux-h: mark parameters of stub functions as intentionally unused
45289         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
45290         * lib/se-context.in.h: Likewise.
45291
45292 2008-10-22  Simon Josefsson  <simon@josefsson.org>
45293
45294         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
45295
45296 2008-10-22  Simon Josefsson  <simon@josefsson.org>
45297
45298         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
45299
45300 2008-10-22  Eric Blake  <ebb9@byu.net>
45301
45302         glthread/thread: avoid compiler warning
45303         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
45304         Add unreachable abort to silence compiler.
45305
45306 2008-10-22  Eric Blake  <ebb9@byu.net>
45307
45308         netdb: also supply struct addrinfo for cygwin 1.5.x
45309         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
45310         older cygwin.
45311         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
45312         cygwin.
45313         * doc/posix-headers/netdb.texi (netdb.h): Document this.
45314
45315 2008-10-22  Bruno Haible  <bruno@clisp.org>
45316
45317         * users.txt: Update entry about pspp.
45318
45319 2008-10-21  Bruno Haible  <bruno@clisp.org>
45320
45321         Simplification.
45322         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
45323         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
45324
45325         Simplification.
45326         * lib/ioctl.c (ioctl): Don't undefine.
45327         * lib/socket.c (socket): Don't undefine.
45328
45329         Remove unused module indicator macros.
45330         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
45331         GNULIB_$1 as a C macro.
45332
45333         * doc/posix-functions/close.texi: Undo last change.
45334         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
45335         Windows platforms.
45336
45337 2008-10-21  Bruno Haible  <bruno@clisp.org>
45338
45339         Add gethostname() declaration to <unistd.h>.
45340         * lib/unistd.in.h (gethostname): New declaration.
45341         * lib/gethostname.c: Include <unistd.h>.
45342         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
45343         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
45344         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
45345         and HAVE_GETHOSTNAME.
45346         * modules/gethostname (Depends-on): Add unistd.
45347         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45348         (Include): Specify <unistd.h>.
45349         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
45350         HAVE_GETHOSTNAME.
45351         * tests/test-gethostname.c: Include <unistd.h> first.
45352
45353 2008-10-21  Bruno Haible  <bruno@clisp.org>
45354
45355         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
45356         * modules/select-tests (Depends-on): Likewise.
45357         Reported by Simon Josefsson.
45358
45359 2008-10-21  Simon Josefsson  <simon@josefsson.org>
45360
45361         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
45362         * lib/accept.c: New file, based on winsock.c.
45363         * lib/bind.c: New file, based on winsock.c.
45364         * lib/connect.c: New file, based on winsock.c.
45365         * lib/getpeername.c: New file, based on winsock.c.
45366         * lib/getsockname.c: New file, based on winsock.c.
45367         * lib/getsockopt.c: New file, based on winsock.c.
45368         * lib/ioctl.c: New file, based on winsock.c.
45369         * lib/listen.c: New file, based on winsock.c.
45370         * lib/recv.c: New file, based on winsock.c.
45371         * lib/recvfrom.c: New file, based on winsock.c.
45372         * lib/send.c: New file, based on winsock.c.
45373         * lib/sendto.c: New file, based on winsock.c.
45374         * lib/setsockopt.c: New file, based on winsock.c.
45375         * lib/shutdown.c: New file, based on winsock.c.
45376         * lib/socket.c: New file, based on winsock.c.
45377         * lib/w32sock.h: New file, based on winsock.c.
45378         * lib/winsock.c: Remove file.
45379         * modules/accept: Likewise.
45380         * modules/bind: Likewise.
45381         * modules/connect: Likewise.
45382         * modules/getpeername: Likewise.
45383         * modules/getsockname: Likewise.
45384         * modules/getsockopt: Likewise.
45385         * modules/ioctl: Likewise.
45386         * modules/listen: Likewise.
45387         * modules/recv: Likewise.
45388         * modules/recvfrom: Likewise.
45389         * modules/send: Likewise.
45390         * modules/sendto: Likewise.
45391         * modules/setsockopt: Likewise.
45392         * modules/shutdown: Likewise.
45393         * modules/socket: Use socket.c instead of winsock.c.
45394         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
45395         * doc/posix-functions/accept.texi: Doc fix.
45396         * doc/posix-functions/bind.texi: Doc fix.
45397         * doc/posix-functions/close.texi: Doc fix.
45398         * doc/posix-functions/connect.texi: Doc fix.
45399         * doc/posix-functions/getpeername.texi: Doc fix.
45400         * doc/posix-functions/getsockname.texi: Doc fix.
45401         * doc/posix-functions/getsockopt.texi: Doc fix.
45402         * doc/posix-functions/ioctl.texi: Doc fix.
45403         * doc/posix-functions/listen.texi: Doc fix.
45404         * doc/posix-functions/recv.texi: Doc fix.
45405         * doc/posix-functions/recvfrom.texi: Doc fix.
45406         * doc/posix-functions/send.texi: Doc fix.
45407         * doc/posix-functions/sendto.texi: Doc fix.
45408         * doc/posix-functions/setsockopt.texi: Doc fix.
45409         * doc/posix-functions/shutdown.texi: Doc fix.
45410         * doc/posix-functions/socket.texi: Doc fix.
45411
45412 2008-10-20  Bruno Haible  <bruno@clisp.org>
45413
45414         Take into account the role of SIGABRT_COMPAT on Windows 2008.
45415         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
45416         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
45417         as an alias for SIGABRT.
45418         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
45419         (sigaction): Map it to SIGABRT.
45420         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
45421
45422 2008-10-20  Bruno Haible  <bruno@clisp.org>
45423
45424         * lib/fts.c: Don't include lstat.h.
45425         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
45426
45427         Move the lstat() declaration to <sys/stat.h>.
45428         * lib/lstat.h: Remove file.
45429         * lib/sys_stat.in.h: Add special invocation convention.
45430         (lstat): New declaration.
45431         * lib/lstat.c (orig_lstat): New function.
45432         (rpl_lstat): Use orig_lstat instead of lstat.
45433         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
45434         AC_C_INLINE. Set REPLACE_LSTAT.
45435         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
45436         and REPLACE_LSTAT.
45437         * modules/lstat (Files): Remove lib/lstat.h.
45438         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
45439         (Include): Specify <sys/stat.h> instead of lstat.h.
45440         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
45441         REPLACE_LSTAT.
45442         * NEWS: Mention the change.
45443
45444 2008-10-20  Bruno Haible  <bruno@clisp.org>
45445
45446         * modules/posix_spawn-tests: New file.
45447         * tests/test-posix_spawn3.c: New file.
45448
45449 2008-10-20  Bruno Haible  <bruno@clisp.org>
45450
45451         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
45452         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
45453         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
45454         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
45455         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
45456
45457 2008-10-20  Bruno Haible  <bruno@clisp.org>
45458
45459         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
45460         of posix_spawn on AIX 5.3.
45461
45462 2008-10-20  Bruno Haible  <bruno@clisp.org>
45463
45464         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
45465
45466 2008-10-20  Bruno Haible  <bruno@clisp.org>
45467
45468         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
45469         of AC_LANG_PROGRAM.
45470
45471 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45472
45473         * lib/netdb.in.h: Don't define GNU specific constants until they
45474         are supported or needed.  Reported by Bruno Haible
45475         <bruno@clisp.org>.
45476
45477 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45478
45479         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
45480
45481 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45482
45483         * lib/getaddrinfo.h: Remove file.
45484         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
45485         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
45486         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
45487         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
45488         * modules/netdb: Substitute GNULIB_GETADDRINFO.
45489         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
45490         * tests/test-getaddrinfo.c: Likewise.
45491         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
45492         * NEWS: Mention change.
45493
45494 2008-10-19  Bruno Haible  <bruno@clisp.org>
45495
45496         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
45497
45498 2008-10-19  Bruno Haible  <bruno@clisp.org>
45499
45500         * lib/wait-process.c: Include simply <sys/wait.h>.
45501         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
45502         WIFSTOPPED): Remove fallback definitions.
45503         * modules/wait-process (Depends-on): Add sys_wait.
45504
45505         New module 'sys_wait'.
45506         * modules/sys_wait: New file.
45507         * lib/sys_wait.in.h: New file, partially copied from
45508         lib/wait-process.c.
45509         * m4/sys_wait_h.m4: New file.
45510         * doc/posix-headers/sys_wait.texi: Mention the new module.
45511
45512 2008-10-19  Bruno Haible  <bruno@clisp.org>
45513
45514         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
45515
45516 2008-10-19  Bruno Haible  <bruno@clisp.org>
45517
45518         Assume that waitpid() fills an 'int' status, not a 'union wait'.
45519         * lib/wait-process.c (WAIT_T): Remove type.
45520         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
45521         (wait_subprocess): Update.
45522
45523 2008-10-19  Bruno Haible  <bruno@clisp.org>
45524
45525         New module 'atoll'.
45526         * modules/atoll: New file.
45527         * lib/stdlib.in.h (atoll): New declaration.
45528         * lib/atoll.c: New file, from glibc with modifications.
45529         * m4/atoll.m4: New file.
45530         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
45531         HAVE_ATOLL.
45532         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
45533         * doc/posix-functions/atoll.texi: Mention the new module.
45534
45535 2008-10-19  Bruno Haible  <bruno@clisp.org>
45536
45537         Add strtoull() declaration to <stdlib.h>.
45538         * lib/stdlib.in.h (strtoull): New declaration.
45539         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
45540         Set HAVE_STRTOULL.
45541         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
45542         HAVE_STRTOULL.
45543         * modules/strtoull (Depends-on): Add stdlib.
45544         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45545         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
45546         HAVE_STRTOULL.
45547
45548 2008-10-19  Bruno Haible  <bruno@clisp.org>
45549
45550         Add strtoll() declaration to <stdlib.h>.
45551         * lib/stdlib.in.h (strtoll): New declaration.
45552         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
45553         Set HAVE_STRTOLL.
45554         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
45555         HAVE_STRTOLL.
45556         * modules/strtoll (Depends-on): Add stdlib.
45557         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45558         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
45559
45560 2008-10-19  Bruno Haible  <bruno@clisp.org>
45561
45562         * modules/bcopy (Depends-on): Add strings.
45563         (Include): Specify <strings.h>.
45564
45565 2008-10-19  Bruno Haible  <bruno@clisp.org>
45566
45567         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
45568
45569 2008-10-19  Bruno Haible  <bruno@clisp.org>
45570
45571         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
45572         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
45573         mingw.
45574
45575 2008-10-19  Bruno Haible  <bruno@clisp.org>
45576
45577         * lib/atanl.c: Don't include isnanl.h.
45578         * lib/cosl.c: Likewise.
45579         * lib/ldexpl.c: Likewise.
45580         * lib/logl.c: Likewise.
45581         * lib/sinl.c: Likewise.
45582         * lib/sqrtl.c: Likewise.
45583         * lib/tanl.c: Likewise.
45584
45585         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
45586         * lib/isnanf.h: Remove file.
45587         * lib/isnand.h: Remove file.
45588         * lib/isnanl.h: Remove file.
45589         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
45590         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
45591         macros.
45592         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
45593         HAVE_ISNANF, don't define it as a C macro.
45594         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
45595         HAVE_ISNAND, don't define it as a C macro.
45596         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
45597         HAVE_ISNANL, don't define it as a C macro.
45598         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
45599         HAVE_ISNAN[FDL].
45600         * modules/isnanf (Files): Remove lib/isnanf.h.
45601         (Depends-on): Add math.
45602         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45603         (Include): Specify <math.h> instead of isnanf.h.
45604         * modules/isnand (Files): Remove lib/isnand.h.
45605         (Depends-on): Add math.
45606         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45607         (Include): Specify <math.h> instead of isnand.h.
45608         * modules/isnanl (Files): Remove lib/isnanl.h.
45609         (Depends-on): Add math.
45610         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45611         (Include): Specify <math.h> instead of isnanl.h.
45612         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
45613         HAVE_ISNAN[FDL].
45614         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
45615         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
45616         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
45617         * NEWS: Mention the change.
45618
45619 2008-10-18  Bruno Haible  <bruno@clisp.org>
45620
45621         Add getusershell(), setusershell(), endusershell() declarations to
45622         <unistd.h>.
45623         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
45624         declarations.
45625         * lib/getusershell.c: Include unistd.h.
45626         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
45627         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45628         HAVE_GETUSERSHELL.
45629         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
45630         and HAVE_GETUSERSHELL.
45631         * modules/getusershell (Depends-on): Add unistd, extensions.
45632         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45633         (Include): Specify <unistd.h>.
45634         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
45635         HAVE_GETUSERSHELL.
45636
45637 2008-10-18  Bruno Haible  <bruno@clisp.org>
45638
45639         Add a getloadavg() declaration to <stdlib.h>.
45640         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
45641         getloadavg declaration.
45642         (getloadavg): New declaration.
45643         * lib/getloadavg.c: Include <stdlib.h> first.
45644         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
45645         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
45646         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
45647         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
45648         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45649         * modules/getloadavg (Depends-on): Add stdlib, extensions.
45650         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45651         (Include): Specify <stdlib.h>.
45652         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
45653         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45654
45655 2008-10-18  Bruno Haible  <bruno@clisp.org>
45656
45657         * lib/dirchownmod.c: Don't include lchmod.h.
45658
45659         Move the lchmod() declaration to <sys/stat.h>.
45660         * lib/lchmod.h: Remove file.
45661         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
45662         (lchmod): New declaration, moved here from lib/lchown.h.
45663         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
45664         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
45665         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
45666         and HAVE_LCHMOD.
45667         * modules/lchmod (Files): Remove lib/lchmod.h.
45668         (Depends-on): Add sys_stat, extensions.
45669         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
45670         (Include): Specify <sys/stat.h> instead of lchmod.h.
45671         * modules/sys_stat (Depends-on): Add link-warning.
45672         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
45673         definition of GL_LINK_WARNING.
45674         * NEWS: Mention the change.
45675
45676 2008-10-18  Bruno Haible  <bruno@clisp.org>
45677
45678         * lib/fchdir.c: Don't include dirfd.h.
45679         * lib/fts.c: Likewise.
45680         * lib/getcwd.c: Likewise.
45681         * lib/glob.c: Likewise.
45682
45683         Move the dirfd() declaration to <dirent.h>.
45684         * lib/dirfd.h: Remove file.
45685         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
45686         (dirfd): New declaration.
45687         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
45688         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
45689         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
45690         HAVE_DECL_DIRFD.
45691         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
45692         HAVE_DECL_DIRFD.
45693         * modules/dirfd (Files): Remove lib/dirfd.h.
45694         (Depends-on): Add dirent, extensions.
45695         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
45696         (Include): Specify <dirent.h> instead of dirfd.h.
45697         * modules/dirent (Depends-on): Add link-warning.
45698         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
45699         definition of GL_LINK_WARNING.
45700         * NEWS: Mention the change.
45701
45702 2008-10-18  Bruno Haible  <bruno@clisp.org>
45703
45704         Move the euidaccess() declaration to <unistd.h>.
45705         * lib/euidaccess.h: Remove file.
45706         * lib/unistd.in.h (euidaccess): New declaration.
45707         * lib/euidaccess.c: Don't include euidaccess.h.
45708         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
45709         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
45710         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
45711         and HAVE_EUIDACCESS.
45712         * modules/euidaccess (Files): Remove lib/euidaccess.h.
45713         (Depends-on): Add unistd.
45714         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45715         (Include): Specify <unistd.h> instead of euidaccess.h.
45716         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
45717         HAVE_EUIDACCESS.
45718         * NEWS: Mention the change.
45719
45720 2008-10-18  Bruno Haible  <bruno@clisp.org>
45721
45722         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
45723
45724         Move the getdomainname() declaration to <unistd.h>.
45725         * lib/getdomainname.h: Remove file.
45726         * lib/unistd.in.h (getdomainname): New declaration.
45727         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
45728         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
45729         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45730         HAVE_GETDOMAINNAME.
45731         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45732         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
45733         * modules/getdomainname (Files): Remove lib/getdomainname.h.
45734         (Depends-on): Add unistd, extensions.
45735         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45736         (Includes): Specify <unistd.h> instead of getdomainname.h.
45737         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
45738         HAVE_GETDOMAINNAME.
45739         * NEWS: Mention the change.
45740
45741 2008-10-18  Bruno Haible  <bruno@clisp.org>
45742
45743         * modules/dirent: New file.
45744         * m4/dirent_h.m4: New file.
45745         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
45746         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
45747         * modules/fchdir (Files): Remove lib/dirent.in.h.
45748         (Depends-on): Add dirent.
45749         (Makefile.am): Move rules to modules/dirent.
45750         * doc/posix-headers/dirent.texi: Mention the new module.
45751
45752 2008-10-18  Bruno Haible  <bruno@clisp.org>
45753
45754         Avoid -Wunused-parameter warnings in public gnulib header files.
45755         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
45756         macro.
45757         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
45758
45759 2008-10-18  Bruno Haible  <bruno@clisp.org>
45760
45761         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
45762         * doc/glibc-functions/error.texi: Mention the module 'error'.
45763         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
45764         * doc/glibc-functions/getdomainname.texi: Mention the module
45765         'getdomainname'.
45766         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
45767         * doc/glibc-functions/getpagesize.texi: Mention the module
45768         'getpagesize'.
45769         * doc/glibc-functions/getusershell.texi: Mention the module
45770         'getusershell'.
45771         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
45772         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
45773         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
45774         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
45775         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
45776         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
45777         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
45778         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
45779         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
45780         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
45781         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
45782         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
45783         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
45784         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
45785
45786 2008-10-17  Bruno Haible  <bruno@clisp.org>
45787
45788         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
45789         HP-UX and IRIX, use -0.0L.
45790         * tests/test-ceill.c (minus_zero): Likewise.
45791         * tests/test-floorl.c (minus_zero): Likewise.
45792         * tests/test-frexpl.c (minus_zero): Likewise.
45793         * tests/test-isnan.c (minus_zerol): Likewise.
45794         * tests/test-isnanl.h (minus_zero): Likewise.
45795         * tests/test-ldexpl.c (minus_zero): Likewise.
45796         * tests/test-roundl.c (minus_zero): Likewise.
45797         * tests/test-signbit.c (minus_zerol): Likewise.
45798         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
45799         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
45800         * tests/test-truncl.c (minus_zero): Likewise.
45801         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
45802         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
45803         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
45804         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
45805
45806 2008-10-17  Bruno Haible  <bruno@clisp.org>
45807
45808         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
45809         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
45810         that it gets activated only for gcc >= 3.0.
45811         * lib/dirent.in.h: Likewise.
45812         * lib/errno.in.h: Likewise.
45813         * lib/fcntl.in.h: Likewise.
45814         * lib/float.in.h: Likewise.
45815         * lib/iconv.in.h: Likewise.
45816         * lib/inttypes.in.h: Likewise.
45817         * lib/locale.in.h: Likewise.
45818         * lib/math.in.h: Likewise.
45819         * lib/netdb.in.h: Likewise.
45820         * lib/netinet_in.in.h: Likewise.
45821         * lib/search.in.h: Likewise.
45822         * lib/signal.in.h: Likewise.
45823         * lib/spawn.in.h: Likewise.
45824         * lib/stdarg.in.h: Likewise.
45825         * lib/stdint.in.h: Likewise.
45826         * lib/stdio.in.h: Likewise.
45827         * lib/stdlib.in.h: Likewise.
45828         * lib/string.in.h: Likewise.
45829         * lib/strings.in.h: Likewise.
45830         * lib/sys_file.in.h: Likewise.
45831         * lib/sys_ioctl.in.h: Likewise.
45832         * lib/sys_select.in.h: Likewise.
45833         * lib/sys_socket.in.h: Likewise.
45834         * lib/sys_stat.in.h: Likewise.
45835         * lib/sys_time.in.h: Likewise.
45836         * lib/sysexits.in.h: Likewise.
45837         * lib/time.in.h: Likewise.
45838         * lib/unistd.in.h: Likewise.
45839         * lib/wchar.in.h: Likewise.
45840         * lib/wctype.in.h: Likewise.
45841         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45842
45843 2008-10-17  Jim Meyering  <meyering@redhat.com>
45844
45845         ignore-value: don't depend on inline module
45846         * modules/ignore-value (Depends-on): Remove 'inline'.
45847         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
45848         Suggestion from Bruno Haible.
45849
45850 2008-10-17  Bruno Haible  <bruno@clisp.org>
45851
45852         New implementation of condition variables for Win32.
45853         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
45854         (gl_linked_waitqueue_t): New type.
45855         (gl_cond_t): Use it.
45856         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
45857         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
45858         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
45859         (glthread_cond_init_func, glthread_cond_wait_func,
45860         glthread_cond_timedwait_func, glthread_cond_signal_func,
45861         glthread_cond_broadcast_func, glthread_cond_destroy_func):
45862         Reimplemented on the basis of gl_linked_waitqueue_t.
45863         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
45864         gl_waitqueue_t.
45865         (gl_rwlock_t): Update.
45866         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
45867
45868 2008-10-17  Simon Josefsson  <simon@josefsson.org>
45869
45870         * modules/recvfrom (Depends-on): Add dependency on getpeername.
45871         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45872
45873 2008-10-17  Jim Meyering  <meyering@redhat.com>
45874
45875         ignore-value: new module
45876         * modules/ignore-value: New file.
45877         * lib/ignore-value.h: New file.
45878         * MODULES.html.sh (Compiler warning management): New section,
45879         just for this module.  More to come.
45880
45881 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45882
45883         open-safer.c: avoid 'signed and unsigned in conditional...' warning
45884         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
45885         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
45886
45887 2008-10-16  Jim Meyering  <meyering@redhat.com>
45888
45889         openat-die.c: avoid 'no previous prototype' warning
45890         * lib/openat-die.c: Include "openat.h".
45891         Reported by Reuben Thomas <rrt@sc3d.org>.
45892
45893 2008-10-16  Simon Josefsson  <simon@josefsson.org>
45894
45895         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
45896         * lib/netdb.in.h: Fix typo.
45897         Reported by Bruno Haible  <bruno@clisp.org>
45898
45899         * lib/netdb.in.h: Include sys/socket.h for platforms without
45900         netdb.h, to get structures like hostent on MinGW.
45901         * modules/netdb (Depends-on): Add sys_socket.
45902
45903 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45904
45905         * modules/netdb, modules/netdb-tests: New file.
45906         * m4/netdb_h.m4: New file.
45907         * lib/netdb.in.h: Add, currently just an empty file pending
45908         definitions.
45909         * tests/test-netdb.c: New file.
45910         * doc/posix-headers/netdb.texi: Mention that we replace it if
45911         needed.
45912         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45913         netdb.
45914
45915 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45916
45917         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
45918         with code.
45919
45920 2008-10-13  Bruno Haible  <bruno@clisp.org>
45921
45922         * lib/glthread/cond.c (glthread_cond_wait_func,
45923         glthread_cond_timedwait_func): Add a comment.
45924
45925 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45926
45927         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
45928         * tests/test-select.c: Likewise,
45929
45930 2008-10-13  Bruno Haible  <bruno@clisp.org>
45931
45932         * lib/glthread/cond.c (glthread_cond_wait_func,
45933         glthread_cond_timedwait_func): Fix variable name.
45934         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45935
45936 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
45937
45938         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
45939         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
45940         struct sockaddr.sa_len.
45941         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
45942
45943 2008-10-13  Simon Josefsson  <simon@josefsson.org>
45944
45945         * build-aux/pmccabe2html: Add css and css_url parameters.
45946
45947 2008-10-12  Bruno Haible  <bruno@clisp.org>
45948
45949         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
45950         calling aclx_get.
45951         Reported by Rainer Tammer <tammer@tammer.net>.
45952
45953 2008-10-12  Bruno Haible  <bruno@clisp.org>
45954
45955         Use msvcrt aware primitives for creation/termination of Win32 threads.
45956         * lib/glthread/thread.c: Include <process.h>.
45957         (glthread_create_func): Use _beginthreadex instead of CreateThread.
45958         (wrapper_func): Update signature.
45959         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
45960
45961 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45962             Bruno Haible  <bruno@clisp.org>
45963
45964         Provide a Win32 implementation of the 'cond' module.
45965         * lib/glthread/cond.h [USE_WIN32]: New implementation.
45966         * lib/glthread/cond.c (glthread_cond_init_func,
45967         glthread_cond_wait_func, glthread_cond_timedwait_func,
45968         glthread_cond_signal_func, glthread_cond_broadcast_func,
45969         glthread_cond_destroy_func) [USE_WIN32]: New functions.
45970         * modules/cond (Dependencies): Add gettimeofday.
45971
45972 2008-10-11  Bruno Haible  <bruno@clisp.org>
45973
45974         Make sleep work on older versions of mingw.
45975         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
45976         only whether it exists.
45977         * doc/posix-functions/sleep.texi: Mention the problem with older
45978         versions of mingw.
45979
45980 2008-10-11  Bruno Haible  <bruno@clisp.org>
45981
45982         New module 'shutdown'.
45983         * modules/shutdown: New file.
45984         * lib/sys_socket.in.h (shutdown): New declaration.
45985         * lib/winsock.c (shutdown): New function.
45986         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
45987         GNULIB_SHUTDOWN.
45988         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
45989         * doc/posix-functions/shutdown.texi: Document the new module.
45990
45991 2008-10-11  Jim Meyering  <meyering@redhat.com>
45992
45993         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
45994
45995 2008-10-11  Bruno Haible  <bruno@clisp.org>
45996
45997         New module 'fclose'.
45998         * modules/fclose: New file.
45999         * lib/stdio.in.h (fclose): New declaration.
46000         * lib/fclose.c: New file.
46001         * m4/fclose.m4: New file.
46002         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
46003         REPLACE_FCLOSE.
46004         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
46005         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
46006         REPLACE_FCLOSE.
46007         * modules/close (Depends-on): fclose.
46008         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
46009
46010 2008-10-11  Bruno Haible  <bruno@clisp.org>
46011
46012         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
46013         set errno and don't call _close.
46014
46015 2008-10-10  Bruno Haible  <bruno@clisp.org>
46016
46017         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
46018         ACL, not afterwards. Fixes test failure on Cygwin.
46019
46020 2008-10-09  Ben Pfaff  <blp@gnu.org>
46021
46022         * build-aux/announce-gen: Fix gnulib version related part of usage
46023         message.  Die with a useful error message if no tarballs are
46024         found.
46025
46026 2008-10-10  Jim Meyering  <meyering@redhat.com>
46027
46028         bootstrap: use git's --depth=N option only if it's supported
46029         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
46030         recognize the --depth option.  Reported by Pádraig Brady.
46031
46032 2008-10-09  Bruno Haible  <bruno@clisp.org>
46033
46034         New module 'ioctl'.
46035         * modules/ioctl: New file.
46036         * lib/sys_socket.in.h (ioctl): Remove declaration.
46037         * lib/winsock.c: Include <sys/ioctl.h>.
46038         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
46039         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
46040         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
46041         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
46042         * doc/posix-functions/ioctl.texi: Mention the new module.
46043
46044 2008-10-09  Bruno Haible  <bruno@clisp.org>
46045
46046         New module 'sys_ioctl'.
46047         * lib/sys_ioctl.in.h: New file.
46048         * m4/sys_ioctl_h.m4: New file.
46049         * modules/sys_ioctl: New file.
46050         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
46051
46052 2008-10-09  Bruno Haible  <bruno@clisp.org>
46053
46054         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
46055         * lib/winsock.c: Include <stdarg.h>.
46056         (rpl_ioctl): Change to second argument 'int' and then varargs.
46057
46058 2008-10-09  Bruno Haible  <bruno@clisp.org>
46059
46060         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
46061         when the sys_socket module is present and the system has <winsock2.h>.
46062
46063 2008-10-09  Bruno Haible  <bruno@clisp.org>
46064
46065         * doc/posix-functions/close.texi: Mention module 'close' instead of
46066         module 'sys_socket'.
46067
46068 2008-10-09  Bruno Haible  <bruno@clisp.org>
46069
46070         * doc/glibc-headers/sys_ioctl.texi: New file.
46071         * doc/gnulib.texi: Include it.
46072
46073 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46074             Bruno Haible  <bruno@clisp.org>
46075
46076         Combine the two replacements of 'close'.
46077         * lib/sys_socket.in.h (close): Define to a reminder to include
46078         <unistd.h>.
46079         (_gl_close_fd_maybe_socket): New declaration.
46080         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
46081         * lib/winsock.c (close): Remove undefinition.
46082         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
46083         needed for the gnulib module 'close'.
46084         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
46085         define to an error symbol or to a warning, if suitable.
46086         * lib/close.c: Include <sys/socket.h>.
46087         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
46088         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
46089         UNISTD_H_HAVE_WINSOCK2_H.
46090         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
46091         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46092         UNISTD_H_HAVE_WINSOCK2_H.
46093         * modules/sys_socket (Files): Add m4/unistd_h.m4.
46094         (configure.ac): Set a module indicator.
46095         (Makefile.am): Substitute GNULIB_CLOSE.
46096         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
46097         * modules/poll-tests (Depends-on): Add close.
46098         * modules/select-tests (Depends-on): Likewise.
46099
46100 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46101             Bruno Haible  <bruno@clisp.org>
46102
46103         New module 'close'.
46104         * modules/close: New file.
46105         * lib/unistd.in.h (close): Move declaration out of the
46106         FCHDIR_REPLACEMENT scope.
46107         (_gl_unregister_fd): New declaration.
46108         * lib/close.c: New file.
46109         * lib/fchdir.c (rpl_close): Remove function.
46110         * m4/close.m4: New file.
46111         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
46112         close.
46113         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
46114         REPLACE_CLOSE.
46115         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
46116         REPLACE_CLOSE.
46117         * modules/fchdir (Depends-on): Add close.
46118
46119 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46120             Bruno Haible  <bruno@clisp.org>
46121
46122         * lib/fcntl.in.h (open): Simplify conditionals.
46123         (_gl_register_fd): New declaration.
46124         * lib/fchdir.c (rpl_open): Remove function.
46125         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
46126         also.
46127         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
46128         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
46129         open.
46130
46131 2008-10-09  Jim Meyering  <meyering@redhat.com>
46132
46133         GNUmakefile: use the more name-space-friendly "_version"
46134         * top/GNUmakefile (_dummy): Update.
46135         (_version): Rename from "version".
46136
46137 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46138             Bruno Haible  <bruno@clisp.org>
46139
46140         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
46141         rpl_close.
46142         (_gl_register_fd): New function, extracted from rpl_open.
46143         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
46144         (rpl_open, rpl_opendir): Use _gl_register_fd.
46145
46146 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46147
46148         Fix organization of 'open' replacement.
46149         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
46150         (gl_FUNC_OPEN): Use it.
46151         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
46152
46153 2008-10-08  Bruno Haible  <bruno@clisp.org>
46154
46155         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
46156
46157 2008-10-08  Simon Josefsson  <simon@josefsson.org>
46158
46159         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
46160         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
46161         listen).
46162
46163 2008-10-08  Eric Blake  <ebb9@byu.net>
46164
46165         GNUmakefile: add 'make version' target
46166         * top/GNUmakefile (_curr-ver): Split version update rules...
46167         (version): ...into a target.
46168
46169 2008-10-07  Bruno Haible  <bruno@clisp.org>
46170
46171         Use a more portable replacement expression for -0.0L.
46172         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
46173         instead of -0.0L. Fix m4 quotation.
46174
46175         * tests/test-signbit.c: Include <float.h>.
46176         (minus_zero): New variable.
46177         (test_signbitl): Use minus_zero instead of -zero.
46178         * modules/signbit-tests (Depends-on): Add float.
46179
46180         * tests/test-ceill.c: Include <float.h>.
46181         (zero): Remove variable.
46182         (minus_zero): New variable.
46183         (main): Use minus_zero instead of -zero.
46184         * modules/ceill-tests (Depends-on): Add float.
46185
46186         * tests/test-floorl.c: Include <float.h>.
46187         (zero): Remove variable.
46188         (minus_zero): New variable.
46189         (main): Use minus_zero instead of -zero.
46190         * modules/floorl-tests (Depends-on): Add float.
46191
46192         * tests/test-roundl.c: Include <float.h>.
46193         (zero): Remove variable.
46194         (minus_zero): New variable.
46195         (main): Use minus_zero instead of -zero.
46196         * modules/roundl-tests (Depends-on): Add float.
46197
46198         * tests/test-truncl.c: Include <float.h>.
46199         (zero): Remove variable.
46200         (minus_zero): New variable.
46201         (main): Use minus_zero instead of -zero.
46202         * modules/truncl-tests (Depends-on): Add float.
46203
46204         * tests/test-frexpl.c (zero): Remove variable.
46205         (minus_zero): New variable.
46206         (main): Use minus_zero instead of -zero.
46207         * modules/frexpl-tests (Depends-on): Add float.
46208
46209         * tests/test-isnan.c (zerol): Remove variable.
46210         (minus_zerol): New variable.
46211         (test_long_double): Use minus_zerol instead of -zerol.
46212         * modules/isnan-tests (Depends-on): Add float.
46213
46214         * tests/test-isnanl.h (zero): Remove variable.
46215         (minus_zero): New variable.
46216         (main): Use minus_zero instead of -zero.
46217         * modules/isnanl-nolibm-tests (Depends-on): Add float.
46218         * modules/isnanl-tests (Depends-on): Add float.
46219
46220         * tests/test-ldexpl.c (zero): Remove variable.
46221         (minus_zero): New variable.
46222         (main): Use minus_zero instead of -zero.
46223         * modules/ldexpl-tests (Depends-on): Add float.
46224
46225         * tests/test-snprintf-posix.h (zerol): Remove variable.
46226         (minus_zerol): New variable.
46227         (test_function): Use minus_zerol instead of -zerol.
46228         * modules/snprintf-posix-tests (Depends-on): Add float.
46229         * modules/vsnprintf-posix-tests (Depends-on): Add float.
46230
46231         * tests/test-sprintf-posix.h (zerol): Remove variable.
46232         (minus_zerol): New variable.
46233         (test_function): Use minus_zerol instead of -zerol.
46234         * modules/sprintf-posix-tests (Depends-on): Add float.
46235         * modules/vsprintf-posix-tests (Depends-on): Add float.
46236
46237         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
46238         (minus_zerol): New variable.
46239         (test_function): Use minus_zerol instead of -zerol.
46240         * modules/vasnprintf-posix-tests (Depends-on): Add float.
46241
46242         * tests/test-vasprintf-posix.c (zerol): Remove variable.
46243         (minus_zerol): New variable.
46244         (test_function): Use minus_zerol instead of -zerol.
46245         * modules/vasprintf-posix-tests (Depends-on): Add float.
46246
46247 2008-10-07  Simon Josefsson  <simon@josefsson.org>
46248
46249         * MODULES.html.sh (Support for building documentation): Mention
46250         pmccabe2html.  Sort entries.
46251
46252         Add pmccabe2html module, from gnupdf.
46253         * build-aux/pmccabe.css: New file.
46254         * build-aux/pmccabe2html: New file.
46255         * m4/pmccabe2html.m4: New file.
46256         * modules/pmccabe2html: New file.
46257
46258 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
46259
46260         flock: new module
46261         * MODULES.html.sh: Add to list of modules.
46262         * lib/flock.c: flock implementation for Windows and Unix systems
46263         which have fcntl.
46264         * doc/glibc-functions/flock.texi: Update documentation.
46265         * lib/sys_file.in.h: <sys/file.h> header file.
46266         * m4/flock.m4: M4 macros.
46267         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
46268         * modules/flock: flock module.
46269         * modules/flock-tests: flock tests module.
46270         * modules/sys_file: sys/file.h module.
46271         * tests/test-flock.c: test suite for flock.
46272
46273 2008-10-06  Jim Meyering  <meyering@redhat.com>
46274
46275         bootstrap: check for LT_INIT more portably still ;-)
46276         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
46277         Spotted by Bruno Haible.
46278
46279 2008-10-06  Eric Blake  <ebb9@byu.net>
46280
46281         test-signbit: avoid tripping Irix cc bug on -0.0L
46282         * tests/test-signbit.c (minus_zerol): Delete, and replace with
46283         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
46284         entire testsuite consistent and avoids an Irix 6.2 bug.
46285
46286 2008-10-05  Bruno Haible  <bruno@clisp.org>
46287             Jim Meyering  <jim@meyering.net>
46288
46289         Add an option for ignoring EPIPE during close_stdout.
46290         * lib/closeout.h: Include <stdbool.h>.
46291         (close_stdout_set_ignore_EPIPE): New declaration.
46292         * lib/closeout.c: Include <stdbool.h>.
46293         (ignore_EPIPE): New variable.
46294         (close_stdout_set_ignore_EPIPE): New function.
46295         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
46296         * lib/close-stream.c (close_stream): Mention the possible EPIPE
46297         failure.
46298         * modules/closeout (Depends-on): Add stdbool.
46299
46300 2008-10-05  Bruno Haible  <bruno@clisp.org>
46301
46302         * modules/accept: New file.
46303         * modules/bind: New file.
46304         * modules/connect: New file.
46305         * modules/getpeername: New file.
46306         * modules/getsockname: New file.
46307         * modules/getsockopt: New file.
46308         * modules/listen: New file.
46309         * modules/recv: New file.
46310         * modules/recvfrom: New file.
46311         * modules/send: New file.
46312         * modules/sendto: New file.
46313         * modules/setsockopt: New file.
46314         * modules/socket: New file.
46315         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
46316         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
46317         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
46318         the particular module is requested. Add a link warning when the
46319         particular module is not requested.
46320         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
46321         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
46322         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
46323         the particular module is requested.
46324         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
46325         gl_SYS_SOCKET_H_DEFAULTS): New macros.
46326         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
46327         * modules/sys_socket (Depends-on): Add link-warning.
46328         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
46329         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
46330         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
46331         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
46332         GL_LINK_WARNING.
46333         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
46334         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
46335         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
46336         * doc/posix-functions/getpeername.texi: Mention the new module
46337         'getpeername'.
46338         * doc/posix-functions/getsockname.texi: Mention the new module
46339         'getsockname'.
46340         * doc/posix-functions/getsockopt.texi: Mention the new module
46341         'getsockopt'.
46342         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
46343         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
46344         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
46345         * doc/posix-functions/send.texi: Mention the new module 'send'.
46346         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
46347         * doc/posix-functions/setsockopt.texi: Mention the new module
46348         'setsockopt'.
46349         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
46350         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
46351         listen, connect, accept.
46352         * modules/select-tests (Depends-on): Likewise.
46353
46354 2008-10-05  Bruno Haible  <bruno@clisp.org>
46355
46356         * lib/winsock.c (strerror): Remove unused #undef.
46357         (rpl_close): Remove unused local variable.
46358
46359         * modules/sys_socket (Depends-on); Add errno.
46360
46361 2008-10-05  Bruno Haible  <bruno@clisp.org>
46362
46363         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
46364         (select): Add a link warning when the 'select' module is not used.
46365         * modules/sys_select (Depends-on): Add link-warning.
46366         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
46367         Suggested by Paolo Bonzini.
46368
46369 2008-10-05  Jim Meyering  <meyering@redhat.com>
46370
46371         bootstrap: check for LT_INIT more portably
46372         * build-aux/bootstrap: Avoid using grep -E, since it's not
46373         portable enough.  Suggestion from Bruno Haible.
46374
46375 2008-10-05  Bruno Haible  <bruno@clisp.org>
46376
46377         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
46378         as being fixed by gnulib.
46379
46380 2008-10-05  Bruno Haible  <bruno@clisp.org>
46381
46382         * modules/select-tests: New file, mostly copied from
46383         modules/sys_select-tests.
46384         * tests/test-select.c: New file, mostly copied from
46385         tests/test-sys_select.c.
46386         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
46387         * modules/sys_select-tests (Depends-on): Remove all dependencies.
46388         (Makefile.am): Remove test_sys_select_LDADD.
46389
46390         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
46391         to an undefined symbol, for an error message.
46392         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
46393         (gl_SYS_SELECT_H_DEFAULTS): New macro.
46394         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
46395         winsock-select.c here.
46396         * modules/sys_select (Files): Remove lib/winsock-select.c.
46397         (Depends-on): Remove alloca.
46398         (Makefile.am): Substitute GNULIB_SELECT.
46399         * modules/select: New file.
46400         * doc/posix-functions/select.texi: Update.
46401
46402 2008-10-05  Bruno Haible  <bruno@clisp.org>
46403
46404         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
46405         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
46406         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
46407         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
46408         getdtablesize.
46409         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
46410         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
46411
46412 2008-10-05  Bruno Haible  <bruno@clisp.org>
46413
46414         * modules/getdtablesize-tests: New file.
46415         * tests/test-getdtablesize.c: New file.
46416
46417         New module 'getdtablesize'.
46418         * lib/unistd.in.h (getdtablesize): New declaration.
46419         * lib/getdtablesize.c: New file.
46420         * m4/getdtablesize.m4: New file.
46421         * modules/getdtablesize: New file.
46422         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46423         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
46424         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
46425         HAVE_GETDTABLESIZE.
46426         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
46427
46428 2008-10-05  Bruno Haible  <bruno@clisp.org>
46429
46430         * modules/sched (Makefile.am): Fix typo.
46431         Reported by Simon Josefsson.
46432
46433 2008-10-05  Jim Meyering  <meyering@redhat.com>
46434
46435         bootstrap: check for LT_INIT, too
46436         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
46437         are deprecated.  Suggestion from Ralf Wildenhues.
46438
46439 2008-10-05  Bruno Haible  <bruno@clisp.org>
46440
46441         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
46442         overriding them by ours.
46443         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
46444
46445 2008-10-05  Jim Meyering  <meyering@redhat.com>
46446
46447         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
46448         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
46449         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
46450
46451 2008-10-04  Bruno Haible  <bruno@clisp.org>
46452
46453         * modules/dup2 (License): Change to LGPLv2+.
46454         * modules/sleep (License): Likewise.
46455         * modules/perror (License): Likewise.
46456         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
46457         Blake.
46458         * modules/signal (License): Likewise.
46459         * modules/sigprocmask (License): Likewise.
46460         * modules/raise (License): Change to LGPLv2+, with approval by Jim
46461         Meyering.
46462
46463 2008-10-04  Bruno Haible  <bruno@clisp.org>
46464
46465         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
46466         Reported by Rainer Tammer <tammer@tammer.net>.
46467
46468 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
46469             Bruno Haible  <bruno@clisp.org>
46470
46471         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
46472         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
46473         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
46474
46475 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
46476
46477         filevercmp: new module
46478         * lib/filevercmp.h: New function filevercmp comparing version strings.
46479         * lib/filevercmp.c: Implementation of filevercmp function.
46480         * modules/filevercmp: Module metadata.
46481         * tests/test-filevercmp.c: Unit test for new module.
46482         * modules/filevercmp-tests: Unit test metadata.
46483         * MODULES.html.sh: Add filevercmp module.
46484
46485 2008-10-03  Bruno Haible  <bruno@clisp.org>
46486
46487         * lib/c-ctype.h: Add comment.
46488         Reported by Jim Meyering.
46489
46490 2008-10-02  Bruno Haible  <bruno@clisp.org>
46491
46492         * modules/posix_spawn-internal (Depends-on): Add 'open'.
46493
46494 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46495
46496         * build-aux/bootstrap: Allow renaming bootstrap, and change the
46497         name of bootstrap.conf accordingly.
46498
46499 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46500
46501         * build-aux/bootstrap: Install git-merge-changelog configuration
46502         items into .gitconfig if needed.
46503
46504 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46505
46506         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
46507         git repository, and initialize/update it accordingly.
46508
46509 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
46510
46511         * modules/fsync-tests: New file.
46512         * tests/test-fsync.c: New file.
46513
46514         New module 'fsync'.
46515         * lib/fsync.c: New file.
46516         * m4/fsync.m4: New file.
46517         * modules/fsync: New file.
46518         * lib/unistd.in.h (fsync): New declaration.
46519         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
46520         GNULIB_FSYNC and HAVE_FSYNC.
46521         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
46522         * MODULES.html.sh (posix_functions): Add fsync.
46523         * doc/posix-functions/fsync.texi: Mention the new module.
46524
46525 2008-10-02  Jim Meyering  <meyering@redhat.com>
46526
46527         fts.c: sync with similar code from coreutils' remove.c
46528         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
46529         Guard also with "#if defined __linux__", since for now at least,
46530         this code is Linux-kernel-specific.
46531
46532 2008-10-02  Jim Meyering  <meyering@redhat.com>
46533
46534         fts: bug fixes
46535         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
46536         Include <sys/vfs.h>, not <sys/statfs.h>.
46537
46538         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
46539         Include <sys/vfs.h>, not <sys/statfs.h>.
46540
46541 2008-10-01  Bruno Haible  <bruno@clisp.org>
46542
46543         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
46544         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
46545         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
46546         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
46547         * doc/posix-functions/posix_spawnp.texi: Likewise.
46548         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
46549         whether posix_spawn actually works.
46550         * m4/pipe.m4 (gl_PIPE): Likewise.
46551         * modules/execute (Files): Add m4/posix_spawn.m4.
46552         * modules/pipe (Files): Add m4/posix_spawn.m4.
46553         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
46554
46555 2008-10-01  Jim Meyering  <meyering@redhat.com>
46556
46557         remove trailing spaces
46558         * NEWS: Likewise.
46559         * lib/poll.c (poll): Likewise.
46560         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
46561         * lib/winsock.c (rpl_close): Likewise.
46562         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
46563         * modules/yield: Likewise.
46564         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
46565         * tests/test-sys_select.c (connect_to_socket): Likewise.
46566
46567         fts.c: adjust a new interface to be more generally useful
46568         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
46569         (fts_build): Adjust caller.
46570
46571 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46572
46573         * modules/cond-tests: New file.
46574         * tests/test-cond.c: New file.
46575
46576 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46577             Bruno Haible  <bruno@clisp.org>
46578
46579         * modules/cond (Dependencies): Add errno, time.
46580         * lib/glthread/cond.h: Include <time.h>.
46581         (gl_cond_define, gl_cond_define_initialized): Use the same definition
46582         across platforms.
46583
46584 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46585             Bruno Haible  <bruno@clisp.org>
46586
46587         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
46588
46589 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46590             Bruno Haible  <bruno@clisp.org>
46591
46592         * modules/tls-tests (Depends-on): Add thread, yield.
46593         (configure.ac): Remove all checks.
46594         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
46595         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46596         gl_thread_self): Remove definitions. Include glthread/thread.h and
46597         glthread/yield.h instead.
46598         (test_tls): Pass an additional NULL argument to gl_thread_join.
46599
46600 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46601             Bruno Haible  <bruno@clisp.org>
46602
46603         * modules/lock-tests (Depends-on): Add thread, yield.
46604         (configure.ac): Remove all checks.
46605         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
46606         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46607         gl_thread_self): Remove definitions. Include glthread/thread.h and
46608         glthread/yield.h instead.
46609         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
46610         additional NULL argument to gl_thread_join.
46611
46612 2008-09-30  Bruno Haible  <bruno@clisp.org>
46613
46614         Fix the Win32 implementation of the 'thread' module.
46615         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
46616         pointer type.
46617         (gl_thread_self): Invoke gl_thread_self_func.
46618         (gl_thread_self_func): New declaration.
46619         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
46620         (do_init_self_key, init_self_key): New functions.
46621         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
46622         Remove some fields.
46623         (running_threads, running_lock): Remove variables.
46624         (get_current_thread_handle): New function.
46625         (gl_thread_self_func, wrapper_func, glthread_create_func,
46626         glthread_join_func, gl_thread_exit_func): Largely rewritten and
46627         simplified.
46628
46629 2008-09-30  Bruno Haible  <bruno@clisp.org>
46630
46631         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
46632         files.
46633
46634 2008-09-30  Jim Meyering  <meyering@redhat.com>
46635
46636         fts.m4: correct the test for statfs.f_type
46637         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
46638         when checking for statfs.f_type.
46639
46640 2008-09-15  Simon Josefsson  <simon@josefsson.org>
46641
46642         tests: avoid some compiler warnings
46643         * tests/test-memchr.c (main): Pass NULL indirectly.
46644         * tests/test-getdate.c (main): Remove unused variable 'ret'.
46645
46646 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
46647
46648         getdate.y: disallow countable dayshifts like "4 yesterday ago"
46649         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
46650         exactly specified dayshifts.
46651         (dayshift): New rule.
46652         (rel): Add dayshift.
46653         (relative_time_table) [tomorrow, yesterday, today, now]:
46654         Use tDAY_SHIFT in place of tDAY_UNIT.
46655         * tests/test-getdate.c: Add tests for now-disallowed countable
46656         dayshifts, e.g., "4 yesterday ago".
46657
46658 2008-09-29  Bruno Haible  <bruno@clisp.org>
46659
46660         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
46661         * tests/test-posix_spawn1.in.sh: Renamed from
46662         tests/test-posix_spawn.in.sh.
46663         * tests/test-posix_spawn2.c: New file.
46664         * tests/test-posix_spawn2.in.sh: New file.
46665         * modules/posix_spawnp-tests (Files): Update.
46666         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
46667
46668 2008-09-29  Bruno Haible  <bruno@clisp.org>
46669
46670         Propagate effects of putenv/setenv/unsetenv to child processes.
46671         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
46672         * lib/pipe.c (create_pipe): Likewise.
46673
46674 2008-09-29  Bruno Haible  <bruno@clisp.org>
46675
46676         Enable use of shell scripts as executables in mingw.
46677         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
46678         run the program as a shell script.
46679         * lib/pipe.c (create_pipe): Likewise.
46680         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
46681         resulting array.
46682
46683 2008-09-29  Eric Blake  <ebb9@byu.net>
46684
46685         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
46686
46687 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
46688
46689         * doc/posix-functions/accept.texi: Update mingw problems.
46690         * doc/posix-functions/bind.texi: Update mingw problems.
46691         * doc/posix-functions/close.texi: Update mingw problems.
46692         * doc/posix-functions/connect.texi: Update mingw problems.
46693         * doc/posix-functions/getpeername.texi: Update mingw problems.
46694         * doc/posix-functions/getsockname.texi: Update mingw problems.
46695         * doc/posix-functions/getsockopt.texi: Update mingw problems.
46696         * doc/posix-functions/ioctl.texi: Update mingw problems.
46697         * doc/posix-functions/listen.texi: Update mingw problems.
46698         * doc/posix-functions/recv.texi: Update mingw problems.
46699         * doc/posix-functions/recvfrom.texi: Update mingw problems.
46700         * doc/posix-functions/select.texi: Update mingw problems.
46701         * doc/posix-functions/send.texi: Update mingw problems.
46702         * doc/posix-functions/sendto.texi: Update mingw problems.
46703         * doc/posix-functions/setsockopt.texi: Update mingw problems.
46704         * doc/posix-functions/socket.texi: Update mingw problems.
46705
46706 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
46707             Bruno Haible  <bruno@clisp.org>
46708
46709         * lib/sys_select.in.h: Include sys/time.h.
46710         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
46711         * modules/sys_select: Depend on sys_time.
46712         * tests/test-sys_select.c: Test that sys/select.h defines struct
46713         timeval fully.
46714
46715 2008-09-29  Bruno Haible  <bruno@clisp.org>
46716
46717         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
46718         * lib/sys_select.in.h: Likewise.
46719
46720 2008-09-29  Bruno Haible  <bruno@clisp.org>
46721
46722         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
46723
46724 2008-09-29  Bruno Haible  <bruno@clisp.org>
46725
46726         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
46727         Set LIBSOCKET instead of augmenting LIBS.
46728         * modules/sockets (Link): New section.
46729         * modules/sockets-tests (test_sockets_LDADD): New variable.
46730         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
46731         * modules/poll-tests (test_poll_LDADD): New variable.
46732         * NEWS: Document the change.
46733
46734 2008-09-29  Bruno Haible  <bruno@clisp.org>
46735
46736         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
46737         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
46738         ARPA_INET_H directly.
46739         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46740
46741 2008-09-28  Bruno Haible  <bruno@clisp.org>
46742
46743         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
46744         from gl_HEADER_SYS_SOCKET.
46745         (gl_HEADER_SYS_SOCKET): Invoke it.
46746         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46747
46748 2008-09-28  Bruno Haible  <bruno@clisp.org>
46749
46750         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
46751         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
46752         Needed on OSF/1 4.0.
46753
46754 2008-09-28  Bruno Haible  <bruno@clisp.org>
46755
46756         Override open more carefully.
46757         * lib/open.c (orig_open): New function.
46758         (rpl_open): Use orig_open instead of open.
46759         * lib/fcntl.in.h: Add special invocation convention.
46760         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
46761         (gl_FUNC_OPEN): Invoke it.
46762
46763         Override freopen more carefully.
46764         * lib/freopen.c (orig_freopen): New function.
46765         (rpl_freopen): Use orig_freopen instead of freopen.
46766         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
46767         (gl_FUNC_FREOPEN): Invoke it.
46768
46769         Override fopen more carefully.
46770         * lib/fopen.c (orig_fopen): New function.
46771         (rpl_fopen): Use orig_fopen instead of fopen.
46772         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
46773         (gl_FUNC_FOPEN): Invoke it.
46774         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
46775
46776 2008-09-28  Bruno Haible  <bruno@clisp.org>
46777
46778         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
46779         SIGPIPE.
46780
46781 2008-09-28  Bruno Haible  <bruno@clisp.org>
46782
46783         * tests/test-sigaction.c (handler, main): Disable the check whether
46784         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
46785         glibc systems with LinuxThreads.
46786
46787 2008-09-28  Bruno Haible  <bruno@clisp.org>
46788
46789         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
46790
46791         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
46792         with AIX xlc.
46793         * lib/fcntl.in.h (open): Likewise.
46794         Reported by Rainer Tammer <tammer@tammer.net>.
46795
46796 2008-09-28  Bruno Haible  <bruno@clisp.org>
46797
46798         * modules/posix_spawnp-tests: New file.
46799         * tests/test-posix_spawn.c: New file.
46800         * tests/test-posix_spawn.in.sh: New file.
46801
46802         New module 'posix_spawnp'.
46803         * modules/posix_spawnp: New file.
46804         * lib/spawnp.c: New file, from GNU libc with modifications.
46805         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
46806
46807         New module 'posix_spawn'.
46808         * modules/posix_spawn: New file.
46809         * lib/spawn.c: New file, from GNU libc with modifications.
46810         * doc/posix-functions/posix_spawn.texi: Mention the new module.
46811
46812         New module 'posix_spawnattr_destroy'.
46813         * modules/posix_spawnattr_destroy: New file.
46814         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
46815         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
46816         module.
46817
46818         New module 'posix_spawnattr_setsigmask'.
46819         * modules/posix_spawnattr_setsigmask: New file.
46820         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
46821         modifications.
46822         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
46823         new module.
46824
46825         New module 'posix_spawnattr_getsigmask'.
46826         * modules/posix_spawnattr_getsigmask: New file.
46827         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
46828         modifications.
46829         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
46830         new module.
46831
46832         New module 'posix_spawnattr_setsigdefault'.
46833         * modules/posix_spawnattr_setsigdefault: New file.
46834         * lib/spawnattr_setdefault.c: New file, from GNU libc with
46835         modifications.
46836         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
46837         new module.
46838
46839         New module 'posix_spawnattr_getsigdefault'.
46840         * modules/posix_spawnattr_getsigdefault: New file.
46841         * lib/spawnattr_getdefault.c: New file, from GNU libc with
46842         modifications.
46843         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
46844         new module.
46845
46846         New module 'posix_spawnattr_setschedpolicy'.
46847         * modules/posix_spawnattr_setschedpolicy: New file.
46848         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
46849         modifications.
46850         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
46851         new module.
46852
46853         New module 'posix_spawnattr_getschedpolicy'.
46854         * modules/posix_spawnattr_getschedpolicy: New file.
46855         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
46856         modifications.
46857         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
46858         new module.
46859
46860         New module 'posix_spawnattr_setschedparam'.
46861         * modules/posix_spawnattr_setschedparam: New file.
46862         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
46863         modifications.
46864         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
46865         new module.
46866
46867         New module 'posix_spawnattr_getschedparam'.
46868         * modules/posix_spawnattr_getschedparam: New file.
46869         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
46870         modifications.
46871         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
46872         new module.
46873
46874         New module 'posix_spawnattr_setpgroup'.
46875         * modules/posix_spawnattr_setpgroup: New file.
46876         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
46877         modifications.
46878         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
46879         module.
46880
46881         New module 'posix_spawnattr_getpgroup'.
46882         * modules/posix_spawnattr_getpgroup: New file.
46883         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
46884         modifications.
46885         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
46886         module.
46887
46888         New module 'posix_spawnattr_setflags'.
46889         * modules/posix_spawnattr_setflags: New file.
46890         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
46891         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
46892         module.
46893
46894         New module 'posix_spawnattr_getflags'.
46895         * modules/posix_spawnattr_getflags: New file.
46896         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
46897         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
46898         module.
46899
46900         New module 'posix_spawnattr_init'.
46901         * modules/posix_spawnattr_init: New file.
46902         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
46903         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
46904         module.
46905
46906         New module 'posix_spawn_file_actions_destroy'.
46907         * modules/posix_spawn_file_actions_destroy: New file.
46908         * lib/spawn_faction_destroy.c: New file, from GNU libc with
46909         modifications.
46910         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
46911         the new module.
46912
46913         New module 'posix_spawn_file_actions_addopen'.
46914         * modules/posix_spawn_file_actions_addopen: New file.
46915         * lib/spawn_faction_addopen.c: New file, from GNU libc with
46916         modifications.
46917         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
46918         the new module.
46919
46920         New module 'posix_spawn_file_actions_adddup2'.
46921         * modules/posix_spawn_file_actions_adddup2: New file.
46922         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
46923         modifications.
46924         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
46925         the new module.
46926
46927         New module 'posix_spawn_file_actions_addclose'.
46928         * modules/posix_spawn_file_actions_addclose: New file.
46929         * lib/spawn_faction_addclose.c: New file, from GNU libc with
46930         modifications.
46931         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
46932         the new module.
46933
46934         New module 'posix_spawn_file_actions_init'.
46935         * modules/posix_spawn_file_actions_init: New file.
46936         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
46937         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
46938         new module.
46939
46940         New module 'posix_spawn-internal'.
46941         * modules/posix_spawn-internal: New file.
46942         * lib/spawn_int.h: New file, from GNU libc with modifications.
46943         * lib/spawni.c: New file, from GNU libc with modifications.
46944         * m4/posix_spawn.m4: New file.
46945
46946         New module 'spawn'.
46947         * modules/spawn: New file.
46948         * lib/spawn.in.h: New file, from GNU libc with modifications.
46949         * m4/spawn_h.m4: New file.
46950         * doc/posix-headers/spawn.texi: Mention the new module.
46951
46952 2008-09-28  Bruno Haible  <bruno@clisp.org>
46953
46954         * modules/sched-tests: New file.
46955         * tests/test-sched.c: New file.
46956
46957         New module 'sched'.
46958         * modules/sched: New file.
46959         * lib/sched.in.h: New file.
46960         * m4/sched_h.m4: New file.
46961         * doc/posix-headers/sched.texi: Mention the new module.
46962
46963 2008-09-27  Eric Blake  <ebb9@byu.net>
46964
46965         Fix previous patch, and tweak references to $0.
46966         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
46967         (func_version, func_gnulib_dir): Don't call this program
46968         gnulib-tool.
46969         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
46970         with using $0 in function.
46971         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
46972         (func_fatal_error): Reuse the name the user invoked us with.
46973
46974 2008-09-27  Bruno Haible  <bruno@clisp.org>
46975
46976         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
46977         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
46978         (gl_ICONV_H): Not here.
46979         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
46980         instead of assigning ICONV_H directly.
46981
46982         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
46983         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
46984         WCHAR_H directly.
46985
46986 2008-09-27  Bruno Haible  <bruno@clisp.org>
46987
46988         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
46989         * modules/arpa_inet (Depends-on): Add link-warning.
46990         (Makefile.am): Insert the definition of GL_LINK-WARNING.
46991         * modules/unistd (Makefile.am): Likewise.
46992
46993 2008-09-26  Bruno Haible  <bruno@clisp.org>
46994
46995         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
46996         variables.
46997         (func_version): Essentially copied from gnulib-tool.
46998         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
46999         func_readlink): Copied from gnulib-tool.
47000
47001 2008-09-26  Bruno Haible  <bruno@clisp.org>
47002
47003         * gnulib-tool (func_version): Change directory to $gnulib_dir before
47004         invoking git-version-gen.
47005
47006 2008-09-26  Bruno Haible  <bruno@clisp.org>
47007
47008         * posix-modules: Update to directory names changed on 2008-01-19.
47009         Remove commas in output before splitting into words. No more need to
47010         avoid 'ftruncate' since 2007-02-19.
47011
47012 2008-09-26  Bruno Haible  <bruno@clisp.org>
47013
47014         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
47015
47016 2008-09-26  Bruno Haible  <bruno@clisp.org>
47017
47018         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
47019         * modules/fwriteerror (Depends-on): Add errno.
47020
47021 2008-09-26  Bruno Haible  <bruno@clisp.org>
47022
47023         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
47024         * tests/test-vc-list-files-cvs.sh: Likewise.
47025
47026 2008-09-26  Bruno Haible  <bruno@clisp.org>
47027
47028         * doc/posix-headers/sys_resource.texi: Reorder items.
47029
47030 2008-09-26  Jim Meyering  <meyering@redhat.com>
47031
47032         fts: tweak inode comparison function
47033         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
47034         inode numbers, as documented.
47035
47036         fts: sort dirent entries on inode number before traversing
47037         This avoids a quadratic, seek-related performance penalty when
47038         operating on a directory containing many entries (measurable at 10k;
47039         3.5 hours at 2 million entries with a cold cache) on certain types
47040         of file systems, including ext3 and ext4, but not tmpfs.
47041         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
47042         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
47043         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
47044         (fs_handles_readdir_ordered_dirents_efficiently): New function.
47045         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
47046         (fts_build): Set the stat.st_ino member from D_INO.
47047         If it is likely to be useful, sort dirent entries on inode number.
47048
47049         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
47050         and the struct statfs.f_type member.
47051         * modules/fts (Depends-on): Add d-ino.
47052
47053 2008-09-26  Bruno Haible  <bruno@clisp.org>
47054
47055         * modules/sigpipe-die (Depends-on): Add sigpipe.
47056
47057         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
47058         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
47059         and GNULIB_STDIO_H_SIGPIPE are set.
47060         * lib/stdio-write.c: New file.
47061         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
47062         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47063         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47064         REPLACE_STDIO_WRITE_FUNCS.
47065         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
47066         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47067         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47068         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
47069         * modules/stdio (Files): Add lib/stdio-write.c.
47070         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
47071         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47072         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47073         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
47074         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
47075         REPLACE_FPRINTF_POSIX.
47076         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
47077         REPLACE_PRINTF_POSIX.
47078         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
47079         REPLACE_VFPRINTF_POSIX.
47080         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
47081         REPLACE_VPRINTF_POSIX.
47082         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
47083         SIGPIPE issue.
47084         * doc/posix-functions/fputc.texi: Likewise.
47085         * doc/posix-functions/fputs.texi: Likewise.
47086         * doc/posix-functions/fwrite.texi: Likewise.
47087         * doc/posix-functions/printf.texi: Likewise.
47088         * doc/posix-functions/putc.texi: Likewise.
47089         * doc/posix-functions/putchar.texi: Likewise.
47090         * doc/posix-functions/puts.texi: Likewise.
47091         * doc/posix-functions/vfprintf.texi: Likewise.
47092         * doc/posix-functions/vprintf.texi: Likewise.
47093
47094         * modules/safe-write (Depends-on): Add write.
47095
47096         * modules/sigpipe-tests: New file.
47097         * tests/test-sigpipe.c: New file.
47098         * tests/test-sigpipe.sh: New file.
47099
47100         * modules/write: New file.
47101         * lib/unistd.in.h: Include <sys/types.h>.
47102         (write): New declaration.
47103         * lib/write.c: New file.
47104         * m4/write.m4: New file.
47105         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47106         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
47107         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
47108         GNULIB_WRITE, REPLACE_WRITE.
47109         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
47110         and the SIGPIPE issue.
47111
47112         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
47113         (raise): New declaration.
47114         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
47115         (ext_signal): New function.
47116         (rpl_raise): New function.
47117         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
47118         GNULIB_SIGNAL_H_SIGPIPE.
47119         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
47120         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
47121
47122         * modules/sigpipe: New file.
47123         * m4/sigpipe.m4: New file.
47124
47125 2008-09-25  Derek Price  <derek@ximbiot.com>
47126             Bruno Haible  <bruno@clisp.org>
47127
47128         * gnulib-tool (func_import): Report all license incompatibilities, not
47129         just the first one.
47130
47131 2008-09-25  Bruno Haible  <bruno@clisp.org>
47132
47133         * gnulib-tool (func_import): When computing the edits, consider not
47134         only the Makefile.ams that exist but also those that will be generated.
47135
47136 2008-09-25  Simon Josefsson  <simon@josefsson.org>
47137
47138         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
47139         fixes gnulib-tool --test warning about duplicate dependency.
47140
47141 2008-09-25  Bruno Haible  <bruno@clisp.org>
47142
47143         * gnulib-tool: Don't ask the user to perform edits in the generated
47144         Makefile.ams.
47145         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
47146         apply to the Makefile.am being generated.
47147         (func_emit_tests_Makefile_am): Execute edits that apply to the
47148         Makefile.am being generated.
47149         (func_import): Setup list of Makefile.am edits before emitting the
47150         Makefile.ams, not at the end.
47151         (func_create_testdir): Update.
47152         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47153
47154 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47155
47156         * gnulib-tool (func_import): Store the --tests-base option in the
47157         comment in gnulib-cache.m4.
47158
47159 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
47160
47161         * NEWS: Document increased portability that sys_select now provides.
47162
47163         * lib/sys_select.in.h: Install select wrapper.
47164         * lib/sys_socket.in.h: Use more descriptive name when there is no
47165         select wrapper.
47166         * lib/winsock-select.c: New.
47167         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
47168         Require gl_HEADER_SYS_SOCKET.
47169         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
47170         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
47171         * tests/test-sys_select.c: Add functional tests.
47172
47173 2008-09-24  Eric Blake  <ebb9@byu.net>
47174
47175         open, fopen: close fd leak in last patch
47176         * lib/open.c (rpl_open): Close fd before returning error.
47177         * lib/fopen.c (rpl_fopen): Close fd before returning error.
47178         * doc/posix-functions/open.texi (open): Document that Irix also
47179         has the bug.
47180         * doc/posix-functions/fopen.texi (fopen): Likewise.
47181         Reported by Paolo Bonzini.
47182
47183 2008-09-24  Bruno Haible  <bruno@clisp.org>
47184
47185         Ensure that a filename ending in a slash cannot be used to access a
47186         non-directory.
47187         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
47188         to check whether it's really a directory.
47189         * lib/fopen.c: Include fcntl.h, unistd.h.
47190         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
47191         and fdopen().
47192         * modules/fopen (Depends-on): Add unistd.
47193         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
47194         * tests/test-fopen.c (main): Likewise.
47195         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
47196         * doc/posix-functions/fopen.texi: Likewise.
47197         Reported by Eric Blake.
47198
47199 2008-09-23  Eric Blake  <ebb9@byu.net>
47200
47201         c-stack: avoid compiler optimizations when provoking overflow
47202         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
47203         recursion harder to optimize, to ensure a stack overflow occurs.
47204         * tests/test-c-stack.c (recurse): Likewise.
47205         Borrowed from libsigsegv.
47206
47207         c-stack: work around Irix sigaltstack bug
47208         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
47209         whether sigaltstack uses wrong end of stack_t (copied in part from
47210         libsigsegv).
47211         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
47212         Irix bug, without requiring an over-allocation.
47213         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
47214         bug.
47215
47216         fopen: document mingw bug on directories
47217         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
47218         not allowing a stream visiting a directory, even though reading
47219         from such a stream is not portable.
47220
47221 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47222
47223         * lib/poll.c: Rewrite.
47224         * modules/poll: Depend on alloca.
47225
47226 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47227
47228         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
47229         instead define prototypes for a full set of wrappers.  Ensure
47230         that Cygwin does not use the compatibility code, which is only
47231         for MinGW.
47232         * lib/winsock.c: New.
47233         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
47234         * modules/sys_socket: Add lib/winsock.c.
47235
47236         * modules/poll-tests: Add errno and perror.
47237         * tests/test-poll.c: Use ioctl, not ioctlsocket.
47238
47239 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47240
47241         * tests/test-poll.c: Downgrade minimum needed Winsock version.
47242
47243 2008-09-23  Bruno Haible  <bruno@clisp.org>
47244
47245         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
47246         * doc/glibc-functions/*: Likewise.
47247
47248 2008-09-23  Simon Josefsson  <simon@josefsson.org>
47249
47250         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
47251         success.
47252
47253 2008-09-22  Eric Blake  <ebb9@byu.net>
47254             Bruno Haible  <bruno@clisp.org>
47255
47256         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
47257         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
47258         supply %A but mishandle pseudo-NaN.
47259         Reported by Simon Josefsson.
47260
47261 2008-09-21  Bruno Haible  <bruno@clisp.org>
47262
47263         * tests/test-lock.c (main): Tweak skip message.
47264         * tests/test-tls.c (main): Likewise.
47265
47266 2008-09-21  Bruno Haible  <bruno@clisp.org>
47267
47268         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
47269         whether 'struct sigaction' has sa_sigaction here...
47270         (gl_PREREQ_SIG_HANDLER_H): ... not here.
47271         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
47272
47273 2008-09-21  Bruno Haible  <bruno@clisp.org>
47274
47275         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
47276         section.
47277         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
47278         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
47279         the new section.
47280         (Support for obsolete systems lacking POSIX:2001): New section.
47281         (String handling <string.h>): Move strdup to the new section.
47282         Suggested by Simon Josefsson and Paolo Bonzini.
47283
47284 2008-09-21  Bruno Haible  <bruno@clisp.org>
47285
47286         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
47287         exponents in %e and %g results on 'long double'. Needed for mingw's
47288         improved *printf functions.
47289         * tests/test-vasprintf-posix.c (test_function): Likewise.
47290         * tests/test-snprintf-posix.h (test_function): Likewise.
47291         * tests/test-sprintf-posix.h (test_function): Likewise.
47292         Reported by Eric Blake.
47293
47294 2008-09-21  Bruno Haible  <bruno@clisp.org>
47295
47296         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
47297         * tests/test-sprintf-posix.h (test_function): Likewise.
47298
47299 2008-09-21  Bruno Haible  <bruno@clisp.org>
47300
47301         * modules/getpass (Depends-on): Add strdup-posix.
47302
47303         New module 'strdup-posix'.
47304         * modules/strdup-posix: New file.
47305         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
47306         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
47307         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
47308         REPLACE_STRDUP.
47309         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
47310         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
47311         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47312         strdup-posix.
47313
47314         * modules/strdup (Depends-on): Remove malloc-posix.
47315
47316 2008-09-20  Bruno Haible  <bruno@clisp.org>
47317
47318         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
47319         Wildenhues.
47320
47321 2008-09-20  Bruno Haible  <bruno@clisp.org>
47322
47323         Ensure that wint_t gets defined on IRIX 5.3.
47324         * lib/wchar.in.h (wint_t): Define if not defined by the system.
47325         * lib/wctype.in.h (wint_t): Likewise.
47326         (__wctype_wint_t): Remove type.
47327         (isw*): Use wint_t instead of __wctype_wint_t.
47328         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
47329         * modules/wchar (Files): Add m4/wint_t.m4.
47330         (Makefile.am): Substitute HAVE_WINT_T.
47331         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
47332         * tests/test-wctype.c: Check that wint_t is defined.
47333         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
47334         * doc/posix-headers/wctype.texi: Likewise.
47335         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47336
47337 2008-09-18  Bruno Haible  <bruno@clisp.org>
47338
47339         * gnulib-tool (func_exit): Update comment.
47340
47341 2008-09-18  Simon Josefsson  <simon@josefsson.org>
47342
47343         * modules/getaddrinfo (Depends-on): Remove strdup, this module
47344         assumes strdup exists and does not depend on strdup to return
47345         ENOMEM on out of memory conditions.
47346
47347 2008-09-18  Bruno Haible  <bruno@clisp.org>
47348
47349         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
47350         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
47351         digits for the exponent.
47352
47353 2008-09-18  Jim Meyering  <meyering@redhat.com>
47354             Bruno Haible  <bruno@clisp.org>
47355
47356         * lib/vasnprintf.c (decimal_point_char): Define also if
47357         NEED_PRINTF_INFINITE_LONG_DOUBLE.
47358
47359 2008-09-16  Bruno Haible  <bruno@clisp.org>
47360         and Eric Blake  <ebb9@byu.net>
47361
47362         vasnprintf: support Irix 5.3
47363         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
47364         that mishandle long double infinity.
47365         Reported by Tom G. Christensen.
47366
47367 2008-09-16  Bruno Haible  <bruno@clisp.org>
47368
47369         * doc/glibc-functions/scandir.texi: Mention the function is missing on
47370         Solaris 9.
47371         * doc/glibc-functions/alphasort.texi: Likewise.
47372         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
47373
47374 2008-09-16  Jim Meyering  <meyering@redhat.com>
47375
47376         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
47377         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
47378         a umask modification leak out of a subshell.  Otherwise, the
47379         opensolaris /bin/sh would be accepted and thus cause unwarranted
47380         failures in the coreutils test suite.
47381
47382 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
47383
47384         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
47385         to succeed.
47386
47387 2008-09-16  Jim Meyering  <meyering@redhat.com>
47388
47389         avoid spurious test failure when library is built without ACL support
47390         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
47391         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
47392         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
47393         * tests/test-copy-acl.sh: Likewise.
47394
47395 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47396
47397         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
47398         based on character occurrence counts.
47399
47400 2008-09-15  Eric Blake  <ebb9@byu.net>
47401
47402         tests: avoid some compiler warnings
47403         * tests/test-memchr.c (main): Pass NULL indirectly.
47404         * tests/test-closein.c (main): Avoid unused variable.
47405
47406 2008-09-15  Bruno Haible  <bruno@clisp.org>
47407
47408         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
47409         are missing on OpenBSD 4.0 individually.
47410         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47411
47412 2008-09-15  Bruno Haible  <bruno@clisp.org>
47413
47414         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
47415         * doc/posix-functions/strerror.texi: Mention also Cygwin.
47416         * doc/posix-functions/perror.texi: Likewise.
47417         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
47418         is missing.
47419         Reported by Eric Blake.
47420
47421         * lib/errno.in.h: Use replacement values >= 2000.
47422         Reported by Eric Blake.
47423
47424 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47425
47426         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
47427         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
47428         limit.
47429         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
47430         compareseq was aborted.
47431
47432 2008-09-14  Bruno Haible  <bruno@clisp.org>
47433
47434         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
47435         yvec_edit_count.
47436         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
47437         (fstrcmp_bounded): Simplify result computation accordingly.
47438
47439 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47440
47441         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
47442         (fstrcmp): Define in terms of fstrcmp_bounded.
47443         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
47444         lower_bound argument.
47445         Return quickly if the result is certainly < lower_bound.
47446         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
47447
47448 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47449
47450         * lib/diffseq.h (EARLY_ABORT): New macro.
47451         (compareseq): Change return type to bool. Return true when EARLY_ABORT
47452         evaluates to true.
47453
47454 2008-09-14  Bruno Haible  <bruno@clisp.org>
47455
47456         * modules/perror-tests: New file.
47457         * tests/test-perror.sh: New file.
47458         * tests/test-perror.c: New file.
47459
47460         New module 'perror'.
47461         * lib/stdio.in.h (perror): New declaration.
47462         * lib/perror.c: New file.
47463         * m4/perror.m4: New file.
47464         * modules/perror: New file.
47465         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
47466         * doc/posix-functions/perror.texi: Mention the perror module.
47467         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
47468         REPLACE_PERROR.
47469         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
47470         REPLACE_PERROR.
47471
47472 2008-09-14  Bruno Haible  <bruno@clisp.org>
47473
47474         * modules/stdio (Makefile.am): Reorder to match the order in
47475         lib/stdio.in.h.
47476         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47477
47478 2008-09-13  Bruno Haible  <bruno@clisp.org>
47479
47480         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
47481
47482 2008-09-13  Bruno Haible  <bruno@clisp.org>
47483
47484         Extend strerror to cover the added errno values.
47485         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
47486         (rpl_strerror): Provide error messages for the added errno values and
47487         for the WSA* values.
47488         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
47489         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
47490         strerror.
47491         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
47492         * modules/strerror (Depends-on): Add errno.
47493         * doc/posix-functions/strerror.texi: Document the change.
47494         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
47495         and EOVERFLOW.
47496
47497 2008-09-13  Bruno Haible  <bruno@clisp.org>
47498
47499         * modules/EOVERFLOW: Remove file.
47500         * m4/eoverflow.m4: Remove file.
47501         * modules/EOVERFLOW-tests: Remove file.
47502         * tests/test-EOVERFLOW.c: Remove file.
47503         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
47504         * modules/ftell (Depends-on): Likewise.
47505         * modules/getdelim (Depends-on): Likewise.
47506         * modules/getugroups (Depends-on): Likewise.
47507         * modules/poll (Depends-on): Likewise.
47508         * modules/snprintf (Depends-on): Likewise.
47509         * modules/sprintf-posix (Depends-on): Likewise.
47510         * modules/vasnprintf (Depends-on): Likewise.
47511         * modules/vasprintf (Depends-on): Likewise.
47512         * modules/vfprintf-posix (Depends-on): Likewise.
47513         * modules/vsnprintf (Depends-on): Likewise.
47514         * modules/vsprintf-posix (Depends-on): Likewise.
47515         * modules/xvasprintf (Depends-on): Likewise.
47516         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47517         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
47518         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
47519         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
47520         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47521         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
47522         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
47523         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
47524         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47525         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
47526         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
47527         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
47528         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47529         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
47530         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
47531         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
47532         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47533         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
47534         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
47535         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
47536         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47537         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
47538         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
47539         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
47540         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
47541         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47542         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
47543         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
47544         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
47545         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
47546         * MODULES.html.sh: Remove EOVERFLOW.
47547         * NEWS: Mention the change.
47548
47549 2008-09-13  Bruno Haible  <bruno@clisp.org>
47550
47551         * modules/errno-tests: New file.
47552         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
47553
47554         * lib/errno.in.h: New file.
47555         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
47556         * modules/errno: New file.
47557         * doc/posix-headers/errno.texi: Update documentation.
47558         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
47559
47560 2008-09-13  Bruno Haible  <bruno@clisp.org>
47561
47562         * tests/test-poll.c: Use #if for native Windows, rather than testing
47563         __MSVCRT__.
47564
47565 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47566             Bruno Haible  <bruno@clisp.org>
47567
47568         * lib/glob.c: Don't include <pwd.h> on native Windows.
47569         (WINDOWS32): New macro.
47570         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
47571
47572 2008-09-13  Bruno Haible  <bruno@clisp.org>
47573
47574         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
47575         (ETIMEDOUT): Remove macro.
47576         (glthread_cond_timedwait_multithreaded): New declaration.
47577         (glthread_cond_timedwait): Use it.
47578         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
47579         (glthread_cond_timedwait_multithreaded): New function.
47580
47581 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47582
47583         * modules/poll-tests: Do not check for io.h.
47584         * tests/test-poll.c: Check for __MSVCRT__ instead.
47585
47586 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47587
47588         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
47589         * modules/poll-tests: Add inet_pton, stdbool, sockets.
47590         * tests/test-poll.c: Use them.  Use _pipe on Windows.
47591
47592 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47593
47594         * modules/poll-tests: New.
47595         * tests/test-poll.c: New.
47596
47597 2008-09-12  Eric Blake  <ebb9@byu.net>
47598
47599         frexp: test for NetBSD failure on -0.0
47600         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
47601         not all, bugs from NetBSD 3.0 have been fixed.
47602         * doc/posix-functions/frexp.texi (frexp): Document bug.
47603         Reported by Thomas Klausner.
47604
47605         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
47606         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
47607         literal -0.0.
47608         Reported by Jonathan C. Patschke <jp@centtech.com>.
47609
47610 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47611
47612         * lib/glthread/cond.h: Use dummy implementation also if
47613         USE_WIN32_THREADS.
47614
47615 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47616
47617         * modules/fnmatch-posix (License): Change to LGPLv2+.
47618         * modules/fnmatch-gnu (License): Likewise.
47619
47620 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47621
47622         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
47623
47624 2008-09-11  Jim Meyering  <meyering@redhat.com>
47625
47626         * users.txt: Add gtk-vnc.
47627
47628 2008-09-08  Simon Josefsson  <simon@josefsson.org>
47629
47630         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
47631         rotate amounts.
47632
47633         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
47634         required for 16-bit and 8-bit rotates.
47635         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
47636         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
47637         UINT8_MAX instead of hard-coded constants.
47638         Suggested by Paul Eggert.
47639
47640 2008-09-07  Bruno Haible  <bruno@clisp.org>
47641
47642         * tests/test-striconveh.c (main): Check behaviour when converting from
47643         UTF-7.
47644
47645         Make striconveh work better with stateful encodings.
47646         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
47647         that iconv does not increment the inptr when returning -1/EINVAL.
47648
47649 2008-09-07  Bruno Haible  <bruno@clisp.org>
47650
47651         * build-aux/config.rpath: Update according to libtool-2.2.6.
47652         * build-aux/config.libpath: Likewise.
47653
47654 2008-09-06  Bruno Haible  <bruno@clisp.org>
47655
47656         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
47657         * lib/freadptr.c (freadptr): Likewise.
47658         * lib/freadseek.c (freadptrinc): Likewise.
47659         Reported by Simon Josefsson.
47660
47661 2008-09-06  Bruno Haible  <bruno@clisp.org>
47662
47663         * modules/freadptr (License): Change to LGPLv2+.
47664         * modules/freadseek (License): Likewise.
47665         Suggested by Eric Blake.
47666
47667         * modules/memchr2 (License): Change to LGPLv2+.
47668         Approved by Eric Blake.
47669
47670 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47671             Bruno Haible  <bruno@clisp.org>
47672
47673         Make gnulib-tool work with native 'sed' on AIX.
47674         * gnulib-tool (sed_noop): New variable.
47675         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
47676         func_add_or_update, func_create_testdir): Use it to initialize sed
47677         script variables.
47678         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47679
47680 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
47681             Bruno Haible  <bruno@clisp.org>
47682
47683         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
47684         also works after #include directives.
47685
47686 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
47687
47688         getdate.y: reject an out-of-range timezone value
47689         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
47690         the range [-24...+24].  When specified with only one or two digits,
47691         * tests/test-getdate.c: Tests for the fix.
47692         * doc/getdate.texi: Document this change.
47693
47694 2008-09-03  Bruno Haible  <bruno@clisp.org>
47695
47696         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
47697
47698 2008-09-02  Simon Josefsson  <simon@josefsson.org>
47699
47700         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
47701         <bruce.korb@gmail.com> with ideas from Ben Pfaff
47702         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
47703         Blake <ebb9@byu.net>.
47704
47705         * tests/test-bitrotate.c: Add more test vectors.
47706
47707 2008-09-02  Eric Blake  <ebb9@byu.net>
47708
47709         vasnprintf-posix: handle large precision via %.*d
47710         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
47711         when handling it ourselves.
47712         * tests/test-vasnprintf-posix.c (test_function): Add test.
47713         * tests/test-snprintf-posix.h (test_function): Likewise.
47714         * tests/test-sprintf-posix.h (test_function): Likewise.
47715         * tests/test-vasprintf-posix.c (test_function): Likewise.
47716         Reported by Alain Guibert.
47717
47718 2008-09-01  Eric Blake  <ebb9@byu.net>
47719
47720         c-stack: make configure-time check more robust
47721         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
47722         successful sigaction call.
47723         Reported by Tom G. Christensen.
47724
47725 2008-09-01  Bruno Haible  <bruno@clisp.org>
47726
47727         New module 'findprog-lgpl'.
47728         * modules/findprog-lgpl: New file.
47729         * lib/findprog-lgpl.c: New file.
47730         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
47731         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
47732         to decide whether to use strdup or xstrdup, concatenated_filename or
47733         xconcatenated_filename.
47734
47735 2008-09-01  Bruno Haible  <bruno@clisp.org>
47736
47737         Split module 'concat-filename' into 'concat-filename' (LGPL) and
47738         'xconcat-filename' (GPL).
47739         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
47740         (License): Change to LGPLv2+.
47741         * modules/xconcat-filename: New file.
47742         * lib/concat-filename.h (concatenated_filename): Change specification.
47743         (xconcatenated_filename): New declaration.
47744         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
47745         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
47746         memory situations.
47747         * lib/xconcat-filename.c: New file.
47748         * NEWS: Mention the change.
47749         * lib/findprog.c: Include concat-filename.h, not filename.h.
47750         (find_in_path): Use xconcatenated_filename instead of
47751         concatenated_filename.
47752         * lib/javacomp.c: Include concat-filename.h, not filename.h.
47753         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
47754         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
47755         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
47756         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
47757         instead of concatenated_filename.
47758         * lib/javaexec.c: Include concat-filename.h, not filename.h.
47759         (execute_java_class): Use xconcatenated_filename instead of
47760         concatenated_filename.
47761         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
47762         * modules/javacomp (Depends-on): Likewise.
47763         * modules/javaexec (Depends-on): Likewise.
47764
47765 2008-09-01  Bruno Haible  <bruno@clisp.org>
47766
47767         Split module 'filename' into 'filename' and 'concat-filename'.
47768         * modules/filename: Keep only lib/filename.h.
47769         (License): Change to LGPLv2+.
47770         * modules/concat-filename: New file, extracted from modules/filename.
47771         * lib/filename.h (concatenated_filename): Remove declaration.
47772         * lib/concat-filename.h: New file, extracted from lib/filename.h.
47773         * lib/concat-filename.c: Include concat-filename.h.
47774         * NEWS: Mention the change.
47775
47776 2008-09-01  Simon Josefsson  <simon@josefsson.org>
47777
47778         * lib/bitrotate.h (rotl8, rotr8): Add.
47779
47780         * modules/bitrotate (configure.ac): Need
47781         AC_REQUIRE([AC_C_INLINE]).
47782         (Description): Mention stdint.h.  Reported by Bruno Haible
47783         <bruno@clisp.org>.
47784
47785         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
47786         Paolo Bonzini <bonzini@gnu.org>.
47787
47788 2008-08-31  Bruno Haible  <bruno@clisp.org>
47789
47790         Assume Solaris specific bi-arch conventions on Solaris systems.
47791         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
47792         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
47793         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
47794         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
47795         like acl_libdirstem.
47796         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
47797         acl_libdirstem.
47798         * NEWS: Mention the change.
47799         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
47800
47801 2008-08-31  Jim Meyering  <meyering@redhat.com>
47802
47803         * lib/strftime.h: Add comments describing the two added arguments.
47804
47805         remove duplicate #include directives
47806         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
47807         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
47808
47809 2008-08-31  Bruno Haible  <bruno@clisp.org>
47810
47811         New module 'sigpipe-die'.
47812         * modules/sigpipe-die: New file.
47813         * lib/sigpipe-die.h: New file.
47814         * lib/sigpipe-die.c: New file.
47815         * MODULES.html.sh (Signal handling): Add sigpipe-die.
47816
47817 2008-08-31  Bruno Haible  <bruno@clisp.org>
47818
47819         Don't override previously installed signal handlers.
47820         * lib/fatal-signal.c (saved_sigactions): New variable.
47821         (uninstall_handlers): Reset the signal to the saved handler, not
47822         to SIG_DFL (except when ignored).
47823         (install_handlers): Save the previous handlers.
47824
47825 2008-08-30  Bruno Haible  <bruno@clisp.org>
47826
47827         * gnulib-tool (func_reset_sigpipe): New function.
47828         (func_get_automake_snippet, func_modules_transitive_closure,
47829         func_import): Invoke it before a join command that reads from stdin,
47830         to avoid "echo: write error: Broken pipe" error messages on stderr.
47831         Reported by Sam Steingold <sds@gnu.org>.
47832
47833 2008-08-30  Bruno Haible  <bruno@clisp.org>
47834
47835         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
47836         Code copied from m4/open.m4.
47837         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
47838         access and the filename ends in a slash. Code copied from lib/open.c.
47839         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
47840         * tests/test-fopen.c (main): Check against bug with trailing slash.
47841
47842 2008-08-29  Bruno Haible  <bruno@clisp.org>
47843
47844         Avoid some "gcc -pedantic" warnings.
47845         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
47846         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
47847         * lib/dirent.in.h: Likewise.
47848         * lib/fcntl.in.h: Likewise.
47849         * lib/float.in.h: Likewise.
47850         * lib/iconv.in.h: Likewise.
47851         * lib/inttypes.in.h: Likewise.
47852         * lib/locale.in.h: Likewise.
47853         * lib/math.in.h: Likewise.
47854         * lib/netinet_in.in.h: Likewise.
47855         * lib/search.in.h: Likewise.
47856         * lib/signal.in.h: Likewise.
47857         * lib/stdarg.in.h: Likewise.
47858         * lib/stdint.in.h: Likewise.
47859         * lib/stdio.in.h: Likewise.
47860         * lib/stdlib.in.h: Likewise.
47861         * lib/string.in.h: Likewise.
47862         * lib/strings.in.h: Likewise.
47863         * lib/sys_select.in.h: Likewise.
47864         * lib/sys_socket.in.h: Likewise.
47865         * lib/sys_stat.in.h: Likewise.
47866         * lib/sys_time.in.h: Likewise.
47867         * lib/sysexits.in.h: Likewise.
47868         * lib/time.in.h: Likewise.
47869         * lib/unistd.in.h: Likewise.
47870         * lib/wchar.in.h: Likewise.
47871         * lib/wctype.in.h: Likewise.
47872         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
47873         * modules/fchdir (Makefile.am): Likewise.
47874         * modules/fcntl (Makefile.am): Likewise.
47875         * modules/float (Makefile.am): Likewise.
47876         * modules/iconv_open (Makefile.am): Likewise.
47877         * modules/inttypes (Makefile.am): Likewise.
47878         * modules/locale (Makefile.am): Likewise.
47879         * modules/math (Makefile.am): Likewise.
47880         * modules/netinet_in (Makefile.am): Likewise.
47881         * modules/search (Makefile.am): Likewise.
47882         * modules/signal (Makefile.am): Likewise.
47883         * modules/stdarg (Makefile.am): Likewise.
47884         * modules/stdint (Makefile.am): Likewise.
47885         * modules/stdio (Makefile.am): Likewise.
47886         * modules/stdlib (Makefile.am): Likewise.
47887         * modules/string (Makefile.am): Likewise.
47888         * modules/strings (Makefile.am): Likewise.
47889         * modules/sys_select (Makefile.am): Likewise.
47890         * modules/sys_socket (Makefile.am): Likewise.
47891         * modules/sys_stat (Makefile.am): Likewise.
47892         * modules/sys_time (Makefile.am): Likewise.
47893         * modules/sysexits (Makefile.am): Likewise.
47894         * modules/time (Makefile.am): Likewise.
47895         * modules/unistd (Makefile.am): Likewise.
47896         * modules/wchar (Makefile.am): Likewise.
47897         * modules/wctype (Makefile.am): Likewise.
47898         Reported by Reuben Thomas <rrt@sc3d.org>.
47899
47900 2008-08-29  Bruno Haible  <bruno@clisp.org>
47901
47902         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
47903         any more.
47904
47905 2008-08-29  Simon Josefsson  <simon@josefsson.org>
47906
47907         * MODULES.html.sh (Misc): Add bitrotate.
47908
47909         * modules/bitrotate: New file.
47910
47911         * lib/bitrotate.h: New file.
47912
47913         * modules/bitrotate-tests: New file.
47914
47915         * tests/test-bitrotate.c: New file.
47916
47917         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
47918         on the bitrotate module.
47919
47920         * lib/arctwo.c: Use new bitrotate module.
47921
47922 2008-08-29  Jim Meyering  <meyering@redhat.com>
47923
47924         bootstrap: merge changes from coreutils
47925         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
47926         of copied files.  Remove a kludge, now that this is fixed.
47927         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
47928         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
47929         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
47930
47931 2008-08-29  Bruno Haible  <bruno@clisp.org>
47932
47933         * MODULES.html.sh: Remove --cvs-urls option.
47934
47935 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
47936
47937         maint.mk: adjust to file name change
47938         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
47939
47940 2008-08-28  Jim Meyering  <meyering@redhat.com>
47941
47942         * modules/getndelim2 (License): Relicense to LGPLv2+.
47943         Approved by Richard Stallman for the version of 1995, and by
47944         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
47945
47946 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
47947
47948         * lib/getdelim.c (flockfile, funlockfile): Make all of them
47949         dummy if one is not available.  Do not touch them if
47950         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
47951         (getc_maybe_unlocked): New.
47952         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
47953
47954 2008-08-26  Eric Blake  <ebb9@byu.net>
47955
47956         doc/INSTALL: resync from autoconf
47957         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
47958         (INSTALL_PRELUDE): Delete; this is done more efficiently by
47959         moving...
47960         * install.texi [!autoconf]: ...here.  Resync from autoconf.
47961         * INSTALL: Regenerate.
47962         * INSTALL.ISO: New file.
47963         * INSTALL.UTF-8: Likewise.
47964
47965 2008-08-26  Jim Meyering  <meyering@redhat.com>
47966
47967         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
47968         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
47969         these definitions conditional, so that they may be overridden, too.
47970
47971 2008-08-26  Bruno Haible  <bruno@clisp.org>
47972
47973         Generate INSTALL file variants with prettier quotes.
47974         * doc/Makefile (INSTALL_PRELUDE): New macro.
47975         (INSTALL): Use it.
47976         (INSTALL.ISO, INSTALL.UTF-8): New rules.
47977
47978 2008-08-26  Bruno Haible  <bruno@clisp.org>
47979
47980         Run makeinfo in an English locale.
47981         * doc/Makefile (MAKEINFO): New variable.
47982
47983 2008-08-26  Bruno Haible  <bruno@clisp.org>
47984
47985         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
47986         Suggested by Eric Blake.
47987
47988 2008-08-25  Bruno Haible  <bruno@clisp.org>
47989
47990         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
47991
47992 2008-08-25  Eric Blake  <ebb9@byu.net>
47993
47994         c-stack: test that stack overflow can be caught
47995         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
47996         that platform allows handling stack overflow; at least OS/2 EMX
47997         has sigaltstack, but crashes before transferring control to
47998         handler on stack overflow.
47999         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
48000         check for HAVE_STACK_OVERFLOW_HANDLING.
48001         Reported by Elbert Pol.
48002
48003 2008-08-25  Bruno Haible  <bruno@clisp.org>
48004
48005         * doc/posix-functions/strftime.texi: Fix description of strftime
48006         module.
48007
48008 2008-08-24  Bruno Haible  <bruno@clisp.org>
48009
48010         * tests/uniwidth/test-uc_width2.c: New file.
48011         * tests/uniwidth/test-uc_width2.sh: New file.
48012         * modules/uniwidth/width-tests (Files): Add the new files.
48013         (TESTS): Add uniwidth/test-uc_width2.sh.
48014         (TESTS_ENVIRONMENT): New variable.
48015         (check_PROGRAMS): Add test-uc_width2.
48016         (test_uc_width2_SOURCES): New variable.
48017
48018         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
48019         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
48020         not 0x00AB.
48021         Reported by Alexander V. Lukyanov <lav@netis.ru>.
48022
48023 2008-08-22  Eric Blake  <ebb9@byu.net>
48024
48025         test-lock, test-tls: mention why a test is skipped
48026         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
48027         skipped.
48028         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
48029
48030         count-one-bits: relax license
48031         * modules/count-one-bits (License): Relicense to LGPLv2+.
48032         Suggested by Ludovic Courtès, approved by Ben Pfaff.
48033
48034 2008-08-22  Andreas Schwab  <schwab@suse.de>
48035
48036         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
48037         Remove spurious space in assignment.
48038
48039 2008-08-21  Simon Josefsson  <simon@josefsson.org>
48040
48041         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
48042         Paul Eggert <eggert@CS.UCLA.EDU>.
48043
48044 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
48045
48046         * modules/gettext: Add m4/threadlib.m4.
48047
48048 2008-08-19  Eric Blake  <ebb9@byu.net>
48049
48050         test-c-stack: fix compilation failure on FreeBSD 5.0
48051         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
48052         headers before <sys/resource.h>.
48053         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
48054         the bug.
48055         Reported by Nelson H. F. Beebe.
48056
48057         strverscmp: migrate from "strverscmp.h" to <string.h>
48058         * modules/string (Makefile.am): Add new hooks.
48059         * modules/strverscmp (Files): Remove strverscmp.h.
48060         (Depends-on): Add string.
48061         (configure.ac): Add indicator.
48062         (Include): Mention new header.
48063         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
48064         defaults.
48065         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
48066         results.
48067         * lib/strverscmp.h: Delete.
48068         * lib/string.in.h (strverscmp): Provide declaration, when needed.
48069         * tests/test-strverscmp.c (includes): Adjust client.
48070         * lib/check-version.c (includes): Likewise.
48071         * NEWS: Document the change.
48072
48073         strverscmp: add unit test
48074         * modules/strverscmp-tests: New file.
48075         * tests/test-strverscmp.c: Likewise.
48076
48077 2008-08-19  Simon Josefsson  <simon@josefsson.org>
48078
48079         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
48080         regarding Windows crypto stuff, from Mono.
48081
48082 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
48083
48084         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
48085         if present, for intel RND.  Return error on failures.
48086
48087 2008-08-18  Ben Pfaff  <blp@gnu.org>
48088
48089         gitlog-to-changelog: give better diagnostic for failed pipe-open
48090         * build-aux/gitlog-to-changelog: Improve error message: suggest
48091         that the version of Git may be too old.
48092
48093 2008-08-18  Simon Josefsson  <simon@josefsson.org>
48094
48095         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
48096         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
48097
48098 2008-08-18  Bruno Haible  <bruno@clisp.org>
48099
48100         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
48101         pthread_in_use().
48102
48103 2008-08-18  Bruno Haible  <bruno@clisp.org>
48104
48105         * lib/glthread/threadlib.c: Include <pthread.h>.
48106
48107 2008-08-18  Bruno Haible  <bruno@clisp.org>
48108
48109         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
48110         glthread_recursive_lock_* macros.
48111         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
48112         Fix syntax error.
48113
48114 2008-08-18  Bruno Haible  <bruno@clisp.org>
48115
48116         * lib/glthread/thread.c: Avoid forcing a context switch right after
48117         thread creation.
48118
48119 2008-08-17  Bruno Haible  <bruno@clisp.org>
48120
48121         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
48122         * lib/glthread/thread.h: Provide Win32 specific implementation.
48123         * modules/thread (Files): Add lib/glthread/thread.c.
48124         (Depends-on): Add lock.
48125         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
48126
48127 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48128
48129         New module 'yield'.
48130         * modules/yield: New file.
48131         * lib/glthread/yield.h: New file.
48132         * m4/yield.m4: New file.
48133         * MODULES.html.sh (Multithreading): Add yield.
48134
48135 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48136
48137         New module 'thread'.
48138         * modules/thread: New file.
48139         * lib/glthread/thread.h: New file.
48140         * m4/thread.m4: New file.
48141         * MODULES.html.sh (Multithreading): Add thread.
48142
48143 2008-08-17  Bruno Haible  <bruno@clisp.org>
48144
48145         * lib/glthread/lock.h: Include <stdlib.h> always.
48146         * lib/glthread/tls.h: Likewise.
48147         * lib/glthread/cond.h: Likewise.
48148
48149 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48150
48151         New module 'cond'.
48152         * modules/cond: New file.
48153         * lib/glthread/cond.h: New file.
48154         * lib/glthread/cond.c: New file.
48155         * m4/cond.m4: New file.
48156         * MODULES.html.sh (Multithreading): Add cond.
48157
48158 2008-08-16  Eric Blake  <ebb9@byu.net>
48159
48160         c-stack: fix regression on Irix 5.3 from 2008-06-21
48161         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
48162         sa_sigaction...
48163         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
48164         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
48165         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
48166         * modules/signal (Makefile.am): Use the value.
48167         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
48168         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
48169         * doc/posix-headers/signal.texi (signal.h): Document this
48170         portability issue.
48171         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
48172         Reported by Tom G. Christensen.
48173
48174 2008-08-17  Bruno Haible  <bruno@clisp.org>
48175
48176         New module 'threadlib'.
48177         * modules/threadlib: New file.
48178         * lib/glthread/threadlib.c: New file, extracted from
48179         lib/glthread/lock.c.
48180         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
48181         functions.
48182         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
48183         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
48184         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
48185         macros.
48186         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
48187         (gl_DISABLE_THREADS): Remove macro.
48188         * modules/lock (Files): Remove build-aux/config.rpath.
48189         (Depends-on): Remove havelib. Add threadlib.
48190         (configure.ac-early): Remove section.
48191         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
48192         * modules/tls (Depends-on): Remove lock. Add threadlib.
48193         (Link): New section, copied from threadlib.
48194         * MODULES.html.sh (Multithreading): Add threadlib.
48195
48196 2008-08-14  Bruno Haible  <bruno@clisp.org>
48197
48198         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
48199         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
48200         glthread_rwlock_unlock, glthread_rwlock_destroy,
48201         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
48202         glthread_recursive_lock_destroy): Define as macros always.
48203         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
48204         glthread_lock_lock.
48205         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
48206         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
48207         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
48208         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
48209         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
48210         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
48211         (glthread_recursive_lock_lock_func): Renamed from
48212         glthread_recursive_lock_lock.
48213         (glthread_recursive_lock_unlock_func): Renamed from
48214         glthread_recursive_lock_unlock.
48215         (glthread_recursive_lock_destroy_func): Renamed from
48216         glthread_recursive_lock_destroy.
48217
48218 2008-08-14  Bruno Haible  <bruno@clisp.org>
48219
48220         * lib/glthread/lock.h: Renamed from lib/lock.h.
48221         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
48222         * lib/glthread/tls.h: Renamed from lib/tls.h.
48223         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
48224         * lib/fstrcmp.c: Update includes.
48225         * lib/strsignal.c: Update includes.
48226         * modules/lock (Files, Makefile.am): Update.
48227         (Include): Change to "glthread/lock.h".
48228         * modules/tls (Files, Makefile.am): Update.
48229         (Include): Change to "glthread/tls.h".
48230         * tests/test-lock.c: Update includes.
48231         * tests/test-tls.c: Update includes.
48232         * NEWS: Mention the renamed header files.
48233
48234 2008-08-11  Jim Meyering  <meyering@redhat.com>
48235
48236         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
48237
48238 2008-08-11  Eric Blake  <ebb9@byu.net>
48239
48240         test-c-stack: avoid C99-ism
48241         * tests/test-c-stack.c (main): Fix whitespace, move declaration
48242         before statement.
48243         Reported by Alain Guibert.
48244
48245 2008-08-10  Jim Meyering  <meyering@redhat.com>
48246
48247         ensure that return value of uinttostr et al are not ignored
48248         * lib/inttostr.h (__GNUC_PREREQ): Define.
48249         (__attribute_warn_unused_result__): Define.
48250         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
48251
48252 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
48253
48254         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
48255         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
48256
48257 2008-08-07  Jim Meyering  <meyering@redhat.com>
48258
48259         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
48260
48261         * modules/mkstemp (License): Relicense under LGPLv2+.
48262         * modules/tempname (License): Likewise.
48263
48264 2008-08-06  Bruno Haible  <bruno@clisp.org>
48265
48266         * lib/poll.c (poll): Further micro-optimization.
48267
48268 2008-08-06  Jim Meyering  <meyering@redhat.com>
48269
48270         inet_pton.c: use locale-independent tolower
48271         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
48272         (inet_pton6): Use c_tolower rather than tolower.
48273         * modules/inet_pton (Depends-on): Add c-ctype.
48274
48275 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
48276
48277         * lib/poll.c (poll): Avoid division when timeout is 0, cache
48278         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
48279
48280 2008-08-06  Jim Meyering  <meyering@redhat.com>
48281
48282         * modules/inet_pton (License): Relicense under LGPLv2+.
48283
48284 2008-08-03  Bruno Haible  <bruno@clisp.org>
48285
48286         Additional non-aborting API for lock and tls.
48287         * lib/lock.h: Include <errno.h>.
48288         (glthread_lock_init): New macro/function.
48289         (gl_lock_init): Define as wrapper around glthread_lock_init.
48290         (glthread_lock_lock): New macro/function.
48291         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
48292         (glthread_lock_unlock): New macro/function.
48293         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
48294         (glthread_lock_destroy): New macro/function.
48295         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
48296         (glthread_rwlock_init): New macro/function.
48297         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
48298         (glthread_rwlock_rdlock): New macro/function.
48299         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
48300         (glthread_rwlock_wrlock): New macro/function.
48301         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
48302         (glthread_rwlock_unlock): New macro/function.
48303         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
48304         (glthread_rwlock_destroy): New macro/function.
48305         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
48306         (glthread_recursive_lock_init): New macro/function.
48307         (gl_recursive_lock_init): Define as wrapper around
48308         glthread_recursive_lock_init.
48309         (glthread_recursive_lock_lock): New macro/function.
48310         (gl_recursive_lock_lock): Define as wrapper around
48311         glthread_recursive_lock_lock.
48312         (glthread_recursive_lock_unlock): New macro/function.
48313         (gl_recursive_lock_unlock): Define as wrapper around
48314         glthread_recursive_lock_unlock.
48315         (glthread_recursive_lock_destroy): New macro/function.
48316         (gl_recursive_lock_destroy): Define as wrapper around
48317         glthread_recursive_lock_destroy.
48318         (glthread_once): New macro/function.
48319         (gl_once): Define as wrapper around glthread_once.
48320         Update function declarations.
48321         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
48322         glthread_rwlock_init. Return error code.
48323         (glthread_rwlock_rdlock_multithreaded): Renamed from
48324         glthread_rwlock_rdlock. Return error code.
48325         (glthread_rwlock_wrlock_multithreaded): Renamed from
48326         glthread_rwlock_wrlock. Return error code.
48327         (glthread_rwlock_unlock_multithreaded): Renamed from
48328         glthread_rwlock_unlock. Return error code.
48329         (glthread_rwlock_destroy_multithreaded): Renamed from
48330         glthread_rwlock_destroy. Return error code.
48331         (glthread_recursive_lock_init_multithreaded): Renamed from
48332         glthread_recursive_lock_init. Return error code.
48333         (glthread_recursive_lock_lock_multithreaded): Renamed from
48334         glthread_recursive_lock_lock. Return error code.
48335         (glthread_recursive_lock_unlock_multithreaded): Renamed from
48336         glthread_recursive_lock_unlock. Return error code.
48337         (glthread_recursive_lock_destroy_multithreaded): Renamed from
48338         glthread_recursive_lock_destroy. Return error code.
48339         (glthread_once_call): Make static.
48340         (glthread_once_multithreaded): Renamed from glthread_once.
48341         * lib/tls.h: Include <errno.h>.
48342         (glthread_tls_key_init): New macro/function.
48343         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
48344         (glthread_tls_set): New macro/function.
48345         (gl_tls_set): Define as wrapper around glthread_tls_set.
48346         (glthread_tls_key_destroy): New macro/function.
48347         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
48348         Update function declarations.
48349         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
48350         glthread_tls_get.
48351         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
48352
48353 2008-08-04  Eric Blake  <ebb9@byu.net>
48354
48355         gnumakefile: use space, not TAB, outside of targets
48356         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
48357
48358 2008-08-02  Jim Meyering  <meyering@redhat.com>
48359
48360         getdate.y: avoid locale-dependent date parsing failure
48361         In Turkish locales, getdate would fail to recognize keywords
48362         containing a lowercase "i".  The solution is not to rely on
48363         locale-sensitive case-conversion.
48364         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
48365         (lookup_word): Use c_toupper in place of toupper.
48366         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
48367         Reported by Vefa Bicakci <bicave@superonline.com> in
48368         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
48369         * modules/getdate (Depends-on): Add c-ctype.
48370
48371 2008-08-02  Bruno Haible  <bruno@clisp.org>
48372
48373         * gnulib-tool (func_import): When updating or creating a .gitignore
48374         file, prepend each added line with a slash, and ignore leading slashes
48375         from the existing lines.
48376         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
48377
48378 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48379
48380         Portability fix for GNU make 3.79.1.
48381         * top/GNUmakefile: Avoid 'else COND', which older GNU make
48382         versions do not understand.
48383
48384 2008-08-01  Bruno Haible  <bruno@clisp.org>
48385
48386         Work around bug of HP-UX 10.20 cc with -0.0 literal.
48387         * tests/test-isnanf.h (zero): New variable.
48388         (main): Avoid literal -0.0f.
48389         * tests/test-isnand.h (zero): New variable.
48390         (main): Avoid literal -0.0.
48391         * tests/test-isnanl.h (zero): New variable.
48392         (main): Avoid literal -0.0L.
48393         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
48394         (test_float, test_double, test_long_double): Avoid literals -0.0f,
48395         -0.0, -0.0L.
48396         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
48397         (test_signbitd): Avoid literal -0.0.
48398         (test_signbitl): Avoid literal -0.0L.
48399         * tests/test-ceilf1.c (zero): New variable.
48400         (main): Avoid literal -0.0f.
48401         * tests/test-ceill.c (zero): New variable.
48402         (main): Avoid literal -0.0L.
48403         * tests/test-floorf1.c (zero): New variable.
48404         (main): Avoid literal -0.0f.
48405         * tests/test-floorl.c (zero): New variable.
48406         (main): Avoid literal -0.0L.
48407         * tests/test-roundf1.c (zero): New variable.
48408         (main): Avoid literal -0.0f.
48409         * tests/test-round1.c (zero): New variable.
48410         (main): Avoid literal -0.0.
48411         * tests/test-roundl.c (zero): New variable.
48412         (main): Avoid literal -0.0L.
48413         * tests/test-truncf1.c (zero): New variable.
48414         (main): Avoid literal -0.0f.
48415         * tests/test-trunc1.c (zero): New variable.
48416         (main): Avoid literal -0.0.
48417         * tests/test-truncl.c (zero): New variable.
48418         (main): Avoid literal -0.0L.
48419         * tests/test-frexp.c (zero): New variable.
48420         (main): Avoid literal -0.0.
48421         * tests/test-frexpl.c (zero): New variable.
48422         (main): Avoid literal -0.0L.
48423         * tests/test-ldexpl.c (zero): New variable.
48424         (main): Avoid literal -0.0L.
48425         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
48426         (zerod, zerol): New variables.
48427         (test_function): Avoid literals -0.0, -0.0L.
48428         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
48429         (zerod, zerol): New variables.
48430         (test_function): Avoid literals -0.0, -0.0L.
48431         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
48432         (zerod, zerol): New variables.
48433         (test_function): Avoid literals -0.0, -0.0L.
48434         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
48435         (zerod, zerol): New variables.
48436         (test_function): Avoid literals -0.0, -0.0L.
48437         * tests/test-strtod.c (zero): New variable.
48438         (main): Avoid literal -0.0.
48439         Reported by Jonathan C. Patschke <jp@centtech.com>.
48440
48441 2008-07-31  Jim Meyering  <meyering@redhat.com>
48442
48443         sha256.h: correct definition of SHA224_DIGEST_SIZE
48444         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
48445         Reported by Paulie Pena IV <paulie4@gmail.com>.
48446         Define as 224 / 8, rather than as a literal.
48447         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
48448         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
48449         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
48450
48451 2008-07-31  Bruno Haible  <bruno@clisp.org>
48452
48453         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
48454         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
48455         Reported by Jonathan Patschke <jp@centtech.com>.
48456
48457 2008-07-31  Bruno Haible  <bruno@clisp.org>
48458
48459         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
48460         Reported by Paolo Bonzini <bonzini@gnu.org>.
48461
48462 2008-07-30  Eric Blake  <ebb9@byu.net>
48463
48464         test-strtod: allow compilation without -lm
48465         * tests/test-strtod.c (main): Avoid link dependence on fabs.
48466         Reported by Dennis Clarke <blastwave@gmail.com>.
48467
48468 2008-07-28  Jim Meyering  <meyering@redhat.com>
48469
48470         bootstrap: work also when there are no .po files in po/
48471         * build-aux/bootstrap (update_po_files): Complete the change
48472         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
48473
48474 2008-07-27  Jim Meyering  <meyering@redhat.com>
48475
48476         * users.txt: Add zile.
48477
48478 2008-07-26  Ben Pfaff  <blp@gnu.org>
48479
48480         Add missing dependencies on new m4/exponent[fdl].m4 files.
48481         * modules/isnanf-nolibm: Add m4/exponentf.m4.
48482         * modules/isnand-nolibm: Add m4/exponentd.m4.
48483         * modules/isnanl-nolibm: Add m4/exponentl.m4.
48484         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
48485         m4/isnan[fdl].m4, because the macros actually used moved.
48486         Reported by Jim Meyering.
48487
48488 2008-07-14  Ben Pfaff  <blp@gnu.org>
48489
48490         Add isinf module.
48491         * lib/isinf.c: New file.
48492         * lib/math.in.h: Define isinf macro if we have decided to replace
48493         it.
48494         * m4/isinf.m4: New file.
48495         * m4/math_h.m4: Initialize and substitute variables for isinf
48496         module.
48497         * modules/isinf: New file.
48498         * modules/isinf-tests: New file.
48499         * modules/math: Add substitutions for new module.
48500         * tests/test-isinf.c: New file.
48501         * doc/posix-functions/isinf.texi: Mention new module.
48502         * MODULES.html.sh: Mention new module.
48503
48504 2008-07-14  Ben Pfaff  <blp@gnu.org>
48505
48506         Factor out some macros for use by additional modules.
48507         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
48508         exponentf.m4.
48509         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
48510         exponentd.m4.
48511         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
48512         file exponentl.m4.
48513         * m4/exponentf.m4: New file.
48514         * m4/exponentd.m4: New file.
48515         * m4/exponentl.m4: New file.
48516         * modules/isnanf: Use new file m4/exponentf.m4.
48517         * modules/isnand: Use new file m4/exponentd.m4.
48518         * modules/isnanl: Use new file m4/exponentl.m4.
48519
48520 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
48521
48522         mktime.c: normalize tp->tm_isdst value to -1/0/1.
48523         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
48524         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
48525         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
48526
48527         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
48528         readlink on platforms without PATH_MAX.
48529
48530 2008-07-21  Eric Blake  <ebb9@byu.net>
48531
48532         Warn, not fail, on stale version.
48533         * top/GNUmakefile (_curr-ver): Tone down previous patch.
48534
48535         Don't allow installation with stale devel version number.
48536         * top/GNUmakefile (_is-install-target): New macro.
48537         (_curr-ver): Forbid installation with stale version number.
48538
48539 2008-07-20  Bruno Haible  <bruno@clisp.org>
48540
48541         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
48542         TESTS_ENVIRONMENT.
48543         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
48544
48545 2008-07-20  Bruno Haible  <bruno@clisp.org>
48546
48547         * lib/c-stack.h (c_stack_action): Add documentation.
48548         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
48549
48550 2008-07-20  Bruno Haible  <bruno@clisp.org>
48551
48552         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
48553         * modules/readlink (License): Likewise.
48554
48555 2008-07-17  Eric Blake  <ebb9@byu.net>
48556
48557         * modules/c-stack (Link): Fix typo.
48558
48559         Make c-stack use libsigsegv, when available.
48560         * modules/c-stack (Depends-on): Add libsigsegv.
48561         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
48562         needed.
48563         * lib/c-stack.c (SIGSTKSZ): Define fallback.
48564         (segv_handler, overflow_handler, c_stack_action)
48565         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
48566         implementation when libsigsegv is available, but only when using
48567         the library is necessary.
48568         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
48569         comment, explaining why XSI check fails on Linux.
48570         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
48571         * tests/test-c-stack2.sh: Tweak skip message.
48572         * NEWS: Document new link-time requirements.
48573
48574 2008-07-16  Eric Blake  <ebb9@byu.net>
48575
48576         c-stack: Expose false positives when not using libsigsegv.
48577         * modules/c-stack-tests (Files): Expand test.
48578         * tests/test-c-stack.c (main): Add means to conditionally trigger
48579         non-overflow SIGSEGV.
48580         * tests/test-c-stack2.sh: New file.
48581
48582 2008-07-14  Bruno Haible  <bruno@clisp.org>
48583
48584         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
48585         Reported by Eric Blake.
48586
48587 2008-07-14  Sam Steingold  <sds@gnu.org>
48588             Bruno Haible  <bruno@clisp.org>
48589
48590         New module libsigsegv.
48591         * modules/libsigsegv: New file.
48592         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
48593         modifications.
48594         * MODULES.html.sh (Signal handling): New section.
48595
48596 2008-07-14  Bruno Haible  <bruno@clisp.org>
48597
48598         * modules/unictype/ctype-* (Description): Add the word "function".
48599         Improves the resulting doc in MODULES.html.
48600
48601 2008-07-12  Ben Pfaff  <blp@gnu.org>
48602
48603         Add longlong module.
48604         * modules/longlong: New file.
48605
48606 2008-07-12  Bruno Haible  <bruno@clisp.org>
48607
48608         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
48609         to empty.
48610
48611 2008-07-10  Ben Pfaff  <blp@gnu.org>
48612
48613         Add isnan module.
48614         * doc/posix-functions/isnan.texi: Mention new module.
48615         * lib/math.in.h: Define isnan macro if we have decided to replace
48616         it.
48617         * m4/isnan.m4: New file.
48618         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
48619         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
48620         also.
48621         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
48622         redundancy.
48623         * m4/math_h.m4: Initialize and substitute variables for isnan
48624         module.
48625         * modules/isnan: New file.
48626         * modules/isnan-tests: New file.
48627         * modules/math: Add substitutions for new module.
48628         * tests/test-isnan.c: New file.
48629         * MODULES.html.sh: Mention new module.
48630
48631 2008-07-10  Ben Pfaff  <blp@gnu.org>
48632
48633         Add isnanf module.
48634         * lib/isnanf.m4: New file.
48635         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
48636         (gl_HAVE_ISNANF_IN_LIBM): New macro.
48637         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
48638         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
48639         * modules/isnanf: New file.
48640         * modules/isnanf-tests: New file.
48641         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
48642         files.
48643         * tests/test-isnanf-nolibm.c: factored most of its contents into
48644         new file tests/test-isnanf.h.
48645         * tests/test-isnanf.h: New file.
48646         * tests/test-isnanf.c: New file.
48647         * MODULES.html.sh: Mention new module.
48648         * doc/glibc-functions/isnanf.texi: Mention new module.
48649
48650 2008-07-10  Ben Pfaff  <blp@gnu.org>
48651
48652         Add isnand module.
48653         * lib/isnand.h: New file.
48654         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
48655         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
48656         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
48657         functionality also.
48658         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
48659         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
48660         (gl_HAVE_ISNAND_IN_LIBM): New macro.
48661         * modules/isnand: New file.
48662         * modules/isnand-tests: New file.
48663         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
48664         files.
48665         * tests/test-isnand-nolibm.c: factored most of its contents into
48666         new file tests/test-isnand.h.
48667         * tests/test-isnand.h: New file.
48668         * tests/test-isnand.c: New file.
48669         * MODULES.html.sh: Mention new module.
48670
48671 2008-07-10  Ben Pfaff  <blp@gnu.org>
48672
48673         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
48674         * lib/isnand.h: Rename lib/isnand-nolibm.h.
48675         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
48676         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
48677         * modules/isnanf-nolibm: Update references to renamed files.
48678         * modules/isnand-nolibm: Likewise.
48679         * modules/isnanf-nolibm-tests: Likewise.
48680         * modules/isnand-nolibm-tests: Likewise.
48681         * lib/frexp.c: Likewise.
48682         * lib/isfinite.c: Likewise.
48683         * lib/signbitd.c: Likewise.
48684         * lib/signbitf.c: Likewise.
48685         * lib/vasnprintf.c: Likewise.
48686         * tests/test-ceilf1.c: Likewise.
48687         * tests/test-ceilf2.c: Likewise.
48688         * tests/test-floorf1.c: Likewise.
48689         * tests/test-floorf2.c: Likewise.
48690         * tests/test-frexp.c: Likewise.
48691         * tests/test-round1.c: Likewise.
48692         * tests/test-round2.c: Likewise.
48693         * tests/test-roundf1.c: Likewise.
48694         * tests/test-strtod.c: Likewise.
48695         * tests/test-trunc1.c: Likewise.
48696         * tests/test-trunc2.c: Likewise.
48697         * tests/test-truncf1.c: Likewise.
48698         * tests/test-truncf2.c: Likewise.
48699         * NEWS: Mention the renamed header files.
48700
48701 2008-07-11  Jim Meyering  <meyering@redhat.com>
48702
48703         vc-list-files: make the last-resort awk code more portable
48704         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
48705         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
48706         does not support it.
48707
48708 2008-07-10  Eric Blake  <ebb9@byu.net>
48709
48710         Work with tar's bootstrap.
48711         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
48712         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
48713         an m4 comment.
48714
48715 2008-07-09  Jim Meyering  <meyering@redhat.com>
48716
48717         posix-shell.m4: fix typo that made this test malfunction
48718         * m4/posix-shell.m4: Remove capitalization in variable name.
48719
48720 2008-07-08  Bruno Haible  <bruno@clisp.org>
48721
48722         * m4/onceonly.m4: Update comments.
48723         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48724
48725 2008-07-04  Jim Meyering  <meyering@redhat.com>
48726
48727         * users.txt: Add vc-dwim.
48728         (bison, coreutils): Use the gitweb URL.
48729
48730 2008-07-03  Jim Meyering  <meyering@redhat.com>
48731
48732         * users.txt: Add libffcall.  From Sam Steingold.
48733
48734 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
48735
48736         getdate.y: do not ignore TZ with relative day, month or year offset
48737         * lib/getdate.y (get_date): Move the tz-handling block to follow the
48738         relative-date-handling, since otherwise, the latter would clobber the
48739         sole output (an updated Start value) of the tz-handling block.
48740         * tests/test-getdate.c: Tests for the fix
48741
48742 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48743
48744         Recognize 'foo_LIBRARIES += libgnu.a'.
48745         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
48746         makefile snippet has already specified an installation location,
48747         also using '+='.
48748
48749 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
48750
48751         getdate.y: factor out common actions
48752         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
48753         Use them in place of open-coded actions.
48754
48755 2008-07-01  Simon Josefsson  <simon@josefsson.org>
48756
48757         Add self-test for getdate module.
48758         * modules/getdate-tests: New file.
48759         * tests/test-getdate.c: New file.
48760
48761 2008-06-29  Bruno Haible  <bruno@clisp.org>
48762
48763         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
48764         .gitignore.
48765         Reported by Sylvain Beucler <beuc@beuc.net>.
48766
48767 2008-06-29  Bruno Haible  <bruno@clisp.org>
48768
48769         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
48770         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
48771
48772 2008-06-29  Bruno Haible  <bruno@clisp.org>
48773
48774         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
48775         EXTRA_DIST.
48776         Reported by Sylvain Beucler <beuc@beuc.net>.
48777
48778 2008-06-26  Jim Meyering  <meyering@redhat.com>
48779
48780         make several modules depend on the "open" module
48781         This provides slightly increased consistency when opening-for-write
48782         the name of a non-directory spelled with a trailing slash.
48783         * modules/chdir-safer: Likewise.
48784         * modules/chown: Likewise.
48785         * modules/clean-temp: Likewise.
48786         * modules/copy-file: Likewise.
48787         * modules/fchdir: Likewise.
48788         * modules/fcntl-safer: Likewise.
48789         * modules/pipe: Likewise.
48790         * modules/utime: Likewise.
48791         Prompted by Eric Blake and Bruno Haible.
48792
48793 2008-06-24  Andreas Schwab  <schwab@suse.de>
48794
48795         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
48796         literals can be used as initializers for global variables.
48797
48798 2008-06-23  Eric Blake  <ebb9@byu.net>
48799
48800         Make gnulib-cache.m4 easier to diff.
48801         * gnulib-tool (func_import): Allow newlines when reading cached
48802         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
48803
48804 2008-06-23  Bruno Haible  <bruno@clisp.org>
48805
48806         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
48807         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
48808         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
48809         m4/signalblocking.m4.
48810         (gl_PREREQ_SIGACTION): Don't invoke it.
48811         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
48812         gl_PREREQ_SIG_HANDLER_H.
48813         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48814         Don't check for sigaction here.
48815
48816 2008-06-23  Bruno Haible  <bruno@clisp.org>
48817
48818         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
48819         (install_handlers): Don't set the SA_RESETHAND flag.
48820
48821 2008-06-23  Bruno Haible  <bruno@clisp.org>
48822
48823         * m4/sigaction.m4: Comment fixes.
48824         * lib/signal.in.h: Likewise.
48825
48826 2008-06-23  Eric Blake  <ebb9@byu.net>
48827
48828         Fix typo.
48829         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
48830
48831         Avoid SA_ namespace.
48832         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
48833         Reported by Ralf Wildenhues.
48834
48835         Avoid test failure due to SA_RESTORER.
48836         * tests/test-sigaction.c (SA_MASK): New macro.
48837         (main): Avoid failing due to extension flags being set.
48838         Reported by Jim Meyering.
48839
48840         Revert use of sig-handler.h in sigprocmask.c.
48841         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
48842         it requires the existence of struct sigaction.
48843         * lib/sigprocmask.c (handler_t): Restore typedef.
48844         (rpl_signal, old_handlers): Use local type.
48845
48846 2008-06-22  Bruno Haible  <bruno@clisp.org>
48847
48848         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
48849         conditionally.
48850         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48851
48852 2008-06-22  Bruno Haible  <bruno@clisp.org>
48853
48854         * doc/posix-functions/siginterrupt.texi: Move note.
48855
48856         * lib/signal.in.h (SA_RESTART): New macro.
48857         * lib/sigaction.c: Update comment.
48858
48859         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
48860
48861         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
48862         (gl_PREREQ_SIGPROCMASK): Invoke it.
48863         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
48864
48865         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
48866
48867         * lib/sigprocmask.c: Update a comment.
48868
48869 2008-06-21  Eric Blake  <ebb9@byu.net>
48870
48871         Use sigaction module rather than signal().
48872         * modules/c-stack (Depends-on): Add sigaction.
48873         * modules/fatal-signal (Depends-on): Likewise.
48874         * modules/nanosleep (Depends-on): Likewise.
48875         * modules/sigprocmask (Files): Add sig-handler.h.
48876         * modules/sigaction (Files): Likewise.
48877         * lib/sig-handler.h (get_handler): New file, suggested by Paul
48878         Eggert.
48879         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
48880         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
48881         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
48882         (init_fatal_signals): Likewise.
48883         * lib/nanosleep.c (rpl_nanosleep): Likewise.
48884         (siginterrupt): Delete fallback.
48885         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
48886         instead.
48887         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
48888         siginterrupt.
48889
48890         New module sigaction, for mingw.
48891         * modules/sigaction: New module...
48892         * modules/sigaction-tests: ...and its test.
48893         * m4/sigaction.m4: New file.
48894         * lib/sigaction.c: Likewise.
48895         * tests/test-sigaction.c: Likewise.
48896         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
48897         * modules/signal (Makefile.am): Likewise.
48898         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
48899         needed.
48900         * doc/posix-headers/signal.texi (signal.h): Mention provided
48901         types.
48902         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
48903         that sigaction is preferable.
48904         * doc/posix-functions/sigaction.texi (sigaction): Mention new
48905         module.
48906         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48907         sigaction.
48908
48909         Improve robustness of sigprocmask by overriding signal.
48910         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
48911         is in use.
48912         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
48913         (SIGKILL, SIGSTOP): Provide fallbacks.
48914         (rpl_signal): Implement.
48915         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
48916         signal can be called inside handlers.
48917
48918         Fix nanosleep module on mingw.
48919         * modules/nanosleep (Depends-on): Add sys_select.
48920         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
48921
48922         Fix licensing of sigprocmask.
48923         * modules/raise (License): Relicense as LGPL.
48924
48925 2008-06-21  Bruno Haible  <bruno@clisp.org>
48926
48927         * lib/propername.c (proper_name_utf8): Don't use the transliterated
48928         result if it contains question marks.
48929         Reported by Michael Geng <linux@michaelgeng.de>.
48930
48931 2008-06-19  Bruno Haible  <bruno@clisp.org>
48932
48933         Fix CVS-ism.
48934         * doc/gnulib.texi: Include updated-stamp.texi.
48935         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
48936         (updated-stamp.texi): New rule.
48937         (gnulib.info): Depend on it.
48938         * doc/.gitignore: Add updated-stamp.texi.
48939         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
48940
48941 2008-06-19  Bruno Haible  <bruno@clisp.org>
48942
48943         * doc/Makefile (gnulib.info): Update and simplify dependencies.
48944         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48945
48946 2008-06-19  Eric Blake  <ebb9@byu.net>
48947
48948         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
48949         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
48950         Reported by Stepan Kasal.
48951
48952 2008-06-18  Bruno Haible  <bruno@clisp.org>
48953
48954         * lib/fatal-signal.c (init_fatal_signals): Add comment.
48955         Reported by Eric Blake.
48956
48957 2008-06-18  Eric Blake  <ebb9@byu.net>
48958
48959         Work around cygwin 1.5.25 strsignal bug.
48960         * tests/test-strsignal.c: Allow for const char *.
48961         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
48962
48963 2008-06-18  Simon Josefsson  <simon@josefsson.org>
48964
48965         * users.txt: Update URL to article and add author/date
48966         information.
48967
48968 2008-06-17  Bruno Haible  <bruno@clisp.org>
48969
48970         New macro gl_DISABLE_THREADS.
48971         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
48972         if the user did not pass --enable-threads or --disable-threads option.
48973         (gl_DISABLE_THREADS): New macro.
48974         Reported by Eric Blake <ebb9@byu.net>.
48975
48976 2008-06-17  Bruno Haible  <bruno@clisp.org>
48977
48978         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
48979         when the macro ignores it.
48980         Based on a patch by Eric Blake <ebb9@byu.net>.
48981
48982 2008-06-17  Bruno Haible  <bruno@clisp.org>
48983
48984         * modules/tls (License): Change to LGPLv2+.
48985         Reported by Eric Blake.
48986
48987 2008-06-17  Eric Blake  <ebb9@byu.net>
48988
48989         Simplify c-stack prerequisites.
48990         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
48991         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
48992         no longer requires <ucontext.h> to exist.  Optimize setrlimit
48993         check.
48994         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
48995         <sys/resource.h>.
48996
48997         Move c-stack test into testsuite.
48998         * modules/c-stack-tests: New file.
48999         * lib/c-stack.c [DEBUG]: Move test program...
49000         * tests/test-c-stack.c: ...into this new file.  Skip rather than
49001         fail test if sigaltstack is lacking.
49002         * tests/test-c-stack.sh: New driver file.
49003
49004 2008-06-16  Eric Blake  <ebb9@byu.net>
49005
49006         Use raise module consistently.
49007         * modules/fatal-signal (Depends-on): Add raise.
49008         * modules/sigprocmask (Depends-on): Likewise.
49009         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
49010         * lib/sigprocmask.c (sigprocmask): Likewise.
49011         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
49012         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
49013
49014         Fix compliance bug in sigpending.
49015         * lib/sigprocmask.c (sigpending): Return pending array via
49016         parameter, not return value.
49017
49018 2008-06-14  Eric Blake  <ebb9@byu.net>
49019
49020         Improve obstack-printf test code.
49021         * tests/test-obstack-printf.c (test_function): Fix comment, and
49022         simplify usage of obstack_* in macros.  Add a test for coverage.
49023         Reported by Bruno Haible.
49024
49025 2008-06-14  Bruno Haible  <bruno@clisp.org>
49026
49027         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
49028         array size as a constant, not as a const variable.
49029         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
49030         AC_USE_SYSTEM_EXTENSIONS.
49031         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
49032         Test whether the obstack_printf function actually exists.
49033         * modules/obstack-printf (Depends-on): Add extensions.
49034         (Include): Remove obstack.h.
49035         * modules/obstack-printf-posix (Depends-on): Add extensions.
49036         (Include): Remove obstack.h.
49037
49038 2008-06-13  Eric Blake  <ebb9@byu.net>
49039
49040         Add obstack-printf and obstack-printf-posix modules.
49041         * modules/obstack-printf: New file.
49042         * modules/obstack-printf-posix: Likewise.
49043         * MODULES.html.sh (Misc): Mention them.
49044         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
49045         Likewise.
49046         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
49047         Likewise.
49048         * modules/stdio (Makefile.am): Accomodate new modules.
49049         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
49050         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
49051         Declare.
49052         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
49053         functions.
49054         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
49055         (gl_REPLACE_OBSTACK_PRINTF): New macros
49056         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
49057         * tests/test-obstack-printf.c: New file.
49058         * modules/obstack-printf-tests: Likewise.
49059         * modules/obstack-printf-posix-tests: Likewise.
49060
49061 2008-06-11  Bruno Haible  <bruno@clisp.org>
49062
49063         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
49064         * lib/open.c: Include errno.h.
49065         (open): Fail when attempting to write to a file that has a trailing
49066         slash.
49067         * tests/test-open.c (main): Test against trailing slash bug.
49068         * doc/posix-functions/open.texi: Mention the trailing slash bug.
49069
49070 2008-06-10  Bruno Haible  <bruno@clisp.org>
49071
49072         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
49073         for $? to work inside the trap command, with various /bin/sh-s.
49074         * tests/test-vc-list-files-cvs.sh: Likewise.
49075
49076 2008-06-10  Bruno Haible  <bruno@clisp.org>
49077
49078         * lib/acl-internal.h: Don't include gettext.h here.
49079         * lib/set-mode-acl.c: Include gettext.h here.
49080         * lib/copy-acl.c: Likewise.
49081
49082 2008-06-10  Bruno Haible  <bruno@clisp.org>
49083
49084         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
49085         * lib/wait-process.c (wait_subprocess): Likewise.
49086         * lib/execute.h (execute): Add termsigp argument.
49087         * lib/execute.c (execute): Likewise.
49088         * lib/csharpcomp.c (compile_csharp_using_pnet,
49089         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
49090         * lib/csharpexec.c (execute_csharp_using_pnet,
49091         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
49092         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
49093         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
49094         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
49095         is_jikes_present): Update.
49096         * lib/javaexec.c (execute_java_class): Update.
49097         * lib/javaversion.c (execute_and_read_line): Update.
49098         * NEWS: Document the changes.
49099         Reported by Eric Blake.
49100
49101 2008-06-10  Eric Blake  <ebb9@byu.net>
49102
49103         Add missing include.
49104         * tests/test-strstr.c (includes): Add <signal.h>.
49105         * tests/test-strcasestr.c (includes): Likewise.
49106         * tests/test-memmem.c (includes): Likewise.
49107
49108 2008-06-10  Bruno Haible  <bruno@clisp.org>
49109
49110         * lib/wait-process.c (wait_subprocess): Add an assertion.
49111
49112 2008-06-10  Bruno Haible  <bruno@clisp.org>
49113
49114         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
49115
49116 2008-06-10  Bruno Haible  <bruno@clisp.org>
49117
49118         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
49119         using alarm().
49120         * tests/test-strcasestr.c (main): Likewise.
49121         * tests/test-strstr.c (main): Likewise.
49122
49123 2008-06-09  Bruno Haible  <bruno@clisp.org>
49124
49125         Work around the Solaris 10 ACE ACLs ABI change.
49126         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
49127         declare if ACL_NO_TRIVIAL is present.
49128         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
49129         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
49130         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
49131         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
49132         define if ACL_NO_TRIVIAL is present.
49133         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
49134         and use the current ABI.
49135         (file_has_acl): Use same #if condition as elsewhere.
49136         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
49137         in use, and use the current ABI.
49138         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
49139         Reported by Jim Meyering.
49140
49141 2008-06-09  Eric Blake  <ebb9@byu.net>
49142
49143         Work around environments that (stupidly) ignore SIGALRM.
49144         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
49145         before using alarm().
49146         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49147         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49148         Reported by Ian Beckwith <ianb@erislabs.net>.
49149
49150         Produce autobuild blurb earlier in log.
49151         * modules/autobuild (configure.ac-early): Move AB_INIT here.
49152
49153 2008-06-09  Jim Meyering  <meyering@redhat.com>
49154         and Ondřej Vašík  <ovasik@redhat.com>
49155
49156         utimens.c: correct kernel bug work-around
49157         Ondřej Vašík found that the invalid return value of 280 indicates
49158         failure, not success, and the kernel bug we're trying to work
49159         around affects not just the utimensat call, but also the fallback
49160         futimens call.
49161         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
49162         not success.
49163         [HAVE_FUTIMENS]: Use the same work-around, here.
49164
49165 2008-06-09  Jim Meyering  <meyering@redhat.com>
49166
49167         add more guards around definition of ACE_-related code
49168         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
49169         ALLOW and ACE_OWNER are also defined.
49170
49171 2008-06-08  Bruno Haible  <bruno@clisp.org>
49172
49173         * lib/acl-internal.h: Add me as co-author.
49174         * lib/file-has-acl.c: Likewise.
49175         * lib/set-mode-acl.c: Likewise.
49176         * lib/copy-acl.c: Likewise.
49177
49178 2008-06-08  Bruno Haible  <bruno@clisp.org>
49179
49180         Add support for AIX 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 AIX 4 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 HP-UX ACLs.
49190         * lib/acl-internal.h (acl_nontrivial): New declaration.
49191         * lib/file-has-acl.c (acl_nontrivial): New function.
49192         (file_has_acl): Add implementation using HP-UX 11 ACL API.
49193         * lib/set-mode-acl.c (qset_acl): Likewise.
49194         * lib/copy-acl.c (qcopy_acl): Likewise.
49195
49196 2008-06-08  Bruno Haible  <bruno@clisp.org>
49197
49198         Add support for Cygwin ACLs.
49199         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
49200         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
49201         the chmod_or_fchmod call.
49202         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
49203
49204 2008-06-08  Bruno Haible  <bruno@clisp.org>
49205
49206         Fix bug with setuid modes in Solaris 10+ code.
49207         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
49208         succeeded, when the mode contains some special bits.
49209
49210 2008-06-08  Bruno Haible  <bruno@clisp.org>
49211
49212         Add support for Solaris 7..10 ACLs.
49213         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
49214         declarations.
49215         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
49216         functions.
49217         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
49218         * lib/set-mode-acl.c (qset_acl): Likewise.
49219         * lib/copy-acl.c (qcopy_acl): Likewise.
49220
49221 2008-06-08  Bruno Haible  <bruno@clisp.org>
49222
49223         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
49224         declaration.
49225         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
49226         (acl_access_nontrivial): Remove MacOS X case.
49227         (file_has_acl): Use acl_extended_nontrivial.
49228         * lib/copy-acl.c (qcopy_acl): Likewise.
49229
49230 2008-06-08  Bruno Haible  <bruno@clisp.org>
49231
49232         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
49233
49234 2008-06-08  Jim Meyering  <meyering@redhat.com>
49235
49236         * modules/acl (Maintainer): Add Bruno Haible.
49237
49238 2008-06-07  Bruno Haible  <bruno@clisp.org>
49239
49240         Improve support for Tru64 ACLs.
49241         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
49242         ACL on OSF/1.
49243
49244 2008-06-07  Bruno Haible  <bruno@clisp.org>
49245
49246         Add support for MacOS X ACLs.
49247         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
49248         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
49249         * lib/set-mode-acl.c (qset_acl): Likewise.
49250         * lib/copy-acl.c (qcopy_acl): Likewise.
49251
49252 2008-06-07  Bruno Haible  <bruno@clisp.org>
49253
49254         Fix memory leak introduced on 2008-05-22.
49255         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
49256         use.
49257
49258 2008-06-07  Bruno Haible  <bruno@clisp.org>
49259
49260         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
49261         to construct an empty ACL.
49262
49263 2008-06-07  Bruno Haible  <bruno@clisp.org>
49264
49265         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
49266         precisely.
49267         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
49268
49269 2008-06-07  Bruno Haible  <bruno@clisp.org>
49270
49271         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
49272         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
49273
49274 2008-06-07  Bruno Haible  <bruno@clisp.org>
49275
49276         * doc/posix-functions/_setjmp.texi: Explain the use of this function
49277         regardless of POSIX.
49278         * doc/posix-functions/_longjmp.texi: Likewise.
49279         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
49280         SystemV platform in this case.
49281
49282 2008-06-06  Eric Blake  <ebb9@byu.net>
49283
49284         Document abort() bugs.
49285         * doc/posix-functions/abort.texi (abort): Mention anomalies.
49286
49287         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
49288         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
49289         sigsetjmp.
49290         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
49291         siglongjmp, but only as a macro.
49292         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
49293         is obsolete.
49294         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
49295
49296         Tweak documentation to cover cygwin argz bugs.
49297         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
49298         argz bug fix; no code change needed since no cygwin releases
49299         occurred between the last fix and the bug being tested.
49300         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
49301         module and recently fixed cygwin bugs.
49302         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
49303         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
49304         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
49305         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
49306         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
49307         Likewise.
49308         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
49309         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
49310         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
49311         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
49312         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
49313         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
49314         Likewise.
49315
49316         Avoid gcc warning on cygwin.
49317         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
49318         !ACL_NO_TRIVIAL]: Avoid unused variable.
49319
49320 2008-06-05  Eric Blake  <ebb9@byu.net>
49321
49322         Be tolerant of UNKNOWN version in gnulib-tool test dir.
49323         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
49324         git-version-gen fails to come up with a version.
49325         Reported by Simon Josefsson.
49326
49327 2008-06-05  Jim Meyering  <meyering@redhat.com>
49328             Paul Eggert  <eggert@cs.ucla.edu>
49329
49330         utimens.c: work around a probable Linux kernel bug
49331         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
49332         appears to be a kernel bug that causes utimensat to return 280
49333         instead of 0, indicating success.
49334
49335 2008-06-04  Bruno Haible  <bruno@clisp.org>
49336
49337         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
49338         2008-06-01 commit.
49339
49340 2008-06-04  Bruno Haible  <bruno@clisp.org>
49341
49342         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
49343         * lib/file-has-acl.c (acl_access_nontrivial): New function.
49344         (file_has_acl): Use it. Save errno afterwards.
49345         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
49346
49347 2008-06-03  Bruno Haible  <bruno@clisp.org>
49348
49349         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
49350         draft code. Simplify #ifs.
49351         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
49352         Put Solaris code after POSIX-draft code. Fix comments regarding
49353         Solaris 10, HP-UX. Mention Cygwin.
49354         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
49355
49356 2008-06-03  Eric Blake  <ebb9@byu.net>
49357
49358         Provide fallback for older kernels.
49359         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
49360         Provide runtime fallback if kernel lacks support.
49361         Reported by Mike Frysinger.
49362
49363 2008-06-02  Bruno Haible  <bruno@clisp.org>
49364
49365         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
49366         it exists.
49367
49368 2008-06-02  Bruno Haible  <bruno@clisp.org>
49369
49370         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
49371         * lib/copy-acl.c (qcopy_acl): Update comment.
49372
49373 2008-06-02  Bruno Haible  <bruno@clisp.org>
49374
49375         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
49376         like ACL APIs.
49377
49378 2008-06-02  Bruno Haible  <bruno@clisp.org>
49379
49380         * tests/test-file-has-acl.sh: Use different code for Cygwin.
49381         * tests/test-set-mode-acl.sh: Likewise.
49382         * tests/test-copy-acl.sh: Likewise.
49383         * tests/test-copy-file.sh: Likewise.
49384
49385 2008-06-02  Bruno Haible  <bruno@clisp.org>
49386
49387         * tests/test-file-has-acl.sh: Remove unused code.
49388
49389 2008-06-01  Bruno Haible  <bruno@clisp.org>
49390
49391         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
49392         (copy_acl): Just a wrapper around qcopy_acl that emits the error
49393         messages.
49394         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
49395
49396 2008-06-01  Bruno Haible  <bruno@clisp.org>
49397
49398         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
49399         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
49400         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
49401         APIs.
49402         * modules/acl-tests (configure.ac): Remove tests now contained in
49403         m4/acl.m4.
49404
49405 2008-06-02  Jim Meyering  <meyering@redhat.com>
49406
49407         announce-gen: use a better key-server host name
49408         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
49409         it may be more consistently reliable.  Suggested by Werner Koch
49410         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
49411
49412 2008-06-01  Bruno Haible  <bruno@clisp.org>
49413
49414         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
49415         Reported by Voroskoi Andras <voroskoi@gmail.com>.
49416
49417 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
49418
49419         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
49420
49421 2008-06-01  Bruno Haible  <bruno@clisp.org>
49422
49423         New ACL tests.
49424         * tests/test-file-has-acl.sh: New file.
49425         * tests/test-file-has-acl.c: New file.
49426         * tests/test-set-mode-acl.sh: New file.
49427         * tests/test-set-mode-acl.c: New file.
49428         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
49429         * tests/test-copy-acl.c: New file.
49430         * modules/acl-tests: New file, based on modules/copy-file-tests.
49431         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
49432         (Depends-on): Add acl-tests.
49433         (configure.ac): Remove checks.
49434         (Makefile.am): Don't create test-sameacls program here any more.
49435
49436 2008-06-01  Bruno Haible  <bruno@clisp.org>
49437
49438         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
49439         * tests/test-sameacls.c: Include progname.h.
49440         (main): Invoke set_program_name. Portability fixes for MacOS X,
49441         Solaris, HP-UX.
49442
49443 2008-06-01  Bruno Haible  <bruno@clisp.org>
49444
49445         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
49446         function.
49447         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
49448
49449 2008-06-01  Bruno Haible  <bruno@clisp.org>
49450
49451         * modules/rpmatch (Depends-on): Add strdup.
49452
49453 2008-06-01  Bruno Haible  <bruno@clisp.org>
49454
49455         * lib/pipe.c: Include unistd-safer.h.
49456         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
49457         * modules/pipe (Depends-on): Add unistd-safer.
49458
49459 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49460
49461         * modules/autobuild (configure.ac): Call AB_INIT.
49462
49463 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49464
49465         * tests/test-getaddrinfo.c: Don't print debug messages by default.
49466         Suggested by Bruno Haible <bruno@clisp.org>.
49467
49468 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49469
49470         * tests/test-base64.c: Cast size_t to unsigned long when invoking
49471         printf.  Use %lu instead of %d.  Reported by Bruno Haible
49472         <bruno@clisp.org>.
49473
49474 2008-05-29  Eric Blake  <ebb9@byu.net>
49475
49476         Prefer new POSIX 200x interfaces over futimesat.
49477         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
49478         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
49479         when available.
49480         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
49481
49482 2008-05-28  Bruno Haible  <bruno@clisp.org>
49483
49484         * modules/stpcpy (License): Change to LGPLv2+.
49485         Requested by David Lutterkort <dlutter@redhat.com>.
49486
49487 2008-05-27  Bruno Haible  <bruno@clisp.org>
49488
49489         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
49490         current mingw.
49491         Reported by Jose E. Marchesi <jemarch@gnu.org>.
49492
49493 2008-05-27  Bruno Haible  <bruno@clisp.org>
49494
49495         * modules/iconv_open (Link): New section, from module 'iconv'.
49496         * modules/striconv (Link): Likewise.
49497         * modules/striconveh (Link): Likewise.
49498         * modules/xstriconv (Link): Likewise.
49499         * modules/unicodeio (Link): Likewise.
49500         * modules/propername (Link): Likewise.
49501         Reported by Jim Meyering.
49502
49503 2008-05-26  Jim Meyering  <meyering@redhat.com>
49504
49505         sha256: do not artificially restrict buffer length to be < 2^32
49506         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
49507         uint32_t to size_t.
49508         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
49509         to match.
49510
49511         avoid unaligned access errors, e.g., on sparc
49512         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
49513         direct access through a possibly-unaligned uint64* pointer.
49514         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
49515         direct access through a possibly-unaligned uint32* pointer.
49516         Prompted by this patch from Tom "spot" Callaway:
49517         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
49518
49519         sha512.c: fix typo in comment
49520         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
49521
49522 2008-05-25  Bruno Haible  <bruno@clisp.org>
49523
49524         * lib/set-mode-acl.c: Renamed from lib/acl.c.
49525         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
49526         (Makefile.am): Update lib_SOURCES.
49527
49528 2008-05-25  Bruno Haible  <bruno@clisp.org>
49529
49530         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
49531
49532 2008-05-25  Jim Meyering  <meyering@redhat.com>
49533
49534         useless-if-before-free: freed expr may have white-space differences
49535         * build-aux/useless-if-before-free: Recognize cases in which the
49536         freed expression differs from the tested one in embedded white
49537         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
49538         $1 was used, so we can't make any regexp shy.  Improved tests now
49539         detect this.
49540
49541         useless-if-before-free: accept white space in the expression.
49542         * build-aux/useless-if-before-free: For now, any white space
49543         in the expression must be identical in the free argument.
49544
49545         useless-if-before-free: efficiency tweak
49546         * build-aux/useless-if-before-free: Make the expression-matching
49547         regexp "shy".
49548         Make the *outer* regexp shy, not the expr-matching one.
49549
49550         update code-in-comment to accept cast of free arg
49551         * build-aux/useless-if-before-free: Update regexp.
49552
49553 2008-05-25  Bruno Haible  <bruno@clisp.org>
49554
49555         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
49556         * modules/copy-file-tests (Files, Makefile.am): Update.
49557         * tests/test-copy-file.c (func_test_copy): Update.
49558
49559 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
49560
49561         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
49562
49563 2008-05-23  Bruno Haible  <bruno@clisp.org>
49564
49565         Improve support for ACLs on OSF/1.
49566         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
49567         Remove fallback for unknown flavors of ACLs.
49568
49569 2008-05-22  Bruno Haible  <bruno@clisp.org>
49570
49571         Add support for ACLs on OSF/1.
49572         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
49573         replacements.
49574         (acl_free_text): New macro fallback.
49575         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
49576         acl_free.
49577         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
49578         acl_free_text function. Require AC_C_INLINE.
49579
49580 2008-05-22  Bruno Haible  <bruno@clisp.org>
49581
49582         Make copy_acl work on MacOS X 10.5.
49583         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
49584         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
49585         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
49586         If MODE_INSIDE_ACL, don't assume that every system has the same text
49587         representation for ACLs as FreeBSD.
49588         * lib/copy-acl.c (copy_acl): Add support for platforms with
49589         !MODE_INSIDE_ACL.
49590         * lib/file-has-acl.c (file_has_acl): Likewise.
49591         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
49592         FreeBSD, MacOS X, or IRIX, respectively.
49593
49594 2008-05-22  Bruno Haible  <bruno@clisp.org>
49595
49596         * lib/acl.h: Don't include <sys/acl.h>.
49597         (GETACLCNT): Move fallback to lib/acl-internal.h.
49598         * lib/acl-internal.h: Include <sys/acl.h> here.
49599         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
49600
49601 2008-05-22  Bruno Haible  <bruno@clisp.org>
49602
49603         Split off copy_acl function to separate file.
49604         * lib/copy-acl.c: New file, extracted from lib/acl.c.
49605         * lib/acl.c (copy_acl): Moved function to separate file.
49606         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
49607         * modules/acl (Files): Add lib/copy-acl.c.
49608         (Makefiles.am): Augment lib_SOURCES.
49609
49610 2008-05-22  Bruno Haible  <bruno@clisp.org>
49611
49612         * modules/copy-file-tests: New file.
49613         * tests/test-copy-file.sh: New file.
49614         * tests/test-copy-file.c: New file.
49615         * tests/test-copy-file-sameacls.c: New file.
49616
49617 2008-05-22  Eric Blake  <ebb9@byu.net>
49618
49619         Avoid gcc warning.
49620         * tests/test-memcmp.c (main): Pass NULL indirectly.
49621
49622 2008-05-21  Bruno Haible  <bruno@clisp.org>
49623
49624         Add reference doc about ACLs.
49625         * doc/acl-resources.txt: New file.
49626         * doc/acl-cygwin.txt: New file.
49627
49628 2008-05-21  Bruno Haible  <bruno@clisp.org>
49629
49630         Avoid one more warning from gcc.
49631         * lib/vasnprintf.c (IF_LINT): Update comments.
49632         (VASNPRINTF): Use it also for the 'prefix' array initializer.
49633
49634 2008-05-21  Jim Meyering  <meyering@redhat.com>
49635
49636         avoid a warning from gcc
49637         * lib/vasnprintf.c (IF_LINT): Define.
49638         (scale10_round_decimal_long_double):
49639         Use it to avoid a "may be used uninitialized" warning.
49640         (scale10_round_decimal_double): Likewise.
49641
49642 2008-05-21  Simon Josefsson  <simon@josefsson.org>
49643
49644         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
49645         declared.
49646
49647 2008-05-20  Bruno Haible  <bruno@clisp.org>
49648
49649         * tests/test-memcmp.c (main): Test also the sign of the result. Test
49650         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
49651
49652 2008-05-20  Simon Josefsson  <simon@josefsson.org>
49653
49654         * modules/memcmp-tests: New file.
49655         * tests/test-memcmp.c: New file.
49656
49657 2008-05-19  Bruno Haible  <bruno@clisp.org>
49658
49659         * modules/propername (Notice, configure.ac): Put quoted "..." into
49660         --keyword option.
49661         * lib/propername.h: Update comments accordingly.
49662         Reported by Eric Blake.
49663
49664 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
49665
49666         * modules/getpass-gnu (Depends-on): Add fseeko.
49667
49668 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49669
49670         * modules/base64-tests: New file.
49671
49672 2008-05-19  Bo Borgerson <gigabo@gmail.com>
49673
49674         * lib/base64.c (base64_decode_ctx): If a decode context structure
49675         was passed in use it to ignore newlines.  If a context structure
49676         was _not_ passed in, continue to treat newlines as garbage (this
49677         is the historical behavior).  Formerly base64_decode.
49678         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49679         takes a decode context structure.
49680         * lib/base64.h (base64_decode): Macro for four-argument calls.
49681         (base64_decode_alloc): Likewise.
49682         * lib/base64.c (base64_decode_ctx): If a decode context structure
49683         was passed in use it to ignore newlines.  If a context structure
49684         was _not_ passed in, continue to treat newlines as garbage (this
49685         is the historical behavior).  Formerly base64_decode.
49686         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49687         takes a decode context structure.
49688         * lib/base64.h (base64_decode): Macro for four-argument calls.
49689         (base64_decode_alloc): Likewise.
49690
49691 2008-05-19  Jim Meyering  <meyering@redhat.com>
49692
49693         avoid a warning from gcc
49694         * lib/trim.c (IF_LINT): Define.
49695         (trim2): Use it to avoid a "may be used uninitialized" warning.
49696
49697         Fix doc typo.
49698         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
49699
49700 2008-05-19  Bruno Haible  <bruno@clisp.org>
49701
49702         * doc/glibc-functions/getpass.texi: Document limits of other
49703         implementations.
49704
49705 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49706             Bruno Haible <bruno@clisp.org>
49707
49708         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
49709
49710 2008-05-18  Bruno Haible  <bruno@clisp.org>
49711
49712         * modules/propername: New file, from GNU gettext.
49713         * lib/propername.h: New file, from GNU gettext.
49714         * lib/propername.c: New file, from GNU gettext.
49715         * MODULES.html.sh (Internationalization functions): Add propername.
49716
49717 2008-05-16  Jim Meyering  <meyering@redhat.com>
49718             Bruno Haible  <bruno@clisp.org>
49719
49720         Avoid some warnings from "gcc -Wshadow".
49721         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
49722
49723 2008-05-15  Eric Blake  <ebb9@byu.net>
49724
49725         Extend previous patch to cygwin 1.7.0.
49726         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
49727         fast implementation in cygwin >= 1.7.0.
49728         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49729         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49730
49731 2008-05-15  Bruno Haible  <bruno@clisp.org>
49732
49733         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
49734         implementation in glibc >= 2.9.
49735         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49736         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49737
49738 2008-05-15  Bruno Haible  <bruno@clisp.org>
49739
49740         * MODULES.html.sh (Internationalization functions): Remove linebreak.
49741         (Unicode string functions): Add unilbrk/*.
49742         Reported by Karl Berry.
49743
49744 2008-05-15  Eric Blake  <ebb9@byu.net>
49745
49746         Fix violation of <stdbool.h> replacement in regex.
49747         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
49748         * lib/regexec.c (re_search_internal): Likewise.
49749         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
49750
49751 2008-05-15  Jim Meyering  <meyering@redhat.com>
49752
49753         avoid distracting test output when git or cvs is not found
49754         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
49755         * tests/test-vc-list-files-git.sh: Likewise.
49756
49757 2008-05-15  Eric Blake  <ebb9@byu.net>
49758
49759         Glibc finally accepted the memmem speedup code, bugzilla #5514.
49760         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
49761         glibc version.
49762         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
49763         * doc/posix-functions/strstr.texi (strstr): Likewise.
49764         * lib/str-two-way.h (MAX): Sychronize with glibc.
49765
49766 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
49767
49768         * lib/regcomp.c (optimize_utf8): Add a note on why we test
49769         opr.ctx_type.
49770         (calc_first): Initialize constraint field.
49771         (duplicate_node_closure): Use it instead of special casing ANCHORS.
49772         Fix grammar.
49773         (duplicate_node): Merge constraint field for all node types.
49774         (calc_eclosure_iter): Look at constraint field for all node types.
49775         * lib/regex_internal.c (create_cd_newstate): Don't look at
49776         opr.ctx_type.
49777
49778 2008-05-14  Bruno Haible  <bruno@clisp.org>
49779
49780         Help GCC to do better code generation.
49781         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
49782         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
49783         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
49784         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
49785         Declare with attribute 'malloc' if supported.
49786
49787 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
49788
49789         use "echo STR|wc -c" rather than unportable "expr length STR"
49790         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
49791         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
49792
49793 2008-05-14  Jim Meyering  <meyering@redhat.com>
49794
49795         use dd ibs=$n count=1 ... rather than less-portable head -c$n
49796         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
49797         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
49798         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
49799         via Collin Lasse.
49800
49801 2008-05-14  Eric Blake  <ebb9@byu.net>
49802
49803         Avoid quadratic growth in gl_LIBSOURCES.
49804         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
49805         Suggested by Bruno Haible.
49806
49807         Test xmemdup0.
49808         * modules/xmemdup0-tests: New file.
49809         * tests/test-xmemdup0.c: Likewise.
49810
49811 2008-05-13  Eric Blake  <ebb9@byu.net>
49812
49813         Split xmemdup0 into its own module.
49814         * modules/xmemdup0: New file.
49815         * lib/xmemdup0.h: Likewise.
49816         * lib/xmemdup0.c: Likewise.
49817         * MODULES.html.sh (Memory management functions): Add xmemdup0.
49818         * lib/xalloc.h (xmemdup0): Remove.
49819         * lib/xmalloc.c (xmemdup0): Likewise.
49820
49821 2008-05-13  Eric Blake  <ebb9@byu.net>
49822             Bruno Haible  <bruno@clisp.org>
49823
49824         Reduce number of forks required during autoconf.
49825         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
49826         and gl_LIBSOURCES_DIR.
49827         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
49828         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
49829         m4_syscmd per file.
49830         <m4_foreach_w>: Move...
49831         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
49832
49833 2008-05-13  Eric Blake  <ebb9@byu.net>
49834
49835         * gnulib-tool: Fix various comment typos.
49836
49837 2008-05-12  Bruno Haible  <bruno@clisp.org>
49838
49839         Tailor the linebreaking algorithm.
49840         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
49841
49842 2008-05-12  Bruno Haible  <bruno@clisp.org>
49843
49844         Update to Unicode 5.0.0.
49845         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49846         LBP_JV, LBP_JT. Redistribute values.
49847         (unilbrk_table): Change size.
49848         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
49849         Unicode TR#14 rev. 22.
49850         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49851         LBP_JV, LBP_JT. Redistribute values.
49852         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
49853         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
49854         Update.
49855         * lib/unilbrk/lbrkprop1.h: Regenerated.
49856         * lib/unilbrk/lbrkprop2.h: Regenerated.
49857         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
49858         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
49859         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
49860         Likewise.
49861         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
49862         Likewise.
49863         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
49864         result.
49865         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
49866         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
49867         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
49868         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
49869         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
49870         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
49871
49872 2008-05-11  Bruno Haible  <bruno@clisp.org>
49873
49874         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
49875
49876 2008-05-11  Bruno Haible  <bruno@clisp.org>
49877
49878         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
49879         * modules/unilbrk/gen-lbrk: New file.
49880
49881 2008-05-11  Bruno Haible  <bruno@clisp.org>
49882
49883         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
49884         * m4/sha512.m4 (gl_SHA512): Likewise.
49885
49886 2008-05-11  Jim Meyering  <meyering@redhat.com>
49887
49888         New modules: crypto/sha256, crypto/sha512 (from coreutils)
49889         * modules/crypto/sha256: New file.
49890         * modules/crypto/sha512: Likewise.
49891         * lib/sha256.c: Likewise.
49892         * lib/sha256.h: Likewise.
49893         * lib/sha512.c: Likewise.
49894         * lib/sha512.h: Likewise.
49895         * lib/u64.h: Likewise.
49896         * m4/sha256.m4: Likewise.
49897         * m4/sha512.m4: Likewise.
49898         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
49899
49900 2008-05-10  Bruno Haible  <bruno@clisp.org>
49901
49902         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
49903         (Input/Output <stdio.h>): Add xprintf.
49904         (Signal handling <signal.h>): Add strsignal.
49905         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
49906         (Core language properties): Add func.
49907         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
49908         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
49909         strings.
49910         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
49911         (Input/output): New section.
49912         (File system functions): Add openat-die, stat-macros.
49913         (Networking functions): Add sockets.
49914         (Unicode string functions): Add unictype/*.
49915         (Support for building libraries and executables): Add gperf.
49916         (Support for building documentation): Add agpl-3.0.
49917         (Misc): Add nocrash.
49918
49919 2008-05-10  Bruno Haible  <bruno@clisp.org>
49920
49921         * modules/unictype/gen-ctype: New file.
49922
49923 2008-05-10  Jim Meyering  <meyering@redhat.com>
49924
49925         Make chdir-safer.c more efficient on a system with no symlinks.
49926         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
49927         also if ELOOP is zero.  Suggested by Bruno Haible.
49928
49929         Make chdir-safer.c slightly safer.
49930         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
49931         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
49932
49933         Avoid compile failure on systems without ELOOP (like mingw).
49934         * lib/chdir-safer.c (ELOOP): Define if not already defined.
49935         Reported by Bruno Haible.
49936
49937 2008-05-10  Bruno Haible  <bruno@clisp.org>
49938
49939         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
49940         (is_utf8_encoding): Use a case-insensitive comparison.
49941         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
49942         streq.
49943
49944 2008-05-10  Bruno Haible  <bruno@clisp.org>
49945
49946         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
49947         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
49948         * lib/unilbrk/ulc-common.h (iconv_string_length,
49949         iconv_string_keeping_offsets): Remove declarations.
49950         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
49951         Don't include <iconv.h>, streq.h, xsize.h.
49952         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
49953         conversion.
49954         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
49955         <iconv.h>, streq.h, xsize.h.
49956         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
49957         conversion.
49958         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
49959         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
49960         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
49961         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
49962
49963 2008-05-10  Bruno Haible  <bruno@clisp.org>
49964
49965         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
49966         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
49967
49968         * modules/unilbrk/u32-width-linebreaks-tests: New file.
49969         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
49970
49971         * modules/unilbrk/u16-width-linebreaks-tests: New file.
49972         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
49973
49974         * modules/unilbrk/u8-width-linebreaks-tests: New file.
49975         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
49976
49977         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
49978         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
49979
49980         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
49981         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
49982
49983         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
49984         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
49985
49986         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
49987         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
49988
49989 2008-05-10  Bruno Haible  <bruno@clisp.org>
49990
49991         Split up 'linebreak' module.
49992         * lib/unilbrk.h: New file, based on lib/linebreak.h.
49993         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
49994         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
49995         modifications.
49996         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
49997         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
49998         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
49999         lib/linebreak.c.
50000         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
50001         lib/linebreak.c.
50002         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
50003         lib/linebreak.c.
50004         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
50005         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
50006         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
50007         lib/linebreak.c.
50008         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
50009         lib/linebreak.c.
50010         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
50011         lib/linebreak.c.
50012         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
50013         lib/linebreak.c.
50014         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
50015         lib/linebreak.c.
50016         * modules/unilbrk/base: New file.
50017         * modules/unilbrk/tables: New file.
50018         * modules/unilbrk/u8-possible-linebreaks: New file.
50019         * modules/unilbrk/u16-possible-linebreaks: New file.
50020         * modules/unilbrk/u32-possible-linebreaks: New file.
50021         * modules/unilbrk/ulc-common: New file.
50022         * modules/unilbrk/ulc-possible-linebreaks: New file.
50023         * modules/unilbrk/u8-width-linebreaks: New file.
50024         * modules/unilbrk/u16-width-linebreaks: New file.
50025         * modules/unilbrk/u32-width-linebreaks: New file.
50026         * modules/unilbrk/ulc-width-linebreaks: New file.
50027         * lib/linebreak.h: Remove file.
50028         * lib/linebreak.c: Remove file.
50029         * m4/linebreak.m4: Remove file.
50030         * modules/linebreak: Remove file.
50031         * NEWS: Mention the changes.
50032
50033 2008-05-09  Eric Blake  <ebb9@byu.net>
50034
50035         Add xmemdup0.
50036         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
50037         implementation.
50038         * lib/xmalloc.c (xmemdup0): New C implementation.
50039
50040 2008-05-08  Bruno Haible  <bruno@clisp.org>
50041
50042         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
50043
50044 2008-05-07  Eric Blake  <ebb9@byu.net>
50045
50046         Support cross-compilation of <wctype.h>.
50047         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
50048         AC_CACHE_CHECK.
50049
50050 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
50051
50052         * build-aux/vc-list-files: Add support for bzr.
50053
50054 2008-05-03  Jim Meyering  <meyering@redhat.com>
50055
50056         avoid failed assertion with tight malloc
50057         * tests/test-getndelim2.c: Correct an off-by-one assertion.
50058
50059 2008-05-03  Simon Josefsson  <simon@josefsson.org>
50060
50061         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
50062         are needed from arpa/inet.h.
50063         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
50064         Reported by Bruno Haible.
50065
50066 2008-05-02  Jim Meyering  <meyering@redhat.com>
50067
50068         avoid compilation error on FreeBSD 6
50069         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
50070
50071 2008-05-01  Jim Meyering  <meyering@redhat.com>
50072
50073         useless-if-before-free: correct --help's exit status description
50074         * build-aux/useless-if-before-free (usage): Like grep, exit 0
50075         for one or more matches, etc.  Reported by Bruno Haible.
50076
50077         vc-list-files: make the stand-alone gnulib test work
50078         * modules/vc-list-files-tests (configure.ac):
50079         Define and AC_SUBST abs_aux_dir.
50080         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
50081         $(abs_top_srcdir) to each script and having each of them
50082         duplicate the work of setting PATH, set PATH here, using
50083         the new variable, abs_aux_dir instead.
50084         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
50085         * tests/test-vc-list-files-git.sh: Likewise.
50086         Reported by Bruno Haible.
50087
50088 2008-05-01  Bruno Haible  <bruno@clisp.org>
50089
50090         * lib/getndelim2.c (getndelim2): Fix newsize computation during
50091         reallocation. Rename 'done' to 'found_delimiter'.
50092
50093 2008-05-01  Jim Meyering  <meyering@redhat.com>
50094
50095         vc-list-files: accommodate /bin/sh like the one from Solaris 10
50096         * build-aux/vc-list-files: Use `...`, not $(...).
50097
50098 2008-04-30  Jim Meyering  <meyering@redhat.com>
50099
50100         add tests for vc-list-files
50101         * modules/vc-list-files-tests: New module.
50102         * tests/test-vc-list-files-cvs.sh: New file.
50103         * tests/test-vc-list-files-git.sh: New file.
50104
50105         avoid a warning from gcc
50106         * lib/getndelim2.c (IF_LINT): Define.
50107         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
50108
50109         vc-list-files: work properly with build-aux/cvsu, too
50110         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
50111         to all cvs-based clauses.
50112
50113         vc-list-files: work properly in the CVS+awk case, too
50114         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
50115
50116         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
50117         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
50118         take more than one file argument, so .  Add quotes, just in case $dir
50119         ever contains a shell meta-character.  Prompted by Soren Hansen in
50120         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
50121
50122 2008-04-29  Eric Blake  <ebb9@byu.net>
50123
50124         Optimize getndelim2 to use block operations when possible.
50125         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
50126         freadseek, and memchr2.
50127         * lib/getndelim2.c (getndelim2): Use them for block reads.
50128
50129 2008-04-29  Bruno Haible  <bruno@clisp.org>
50130
50131         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
50132         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
50133         * modules/inet_ntop (Depends-on): Add extensions.
50134         * modules/inet_pton (Depends-on): Likewise.
50135         Reported by Simon Josefsson.
50136
50137 2008-04-29  Jim Meyering  <meyering@redhat.com>
50138
50139         When the is more than one match in a block, match all of them.
50140         * build-aux/useless-if-before-free: Iterate through each block
50141         until there are no more matches.
50142
50143         Fix broken useless-if-before-free script.
50144         * build-aux/useless-if-before-free: Fix typo: missing "?" after
50145         the expression to match cast of argument to free-like function.
50146
50147 2008-04-29  Eric Blake  <ebb9@byu.net>
50148
50149         Use new header.
50150         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
50151
50152 2008-04-29  Jim Meyering  <meyering@redhat.com>
50153
50154         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
50155         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
50156         by gnulib to exist and to declare e.g., inet_ntop.
50157         Don't include "inet_ntop.h", now removed.
50158
50159         * m4/arpa_inet_h.m4: Remove trailing blanks.
50160
50161 2008-04-29  Eric Blake  <ebb9@byu.net>
50162
50163         Silence valgrind on safe reads beyond potential array bounds.
50164         * lib/rawmemchr.valgrind: New file.
50165         * lib/strchrnul.valgrind: Likewise.
50166         * modules/rawmemchr (Files): Distribute new file.
50167         * modules/strchrnul (Files): Likewise.
50168         Suggested by Bruno Haible.
50169
50170 2008-04-29  Bruno Haible  <bruno@clisp.org>
50171
50172         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
50173         (inet_ntop, inet_pton): Change portability warning's wording.
50174         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
50175         Invoke gl_CHECK_NEXT_HEADERS.
50176         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
50177         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
50178         set ARPA_INET_H.
50179         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
50180         * modules/arpa_inet (Description): No longer only for systems that
50181         lack it.
50182         (Depends-on): Add include_next.
50183         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
50184         HAVE_ARPA_INET_H.
50185
50186 2008-04-29  Jim Meyering  <meyering@redhat.com>
50187
50188         * modules/mkdir (License): Re-license as LGPLv2+.
50189
50190 2008-04-29  Bruno Haible  <bruno@clisp.org>
50191
50192         * modules/rawmemchr (Maintainer): Set to Eric.
50193         * modules/strchrnul (Maintainer): Likewise.
50194
50195 2008-04-29  Simon Josefsson  <simon@josefsson.org>
50196
50197         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
50198         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
50199
50200         * modules/arpa_inet (arpa/inet.h): Use them.
50201
50202 2008-04-28  Eric Blake  <ebb9@byu.net>
50203
50204         Test getndelim2.
50205         * modules/getndelim2-tests: New file.
50206         * tests/test-getndelim2.c: Likewise.
50207         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
50208         stream.
50209         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
50210
50211         * MODULES.html.sh: Document new module.
50212
50213 2008-04-20  Bruno Haible  <bruno@clisp.org>
50214
50215         * lib/c-stack.c (die): Use raise.
50216         * modules/c-stack (Depends-on): Add raise.
50217
50218 2008-04-28  Bruno Haible  <bruno@clisp.org>
50219
50220         Expect rpmatch to be declared.
50221         * lib/yesno.c (rpmatch): Remove declaration.
50222
50223         Declare rpmatch.
50224         * lib/stdlib.in.h (rpmatch): New declaration.
50225         * lib/rpmatch.c: Include <stdlib.h> first.
50226         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
50227         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
50228         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
50229         HAVE_RPMATCH.
50230         * modules/rpmatch (Depends-on): Add stdlib, extensions.
50231         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50232         (Include): Set to <stdlib.h>.
50233         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
50234         HAVE_RPMATCH.
50235         * NEWS: Document the change.
50236
50237 2008-04-28  Bruno Haible  <bruno@clisp.org>
50238
50239         Change rpmatch to use nl_langinfo when appropriate.
50240         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
50241         (N_): New macro.
50242         (localized_pattern): New function/macro.
50243         (try): Remove match, nomatch arguments. Copy the pattern into safe
50244         memory before caching it.
50245         (rpmatch): Use localized_pattern. Add translator comments.
50246         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
50247         Suggested by Eric Blake.
50248         * modules/rpmatch (Depends-on): Add stdbool.
50249
50250 2008-04-28  Eric Blake  <ebb9@byu.net>
50251
50252         Add rawmemchr module, matching glibc.
50253         * modules/string (Makefile.am): New indicator.
50254         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
50255         * lib/string.in.h (rawmemchr): Declare when appropriate.
50256         * modules/rawmemchr: New file.
50257         * m4/rawmemchr.m4: Likewise.
50258         * lib/rawmemchr.c: Likewise.
50259         * modules/rawmemchr-tests: Likewise.
50260         * tests/test-rawmemchr.c: Likewise.
50261         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
50262         module.
50263         * modules/strchrnul (Depends-on): Add rawmemchr.
50264         * lib/strchrnul.c (strchrnul): Optimize a corner case.
50265
50266         Whitespace cleanup.
50267         * tests/test-strchrnul.c: Reindent.
50268         * lib/strchrnul.c: Likewise.
50269
50270         Optimize and test strchrnul.
50271         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
50272         * modules/strchrnul-tests: New file.
50273         * tests/test-strchrnul.c: Likewise.
50274
50275         Remove intprops dependency.
50276         * modules/memchr (Depends-on): Remove intprops.
50277         * modules/memrchr (Depends-on): Likewise.
50278         * modules/memchr2 (Depends-on): Likewise.
50279         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
50280         * lib/memrchr.c (__memrchr): Likewise.
50281         * lib/memrchr2.c (memchr2): Likewise.
50282         Reported by Simon Josefsson.
50283
50284 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50285
50286         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
50287         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50288
50289 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50290
50291         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
50292
50293         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
50294
50295         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
50296
50297         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
50298         declarations.
50299         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
50300
50301         * m4/inet_pton.m4: Don't check for header files.
50302
50303         * m4/inet_ntop.m4: Don't check for header files.
50304
50305 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50306
50307         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
50308         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
50309         trigger for cygwin).
50310         Reported by Bruno Haible  <bruno@clisp.org>.
50311
50312 2008-04-28  Bruno Haible  <bruno@clisp.org>
50313
50314         * doc/posix-functions/strdup.texi: Mention mingw problem.
50315
50316 2008-04-27  Bruno Haible  <bruno@clisp.org>
50317
50318         * modules/stat-time-tests (Depends-on): Add sleep.
50319         * tests/test-stat-time.c (force_unlink): New function.
50320         (cleanup): Use it.
50321         (test_mtime): Remove the ctime related tests.
50322         (test_ctime): New function, containing the ctime related tests.
50323         (main): Call test_ctime, except on native Windows platforms.
50324
50325 2008-04-27  Bruno Haible  <bruno@clisp.org>
50326
50327         * lib/rpmatch.c (rpmatch): Add some comments.
50328         Reported by James Youngman <jay@gnu.org>.
50329
50330 2008-04-27  Bruno Haible  <bruno@clisp.org>
50331
50332         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
50333         quiet NaNs.
50334
50335 2008-04-27  Bruno Haible  <bruno@clisp.org>
50336
50337         Make test-yesno.sh work on mingw.
50338         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
50339         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
50340         (main): Set stdin to binary mode.
50341         * modules/yesno-tests (Depends-on): Add binary-io.
50342
50343 2008-04-27  Bruno Haible  <bruno@clisp.org>
50344
50345         Fix 'isfinite' on x86, x86_64, ia64 platforms.
50346         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
50347         argument that lie outside the IEEE 854 domain.
50348         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
50349         (gl_ISFINITE): Use it.
50350         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
50351
50352 2008-04-27  Bruno Haible  <bruno@clisp.org>
50353
50354         Allow local renaming in config.h.
50355         * lib/memrchr.c (memrchr): Don't undefine outside libc.
50356
50357 2008-04-27  Bruno Haible  <bruno@clisp.org>
50358
50359         * lib/memchr.c (__memchr): Change type of 'i'.
50360         * lib/memchr2.c (memchr2): Likewise.
50361
50362 2008-04-26  Eric Blake  <ebb9@byu.net>
50363         and Bruno Haible  <bruno@clisp.org>
50364
50365         Optimize and test memrchr.
50366         * modules/memrchr (Depends-on): Add intprops.
50367         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
50368         * modules/memrchr-tests: New file.
50369         * tests/test-memrchr.c: New file.
50370
50371 2008-04-26  Bruno Haible  <bruno@clisp.org>
50372
50373         Add tentative support for DragonFly BSD.
50374         * lib/stdio-impl.h: Add macros for DragonFly BSD.
50375         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
50376         fp.
50377         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
50378         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
50379         * lib/fpurge.c (fpurge): Likewise.
50380         * lib/freadable.c (freaadable): Likewise.
50381         * lib/freadahead.c (freadahead): Likewise.
50382         * lib/freading.c (freading): Likewise.
50383         * lib/freadptr.c (freadptr): Likewise.
50384         * lib/freadseek.c (freadptrinc): Likewise.
50385         * lib/fseeko.c (fseeko): Likewise.
50386         * lib/fseterr.c (fseterr): Likewise.
50387         * lib/fwritable.c (fwritable): Likewise.
50388         * lib/fwriting.c (fwriting): Likewise.
50389
50390 2008-04-26  Bruno Haible  <bruno@clisp.org>
50391
50392         * lib/stdio-impl.h: New file.
50393         * lib/fbufmode.c: Include stdio-impl.h.
50394         (fbufmode): Use fp_, remove redundant #defines.
50395         * lib/fflush.c: Include stdio-impl.h.
50396         (clear_ungetc_buffer): Remove redundant #defines.
50397         * lib/fpurge.c: Include stdio-impl.h.
50398         (fpurge): Remove redundant #defines.
50399         * lib/freadable.c: Include stdio-impl.h.
50400         (freadable): Remove redundant #defines.
50401         * lib/freadahead.c: Include stdio-impl.h.
50402         (freadahead): Remove redundant #defines.
50403         * lib/freading.c: Include stdio-impl.h.
50404         (freading): Remove redundant #defines.
50405         * lib/freadptr.c: Include stdio-impl.h.
50406         (freadptr): Remove redundant #defines.
50407         * lib/freadseek.c: Include stdio-impl.h.
50408         (freadptrinc): Remove redundant #defines.
50409         * lib/fseeko.c: Include stdio-impl.h.
50410         (rpl_fseeko): Remove redundant #defines.
50411         * lib/fseterr.c: Include stdio-impl.h.
50412         (fseterr): Remove redundant #defines.
50413         * lib/fwritable.c: Include stdio-impl.h.
50414         (fwritable: Remove redundant #defines.
50415         * lib/fwriting.c: Include stdio-impl.h.
50416         (fwriting): Remove redundant #defines.
50417         * modules/fbufmode (Files): Add lib/stdio-impl.h.
50418         * modules/fflush (Files): Likewise.
50419         * modules/fpurge (Files): Likewise.
50420         * modules/freadable (Files): Likewise.
50421         * modules/freadahead (Files): Likewise.
50422         * modules/freading (Files): Likewise.
50423         * modules/freadptr (Files): Likewise.
50424         * modules/freadseek (Files): Likewise.
50425         * modules/fseeko (Files): Likewise.
50426         * modules/fseterr (Files): Likewise.
50427         * modules/fwritable (Files): Likewise.
50428         * modules/fwriting (Files): Likewise.
50429
50430 2008-04-26  Bruno Haible  <bruno@clisp.org>
50431
50432         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
50433         restore_seek_optimization, update_fpos_cache): New functions, extracted
50434         from rpl_fflush.
50435         (rpl_fflush): Use them.
50436         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
50437         (gl_REPLACE_FFLUSH): Use it.
50438
50439 2008-04-26  Bruno Haible  <bruno@clisp.org>
50440
50441         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
50442         on Solaris.
50443         * tests/test-xstrtoimax.sh: Likewise.
50444         * tests/test-xstrtoumax.sh: Likewise.
50445         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50446
50447 2008-04-26  Bruno Haible  <bruno@clisp.org>
50448
50449         * modules/memchr-tests: New file.
50450         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
50451
50452 2008-04-26  Eric Blake  <ebb9@byu.net>
50453             Bruno Haible  <bruno@clisp.org>
50454
50455         * lib/memchr.c: Include intprops.h.
50456         (__memchr): Optimize parallel detection of matching bytes. Rename local
50457         variables. Add explanatory comments.
50458
50459 2008-04-26  Bruno Haible  <bruno@clisp.org>
50460
50461         Fix module 'memchr', broken since 2000-10-28.
50462         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
50463
50464 2008-04-26  Bruno Haible  <bruno@clisp.org>
50465
50466         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
50467         comments.
50468
50469 2008-04-25  Eric Blake  <ebb9@byu.net>
50470
50471         Use native fstatat on cygwin 1.7.0.
50472         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
50473         first.
50474
50475 2008-04-23  Eric Blake  <ebb9@byu.net>
50476
50477         Improve memchr2 performance.
50478         * lib/memchr2.c (memchr2): Further optimize parallel detection of
50479         NUL bytes.
50480         * modules/memchr2 (Depends-on): Use intprops.h.
50481
50482 2008-04-23  Simon Josefsson  <simon@josefsson.org>
50483
50484         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
50485         an inline function instead of a CPP macro.  Patch by Ben Pfaff
50486         <blp@cs.stanford.edu>.
50487
50488 2008-04-23  Simon Josefsson  <simon@josefsson.org>
50489
50490         * lib/arpa_inet.in.h: New file.
50491
50492         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
50493         (Makefile.am): Sed in substitute header file.
50494
50495         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
50496         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
50497
50498         * modules/inet_ntop (configure.ac): Use
50499         gl_ARPA_INET_MODULE_INDICATOR.
50500
50501         * modules/inet_pton (configure.ac): Use
50502         gl_ARPA_INET_MODULE_INDICATOR.
50503
50504 2008-04-22  Jim Meyering  <meyering@redhat.com>
50505
50506         * modules/verify (License): Re-license as LGPLv2+.
50507
50508 2008-04-22  Simon Josefsson  <simon@josefsson.org>
50509
50510         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
50511         parameter to void* as per POSIX standard (MinGW uses char*).
50512
50513 2008-04-21  Bruno Haible  <bruno@clisp.org>
50514
50515         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
50516         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
50517         Define to replacements if REPLACE_ISWCNTRL is 1.
50518         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
50519         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
50520         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
50521         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
50522         what it fixes.
50523         * doc/posix-functions/iswalpha.texi: Likewise.
50524         * doc/posix-functions/iswblank.texi: Likewise.
50525         * doc/posix-functions/iswcntrl.texi: Likewise.
50526         * doc/posix-functions/iswdigit.texi: Likewise.
50527         * doc/posix-functions/iswgraph.texi: Likewise.
50528         * doc/posix-functions/iswlower.texi: Likewise.
50529         * doc/posix-functions/iswprint.texi: Likewise.
50530         * doc/posix-functions/iswpunct.texi: Likewise.
50531         * doc/posix-functions/iswspace.texi: Likewise.
50532         * doc/posix-functions/iswupper.texi: Likewise.
50533         * doc/posix-functions/iswxdigit.texi: Likewise.
50534         Reported by Alain Guibert.
50535
50536 2008-04-21  Bruno Haible  <bruno@clisp.org>
50537
50538         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
50539         Patch by Alain Guibert.
50540
50541 2008-04-21  Bruno Haible  <bruno@clisp.org>
50542
50543         Fix test failures on mingw.
50544         * tests/test-xstrtol.c (print_no_progname): New function.
50545         (main): Install it in error_print_progname hook.
50546         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
50547         * tests/test-xstrtoimax.sh: Likewise.
50548         * tests/test-xstrtoumax.sh: Likewise.
50549
50550 2008-04-21  Bruno Haible  <bruno@clisp.org>
50551
50552         Fix test failure on mingw.
50553         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
50554
50555 2008-04-21  Bruno Haible  <bruno@clisp.org>
50556
50557         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
50558         Actually assign a value.
50559
50560 2008-04-20  Bruno Haible  <bruno@clisp.org>
50561
50562         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
50563         take 2.
50564         * lib/canonicalize.c (canonicalize_file_name): Elide if the
50565         'canonicalize-lgpl' module is also used.
50566         * lib/canonicalize-lgpl.c: Undo last change.
50567         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
50568
50569 2008-04-20  Bruno Haible  <bruno@clisp.org>
50570
50571         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
50572         config.h. Provide _mkdir based fallback for mingw.
50573         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
50574         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
50575         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
50576         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
50577         rather than defining mkdir in config.h.
50578         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
50579         (gl_SYS_STAT_H_DEFAULTS): New macro.
50580         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
50581         HAVE_IO_H any more.
50582         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
50583         HAVE_DECL_MKDIR and HAVE_IO_H.
50584
50585 2008-04-20  Bruno Haible  <bruno@clisp.org>
50586
50587         * lib/isapipe.c: Port to native Windows platforms.
50588
50589 2008-04-20  Bruno Haible  <bruno@clisp.org>
50590
50591         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
50592
50593 2008-04-21  Eric Blake  <ebb9@byu.net>
50594
50595         Work around preprocessors that don't handle UINTMAX_MAX.
50596         * lib/memchr2.c (memchr2): Avoid embedded #if.
50597         Reported by Alain Guibert, fix suggested by Bruno Haible.
50598
50599 2008-04-21  Simon Josefsson  <simon@josefsson.org>
50600
50601         * doc/posix-functions/strftime.texi (strftime): Explain better
50602         Windows incompatibility.  Suggested by Micah Cowan
50603         <micah@cowan.name>.
50604
50605 2008-04-20  Bruno Haible  <bruno@clisp.org>
50606
50607         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
50608         unistr/u8-mblen.
50609
50610 2008-04-20  Bruno Haible  <bruno@clisp.org>
50611
50612         Fix test failure on platforms with non-GNU iconv.
50613         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
50614         (U_TO_U8): Use it, rather than u16_to_u8.
50615         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
50616         units at the end of the input string.
50617         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
50618
50619 2008-04-20  Bruno Haible  <bruno@clisp.org>
50620
50621         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
50622         when the resulting length is 0.
50623         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
50624
50625 2008-04-20  Bruno Haible  <bruno@clisp.org>
50626
50627         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
50628         works.
50629         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
50630
50631 2008-04-20  Bruno Haible  <bruno@clisp.org>
50632
50633         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
50634         * modules/tsearch-tests (configure.ac): Test for initstate function.
50635
50636 2008-04-20  Bruno Haible  <bruno@clisp.org>
50637
50638         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
50639         for nlink_t if missing.
50640         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
50641
50642 2008-04-19  Bruno Haible  <bruno@clisp.org>
50643
50644         Work around snprintf bug on Linux libc5.
50645         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
50646         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50647         gl_SNPRINTF_SIZE1.
50648         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50649         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
50650         that test failed.
50651         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
50652         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
50653         * modules/snprintf (Files): Add m4/printf.m4.
50654         * modules/vsnprintf (Files): Likewise.
50655         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
50656         * doc/posix-functions/vsnprintf.texi: Likewise.
50657
50658 2008-04-19  Bruno Haible  <bruno@clisp.org>
50659
50660         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
50661         from 0.0058 to less than 10^-7.
50662
50663 2008-04-19  Bruno Haible  <bruno@clisp.org>
50664
50665         Fix rounding when a precision is given.
50666         * lib/vasnprintf.c (is_borderline): New function.
50667         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
50668         9...9x.
50669         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
50670         %e, %g.
50671         * tests/test-vasprintf-posix.c (test_function): Likewise.
50672         * tests/test-snprintf-posix.h (test_function): Likewise.
50673         * tests/test-sprintf-posix.h (test_function): Likewise.
50674         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
50675         * tests/test-printf-posix.h (test_function): Likewise.
50676         * tests/test-printf-posix.output: Update.
50677         Reported by John Darrington <john@darrington.wattle.id.au> via
50678         Ben Pfaff <blp@cs.stanford.edu>.
50679
50680 2008-04-18  Simon Josefsson  <simon@josefsson.org>
50681
50682         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
50683         Suggested by Bruno Haible <bruno@clisp.org>.
50684
50685 2008-04-17  Bruno Haible  <bruno@clisp.org>
50686
50687         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
50688         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
50689         implementation.
50690         Patch by Bruce Merry <bmerry@gmail.com>.
50691
50692 2008-04-17  Simon Josefsson  <simon@josefsson.org>
50693
50694         * doc/posix-functions/strftime.texi (strftime): Mention that %e
50695         doesn't work under Windows.
50696
50697 2008-04-16  Bruno Haible  <bruno@clisp.org>
50698
50699         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
50700         New macros.
50701         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
50702         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
50703         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
50704         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
50705         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
50706         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
50707         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
50708         macros.
50709         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
50710         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
50711         Northern Sotho, Uighur.
50712
50713 2008-04-16  Bruno Haible  <bruno@clisp.org>
50714
50715         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
50716         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
50717         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
50718         Reported by Daniel Bergström <daniel@octocode.com>.
50719
50720 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
50721             Bruno Haible  <bruno@clisp.org>
50722
50723         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
50724         function.
50725         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
50726         New functions, mostly extracted from gl_locale_name_default.
50727         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
50728
50729 2008-04-16  Eric Blake  <ebb9@byu.net>
50730
50731         Adjust strtod detection to catch glibc 2.7 bug.
50732         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
50733         Reported by John Gatewood Ham.
50734
50735 2008-04-16  Bruno Haible  <bruno@clisp.org>
50736
50737         Add tentative support for Linux libc5.
50738         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
50739         * lib/fpurge.c (fpurge): Likewise.
50740         * lib/freadable.c (freadable): Likewise.
50741         * lib/freadahead.c (freadahead): Likewise.
50742         * lib/freading.c (freading): Likewise.
50743         * lib/freadptr.c (freadptr): Likewise.
50744         * lib/freadseek.c (freadptrinc): Likewise.
50745         * lib/fseeko.c (rpl_fseeko): Likewise.
50746         * lib/fseterr.c (fseterr): Likewise.
50747         * lib/fwritable.c (fwritable): Likewise.
50748         * lib/fwriting.c (fwriting): Likewise.
50749         Reported by Alain Guibert <alguibert+bts@free.fr>.
50750
50751 2008-04-15  Bruno Haible  <bruno@clisp.org>
50752
50753         * modules/mathl (configure.ac): Define module indicator.
50754
50755 2008-04-15  Bruno Haible  <bruno@clisp.org>
50756
50757         * lib/logl.c (logl): Remove unused variables.
50758
50759 2008-04-15  Bruno Haible  <bruno@clisp.org>
50760
50761         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
50762         fails.
50763
50764 2008-04-15  Bruno Haible  <bruno@clisp.org>
50765
50766         * lib/trim.c (trim2): Fix argument of isspace() macro.
50767
50768 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
50769
50770         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
50771         to 0.
50772         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
50773
50774 2008-04-14  Bruno Haible  <bruno@clisp.org>
50775
50776         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
50777         AC_LANG_PROGRAM argument.
50778         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
50779         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
50780         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
50781         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
50782         * m4/math_h.m4 (gl_MATH_H): Likewise.
50783         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
50784         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
50785         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
50786         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
50787         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
50788         * m4/regex.m4 (gl_REGEX): Likewise.
50789         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
50790         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
50791         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50792         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
50793         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
50794         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50795         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
50796         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
50797
50798 2008-04-14  Jim Meyering  <meyering@redhat.com>
50799
50800         test-strtod: fix typos: s/abs/fabs/
50801         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
50802
50803 2008-04-13  Bruno Haible  <bruno@clisp.org>
50804
50805         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
50806         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
50807         module is also used and while not building the reloc-wrapper.
50808
50809 2008-04-13  Bruno Haible  <bruno@clisp.org>
50810
50811         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
50812
50813 2008-04-13  Bruno Haible  <bruno@clisp.org>
50814
50815         Fix AIX compilation failure introduced on 2008-04-02.
50816         * tests/test-frexp.c (exp): Undefine before redefining.
50817         * tests/test-frexpl.c (exp): Likewise.
50818
50819 2008-04-13  Bruno Haible  <bruno@clisp.org>
50820
50821         Work around a HP-UX stdio bug.
50822         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
50823         * tests/test-ftello.c (main): Likewise.
50824         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
50825         * doc/posix-functions/ftello.texi: Likewise.
50826
50827 2008-04-13  Bruno Haible  <bruno@clisp.org>
50828
50829         Make test-signbit pass on HP-UX/hppa.
50830         * tests/test-signbit.c (minus_zerol): New variable.
50831         (test_signbitl): Use it.
50832
50833 2008-04-13  Bruno Haible  <bruno@clisp.org>
50834
50835         Make truncl work on OSF/1 4.0.
50836         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
50837         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50838         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50839         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
50840         HAVE_DECL_TRUNCL.
50841         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
50842         HAVE_DECL_TRUNCL.
50843         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
50844
50845 2008-04-13  Bruno Haible  <bruno@clisp.org>
50846
50847         * lib/unictype.h: Remove trailing comma from enumeration definitions.
50848
50849 2008-04-13  Bruno Haible  <bruno@clisp.org>
50850
50851         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
50852         expression, so as to avoid HP-UX 11 cc compiler bug.
50853
50854 2008-04-13  Bruno Haible  <bruno@clisp.org>
50855
50856         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
50857
50858 2008-04-13  Bruno Haible  <bruno@clisp.org>
50859
50860         * lib/git-merge-changelog.c: Remove empty declaration outside of
50861         functions.
50862
50863 2008-04-13  Bruno Haible  <bruno@clisp.org>
50864
50865         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
50866
50867 2008-04-13  Bruno Haible  <bruno@clisp.org>
50868
50869         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
50870         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
50871         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
50872         also if it exists but lacks definitions of the SHUT_* macros.
50873         * modules/sys_socket (Description): Update.
50874         Reported by Elbert Pol <e.pol@chello.nl>.
50875
50876 2008-04-13  Bruno Haible  <bruno@clisp.org>
50877
50878         * lib/localcharset.c (OS2): Don't redefine if already defined.
50879         Reported by Elbert Pol <e.pol@chello.nl>.
50880
50881 2008-04-13  Bruno Haible  <bruno@clisp.org>
50882
50883         * lib/binary-io.h [__EMX__]: Include <io.h>.
50884         Reported by Elbert Pol <e.pol@chello.nl>.
50885
50886 2008-04-12  Bruno Haible  <bruno@clisp.org>
50887
50888         * lib/fpucw.h: Enable the definitions also for x86_64.
50889         Needed for NetBSD/x86_64.
50890         Reported by Thomas Klausner <tk@giga.or.at>.
50891
50892 2008-04-12  Bruno Haible  <bruno@clisp.org>
50893
50894         * tests/test-strtod.c: Include isnand.h.
50895         (main): Use isnand instead of isnan.
50896         Reported by Jim Meyering.
50897
50898 2008-04-12  Bruno Haible  <bruno@clisp.org>
50899
50900         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
50901         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
50902
50903 2008-04-12  Jim Meyering  <meyering@redhat.com>
50904
50905         * m4/math_h.m4 (gl_MATH_H): Fix typos.
50906
50907 2008-04-12  Bruno Haible  <bruno@clisp.org>
50908
50909         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
50910         Reported by Elbert Pol <e.pol@chello.nl>.
50911
50912 2008-04-12  Eric Blake  <ebb9@byu.net>
50913
50914         Work around Solaris 10 math.h bug.
50915         * m4/math_h.m4 (gl_MATH_H): Check for bug.
50916         (gl_MATH_H_DEFAULTS): Set up default.
50917         * modules/math (Makefile.am): Replace new indicators.
50918         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
50919         * tests/test-math.c (main): Test this.
50920         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
50921         * doc/posix-headers/math.texi (math.h): Mention bug.
50922         Reported by Nelson H. F. Beebe and Jim Meyering.
50923
50924 2008-04-11  Bruno Haible  <bruno@clisp.org>
50925
50926         Adapt to future versions of Apple GCC.
50927         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
50928         Reported by Peter O'Gorman <peter@pogma.com>.
50929
50930 2008-04-11  Bruno Haible  <bruno@clisp.org>
50931
50932         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
50933
50934 2008-04-11  Bruno Haible  <bruno@clisp.org>
50935
50936         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
50937
50938         * modules/getaddrinfo-tests (Makefile.am): Define
50939         test_getaddrinfo_LDADD.
50940
50941 2008-04-11  Bruno Haible  <bruno@clisp.org>
50942
50943         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
50944         (init): Fix syntax error.
50945         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
50946         is declared.
50947
50948 2008-04-11  Bruno Haible  <bruno@clisp.org>
50949
50950         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
50951         * modules/glob (Depends-on): Add stdbool.
50952
50953 2008-04-11  Bruno Haible  <bruno@clisp.org>
50954
50955         * lib/trim.c: Include <string.h>.
50956
50957 2008-04-11  Eric Blake  <ebb9@byu.net>
50958
50959         Avoid compile failure on OS/2.
50960         * lib/regex_internal.h (internal_function): Disable optimization
50961         on OS/2 (__EMX__), where it caused compiler error.
50962         Reported by Elbert Pol.
50963
50964 2008-04-11  Bruno Haible  <bruno@clisp.org>
50965
50966         Flush the standard error stream before aborting. Needed on mingw.
50967         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
50968         * tests/test-array_list.c (ASSERT): Likewise.
50969         * tests/test-array_oset.c (ASSERT): Likewise.
50970         * tests/test-avltree_list.c (ASSERT): Likewise.
50971         * tests/test-avltree_oset.c (ASSERT): Likewise.
50972         * tests/test-avltreehash_list.c (ASSERT): Likewise.
50973         * tests/test-binary-io.c (ASSERT): Likewise.
50974         * tests/test-byteswap.c (ASSERT): Likewise.
50975         * tests/test-c-ctype.c (ASSERT): Likewise.
50976         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
50977         * tests/test-c-strcasestr.c (ASSERT): Likewise.
50978         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
50979         * tests/test-c-strstr.c (ASSERT): Likewise.
50980         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
50981         * tests/test-canonicalize.c (ASSERT): Likewise.
50982         * tests/test-carray_list.c (ASSERT): Likewise.
50983         * tests/test-ceilf1.c (ASSERT): Likewise.
50984         * tests/test-ceilf2.c (ASSERT): Likewise.
50985         * tests/test-ceill.c (ASSERT): Likewise.
50986         * tests/test-count-one-bits.c (ASSERT): Likewise.
50987         * tests/test-fbufmode.c (ASSERT): Likewise.
50988         * tests/test-fflush2.c (ASSERT): Likewise.
50989         * tests/test-floorf1.c (ASSERT): Likewise.
50990         * tests/test-floorf2.c (ASSERT): Likewise.
50991         * tests/test-floorl.c (ASSERT): Likewise.
50992         * tests/test-fopen.c (ASSERT): Likewise.
50993         * tests/test-fpending.c (ASSERT): Likewise.
50994         * tests/test-fprintf-posix.c (ASSERT): Likewise.
50995         * tests/test-fpurge.c (ASSERT): Likewise.
50996         * tests/test-freadable.c (ASSERT): Likewise.
50997         * tests/test-freadahead.c (ASSERT): Likewise.
50998         * tests/test-freading.c (ASSERT): Likewise.
50999         * tests/test-freadptr.c (ASSERT): Likewise.
51000         * tests/test-freadptr2.c (ASSERT): Likewise.
51001         * tests/test-freadseek.c (ASSERT): Likewise.
51002         * tests/test-freopen.c (ASSERT): Likewise.
51003         * tests/test-frexp.c (ASSERT): Likewise.
51004         * tests/test-frexpl.c (ASSERT): Likewise.
51005         * tests/test-fseek.c (ASSERT): Likewise.
51006         * tests/test-fseeko.c (ASSERT): Likewise.
51007         * tests/test-fstrcmp.c (ASSERT): Likewise.
51008         * tests/test-ftell.c (ASSERT): Likewise.
51009         * tests/test-ftello.c (ASSERT): Likewise.
51010         * tests/test-func.c (ASSERT): Likewise.
51011         * tests/test-fwritable.c (ASSERT): Likewise.
51012         * tests/test-fwriting.c (ASSERT): Likewise.
51013         * tests/test-getdelim.c (ASSERT): Likewise.
51014         * tests/test-getline.c (ASSERT): Likewise.
51015         * tests/test-i-ring.c (ASSERT): Likewise.
51016         * tests/test-iconv-utf.c (ASSERT): Likewise.
51017         * tests/test-iconv.c (ASSERT): Likewise.
51018         * tests/test-isfinite.c (ASSERT): Likewise.
51019         * tests/test-isnand.c (ASSERT): Likewise.
51020         * tests/test-isnanf.c (ASSERT): Likewise.
51021         * tests/test-isnanl.h (ASSERT): Likewise.
51022         * tests/test-ldexpl.c (ASSERT): Likewise.
51023         * tests/test-linked_list.c (ASSERT): Likewise.
51024         * tests/test-linkedhash_list.c (ASSERT): Likewise.
51025         * tests/test-localename.c (ASSERT): Likewise.
51026         * tests/test-lseek.c (ASSERT): Likewise.
51027         * tests/test-mbscasecmp.c (ASSERT): Likewise.
51028         * tests/test-mbscasestr1.c (ASSERT): Likewise.
51029         * tests/test-mbscasestr2.c (ASSERT): Likewise.
51030         * tests/test-mbscasestr3.c (ASSERT): Likewise.
51031         * tests/test-mbscasestr4.c (ASSERT): Likewise.
51032         * tests/test-mbschr.c (ASSERT): Likewise.
51033         * tests/test-mbscspn.c (ASSERT): Likewise.
51034         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
51035         * tests/test-mbspbrk.c (ASSERT): Likewise.
51036         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
51037         * tests/test-mbsrchr.c (ASSERT): Likewise.
51038         * tests/test-mbsspn.c (ASSERT): Likewise.
51039         * tests/test-mbsstr1.c (ASSERT): Likewise.
51040         * tests/test-mbsstr2.c (ASSERT): Likewise.
51041         * tests/test-mbsstr3.c (ASSERT): Likewise.
51042         * tests/test-memchr2.c (ASSERT): Likewise.
51043         * tests/test-memmem.c (ASSERT): Likewise.
51044         * tests/test-open.c (ASSERT): Likewise.
51045         * tests/test-printf-frexp.c (ASSERT): Likewise.
51046         * tests/test-printf-frexpl.c (ASSERT): Likewise.
51047         * tests/test-printf-posix.c (ASSERT): Likewise.
51048         * tests/test-quotearg.c (ASSERT): Likewise.
51049         * tests/test-rbtree_list.c (ASSERT): Likewise.
51050         * tests/test-rbtree_oset.c (ASSERT): Likewise.
51051         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
51052         * tests/test-round1.c (ASSERT): Likewise.
51053         * tests/test-roundf1.c (ASSERT): Likewise.
51054         * tests/test-roundl.c (ASSERT): Likewise.
51055         * tests/test-signbit.c (ASSERT): Likewise.
51056         * tests/test-sleep.c (ASSERT): Likewise.
51057         * tests/test-snprintf-posix.c (ASSERT): Likewise.
51058         * tests/test-snprintf.c (ASSERT): Likewise.
51059         * tests/test-sprintf-posix.c (ASSERT): Likewise.
51060         * tests/test-stat-time.c (ASSERT): Likewise.
51061         * tests/test-strcasestr.c (ASSERT): Likewise.
51062         * tests/test-strerror.c (ASSERT): Likewise.
51063         * tests/test-striconv.c (ASSERT): Likewise.
51064         * tests/test-striconveh.c (ASSERT): Likewise.
51065         * tests/test-striconveha.c (ASSERT): Likewise.
51066         * tests/test-strsignal.c (ASSERT): Likewise.
51067         * tests/test-strstr.c (ASSERT): Likewise.
51068         * tests/test-strtod.c (ASSERT): Likewise.
51069         * tests/test-trunc1.c (ASSERT): Likewise.
51070         * tests/test-trunc2.c (ASSERT): Likewise.
51071         * tests/test-truncf1.c (ASSERT): Likewise.
51072         * tests/test-truncf2.c (ASSERT): Likewise.
51073         * tests/test-truncl.c (ASSERT): Likewise.
51074         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
51075         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
51076         * tests/test-vasnprintf.c (ASSERT): Likewise.
51077         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
51078         * tests/test-vasprintf.c (ASSERT): Likewise.
51079         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
51080         * tests/test-vprintf-posix.c (ASSERT): Likewise.
51081         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
51082         * tests/test-vsnprintf.c (ASSERT): Likewise.
51083         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
51084         * tests/test-wcwidth.c (ASSERT): Likewise.
51085         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
51086         * tests/test-xprintf-posix.c (ASSERT): Likewise.
51087         * tests/test-xvasprintf.c (ASSERT): Likewise.
51088         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
51089         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
51090         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
51091         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
51092         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
51093         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
51094         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
51095         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
51096         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
51097         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
51098         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
51099         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
51100         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
51101         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
51102         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
51103         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
51104         * tests/unictype/test-block_list.c (ASSERT): Likewise.
51105         * tests/unictype/test-block_of.c (ASSERT): Likewise.
51106         * tests/unictype/test-block_test.c (ASSERT): Likewise.
51107         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
51108         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
51109         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
51110         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
51111         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
51112         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
51113         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
51114         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
51115         * tests/unictype/test-combining.c (ASSERT): Likewise.
51116         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
51117         * tests/unictype/test-digit.c (ASSERT): Likewise.
51118         * tests/unictype/test-mirror.c (ASSERT): Likewise.
51119         * tests/unictype/test-numeric.c (ASSERT): Likewise.
51120         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
51121         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
51122         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
51123         * tests/unictype/test-scripts.c (ASSERT): Likewise.
51124         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
51125         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
51126         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
51127         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
51128         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
51129         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
51130         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
51131         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
51132         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
51133         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
51134         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
51135         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
51136         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
51137         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
51138         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
51139         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
51140         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
51141         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
51142         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
51143         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
51144         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
51145         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
51146         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
51147         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
51148         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
51149         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
51150         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
51151         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
51152         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
51153         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
51154         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
51155         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
51156         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
51157         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
51158         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
51159         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
51160         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
51161         Reported by Eric Blake.
51162
51163 2008-04-11  Bruno Haible  <bruno@clisp.org>
51164
51165         * lib/wchar.in.h: Tweak comment.
51166
51167 2008-04-11  Bruno Haible  <bruno@clisp.org>
51168
51169         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
51170         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
51171         gl_COMMON.
51172         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
51173
51174 2008-04-11  Bruno Haible  <bruno@clisp.org>
51175
51176         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
51177
51178 2008-04-11  Simon Josefsson  <simon@josefsson.org>
51179
51180         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
51181         of attempting to use non-existing /dev/*random.  Based on patch
51182         from Adam Strzelecki <ono@java.pl> in
51183         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
51184
51185 2008-04-08  Bruno Haible  <bruno@clisp.org>
51186
51187         Add tentative support for emx+gcc.
51188         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
51189         * lib/fpurge.c (fpurge): Likewise.
51190         * lib/freadable.c (freadable): Likewise.
51191         * lib/freadahead.c (freadahead): Likewise.
51192         * lib/freading.c (freading): Likewise.
51193         * lib/freadptr.c (freadptr): Likewise.
51194         * lib/freadseek.c (freadptrinc): Likewise.
51195         * lib/fseeko.c (rpl_fseeko): Likewise.
51196         * lib/fseterr.c (fseterr): Likewise.
51197         * lib/fwritable.c (fwritable): Likewise.
51198         * lib/fwriting.c (fwriting): Likewise.
51199         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
51200
51201 2008-04-09  Eric Blake  <ebb9@byu.net>
51202
51203         Avoid some autoconf warnings.
51204         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
51205         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
51206         * m4/afs.m4 (gl_AFS): Likewise.
51207         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
51208         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
51209         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51210         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
51211         (gl_INTEGER_TYPE_SUFFIX): Likewise.
51212         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
51213         (AC_CHECK_DECLS_ONCE): Likewise.
51214         Rename file...
51215         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
51216         gnulib-tool requires autoconf 2.59 or better.
51217         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
51218
51219 2008-04-08  Eric Blake  <ebb9@byu.net>
51220
51221         Use 'git describe --match' if present (added in git 1.5.5).
51222         * build-aux/git-version-gen: Limit result to tags that match 'v*'
51223         if possible.
51224
51225 2008-04-08  Bruno Haible  <bruno@clisp.org>
51226
51227         Add tentative support for OpenServer.
51228         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
51229         _ptr, _cnt.
51230         * lib/fpurge.c (fpurge): Likewise.
51231         * lib/freadable.c (freadable): Likewise.
51232         * lib/freadahead.c (freadahead): Likewise.
51233         * lib/freading.c (freading): Likewise.
51234         * lib/freadptr.c (freadptr): Likewise.
51235         * lib/freadseek.c (freadptrinc): Likewise.
51236         * lib/fseeko.c (rpl_fseeko): Likewise.
51237         * lib/fseterr.c (fseterr): Likewise.
51238         * lib/fwritable.c (fwritable): Likewise.
51239         * lib/fwriting.c (fwriting): Likewise.
51240         Reported by Roger Cornelius <rac@tenzing.org> and
51241         Brian K. White <brian@aljex.com>.
51242
51243 2008-04-06  Jim Meyering  <meyering@redhat.com>
51244
51245         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
51246
51247 2008-04-06  Bruno Haible  <bruno@clisp.org>
51248
51249         Avoid possible error with non-ASCII bytes in UTF-8 locales.
51250         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
51251         * tests/test-printf-posix.sh: Likewise.
51252         * tests/test-vfprintf-posix.sh: Likewise.
51253         * tests/test-vprintf-posix.sh: Likewise.
51254         * tests/test-xprintf-posix.sh: Likewise.
51255
51256 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51257
51258         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
51259         hide error from 'ls', needed on OS/2.
51260         Report by Elbert Pol <elbert.pol@gmail.com>.
51261
51262 2008-04-04  Eric Blake  <ebb9@byu.net>
51263
51264         Make test-fseeko.c failures meaningful.
51265         * tests/test-fseeko.c: Print line number on failure.
51266         * tests/test-fseek.c: Likewise.
51267         Reported by Nelson H. F. Beebe.
51268
51269         Improve strtod bug detection check.
51270         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
51271         required for Solaris 10.
51272         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
51273
51274 2008-04-04  Bruno Haible  <bruno@clisp.org>
51275
51276         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
51277         by m4/setenv.m4.
51278
51279 2008-04-03  Eric Blake  <ebb9@byu.net>
51280
51281         Ensure sane .version contents.
51282         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
51283         version string.
51284         * build-aux/git-version-gen: Improve documentation.
51285
51286         Make GNU make output nicer.
51287         * top/GNUmakefile [!_have-Makefile]: Add dependency on
51288         MAKECMDGOALS to enforce message for all command line targets.  Set
51289         srcdir for use in maint.mk.
51290
51291         Another maintainer tweak.
51292         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
51293         a target that regenerates version.
51294
51295 2008-04-03  Jim Meyering  <meyering@redhat.com>
51296
51297         vc-list-files: don't cause coreutils "make po-check" failure
51298         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
51299
51300 2008-04-03  Eric Blake  <ebb9@byu.net>
51301
51302         Allow VPATH usage of vc-list-files.
51303         * build-aux/vc-list-files (scriptversion): Add timestamp.
51304         (options): Add --help, --version, -C.
51305         (CVS): Support installed cvsu.
51306
51307 2008-04-02  Bruno Haible  <bruno@clisp.org>
51308
51309         Avoid some "statement with no effect" warnings from gcc.
51310         * tests/test-wctype.c (main): Explicitly ignore unused values.
51311         Reported by Jim Meyering.
51312
51313 2008-04-02  Jim Meyering  <meyering@redhat.com>
51314
51315         Avoid some warnings from "gcc -Wshadow".
51316         * tests/test-frexp.c (exp): Define to a different identifier.
51317         * tests/test-frexpl.c (exp): Likewise.
51318
51319 2008-04-03  Jim Meyering  <meyering@redhat.com>
51320
51321         bootstrap: remove dangling *.[ch] symlinks from lib
51322         * build-aux/bootstrap [dangling symlink removal]: Move find's
51323         -depth option to precede all others, to avoid a warning.
51324         Remove *.[ch] files too, and from "$source_base" (usually lib/).
51325
51326 2008-04-02  Bruno Haible  <bruno@clisp.org>
51327
51328         Avoid some warnings from "gcc -Wshadow".
51329         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
51330         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
51331         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
51332         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
51333         Reported by Jim Meyering.
51334
51335 2008-04-01  Bruno Haible  <bruno@clisp.org>
51336
51337         Fix test to work on IRIX 6.5 with cc.
51338         * tests/test-math.c (numeric_equal): New function.
51339         (main): Use it.
51340
51341 2008-04-01  Bruno Haible  <bruno@clisp.org>
51342
51343         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
51344
51345 2008-04-01  Bruno Haible  <bruno@clisp.org>
51346
51347         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
51348         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51349         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
51350         (Depends-on): Remove math.
51351
51352         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
51353         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51354         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
51355         (Depends-on): Remove math.
51356
51357         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
51358         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51359         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
51360         (Depends-on): Remove math.
51361         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
51362         (Depends-on): Remove math.
51363
51364         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
51365         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51366         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
51367         (Depends-on): Remove math.
51368         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
51369         (Depends-on): Remove math.
51370
51371         * tests/test-round1.c: Include nan.h.
51372         (main): Use NaNd instead of NAN.
51373         * modules/round-tests (Files): Add tests/nan.h.
51374
51375         * tests/test-trunc1.c: Include nan.h.
51376         (main): Use NaNd instead of NAN.
51377         * modules/trunc-tests (Files): Add tests/nan.h.
51378
51379         * tests/test-roundf1.c: Include nan.h.
51380         (main): Use NaNf instead of NAN.
51381         * modules/roundf-tests (Files): Add tests/nan.h.
51382
51383         * tests/test-truncf1.c: Include nan.h.
51384         (main): Use NaNf instead of NAN.
51385         * modules/truncf-tests (Files): Add tests/nan.h.
51386
51387         * tests/test-ceilf1.c: Include nan.h.
51388         (main): Use NaNf instead of NAN.
51389         * modules/ceilf-tests (Files): Add tests/nan.h.
51390
51391         * tests/test-floorf1.c: Include nan.h.
51392         (main): Use NaNf instead of NAN.
51393         * modules/floorf-tests (Files): Add tests/nan.h.
51394
51395         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
51396         (main): Use NaNf instead of NAN.
51397         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
51398
51399         * tests/test-isnand.c: Include nan.h instead of <math.h>.
51400         (main): Use NaNd instead of NAN.
51401         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
51402
51403         * tests/test-frexp.c: Include nan.h.
51404         (main): Use NaNd instead of NAN.
51405         * modules/frexp-tests (Files): Add tests/nan.h.
51406
51407         * lib/isnan.c: Don't include <math.h>.
51408         (FUNC): Don't use NAN macro.
51409         * modules/isnand-nolibm (Depends-on): Remove math.
51410         * modules/isnanf-nolibm (Depends-on): Remove math.
51411         * modules/isnanl (Depends-on): Remove math.
51412         * modules/isnanl-nolibm (Depends-on): Remove math.
51413
51414         * tests/nan.h: New file.
51415
51416 2008-04-01  Eric Blake  <ebb9@byu.net>
51417
51418         Fix typos.
51419         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
51420         values to be the right type.
51421
51422         For now, cater to gnulib strtod inaccuracies.
51423         * tests/test-strtod.c (main): Allow 1-ulp error on expected
51424         fractional results.  While not as nice from a QoI perspective, it
51425         is a quicker patch than correctly implementing decimal to binary
51426         rounding.
51427
51428 2008-03-31  Eric Blake  <ebb9@byu.net>
51429
51430         Guarantee a definition of NAN.
51431         * lib/math.in.h (NAN): Define if missing.
51432         * tests/test-math.c (main): Test it.
51433         * doc/posix-headers/math.texi (math.h): Document this.
51434         * lib/isnan.c (rpl_isnand): Use it.
51435         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
51436         * tests/test-floorf1.c (NaN): Likewise.
51437         * tests/test-frexp.c (NaN): Likewise.
51438         * tests/test-isnand.c (NaN): Likewise.
51439         * tests/test-isnanf.c (NaN): Likewise.
51440         * tests/test-round1.c (NaN): Likewise.
51441         * tests/test-roundf1.c (NaN): Likewise.
51442         * tests/test-snprintf-posix.h (NaN): Likewise.
51443         * tests/test-sprintf-posix.h (NaN): Likewise.
51444         * tests/test-trunc1.c (NaN): Likewise.
51445         * tests/test-truncf1.c (NaN): Likewise.
51446         * tests/test-vasnprintf-posix.c (NaN): Likewise.
51447         * tests/test-vasprintf-posix.c (NaN): Likewise.
51448         * modules/isnand-nolibm (Depends-on): Add math.
51449         * modules/isnanf-nolibm (Depends-on): Likewise.
51450         * modules/isnanl (Depends-on): Likewise.
51451         * modules/isnanl-nolibm (Depends-on): Likewise.
51452         * modules/snprintf-posix-tests (Depends-on): Likewise.
51453         * modules/sprintf-posix-tests (Depends-on): Likewise.
51454         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
51455         * modules/vsprintf-posix-tests (Depends-on): Likewise.
51456         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
51457         * modules/vasprintf-posix-tests (Depends-on): Likewise.
51458
51459 2008-03-31  Bruno Haible  <bruno@clisp.org>
51460
51461         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
51462         * doc/posix-functions/strtod.texi: Likewise.
51463
51464 2008-03-31  Bruno Haible  <bruno@clisp.org>
51465
51466         * tests/test-strtod.c (main): Don't use C99 syntax.
51467
51468 2008-03-31  Bruno Haible  <bruno@clisp.org>
51469
51470         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
51471         Reported by Eric Blake.
51472
51473 2008-03-31  Jim Meyering  <meyering@redhat.com>
51474
51475         Don't compare actual signbit return values.
51476         * tests/test-strtod.c (main): Rather, compare only their
51477         zero/non-zero nature.
51478
51479 2008-03-31  Eric Blake  <ebb9@byu.net>
51480
51481         More strtod documentation.
51482         * doc/posix-functions/strtod.texi (strtod): Interpret more test
51483         failures as distinct bugs.
51484
51485 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
51486
51487         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
51488         Problem reported by Erik Benada in
51489         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
51490
51491 2008-03-30  Bruno Haible  <bruno@clisp.org>
51492
51493         * tests/test-strtod.c: Add comments about which assertion fails on which
51494         platform.
51495         * doc/posix-functions/strtod.texi: Add info about many more platforms.
51496
51497 2008-03-30  Eric Blake  <ebb9@byu.net>
51498
51499         Test signbit behavior on zeros.
51500         * tests/test-signbit.c (test_signbitf): Add tests for zero.
51501         (test_signbitd, test_signbitl): Likewise.
51502
51503         More strtod touchups.
51504         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
51505         sign of negative underflow, for now.  Use .5, not .1.
51506         * doc/posix-functions/strtod.texi (strtod): Mention these
51507         limitations.
51508         Reported by Jim Meyering.
51509
51510 2008-03-30  Bruno Haible  <bruno@clisp.org>
51511
51512         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
51513         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
51514
51515 2008-03-30  Bruno Haible  <bruno@clisp.org>
51516
51517         Avoid failure when attempting to return empty iconv results on some
51518         platforms.
51519         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
51520         allocation, don't report ENOMEM when the resulting string is empty.
51521
51522 2008-03-30  Bruno Haible  <bruno@clisp.org>
51523
51524         Fix buffer overrun.
51525         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
51526         Don't consider the width for tmp_length. Check count against tmp_length
51527         before doing the padding. Ensure enough allocation during padding.
51528
51529 2008-03-30  Eric Blake  <ebb9@byu.net>
51530
51531         strtod touchups.
51532         * lib/strtod.c (strtod): Avoid compiler warnings.
51533         Reported by Jim Meyering.
51534
51535 2008-03-30  Bruno Haible  <bruno@clisp.org>
51536
51537         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
51538         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
51539         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
51540         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
51541         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
51542         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
51543         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
51544         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
51545
51546         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
51547         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
51548         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
51549         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
51550         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
51551         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
51552         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
51553         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
51554
51555         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
51556         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
51557         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
51558         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
51559         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
51560         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
51561         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
51562         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
51563
51564         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
51565         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
51566
51567         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
51568         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
51569
51570         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
51571         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
51572
51573         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
51574         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
51575         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
51576
51577         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
51578         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
51579         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
51580
51581         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
51582         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
51583         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
51584
51585         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
51586         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
51587         * modules/vasprintf (Depends-on): Add EOVERFLOW.
51588
51589         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
51590         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
51591         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
51592         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
51593         (Depends-on): Add EOVERFLOW.
51594         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
51595         (Depends-on): Add EOVERFLOW.
51596         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51597         (Depends-on): Add EOVERFLOW.
51598         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51599         (Depends-on): Add EOVERFLOW.
51600         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51601         (Depends-on): Add EOVERFLOW.
51602         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51603         (Depends-on): Add EOVERFLOW.
51604         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51605         (Depends-on): Add EOVERFLOW.
51606         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51607         (Depends-on): Add EOVERFLOW.
51608
51609         * lib/sprintf.c (EOVERFLOW): Remove fallback.
51610         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
51611         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
51612
51613         * lib/snprintf.c (EOVERFLOW): Remove fallback.
51614         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
51615         * modules/snprintf (Depends-on): Add EOVERFLOW.
51616
51617         * lib/poll.c (EOVERFLOW): Remove fallback.
51618         * modules/poll (Depends-on): Add EOVERFLOW.
51619
51620         * lib/getugroups.c (EOVERFLOW): Remove fallback.
51621         * modules/getugroups (Depends-on): Add EOVERFLOW.
51622
51623         * lib/getdelim.c (EOVERFLOW): Remove fallback.
51624         * modules/getdelim (Depends-on): Add EOVERFLOW.
51625
51626         * lib/ftell.c (EOVERFLOW): Remove fallback.
51627         * modules/ftell (Depends-on): Add EOVERFLOW.
51628
51629         * lib/fprintf.c (EOVERFLOW): Remove fallback.
51630         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
51631         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
51632
51633         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
51634
51635         * modules/EOVERFLOW-tests: New file.
51636         * tests/test-EOVERFLOW.c: New file.
51637
51638         * modules/EOVERFLOW: New file.
51639         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
51640
51641 2008-03-30  Bruno Haible  <bruno@clisp.org>
51642
51643         Fix bug introduced on 2007-06-10.
51644         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
51645         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
51646
51647 2008-03-30  Bruno Haible  <bruno@clisp.org>
51648
51649         Improve freadseek's efficiency after ungetc.
51650         * lib/freadseek.c: Include freadahead.h.
51651         (freadptrinc): New function, extracted from freadseek.
51652         (freadseek): Use it in a loop. Use freadahead to determine the number
51653         of loop iterations.
51654         * modules/freadseek (Depends-on): Add freadahead.
51655         (configure.ac): Require AC_C_INLINE.
51656
51657 2008-03-30  Bruno Haible  <bruno@clisp.org>
51658
51659         * lib/freadseek.c (freadseek): Don't ignore the return value of
51660         freadptr.
51661
51662 2008-03-29  Eric Blake  <ebb9@byu.net>
51663
51664         Add hex float support.
51665         * modules/strtod (Depends-on): Add c-ctype.
51666         (Link): Mention POW_LIB.
51667         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
51668         whitespace between 'e' and exponent.
51669         * tests/test-strtod.c (main): Enable hex float tests.
51670         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
51671         now provides.
51672
51673         Document various strtod bugs, with some fixes.
51674         * doc/posix-functions/strtod.texi (strtod): Document bugs with
51675         "-0x", "inf", "nan", and hex constants.
51676         * doc/posix-functions/atof.texi (atof): Likewise.
51677         * modules/stdlib (Makefile.am): Support strtod.
51678         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
51679         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
51680         detect additional strtod bugs.
51681         * lib/stdlib.in.h (rpl_strtod): Add declarations.
51682         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
51683         bool where appropriate.  Parse 'inf' and 'nan'.
51684         * tests/test-strtod.c: New file.
51685         * modules/strtod (Depends-on): Add stdbool, stdlib.
51686         (configure.ac): Turn on module indicator.
51687         * modules/strtod-tests: New module.
51688
51689 2008-03-29  Eric Blake  <ebb9@byu.net>
51690
51691         Fix ftell on mingw.
51692         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
51693         * modules/ftell-tests (Depends-on): Add binary-io.
51694         * modules/ftello-tests (Depends-on): Likewise.
51695         * tests/test-ftell.c (main): Enhance test to cover behavior after
51696         ungetc.  Enforce binary mode.
51697         * tests/test-ftello.c (main): Likewise.
51698
51699         Pass test-freadseek on cygwin.
51700         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
51701         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
51702         ungetc buffer.
51703
51704         * tests/test-fflush2.c (main): Fix typo.
51705
51706 2008-03-29  Bruno Haible  <bruno@clisp.org>
51707
51708         * tests/test-fflush2.c (main): Temporarily disable the contents of
51709         this test.
51710         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
51711         Reported by Eric Blake.
51712
51713 2008-03-28  Simon Josefsson  <simon@josefsson.org>
51714
51715         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
51716         (GC_SHA224_DIGEST_SIZE): Add.
51717
51718         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
51719         (gc_hash_digest_length): Likewise.
51720         (gc_hash_buffer): Likewise.
51721
51722 2008-03-25  Bruno Haible  <bruno@clisp.org>
51723
51724         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
51725         detail which gettext release to use.
51726         Reported by Simon Josefsson.
51727
51728 2008-03-26  Jim Meyering  <meyering@redhat.com>
51729
51730         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
51731         * modules/gnumakefile (clean-GNUmakefile): Also, use
51732         test ... && ... || : syntax rather than if-then ... fi.
51733
51734         gnumakefile: Don't double-quote-expand $(VPATH) value.
51735         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
51736
51737 2008-03-24  Eric Blake  <ebb9@byu.net>
51738
51739         Alter GNUmakefile to install into top directory.
51740         * modules/maintainer-makefile: Split, and add dependency...
51741         * modules/gnumakefile: to this new module.
51742         * build-aux/GNUmakefile: Move...
51743         * top/GNUmakefile: ...here.
51744         * build-aux/maint.mk: Move...
51745         * top/maint.mk: ...here.
51746         * MODULES.html.sh (Support for maintaining...): Document new
51747         module.
51748
51749 2008-03-23  Bruno Haible  <bruno@clisp.org>
51750
51751         * gnulib-tool: New options --vc-files, --no-vc-files.
51752         (func_usage): Document them.
51753         (vc_files): New variable.
51754         (func_import): Consider vc_files.
51755         (func_create_testdir): Set vc_files to empty.
51756         Suggested by Jim Meyering and Karl Berry.
51757
51758 2008-03-23  Bruno Haible  <bruno@clisp.org>
51759
51760         Fix regex compilation error on HP-UX 11.
51761         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
51762         * modules/regex (Files): Add m4/mbstate_t.m4.
51763         Reported by Ton Voon <ton.voon@altinity.com>.
51764
51765 2008-03-23  Bruno Haible  <bruno@clisp.org>
51766
51767         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
51768
51769 2008-03-23  Eric Blake  <ebb9@byu.net>
51770             Bruno Haible  <bruno@clisp.org>
51771
51772         Install files from top/ in the destination directory.
51773         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
51774         augmentation also for the files from top/.
51775         (func_import, func_create_testdir): Rewrite file names:
51776         top/filename -> filename.
51777
51778 2008-03-23  Bruno Haible  <bruno@clisp.org>
51779
51780         Tweak "gnulib --version" output.
51781         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
51782
51783 2008-03-23  Bruno Haible  <bruno@clisp.org>
51784
51785         Tweak "gnulib --version" output.
51786         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
51787         rather than contents of ChangeLog, when possible.
51788
51789 2008-03-21  Eric Blake  <ebb9@byu.net>
51790
51791         More --version tweaks.
51792         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
51793         date of last ChangeLog entry.
51794
51795 2008-03-21  Jim Meyering  <meyering@redhat.com>
51796
51797         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
51798
51799 2008-03-20  Eric Blake  <ebb9@byu.net>
51800
51801         VPATH fix.
51802         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
51803
51804 2008-03-20  Simon Josefsson  <simon@josefsson.org>
51805
51806         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
51807         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
51808
51809 2008-03-20  Eric Blake  <ebb9@byu.net>
51810
51811         Sync GNUmakefile with coreutils.
51812         * build-aux/GNUmakefile (have-Makefile): Rename...
51813         (_have-Makefile): ...to this, for namespace consideration.
51814         (GNUmakefile.cfg): Include, if present.
51815         (_autoreconf): Define a default.
51816         (_is-dist-target): New rule for rebuilds to pick up intra-release
51817         version.
51818         (maint-cfg.mk): Rename...
51819         (cfg.mk): ...to this.
51820
51821 2008-03-18  Jim Meyering  <meyering@redhat.com>
51822
51823         New script and module: mktempd
51824         * MODULES.html.sh (maint+release support): Add mktempd.
51825         * build-aux/mktempd: New file.
51826         * modules/mktempd: New file.
51827
51828 2008-03-15  Jim Meyering  <meyering@redhat.com>
51829
51830         Undo last change.
51831         * lib/sha1.c, lib/md5.c: 63 != ~63.
51832         Reported by Andreas Schwab.
51833
51834         sha1.c, md5.c: Hoist a redundant expression.
51835         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
51836         "ctx->buflen" only once, before calling *_process_block.
51837         * lib/md5.c (md5_process_bytes): Likewise.
51838
51839 2008-03-14  Eric Blake  <ebb9@byu.net>
51840
51841         Bump copyright year in files generated by gnulib-tool.
51842         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
51843         gnulib-tool, rather than hard-coding it.
51844
51845         Fix 'gnulib-tool --version' output to work with git.
51846         * gnulib-tool (func_gnulib_dir): New function, extracted from...
51847         (startup): ...here.
51848         (func_version): Use it to invoke git-version-gen, rather than
51849         relying on CVS keyword expansion.  Modernize wording.
51850         (cvsdatestamp, last_checkin_date, version): Kill unused
51851         variables.
51852
51853 2008-03-12  Jim Meyering  <meyering@redhat.com>
51854
51855         Recognize optional cast of the argument to free.
51856         * build-aux/useless-if-before-free: Update regexps.
51857
51858         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
51859
51860 2008-03-11  Bruno Haible  <bruno@clisp.org>
51861
51862         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
51863         by a single package.
51864         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
51865         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
51866         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
51867         Reported by Sam Steingold <sds@gnu.org>.
51868
51869 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
51870
51871         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
51872         repositories.
51873
51874 2008-03-11  Bruno Haible  <bruno@clisp.org>
51875
51876         Avoid conflicts between local macro definitions.
51877         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
51878         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
51879
51880 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
51881             Bruno Haible  <bruno@clisp.org>
51882
51883         Make va_copy work with some version of xlc on AIX 5.1.
51884         * lib/stdarg.in.h: New file.
51885         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
51886         On AIX, use a <stdarg.h> file substitute.
51887         * modules/stdarg (Files): Add lib/stdarg.in.h.
51888         (Depends-on): Add include_next.
51889         (Makefile.am): Build a stdarg.h substitute if requested.
51890         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
51891
51892 2008-03-10  Bruno Haible  <bruno@clisp.org>
51893
51894         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
51895         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51896         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51897
51898 2008-03-10  Bruno Haible  <bruno@clisp.org>
51899
51900         * modules/stdlib (Depends-on): Add include_next, remove
51901         absolute-header.
51902
51903 2008-03-09  Bruno Haible  <bruno@clisp.org>
51904
51905         * lib/freadahead.h (freadahead): Document more precisely.
51906         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
51907         the sum of both buffer sizes.
51908         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
51909         * NEWS: Document the change.
51910
51911 2008-03-09  Bruno Haible  <bruno@clisp.org>
51912
51913         Extend freadptr to return also the buffer size.
51914         * lib/freadptr.h (freadptr): Add sizep argument.
51915         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
51916         (freadptr): Add sizep argument. Determine buffer size like freadahead
51917         does.
51918         * tests/test-freadptr.c: Don't include freadahead.h.
51919         (main): Adapt for new calling convention of freadptr.
51920         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
51921         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
51922         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
51923         tests/test-freadptr2.sh.
51924         (Depends): Remove freadahead.
51925         (TESTS): Add test-freadptr2.sh.
51926         (check_PROGRAMS): Add test-freadptr2.
51927
51928 2008-03-09  Bruno Haible  <bruno@clisp.org>
51929
51930         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
51931         Report and solution by Simon Josefsson.
51932
51933 2008-03-06  Bruno Haible  <bruno@clisp.org>
51934
51935         Make fflush after ungetc work on BSD platforms.
51936         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
51937         * tests/test-fflush2.c: New file.
51938         * tests/test-fflush2.sh: New file.
51939         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
51940         tests/test-fflush2.c.
51941         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
51942         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
51943
51944 2008-03-06  Eric Blake  <ebb9@byu.net>
51945
51946         Likewise for ftello.
51947         * modules/ftello (Dependencies): Add extensions.
51948         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
51949
51950 2008-03-06  Bruno Haible  <bruno@clisp.org>
51951
51952         * modules/fseeko (Dependencies): Add extensions.
51953         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
51954         Needed on glibc systems.
51955
51956 2008-03-06  Bruno Haible  <bruno@clisp.org>
51957
51958         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
51959         email address.
51960         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51961
51962 2008-03-06  Bruno Haible  <bruno@clisp.org>
51963
51964         * users.txt: Add libgnupdf.
51965
51966 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
51967
51968         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
51969         (Header File Substitutes, Function Substitutes,
51970         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
51971         (Build robot for gnulib): Fix typo.
51972
51973 2008-03-06  Bruno Haible  <bruno@clisp.org>
51974
51975         * doc/gnulib-tool.texi (VCS Issues): Small updates.
51976         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51977
51978 2008-03-06  Bruno Haible  <bruno@clisp.org>
51979
51980         * doc/func.texi: New file, extracted from doc/gnulib.texi.
51981         * doc/gnulib.texi: Include it.
51982
51983 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51984
51985         * modules/func (License): Change license to unlimited; there was
51986         no LGPL parts in the module anyway.
51987
51988 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51989
51990         * modules/__func__: Renamed to modules/func.
51991         * modules/__func__-tests: Renamed to modules/func-tests.
51992         * tests/test-__func__.c: Renamed to tests/test-func.c.
51993         * m4/__func__.m4: Renamed to m4/func.m4.
51994         * doc/gnulib.texi (__func__): Section renamed to func.
51995         Suggested by Eric Blake <ebb9@byu.net>.
51996
51997 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51998
51999         * doc/gnulib.texi (__func__): Use C99 terminology when talking
52000         about __func__.  Make example self-contained.  Suggested by Eric
52001         Blake <ebb9@byu.net>.
52002
52003         * tests/test-__func__.c (main): Avoid extraneous () around __func.
52004         Suggested by Eric Blake <ebb9@byu.net>.
52005
52006 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52007
52008         * modules/__func__: New file.
52009         * modules/__func__-tests: New file.
52010         * tests/test-__func__.c: New file.
52011         * m4/__func__.m4: New file.
52012         * doc/gnulib.texi (__func__): Document __func__ module.
52013
52014 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52015
52016         * modules/byteswap (License): Re-license as LGPLv2+.
52017
52018 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52019
52020         * doc/Makefile: Add pdf target.
52021
52022 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52023
52024         * modules/inline (License): Use 'unlimited', since there are only
52025         *.m4 files in this module.
52026
52027 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
52028             Bruno Haible  <bruno@clisp.org>
52029
52030         Add support for HP C 7.1 on OpenVMS 8.3.
52031         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
52032
52033 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
52034
52035         Update VMS specifics.
52036         * lib/getopt.c [VMS]: Remove include of unixlib.h.
52037
52038 2008-03-02  Jim Meyering  <meyering@redhat.com>
52039
52040         Remove the last dependency on the "free" module.
52041         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
52042         Reported by Bob Proulx.
52043
52044         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
52045
52046         Remove useless "if" tests before free.  Deprecate "free" module.
52047         * doc/posix-functions/free.texi: Mention that this
52048         module is no longer useful.
52049         * modules/free (Notice): Say this module is obsolete.
52050         * modules/readutmp (Depends-on): Remove free.
52051         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
52052         * lib/putenv.c (putenv): Likewise.
52053         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
52054         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
52055         * tests/test-c-strcasestr.c (main): Likewise.
52056         * tests/test-c-strstr.c (main): Likewise.
52057         * tests/test-mbscasestr1.c (main): Likewise.
52058         * tests/test-mbscasestr2.c (main): Likewise.
52059         * tests/test-mbsstr1.c (main): Likewise.
52060         * tests/test-mbsstr2.c (main): Likewise.
52061         * tests/test-memmem.c (main): Likewise.
52062         * tests/test-strcasestr.c (main): Likewise.
52063         * tests/test-striconv.c (main): Likewise.
52064         * tests/test-striconveh.c (main): Likewise.
52065         * tests/test-striconveha.c (main): Likewise.
52066         * tests/test-strstr.c (main): Likewise.
52067
52068         * build-aux/git-version-gen: Adjust a comment and the Usage string.
52069
52070         bootstrap: sync from coreutils again
52071         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
52072
52073 2008-03-01  Jim Meyering  <meyering@redhat.com>
52074
52075         bootstrap: sync from coreutils
52076         * build-aux/bootstrap (update_po_files): Copy a .po file into place
52077         also when the target doesn't exist.
52078
52079 2008-03-01  Eric Blake  <ebb9@byu.net>
52080
52081         Fix bugs in last patch.
52082         * lib/memchr2.c (memchr2): Fix typo.
52083         * tests/test-memchr2.c: Test previous bug, and don't use GNU
52084         extension.
52085         Reported by Bruce Korb.
52086
52087         New module 'memchr2'.
52088         * modules/memchr2: New file.
52089         * modules/memchr2-tests: Likewise.
52090         * lib/memchr2.h: Likewise.
52091         * lib/memchr2.c: Likewise, based on memchr.c.
52092         * tests/test-memchr2.c: New test.
52093         * MODULES.html.sh (String handling): Add memchr2.
52094
52095 2008-02-29  Bruno Haible  <bruno@clisp.org>
52096
52097         * modules/freadseek-tests: New file.
52098         * tests/test-freadseek.sh: New file.
52099         * tests/test-freadseek.c: New file.
52100
52101         New module 'freadseek'.
52102         * modules/freadseek: New file.
52103         * lib/freadseek.h: New file.
52104         * lib/freadseek.c: New file.
52105         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
52106
52107 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
52108
52109         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
52110         wydawca.
52111
52112         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
52113         program_invocation_name and program_invocation_short_name are
52114         present.
52115
52116 2008-02-28  Bruno Haible  <bruno@clisp.org>
52117
52118         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
52119         * tests/test-freadptr.sh: Also test non-seekable stdin.
52120
52121 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
52122
52123         * build-aux/bootstrap (source_base, m4_base)
52124         (doc_base, tests_base): New variables.
52125         (gnulib_tool_options): Do not hardcode base directories, use
52126         the above variables instead.
52127
52128 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
52129
52130         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
52131
52132 2008-02-28  Bruno Haible  <bruno@clisp.org>
52133
52134         * modules/freadptr-tests: New file.
52135         * tests/test-freadptr.sh: New file.
52136         * tests/test-freadptr.c: New file.
52137
52138         New module 'freadptr'.
52139         * modules/freadptr: New file.
52140         * lib/freadptr.h: New file.
52141         * lib/freadptr.c: New file.
52142         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
52143
52144 2008-02-26  Karl Berry  <karl@freefriends.org>
52145
52146         Sync from Libtool:
52147         * libltdl/argz.c (argz_add, argz_count): New functions.
52148         * libltdl/argz.in.h: Declare them.
52149         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
52150
52151 2008-02-22  Bruno Haible  <bruno@clisp.org>
52152
52153         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
52154         is a pointer type.  Needed for HP-UX 10.
52155         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
52156         * doc/posix-functions/gmtime_r.texi: Likewise.
52157         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
52158
52159 2008-02-24  Bruno Haible  <bruno@clisp.org>
52160
52161         * modules/environ-tests: New file.
52162         * tests/test-environ.c: New file.
52163
52164         New module 'environ'.
52165         * modules/environ: New file.
52166         * lib/unistd.in.h (environ): New declaration.
52167         * m4/environ.m4: New file.
52168         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
52169         after use.
52170         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
52171         HAVE_DECL_ENVIRON.
52172         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
52173         HAVE_DECL_ENVIRON.
52174         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
52175         wrong claim that 'environ' is missing on some systems.
52176         * modules/execute (Depends-on): Add environ.
52177         * lib/execute.c (environ): Remove fallback declaration.
52178         * modules/pipe (Depends-on): Add environ.
52179         * lib/pipe.c (environ): Remove fallback declaration.
52180         * modules/setenv (Depends-on): Add environ.
52181         * lib/setenv.c (environ): Remove fallback declaration.
52182         * modules/unsetenv (Depends-on): Add environ.
52183         * lib/unsetenv.c (environ): Remove fallback declaration.
52184         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
52185         m4/environ.m4.
52186         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
52187         (gl_PREREQ_UNSETENV): Likewise.
52188
52189 2008-02-24  Bruno Haible  <bruno@clisp.org>
52190
52191         * doc/posix-functions/environ.texi: Document the MacOS X problem.
52192
52193 2008-02-20  Bob Proulx  <bob@proulx.com>
52194
52195         Enable use of older two part flavor 'git describe'.
52196         * build-aux/git-version-gen: If using the older two part flavor of
52197         git version then recreate the third part now present in the
52198         newer three part flavor of git describe.
52199
52200 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
52201
52202         * lib/fts.c (fts_build): Typo correction to comment.
52203
52204 2008-02-17  Bruno Haible  <bruno@clisp.org>
52205
52206         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
52207         generating no-op conflicts.
52208
52209 2008-02-17  Bruno Haible  <bruno@clisp.org>
52210
52211         Speed up by 10%.
52212         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
52213         result_entries, rather than an index-based loop.
52214
52215 2008-02-17  Bruno Haible  <bruno@clisp.org>
52216
52217         Speed up by 25%.
52218         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
52219         'hashcode_cached'.
52220         (entry_create): New function.
52221         (entry_hashcode): Use the cached hashcode if possible.
52222         (read_changelog_file, try_split_merged_entry): Use entry_create.
52223
52224 2008-02-17  Bruno Haible  <bruno@clisp.org>
52225
52226         Speed up from O(n^2) to O(n) for long ChangeLog files.
52227         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
52228         (read_changelog_file): Change implementation of entries_reversed list
52229         to rbtreehash.
52230         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
52231
52232 2008-02-17  Bruno Haible  <bruno@clisp.org>
52233
52234         New option --split-merged-entry.
52235         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
52236         (find_paragraph_end, try_split_merged_entry): New functions.
52237         (long_options): Add option --split-merged-entry.
52238         (usage): Document option --split-merged-entry.
52239         (main): Implement option --split-merged-entry.
52240         Reported by Eric Blake.
52241
52242 2008-02-17  Bruno Haible  <bruno@clisp.org>
52243
52244         * lib/git-merge-changelog.c: Include c-strstr.h.
52245         (main): Support the "git pull --rebase" situation.
52246         * modules/git-merge-changelog (Depends-on): Add c-strstr.
52247         Reported by Eric Blake.
52248
52249 2008-02-16  Eric Blake  <ebb9@byu.net>
52250
52251         Avoid doubling \ in common case of "c-maybe" quoting style.
52252         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
52253         eliding outer quotes.
52254         * lib/quotearg.h: Document this.
52255         * tests/test-quotearg.c (result_strings, inputs, results_g)
52256         (flag_results, locale_results): Test it by adding a new string to
52257         each test group.
52258         (compare_strings): Test new string.
52259
52260 2008-02-13  Eric Blake  <ebb9@byu.net>
52261
52262         Avoid trigraph quoting in default output.
52263         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
52264         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
52265         unless explicitly requested.
52266         * tests/test-quotearg.c (flag_results, main): Add additional tests.
52267
52268 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
52269
52270         Don't rely on signed integer overflowing to negative value.
52271         * lib/getugroups.c (getugroups): Include <limits.h>.
52272         Instead, compare against INT_MAX, and increment only if the test passes.
52273
52274 2008-02-13  Jim Meyering  <meyering@redhat.com>
52275         and Eric Blake  <ebb9@byu.net>
52276
52277         Avoid shadowing warning and compile errors on Linux.
52278         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
52279         forwarding macros on Linux.
52280         (dcgettext): Define a stub, for Linux.
52281         (results_g, main): Avoid warnings.
52282
52283 2008-02-12  Eric Blake  <ebb9@byu.net>
52284
52285         Silence warning in last patch.
52286         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
52287
52288         Quotearg part 4: add tests, fix c-maybe colon quoting.
52289         * lib/quotearg.h: Improve documentation.
52290         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
52291         escapes when adding outer quotes.  When quoting trigraphs, use
52292         valid C notation.  When quoting NUL, omit extra characters if next
52293         character is not digit.  Alter prototype.
52294         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
52295         callers.
52296         * modules/quotearg-tests: New module.
52297         * tests/test-quotearg.c: New test.
52298
52299 2008-02-07  Eric Blake  <ebb9@byu.net>
52300
52301         Quotearg part 3: add flag to control outer quote elision.
52302         * lib/quotearg.h (c_maybe_quoting_style): New style.
52303         (enum quoting_flags): Better documentation of flags.
52304         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
52305         c-maybe style.
52306         (quotearg_buffer_restyled): Handle new flag to elide outer
52307         quotes.
52308
52309         Quotearg part 2: add flag that can control NUL elision.
52310         * lib/quotearg.h (set_quoting_flags): New prototype.
52311         * lib/quotearg.c (struct quoting_options): Add flag field.
52312         (set_quoting_flags): New function.
52313         (quotearg_buffer_restyled): Add flags parameter.
52314         (quotearg_alloc_mem): Set the flag if length cannot be returned.
52315         (quotearg_n_options): Set the flag, since length cannot be
52316         returned.
52317         (quoting_options_from_style): Default flags correctly.
52318
52319         Quotearg part 1: more wrappers, restore quotearg_char state.
52320         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
52321         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
52322         (quotearg_colon_mem): New wrappers.
52323         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
52324         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
52325         functions.
52326         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
52327         (quotearg_colon_mem): New functions.
52328
52329 2008-02-11  Bruno Haible  <bruno@clisp.org>
52330
52331         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
52332         library in the current directory: it does not work with parallel make.
52333         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52334
52335 2008-02-11  Bruno Haible  <bruno@clisp.org>
52336
52337         * .gitattributes: New file.
52338
52339 2008-02-11  Jim Meyering  <meyering@redhat.com>
52340
52341         useless-if-before-free: Fix reversed exit values.
52342         * build-aux/useless-if-before-free: Use correct values
52343         for EXIT_MATCH and EXIT_NO_MATCH.
52344
52345         * build-aux/useless-if-before-free: Close stdout carefully.
52346
52347 2008-02-10  Bruno Haible  <bruno@clisp.org>
52348
52349         New module 'git-merge-changelog'.
52350         * modules/git-merge-changelog: New file.
52351         * lib/git-merge-changelog.c: New file.
52352
52353 2008-02-10  Jim Meyering  <meyering@redhat.com>
52354
52355         useless-if-before-free: New option: --list (-l).
52356
52357         useless-if-before-free: Don't exit immediately upon open failure.
52358         * build-aux/useless-if-before-free: Exit 2 for errors.
52359         Upon failure to open a file, don't exit immediately.
52360         Rather, just warn and continue with any remaining files.
52361
52362 2008-02-10  Bruno Haible  <bruno@clisp.org>
52363
52364         New abstract list operation 'node_set_value'.
52365         * lib/gl_list.h (gl_list_node_set_value): New function.
52366         (struct gl_list_implementation): New field node_set_value.
52367         * lib/gl_list.c (gl_list_node_set_value): New function.
52368         * lib/gl_array_list.c (gl_array_node_set_value): New function.
52369         (gl_array_list_implementation): Update.
52370         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
52371         (gl_carray_list_implementation): Update.
52372         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
52373         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
52374         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
52375         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
52376         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
52377         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
52378         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
52379         Update.
52380         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
52381         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
52382         (gl_sublist_list_implementation): Update.
52383
52384 2008-02-10  Bruno Haible  <bruno@clisp.org>
52385
52386         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
52387         Needed when ELEMENT is #defined to 'some_type *'.
52388
52389 2008-02-10  Jim Meyering  <meyering@redhat.com>
52390
52391         New script and module: useless-if-before-free
52392         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
52393         * build-aux/useless-if-before-free: New file.
52394         * modules/useless-if-before-free: New file.
52395
52396         * build-aux/gitlog-to-changelog: Use committer date, not author date.
52397
52398         xstrtol_error: Fix typo.
52399         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
52400         s/exit_failure/exit_status/.
52401
52402 2008-02-09  Jim Meyering  <meyering@redhat.com>
52403
52404         New script and module: gitlog-to-changelog
52405         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
52406         * modules/gitlog-to-changelog: New file.
52407         * build-aux/gitlog-to-changelog: New file.
52408
52409 2008-02-08  Jim Meyering  <meyering@redhat.com>
52410
52411         Avoid two "parameter unused" warnings.
52412         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
52413         Mark "st" as used.
52414
52415         Use "git COMMAND", not "git-COMMAND".
52416         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
52417         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
52418         * build-aux/git-version-gen: Use "git status", not "git-status".
52419
52420 2008-02-07  Bruno Haible  <bruno@clisp.org>
52421
52422         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
52423         Avoids a crash on Windows Vista.
52424         Reported by Adam Strzelecki <ono@java.pl> via
52425         Simon Josefsson <simon@josefsson.org>.
52426
52427 2008-02-06  Bruno Haible  <bruno@clisp.org>
52428
52429         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
52430         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
52431         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
52432         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
52433         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
52434         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52435         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
52436         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
52437         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52438         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52439         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52440         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52441         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52442         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52443         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52444         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
52445         left-adjust flag.
52446         * tests/test-snprintf-posix.h (test_function): Likewise.
52447         * tests/test-sprintf-posix.h (test_function): Likewise.
52448         * tests/test-vasprintf-posix.c (test_function): Likewise.
52449         * doc/posix-functions/fprintf.texi: Update.
52450         * doc/posix-functions/printf.texi: Update.
52451         * doc/posix-functions/snprintf.texi: Update.
52452         * doc/posix-functions/sprintf.texi: Update.
52453         * doc/posix-functions/vfprintf.texi: Update.
52454         * doc/posix-functions/vprintf.texi: Update.
52455         * doc/posix-functions/vsnprintf.texi: Update.
52456         * doc/posix-functions/vsprintf.texi: Update.
52457         Reported by Peter Fales <psfales@alcatel-lucent.com>.
52458
52459 2008-02-06  Bruno Haible  <bruno@clisp.org>
52460
52461         Fix bug introduced on 2008-01-26.
52462         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
52463
52464 2008-02-06  Bruno Haible  <bruno@clisp.org>
52465
52466         Fix bug introduced on 2007-06-10.
52467         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
52468         !NEED_PRINTF_FLAG_ZERO.
52469
52470 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
52471
52472         getloadavg: use libperfstat on AIX5
52473         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
52474
52475 2008-02-03  Bruno Haible  <bruno@clisp.org>
52476
52477         * lib/diffseq.h: Add comments about required #includes.
52478         Reported by Michael Biggs <gnulib@doubleplum.net>.
52479
52480 2008-02-01  Bruno Haible  <bruno@clisp.org>
52481
52482         * users.txt: Add gnuit.
52483
52484 2008-01-31  Bruno Haible  <bruno@clisp.org>
52485
52486         * lib/md4.c (set_uint32): Mark as inline.
52487         * lib/md5.c (set_uint32): Likewise.
52488         * lib/sha1.c (set_uint32): Likewise.
52489         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
52490         * m4/md5.m4 (gl_MD5): Likewise.
52491         * m4/sha1.m4 (gl_SHA1): Likewise.
52492
52493 2008-01-31  Jim Meyering  <meyering@redhat.com>
52494
52495         Use "sizeof VAR", rather than a literal "4".
52496         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
52497         * lib/md4.c (md4_read_ctx): Likewise.
52498         * lib/sha1.c (sha1_read_ctx): Likewise.
52499
52500 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52501
52502         * tests/test-sha1.c: New file, based on test-md5.c.
52503
52504         * modules/crypto/sha1-tests: New file.
52505
52506 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52507
52508         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
52509
52510 2008-01-31  Jim Meyering  <meyering@redhat.com>
52511
52512         Prefer "sizeof v" over the equivalent "4".
52513         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
52514         * lib/md5.c (set_uint32): Likewise.
52515         * lib/sha1.c (set_uint32): Likewise.
52516
52517 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52518
52519         * lib/sha1.c (set_uint32): Mark function as static.
52520
52521 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52522
52523         md2: clarify comments to say that alignment is not required.
52524         * lib/md2.h: Remove warning about alignment in comment.
52525         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
52526         never been required.
52527
52528 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52529
52530         md4: adapt alignment constraint fix from sha1.
52531         * lib/md4.c (set_uint32): New function, from sha1.c
52532         (md4_read_ctx): Use it.
52533         (md4_finish_ctx): Doc fix.
52534         * lib/md4.h: Doc fix.
52535
52536 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52537
52538         md5: adapt alignment constraint fix from sha1.
52539         * lib/md5.c (set_uint32): New function, from sha1.c
52540         (md5_read_ctx): Use it.
52541         (md5_finish_ctx): Doc fix.
52542         * lib/md5.h: Doc fix.
52543
52544 2008-01-30  Peter Palfrader  <weasel@debian.org>
52545
52546         sha1: remove the result buffer alignment constraint
52547         * lib/sha1.c (set_uint32): New function.
52548         (sha1_read_ctx): Rewrite to remove the result buffer alignment
52549         constraint.
52550         (sha1_finish_ctx): Remove comment warning about alignment constraint.
52551         * lib/sha1.h: Likewise.
52552
52553 2008-01-30  Andreas Schwab  <schwab@suse.de>
52554             Bruno Haible  <bruno@clisp.org>
52555
52556         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
52557         correct definition of LDBL_MIN_EXP.
52558
52559 2008-01-30  Karl Berry  <karl@gnu.org>
52560
52561         * config/srclist-update: try to preserve x bit on updates.
52562         * config/srclistvars.sh: update for karl.
52563
52564 2008-01-29  Jim Meyering  <meyering@redhat.com>
52565
52566         vasnprintf.c: Avoid warning about unused label
52567         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
52568         "overflow" label definition and associated code with the
52569         same cpp condition that guards the sole use of that label.
52570
52571 2008-01-26  Bruno Haible  <bruno@clisp.org>
52572
52573         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
52574         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
52575         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
52576         * lib/isnanl-nolibm.h (isnanl): Likewise.
52577         Reported by Paul Eggert <eggert@cs.ucla.edu>.
52578
52579 2008-01-26  Bruno Haible  <bruno@clisp.org>
52580
52581         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
52582         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
52583
52584 2008-01-26  Bruno Haible  <bruno@clisp.org>
52585
52586         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
52587         GCC >= 4.0 built-in.
52588         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
52589
52590 2008-01-26  Bruno Haible  <bruno@clisp.org>
52591
52592         Rename isnan, applicable to 'double' only, to isnand.
52593         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
52594         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
52595         (configure.ac): Update.
52596         (Include): Replace "isnan.h" with "isnand.h".
52597         * m4/isnand.m4: Renamed from m4/isnan.m4.
52598         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
52599         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
52600         instead of isnan.c.
52601         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
52602         instead of HAVE_ISNAN_IN_LIBC.
52603         (isnand): Renamed from isnan.
52604         * lib/isnand.c: New file.
52605         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
52606         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
52607         (Makefile.am): Update.
52608         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
52609         Include isnand.h instead of isnan.h.
52610         (main): Test isnand instead of isnan.
52611         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
52612         isnan-nolibm.
52613         * modules/frexp (Depends-on): Likewise.
52614         * modules/frexp-tests (Depends-on): Likewise.
52615         * modules/frexp-nolibm (Depends-on): Likewise.
52616         * modules/frexp-nolibm-tests (Depends-on): Likewise.
52617         * modules/isfinite (Depends-on): Likewise.
52618         * modules/round-tests (Depends-on): Likewise.
52619         * modules/signbit (Depends-on): Likewise.
52620         * modules/signbit-tests (Depends-on): Likewise.
52621         * modules/snprintf-posix (Depends-on): Likewise.
52622         * modules/sprintf-posix (Depends-on): Likewise.
52623         * modules/trunc-tests (Depends-on): Likewise.
52624         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52625         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52626         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52627         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52628         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52629         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52630         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52631         * modules/vasnprintf-posix (Depends-on): Likewise.
52632         * modules/vasprintf-posix (Depends-on): Likewise.
52633         * modules/vfprintf-posix (Depends-on): Likewise.
52634         * modules/vsnprintf-posix (Depends-on): Likewise.
52635         * modules/vsprintf-posix (Depends-on): Likewise.
52636         * lib/frexp.c: Include isnand.h instead of isnan.h.
52637         (ISNAN): Set to isnand instead of isnan.
52638         * lib/isfinite.c: Include isnand.h instead of isnan.h.
52639         (gl_isfinited): Use isnand instead of isnan.
52640         * lib/signbitd.c: Include isnand.h instead of isnan.h.
52641         (gl_signbitd): Use isnand instead of isnan.
52642         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
52643         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
52644         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
52645         (main): Use isnand instead of isnan.
52646         * tests/test-round1.c: Include isnand.h.
52647         (main): Use isnand instead of isnan.
52648         * tests/test-round2.c: Include isnand.h instead of isnan.h.
52649         (ISNAN): Set to isnand instead of isnan.
52650         * tests/test-trunc1.c: Include isnand.h.
52651         (main): Use isnand instead of isnan.
52652         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
52653         (equal): Use isnand instead of isnan.
52654         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
52655         isnand-nolibm.
52656         * NEWS: Mention the change.
52657
52658 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
52659             Bruno Haible  <bruno@clisp.org>
52660
52661         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
52662         the GCC builtins for signbits are present and set
52663         REPLACE_SIGNBIT_USING_GCC if so.
52664         * lib/math.in.h (signbit): Define using GCC builtins if
52665         REPLACE_SIGNBIT_USING_GCC is set.
52666         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
52667         REPLACE_SIGNBIT_USING_GCC.
52668         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
52669
52670 2008-01-25  Jim Meyering  <meyering@redhat.com>
52671
52672         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
52673         * lib/poll.c: Include <config.h>, not "config.h".
52674         * tests/test-getaddrinfo.c: Likewise.
52675
52676 2008-01-25  Simon Josefsson  <simon@josefsson.org>
52677
52678         * modules/sockets-tests: New file.
52679
52680 2008-01-24  Simon Josefsson  <simon@josefsson.org>
52681
52682         * modules/sockets: New module, can be used to call WSA_Startup and
52683         WSA_Cleanup when needed.
52684
52685         * lib/sockets.h, lib/sockets.c: New files.
52686
52687         * m4/sockets.m4: New file.
52688
52689         * tests/test-sockets.c: New file.
52690
52691 2008-01-19  Bruno Haible  <bruno@clisp.org>
52692
52693         * doc/posix-headers: Renamed from doc/headers.
52694         * doc/posix-functions: Renamed from doc/functions.
52695         * doc/gnulib.texi: Update.
52696
52697 2008-01-19  Bruno Haible  <bruno@clisp.org>
52698
52699         * doc/glibc-functions/strcasestr.texi: Include contents of
52700         doc/functions/strcasestr.texi, fixing the list of platforms.
52701         * doc/functions/strcasestr.texi: Remove file.
52702
52703 2008-01-19  Bruno Haible  <bruno@clisp.org>
52704
52705         * doc/glibc-functions/memmem.texi: Include contents of
52706         doc/functions/memmem.texi.
52707         * doc/functions/memmem.texi: Remove file.
52708
52709 2008-01-18  Bruno Haible  <bruno@clisp.org>
52710
52711         * doc/glibc-functions/*.texi: New files.
52712         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
52713         to use the new files.
52714
52715 2008-01-17  Bruno Haible  <bruno@clisp.org>
52716
52717         * tests/test-gethostname.c (main): Fix printf statement.
52718
52719 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52720
52721         * modules/gethostname-tests: New file.
52722
52723         * tests/test-gethostname.c: New file.
52724
52725 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52726
52727         * lib/gethostname.c: Include string.h unconditionally, strncpy is
52728         used by the UNAME case.  Reported by Bruno Haible
52729         <bruno@clisp.org>.
52730
52731 2008-01-17  Eric Blake  <ebb9@byu.net>
52732
52733         Convert c-strcasestr to be more efficient.
52734         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
52735         (Depends-on): Add c-strcase, remove malloca, strnlen.
52736         * tests/test-c-strcasestr.c (main): Enhance test.
52737         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
52738
52739 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
52740
52741         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
52742         Use it in creating po/Makevars.
52743
52744 2008-01-15  Simon Josefsson  <simon@josefsson.org>
52745
52746         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
52747         Applications that requires it should initialize libgcrypt
52748         manually.
52749
52750 2008-01-16  Simon Josefsson  <simon@josefsson.org>
52751
52752         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
52753
52754 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
52755
52756         Fix problem with getdate on mingw32 reported by Simon Josefsson
52757         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
52758         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
52759         tzname", when deciding whether to declare tzname.
52760         * lib/strftime.c (tzname): Likewise.
52761
52762 2008-01-15  Bruno Haible  <bruno@clisp.org>
52763
52764         Work around a MacOS X 10.5 bug in frexpl().
52765         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
52766         * doc/functions/frexpl.texi: Document the bug.
52767         Reported by Elias Pipping <pipping@gentoo.org>.
52768
52769 2008-01-14  Eric Blake  <ebb9@byu.net>
52770
52771         Touch up previous patch.
52772         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
52773         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
52774
52775         Convert strcasestr module to use Two-Way algorithm.
52776         * modules/strcasestr-simple: New module, based on the old
52777         strcasestr, but with Two-Way rather than KMP.
52778         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
52779         * lib/string.in.h (rpl_strcasestr): Declare.
52780         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
52781         performance.
52782         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
52783         * modules/string (Makefile.am): Support strcasestr.
52784         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
52785         * modules/strcasestr-tests (Depends-on): Check for alarm.
52786         * tests/test-strcasestr.c: Augment test.
52787         * lib/str-two-way.h: Clean up stray macro.
52788         * NEWS: Document new module.
52789         * MODULES.html.sh (string handling): Likewise.
52790         * doc/functions/strcasestr.texi: New file.
52791         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
52792         here, since it is not a POSIX function.
52793
52794 2008-01-14  Colin Watson  <cjwatson@debian.org>
52795             Bruno Haible  <bruno@clisp.org>
52796
52797         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
52798         works fine; if not, set REPLACE_STRSIGNAL.
52799         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
52800         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52801         REPLACE_STRSIGNAL.
52802         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
52803         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
52804         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
52805
52806 2008-01-14  Bruno Haible  <bruno@clisp.org>
52807
52808         * modules/strsignal (Include): Change to <string.h>.
52809
52810 2008-01-14  Colin Watson  <cjwatson@debian.org>
52811
52812         * modules/argp (Notice): Add a notice recommending to change
52813         XGETTEXT_OPTIONS.
52814         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
52815
52816 2008-01-13  Colin Watson  <cjwatson@debian.org>
52817
52818         * modules/strsignal-tests: New file.
52819         * tests/test-strsignal.c: New file.
52820
52821         * lib/strsignal.c: New file, from glibc with modifications.
52822         * lib/siglist.h: New file, from glibc with modifications.
52823         * lib/string.in.h (strsignal): New declaration.
52824         * m4/strsignal.m4: New file.
52825         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52826         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
52827         * modules/strsignal: New file.
52828         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
52829         HAVE_DECL_STRSIGNAL.
52830
52831 2008-01-13  Bruno Haible  <bruno@clisp.org>
52832
52833         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
52834         locale encoding is not ASCII. Needed for OpenBSD 4.0.
52835         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
52836         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
52837
52838 2008-01-13  Bruno Haible  <bruno@clisp.org>
52839
52840         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
52841         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
52842         * lib/argp.h (__attribute__): Likewise.
52843         * lib/c-stack.c (__attribute__): Likewise.
52844         * lib/error.h (__attribute__): Likewise.
52845         * lib/fts.c (__attribute__): Likewise.
52846         * lib/openat.h (__attribute__): Likewise.
52847         * lib/stdio.in.h (__attribute__): Likewise.
52848         * lib/string.in.h (__attribute__): Likewise.
52849         * lib/utimens.c (__attribute__): Likewise.
52850         * lib/vasnprintf.h (__attribute__): Likewise.
52851         * lib/xalloc.h (__attribute__): Likewise.
52852         * lib/xprintf.h (__attribute__): Likewise.
52853         * lib/xstrtol.h (__attribute__): Likewise.
52854         * lib/xvasprintf.h (__attribute__): Likewise.
52855
52856 2008-01-12  Bruno Haible  <bruno@clisp.org>
52857
52858         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
52859         * doc/glibc-headers/a.out.texi: New file.
52860         * doc/glibc-headers/aliases.texi: New file.
52861         * doc/glibc-headers/alloca.texi: New file.
52862         * doc/glibc-headers/ar.texi: New file.
52863         * doc/glibc-headers/argp.texi: New file.
52864         * doc/glibc-headers/argz.texi: New file.
52865         * doc/glibc-headers/byteswap.texi: New file.
52866         * doc/glibc-headers/crypt.texi: New file.
52867         * doc/glibc-headers/endian.texi: New file.
52868         * doc/glibc-headers/envz.texi: New file.
52869         * doc/glibc-headers/err.texi: New file.
52870         * doc/glibc-headers/error.texi: New file.
52871         * doc/glibc-headers/execinfo.texi: New file.
52872         * doc/glibc-headers/fpu_control.texi: New file.
52873         * doc/glibc-headers/fstab.texi: New file.
52874         * doc/glibc-headers/fts.texi: New file.
52875         * doc/glibc-headers/getopt.texi: New file.
52876         * doc/glibc-headers/ieee754.texi: New file.
52877         * doc/glibc-headers/ifaddrs.texi: New file.
52878         * doc/glibc-headers/libintl.texi: New file.
52879         * doc/glibc-headers/mcheck.texi: New file.
52880         * doc/glibc-headers/mntent.texi: New file.
52881         * doc/glibc-headers/obstack.texi: New file.
52882         * doc/glibc-headers/paths.texi: New file.
52883         * doc/glibc-headers/printf.texi: New file.
52884         * doc/glibc-headers/pty.texi: New file.
52885         * doc/glibc-headers/resolv.texi: New file.
52886         * doc/glibc-headers/shadow.texi: New file.
52887         * doc/glibc-headers/sysexits.texi: New file.
52888         * doc/glibc-headers/ttyent.texi: New file.
52889
52890 2008-01-12  Jim Meyering  <meyering@redhat.com>
52891
52892         announce-gen: emit Gnulib's git-based version string.
52893         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
52894         New option --gnulib-version=V, where V is expected to be
52895         the output of running git describe in the gnulib directory.
52896         (get_tool_versions): Request feedback on xdelta.  I suspect it's
52897         not useful, and plan to stop publishing an xdelta file with each
52898         coreutils release.
52899
52900         * build-aux/announce-gen: Also check for lzma-compressed files.
52901
52902 2008-01-11  Bruno Haible  <bruno@clisp.org>
52903
52904         * tests/test-memmem.c (main): Increase maximum allowed time.
52905         * tests/test-strstr.c (main): Likewise.
52906
52907 2008-01-11  Bruno Haible  <bruno@clisp.org>
52908
52909         * doc/functions/memmem.texi: Add more precisions about platforms.
52910         * doc/functions/strstr.texi: Likewise.
52911
52912 2008-01-10  Eric Blake  <ebb9@byu.net>
52913
52914         * m4/strstr.m4: Delete cruft from copy-n-paste.
52915         Reported by Bruno Haible.
52916
52917 2008-01-10  Bruno Haible  <bruno@clisp.org>
52918
52919         Make c-strstr rely on strstr.
52920         * lib/c-strstr.c: Don't include str-kmp.h.
52921         (c_strstr): Define in terms of strstr.
52922         * modules/c-strstr (Files): Remove lib/str-kmp.h.
52923         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
52924
52925 2008-01-10  Bruno Haible  <bruno@clisp.org>
52926
52927         * doc/gnulib.texi (String Functions in C Locale): New section.
52928         * doc/c-ctype.texi: New file.
52929         * doc/c-strcase.texi: New file.
52930         * doc/c-strcaseeq.texi: New file.
52931         * doc/c-strcasestr.texi: New file.
52932         * doc/c-strstr.texi: New file.
52933         * doc/c-strtod.texi: New file.
52934         * doc/c-strtold.texi: New file.
52935
52936 2008-01-10  Eric Blake  <ebb9@byu.net>
52937
52938         * lib/relocatable.h: Fix a comment.
52939
52940 2008-01-10  Eric Blake  <ebb9@byu.net>
52941
52942         Share two-way algorithm.
52943         * lib/str-two-way.h: New file, merged from...
52944         * lib/memmem.c: ...here...
52945         * lib/strstr.c: ...and here.
52946         * modules/memmem (Files): Use it.
52947         * modules/strstr (Files): Likewise.
52948
52949         Avoid quadratic strstr implementations.
52950         * lib/strstr.c: New file.
52951         * m4/strstr.m4: Likewise.
52952         * modules/strstr: Likewise.
52953         * modules/strstr-tests: Likewise.
52954         * tests/test-strstr.c: Likewise.
52955         * lib/string.in.h (rpl_strstr): Declare.
52956         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
52957         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
52958         * modules/string (Makefile.am): Likewise.
52959         * MODULES.html.sh (string handling): Mention new module.
52960         * doc/functions/strstr.texi (strstr): Document the bug.
52961
52962 2008-01-10  Bruno Haible  <bruno@clisp.org>
52963
52964         * lib/relocatable.h (relocate): State whether result is freshly
52965         allocated or not.
52966         * lib/relocatable.c (relocate): Return a freshly allocated string
52967         instead of a pointer to a privately held string.
52968         Reported by Sylvain Beucler <beuc@gnu.org>.
52969
52970 2008-01-10  Colin Watson  <cjwatson@debian.org>
52971
52972         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
52973         s/S_ISNLK/S_ISLNK/.
52974
52975 2008-01-09  Bruno Haible  <bruno@clisp.org>
52976
52977         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
52978         and other files.
52979         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
52980         if it's only a guess.
52981         * modules/memmem: Simplify by depending on memmem-simple.
52982
52983 2008-01-09  Bruno Haible  <bruno@clisp.org>
52984
52985         Work around OpenBSD 4.0 tdelete() bug.
52986         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
52987         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
52988         macros and don't redefine the enum values.
52989         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
52990         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
52991         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
52992
52993 2008-01-09  Bruno Haible  <bruno@clisp.org>
52994
52995         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
52996         (main): Don't perform the tests if setlocale did not install a UTF-8
52997         locale. Needed on OpenBSD 4.0.
52998         * modules/wcwidth-tests (Depends-on): Add localcharset.
52999
53000 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53001
53002         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
53003         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
53004         * NEWS: announce this.
53005         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
53006
53007 2008-01-09  Simon Josefsson  <simon@josefsson.org>
53008         and Eric Blake  <ebb9@byu.net>
53009
53010         Add memmem-simple module.
53011         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
53012         (gl_FUNC_MEMMEM): Separate performance from presence checks.
53013         * modules/memmem-simple: New file.
53014         * modules/memmem (Description): Tweak.
53015         * MODULES.html.sh (string handling): Mention new module.
53016         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
53017         addressed by memmem-simple.
53018         * NEWS: Document the difference.
53019
53020 2008-01-09  Eric Blake  <ebb9@byu.net>
53021
53022         Give gcc some memmem optimization hints.
53023         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
53024         (strcasestr): Declare as pure.
53025         * modules/memmem (Maintainer): Claim my implementation.
53026
53027 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53028
53029         Support AIX 6.1 and higher.
53030         * build-aux/config.libpath: Likewise.
53031         * build-aux/config.rpath: Likewise.
53032
53033 2008-01-08  Jim Meyering  <meyering@redhat.com>
53034             Bruno Haible  <bruno@clisp.org>
53035
53036         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
53037         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
53038         Reported by Peter Fales in
53039         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
53040
53041 2008-01-08  Bruno Haible  <bruno@clisp.org>
53042
53043         * modules/unictype/category-of (Depends-on): Add
53044         unictype/category-none.
53045         * modules/unictype/category-and-tests (Depends-on): Add
53046         unictype/category-{L,N,Lu,Nd}.
53047         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
53048         * modules/unictype/category-or-tests (Depends-on): Add
53049         unictype/category-{L,N}.
53050         * modules/unictype/category-name-tests (Depends-on): Add
53051         unictype/category-{Z,Nl}.
53052         Reported by Simon Josefsson.
53053
53054 2008-01-08  Bruno Haible  <bruno@clisp.org>
53055
53056         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
53057         convention better.
53058         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
53059         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
53060         Reported by Peter Miller <millerp@canb.auug.org.au>.
53061
53062 2008-01-08  Eric Blake  <ebb9@byu.net>
53063
53064         Rewrite memmem to guarantee linear complexity without malloc.
53065         * lib/memmem.c (memmem): Use Two-Way rather than
53066         Knuth-Morris-Pratt, to allow O(1) space usage.
53067         (critical_factorization, two_way_short_needle)
53068         (two_way_long_needle): New functions.
53069         (knuth_morris_pratt): Delete.
53070         * modules/memmem (Depends-on): No longer need malloca or stdbool.
53071         Add stdint.
53072         * tests/test-memmem.c (main): Add tests for periodic needle and
53073         sublinear performance.
53074         * doc/functions/memmem.texi (memmem): Document other deficiencies
53075         in cygwin and older glibc.
53076
53077 2008-01-08  Bruno Haible  <bruno@clisp.org>
53078
53079         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
53080         augmentation.
53081
53082 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
53083
53084         Add a configure time option: --disable-acl.
53085         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
53086         AC_ARG_ENABLE(acl).
53087
53088 2008-01-06  Simon Josefsson  <simon@josefsson.org>
53089
53090         * tests/test-localename.c: Don't include obsolete "setenv.h".
53091
53092         * modules/localename-tests (Depends-on): Need unsetenv.
53093
53094 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53095
53096         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
53097
53098 2008-01-06  Colin Watson  <cjwatson@debian.org>
53099
53100         * users.txt: Add man-db.
53101
53102 2008-01-07  Bruno Haible  <bruno@clisp.org>
53103
53104         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
53105         previous section name.
53106
53107 2008-01-07  Bruno Haible  <bruno@clisp.org>
53108
53109         * lib/progname.c (set_program_name): Don't strip off a leading
53110         "lt-" prefix outside a .libs directory.
53111         Suggested by Paul Eggert.
53112
53113 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
53114             Bruno Haible  <bruno@clisp.org>
53115
53116         Improve memory cleanup in 'relocatable' module.
53117         * lib/relocatable.h (compute_curr_prefix): Change return type to
53118         'char *'.
53119         * lib/relocatable.c (compute_curr_prefix): Change return type to
53120         'char *'. Free curr_installdir after use.
53121         (relocate): Free curr_prefix_better after use.
53122         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
53123
53124 2008-01-01  Bruno Haible  <bruno@clisp.org>
53125
53126         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
53127         failure on older glibc systems.
53128         Reported by Peter Fales <psfales@alcatel-lucent.com>.
53129
53130 2008-01-05  Eric Blake  <ebb9@byu.net>
53131
53132         Avoid quadratic system memmem.
53133         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
53134         Reported by Ralf Wildenhues.
53135
53136         Fix memmem test for mingw.
53137         * modules/memmem-tests (configure.ac): Check for alarm.
53138         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
53139         it.
53140         * doc/functions/memmem.texi: New file.
53141         * doc/gnulib.texi (Function Substitutes): Add memmem.
53142         Reported by Bruno Haible.
53143
53144 2008-01-04  Bruno Haible  <bruno@clisp.org>
53145
53146         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
53147         Require gl_HEADER_STRINGS_H_DEFAULTS, not
53148         gl_HEADER_STRING_H_DEFAULTS.
53149
53150 2008-01-04  Eric Blake  <ebb9@byu.net>
53151
53152         Shorten duration of memmem test.
53153         * tests/test-memmem.c (main): Use alarm to declare failure if test
53154         is taking too long.
53155         Reported by Ralf Wildenhues.
53156
53157 2007-12-21  Simon Josefsson  <simon@josefsson.org>
53158
53159         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
53160         string, needed by strerror.
53161
53162 2008-01-03  Colin Watson  <cjwatson@debian.org>
53163             Bruno Haible  <bruno@clisp.org>
53164
53165         * doc/gnulib-tool.texi (Localization): New section.
53166
53167 2008-01-02  Bruno Haible  <bruno@clisp.org>
53168
53169         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
53170         variables to 'unsigned char *' type.
53171         Reported by Paul Eggert.
53172
53173 2008-01-02  Jim Meyering  <jim@meyering.net>
53174
53175         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
53176
53177 2007-12-31  Jim Meyering  <jim@meyering.net>
53178
53179         Avoid use of private FTS type name.
53180         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
53181
53182 2007-12-30  Karl Berry  <karl@gnu.org>
53183
53184         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
53185         work around defect in Texinfo and/or the standalone Info browser.
53186
53187 2007-12-30  Bruno Haible  <bruno@clisp.org>
53188
53189         Unify 5 copies of the KMP code.
53190         * lib/str-kmp.h: New file.
53191         * lib/c-strcasestr.c: Include str-kmp.h.
53192         (knuth_morris_pratt): Remove function.
53193         (c_strcasestr): Update.
53194         * lib/c-strstr.c: Include str-kmp.h.
53195         (knuth_morris_pratt): Remove function.
53196         (c_strcasestr): Update.
53197         * lib/mbscasestr.c: Include str-kmp.h.
53198         (knuth_morris_pratt_unibyte): Remove function.
53199         * lib/mbsstr.c: Include str-kmp.h.
53200         (knuth_morris_pratt_unibyte): Remove function.
53201         * lib/strcasestr.c: Include str-kmp.h.
53202         (knuth_morris_pratt): Remove function.
53203         (strcasestr): Update.
53204         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
53205         * modules/c-strstr (Files): Likewise.
53206         * modules/mbscasestr (Files): Likewise.
53207         * modules/mbsstr (Files): Likewise.
53208         * modules/strcasestr (Files): Likewise.
53209         Suggested by Paul Eggert.
53210
53211 2007-12-30  Bruno Haible  <bruno@clisp.org>
53212
53213         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
53214         defined.
53215
53216 2007-12-30  Bruno Haible  <bruno@clisp.org>
53217
53218         * lib/xmalloca.h: Include xalloc.h.
53219         (xnmalloca): New macro.
53220
53221 2007-12-30  Bruno Haible  <bruno@clisp.org>
53222
53223         * lib/malloca.h (nmalloca): New macro.
53224         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
53225         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
53226         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
53227         knuth_morris_pratt_multibyte): Likewise.
53228         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
53229         knuth_morris_pratt_multibyte): Likewise.
53230         * lib/memmem.c (knuth_morris_pratt): Likewise.
53231         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
53232
53233 2007-12-25  Bruno Haible  <bruno@clisp.org>
53234
53235         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
53236         * lib/glob.c: Don't include openat.h.
53237         (link_exists2_p): Add back the code that deals with the
53238         !GLOB_ALTDIRFUNC case.
53239         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
53240         let it do the filename concatenation.
53241         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
53242         * modules/glob (Depends-on): Remove openat.
53243
53244 2007-12-31  Bruno Haible  <bruno@clisp.org>
53245
53246         * modules/dirfd (License): Change to LGPLv2+.
53247         Approved by Jim Meyering.
53248
53249 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
53250
53251         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
53252         when multiplying M by sizeof (size_t).
53253
53254 2007-12-10  Martin Lambers  <marlam@marlam.de>
53255
53256         Override getpagesize on mingw.
53257         * lib/getpagesize.c: New file.
53258         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
53259         * modules/getpagesize (Files): Add lib/getpagesize.c.
53260         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
53261         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53262         REPLACE_GETPAGESIZE.
53263         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
53264
53265 2007-12-25  Bruno Haible  <bruno@clisp.org>
53266
53267         * modules/localcharset (Notice): New field.
53268         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
53269         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
53270
53271 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
53272             Bruno Haible  <bruno@clisp.org>
53273
53274         Avoid using the syntax symbol() in formatted documentation.
53275         * MODULES.html.sh (func_module): When replacing symbol() with a
53276         hyperlink, remove the parentheses. Show an error if some remain.
53277         Recognize and render the '...' syntax.
53278         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
53279         Rework. Add paragraph about GCC's inlining.
53280         * doc/alloca.texi: Likewise.
53281         * doc/error.texi: Remove parentheses from symbol reference.
53282         * doc/gnulib-intro.texi: Likewise.
53283         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
53284         * modules/fnmatch (Description): Reword to say "the ... function".
53285         * modules/full-read (Description): Likewise.
53286         * modules/full-write (Description): Likewise.
53287         * modules/safe-read (Description): Likewise.
53288         * modules/safe-write (Description): Likewise.
53289         * modules/strchrnul (Description): Likewise.
53290         * modules/trim (Description): Likewise.
53291         * modules/error (Description): Remove parentheses from symbol
53292         references.
53293         * modules/verror (Description): Likewise.
53294         Reported by Karl Berry.
53295
53296 2007-12-25  Bruno Haible  <bruno@clisp.org>
53297
53298         Fixup after 2007-10-16 commit.
53299         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
53300
53301 2007-12-24  Bruno Haible  <bruno@clisp.org>
53302
53303         Make --enable-relocatable work with DESTDIR.
53304         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
53305         to compute installdir from destprog.
53306         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
53307         also set the RELOC_DESTDIR variable.
53308         Reported by Левашев Иван <octagram@bluebottle.com>.
53309
53310 2007-12-24  Bruno Haible  <bruno@clisp.org>
53311
53312         Fix link error due to xalloc_die().
53313         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
53314         of xreadlink.
53315         * lib/relocwrapper.c: Update comments.
53316         * build-aux/install-reloc: Remove xreadlink.c from file list.
53317         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
53318         xreadlink.c.
53319         Reported by Левашев Иван <octagram@bluebottle.com>.
53320
53321 2007-12-24  Bruno Haible  <bruno@clisp.org>
53322
53323         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
53324         * lib/setenv.h: Remove file.
53325         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
53326         lib/setenv.h.
53327         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
53328         (Depends-on): Add stdlib.
53329         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
53330         gl_FUNC_UNSETENV.
53331         (Include): Replace setenv.h with <stdlib.h>.
53332         * modules/unsetenv: New file.
53333         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
53334         * lib/unsetenv.c: Include <stdlib.h> first.
53335         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
53336         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
53337         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
53338         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
53339         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
53340         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
53341         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
53342         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
53343         * doc/functions/unsetenv.texi: Update.
53344         * modules/xsetenv (Depends-on): Add unsetenv.
53345         * modules/getdate (Depends-on): Likewise.
53346         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
53347         * lib/xsetenv.c: Don't include setenv.h.
53348         * lib/getdate.y: Likewise.
53349         * lib/relocwrapper.c: Likewise.
53350         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
53351         (Depends-on): Add stdlib.
53352         * NEWS: Mention the changes.
53353         Reported by Левашев Иван <octagram@bluebottle.com>.
53354
53355 2007-12-23  Bruno Haible  <bruno@clisp.org>
53356
53357         * lib/memmem.c (memmem): Use lowercase variable names. Tab
53358         indentation.
53359
53360 2007-12-23  Bruno Haible  <bruno@clisp.org>
53361
53362         * lib/c-strcasestr.c: Add more comments.
53363         * lib/c-strstr.c: Likewise.
53364         * lib/mbscasestr.c: Likewise.
53365         * lib/mbsstr.c: Likewise.
53366         * lib/strcasestr.c: Likewise.
53367         * lib/memmem.c: Likewise.
53368
53369 2007-12-23  Bruno Haible  <bruno@clisp.org>
53370
53371         * tests/test-memmem.c: Include <string.h> first.
53372
53373 2007-12-22  Bruno Haible  <bruno@clisp.org>
53374
53375         * gnulib-tool (func_create_testdir): Change $auxdir while generating
53376         the contents of $testsbase.
53377         Reported by Ralf Wildenhues.
53378
53379 2007-12-22  Bruno Haible  <bruno@clisp.org>
53380
53381         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
53382         two variables local_ldadd_before, local_ldadd_last.
53383
53384 2007-12-20  Eric Blake  <ebb9@byu.net>
53385
53386         Work around circular library issue when cross-compiling.
53387         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
53388         that progname.o does not need to pull in rpl_memcmp.
53389
53390 2007-12-19  Eric Blake  <ebb9@byu.net>
53391
53392         Fix memmem to avoid O(n^2) worst-case complexity.
53393         * lib/memmem.c (knuth_morris_pratt): New function.
53394         (memmem): Use it if first few naive iterations fail.
53395         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
53396         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
53397         * modules/memchr (License): Likewise.
53398         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
53399         malloca.
53400         * tests/test-memmem.c: Rewrite, borrowing ideas from
53401         test-mbsstr1.c; the old version wouldn't even compile!
53402         * modules/memmem-tests: New file.
53403         * lib/string.in.h (rpl_memmem): Add declaration.
53404         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
53405         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
53406         REPLACE_MEMMEM.
53407
53408 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
53409
53410         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
53411         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
53412         before any system include files, and undef after them all.  This
53413         should fix a problem on VMS reported by John E. Malmberg in
53414         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
53415
53416 2007-12-17  Eric Blake  <ebb9@byu.net>
53417
53418         Revert addition of verify, for BSD/OS.
53419         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
53420         can't handle large files, for the sake of obsolete platforms.
53421         * modules/fseeko (Depends-on): Remove verify.
53422         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
53423         * doc/functions/ftello.texi (ftello): Likewise.
53424         * doc/functions/fgetpos.texi (fgetpos): Likewise.
53425         Reported by Larry Jones.
53426
53427 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
53428
53429         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
53430         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
53431
53432 2007-12-17  Jim Meyering  <meyering@redhat.com>
53433
53434         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
53435         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
53436         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
53437         * modules/getcwd (Depends-on): Add openat.
53438         Reported by Petr Salinger.
53439
53440 2007-12-17  Bruno Haible  <bruno@clisp.org>
53441
53442         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
53443         avoid a segmentation fault of the configure test on x86_64 systems.
53444
53445 2007-12-15  Jim Meyering  <meyering@redhat.com>
53446
53447         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
53448
53449 2007-12-13  Eric Blake  <ebb9@byu.net>
53450
53451         Another fseek test.
53452         * tests/test-fseek.c (main): Also test ungetc handling.
53453         * tests/test-fseeko.c (main): Likewise.
53454         * modules/fseeko (Depends-on): Add verify.
53455         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
53456         large.
53457         Reported by Larry Jones.
53458
53459         Fix fseeko on mingw.
53460         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
53461         seek.
53462
53463         Beef up fseek tests.
53464         * tests/test-fseek.c (main): Also test eof handling.
53465         * tests/test-fseeko.c (main): Likewise.
53466         Reported by Larry Jones.
53467
53468 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
53469
53470         Fix fseeko on BSD-based platforms.
53471         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
53472         successful seek.
53473
53474 2007-12-12  Eric Blake  <ebb9@byu.net>
53475
53476         Allow circular dependency of separate libtests.a
53477         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
53478         when use_libtests.
53479
53480 2007-12-11  Eric Blake  <ebb9@byu.net>
53481
53482         Fix bug with -0.0L in previous patch.
53483         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
53484         * tests/test-isnan.c (main): Also test on zeroes.
53485         * tests/test-isnanf.c (main): Likewise.
53486         * tests/test-isnanl.h (main): Likewise.
53487
53488         Detect pseudo-denormals on x86 even when cross-compiling.
53489         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
53490         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
53491         invalid bit patterns that happen to satisfy ==.
53492
53493         Avoid link failures with separate libtests.a.
53494         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
53495         last, to satisfy circular dependencies.
53496
53497 2007-12-11  Eric Blake  <ebb9@byu.net>
53498         and Bruno Haible  <bruno@clisp.org>
53499
53500         Fix OpenBSD 4.0 <float.h> handling of long double.
53501         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
53502         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
53503         * doc/headers/float.texi (float.h): Document OpenBSD bug.
53504
53505 2007-12-11  Jim Meyering  <meyering@redhat.com>
53506
53507         * users.txt: Add libvirt.
53508
53509         Support versions of autoconf prior to 2.59c.
53510         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
53511         if it is not already defined.
53512
53513 2007-12-09  Bruno Haible  <bruno@clisp.org>
53514
53515         Let 'gnulib-tool --import' collect sources needed for the tests in
53516         tests/ rather than in lib/.
53517         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
53518         argument. If true, add rules to generate libtests.a, and put libtests.a
53519         into $(LDADD). Consider source files in subdirectories and set
53520         uses_subdirs.
53521         (func_emit_initmacro_start, func_emit_initmacro_end,
53522         func_emit_initmacro_done): Pass all arguments explicitly.
53523         (func_import): Determine two module lists main_modules,
53524         testsrelated_modules. Determine use_libtests. Determine two variables
53525         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
53526         instead of just sed_transform_lib_file. Determine two variables
53527         main_files and testsrelated_files. Compute 'files' as the union of
53528         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
53529         func_add_or_update. In the generated gnulib-comp.m4, collect the
53530         object files for tests/ in different variables than those for lib/.
53531         Substitute LIBTESTS_LIBDEPS.
53532         (func_create_testdir): Combine the uses_subdirs results from
53533         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
53534
53535 2007-12-09  Bruno Haible  <bruno@clisp.org>
53536
53537         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
53538         the build-aux directory.
53539
53540 2007-12-09  Bruno Haible  <bruno@clisp.org>
53541
53542         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
53543         introduced on 2006-09-09.
53544
53545 2007-12-07  Jim Meyering  <meyering@redhat.com>
53546
53547         Let these macros work also with autoconf-2.59.
53548         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
53549         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
53550         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
53551
53552 2007-12-06  Jim Meyering  <meyering@redhat.com>
53553
53554         Avoid a configure-time syntax error in gl_FUNC_ACL.
53555         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
53556         function in each branch, before testing the cache variable.
53557
53558 2007-12-04  Eric Blake  <ebb9@byu.net>
53559
53560         Make scripts executable.
53561         * build-aux/config.guess: Add execute permissions.
53562         * build-aux/config.sub: Likewise.
53563         * build-aux/gendocs.sh: Likewise.
53564
53565         Fix frexp on mingw.
53566         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
53567         cross-compiling.
53568         * doc/functions/frexp.texi (frexp): Document the bug.
53569
53570         Make cygwin fseeko check more reliable.
53571         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
53572         version numbers, rather than unrelated feature check.
53573         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
53574         * doc/functions/ftello.texi (ftello): Likewise.
53575         Reported by Bruno Haible.
53576
53577         * m4/strerror.m4: Bump version number.
53578
53579 2007-12-03  Bruno Haible  <bruno@clisp.org>
53580
53581         * doc/functions/mprotect.texi: Mention the mingw problem.
53582
53583 2007-12-03  Eric Blake  <ebb9@byu.net>
53584
53585         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
53586         REPLACE_STRERROR is initialized before this macro.
53587
53588 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
53589
53590         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
53591         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
53592         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
53593         put -lsec in even for programs other than 'ls'.  This fixes a problem
53594         for gettext reported by Bruno Haible in
53595         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
53596         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
53597         Add support for Solaris 10.  This isn't efficient, but should get the
53598         job done for now.
53599
53600 2007-12-03  James Youngman  <jay@gnu.org>
53601
53602         * doc/regexprops-generic.texi: change "an close-group" to "a
53603         close-group" and "illegal" to "not allowed".
53604
53605 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53606
53607         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
53608         pr_byname.h. Needed for the rare case when the maintainer has done
53609         "make maintainer-clean" in the source directory and then attempts a
53610         build outside the source directory.
53611         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
53612         scripts_byname.h.
53613
53614 2007-12-02  Martin Lambers <marlam@marlam.de>
53615             Bruno Haible  <bruno@clisp.org>
53616
53617         * lib/getpagesize.h: Remove file.
53618         * lib/unistd.in.h: Include declaration of getpagesize here.
53619         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
53620         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
53621         HAVE_SYS_PARAM_H.
53622         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
53623         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53624         * modules/getpagesize (Files): Remove lib/getpagesize.h.
53625         (Depends-on): Add unistd.
53626         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53627         (Include): Use <unistd.h> instead of getpagesize.h.
53628         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
53629         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53630         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
53631         gl_GETPAGESIZE invocation, already handled by module dependency.
53632         * lib/pagealign_alloc.c: Don't include getpagesize.h.
53633
53634 2007-12-02  Bruno Haible  <bruno@clisp.org>
53635
53636         * modules/strings-tests: New file.
53637         * tests/test-strings.c: New file.
53638
53639         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
53640         * lib/strings.in.h: New file.
53641         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
53642         * m4/strings_h.m4: New file.
53643         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
53644         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
53645         * modules/strings: New file.
53646         * modules/string (Makefile.am): Update.
53647         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
53648         Reported by Karl Berry.
53649
53650 2007-12-01  Eric Blake  <ebb9@byu.net>
53651
53652         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
53653         accomodate fix in cygwin 1.5.25.
53654
53655 2007-12-01  Jim Meyering  <meyering@redhat.com>
53656
53657         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
53658         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
53659         that would inhibit utf8-optimization of a regexp containing line-
53660         or buffer-anchors, e.g., `^', `$'.
53661
53662 2007-11-30  Bruno Haible  <bruno@clisp.org>
53663
53664         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
53665         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
53666         glthread_recursive_lock_init.
53667         * lib/lock.c (glthread_recursive_lock_init)
53668         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
53669         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53670
53671 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
53672
53673         New function qset_acl, like set_acl but with syscall semantics.
53674         * lib/acl.h (qset_acl): New decl.
53675         * lib/acl.c (qset_acl): New function.
53676         (set_acl): Use new function.  Use more-consistent diagnostics.
53677
53678 2007-11-28  Jim Meyering  <meyering@redhat.com>
53679
53680         * modules/physmem (License): Change from GPL to LGPLv2+.
53681
53682 2007-11-26  Bruno Haible  <bruno@clisp.org>
53683
53684         * lib/vasnprintf.c (decode_long_double): Don't abort if the
53685         'long double' type has excess precision.
53686         Reported by Jim Meyering in
53687         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
53688
53689 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53690
53691         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
53692         Sync from <http://gnu.org/licenses>.
53693         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
53694         with license text from same location.
53695         * doc/maintain.texi, doc/standards.texi:  Sync from
53696         <http://savannah.gnu.org/projects/gnustandards>.
53697
53698 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
53699         and Jim Meyering  <meyering@redhat.com>
53700
53701         Adjust getdate' grammar to accept a slightly more regular language.
53702         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
53703         Before, the former was rejected.
53704         * lib/getdate.y (digits_to_date_time): New function, factored
53705         out of ...
53706         (number): ...here.  Just call digits_to_date_time.
53707         (hybrid): New non-terminal to handle an <unsigned number,
53708         signed relative offset> sequence consistently.
53709
53710 2007-11-18  Jim Meyering  <meyering@redhat.com>
53711
53712         Pull my changes from coreutils:
53713         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
53714         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
53715         use of $gnulib_tool_option_extras, so that it's separated from the
53716         preceding argument.
53717
53718         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
53719         * build-aux/bootstrap (cp_mark_as_generated): Create any required
53720         parent destination directories before copying a file into place.
53721
53722 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
53723
53724         bootstrap: work also with 4-argument variant of AC_INIT
53725         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
53726
53727 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53728
53729         Port test-getaddrinfo to Solaris.
53730         Problem reported by Bruno Haible in
53731         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
53732         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
53733         explanation of setting 'hints'.
53734         Don't reject an implementation merely because it returns EAI_SERVICE.
53735         (EAI_SERVICE): Define to 0 if not defined.
53736
53737 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
53738
53739         The license of gnu-make and posix-shell is now "GPLed build tool".
53740         * modules/gnu-make (License): Likewise.
53741         * modules/posix-shell (License): Likewise.
53742
53743         New module posix-shell, for determining a POSIX shell
53744         or perhaps something that is close enough to a POSIX shell.
53745         * m4/posix-shell.m4: New file.
53746         * modules/posix-shell: New file.
53747
53748         * MODULES.html.sh: Mention new module.
53749
53750         New module gnu-make, for determining whether we're using GNU Make.
53751         * m4/gnu-make.m4: New file.
53752         * modules/gnu-make: New file.
53753         * MODULES.html.sh: Mention new module.
53754
53755 2007-11-14  Jim Meyering  <meyering@redhat.com>
53756
53757         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
53758         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
53759         use this macro to create a function _definition_.
53760         Remove useless "#undef ARGMATCH_DIE".
53761
53762 2007-11-14  Bruno Haible  <bruno@clisp.org>
53763
53764         * lib/config.charset: Update for OpenBSD 4.1.
53765         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
53766
53767 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
53768
53769         Document 64-bit #if problems in stdint.texi.
53770         * doc/headers/stdint.texi (stdint.h): Mention problems with
53771         64-bit-#if, and how to work around them.
53772
53773         Don't insist on 'long long int' support in the preprocessor.  It
53774         breaks too many things.  For example, PRIdMAX still uses a 'long
53775         long int' format with the latest Sun compiler, even though
53776         HAVE_LONG_LONG_INT isn't defined due to that compiler's
53777         preprocessor problem.  This causes the latest coreutils to dump
53778         core on Solaris 10 sparc with the Sun C compiler.
53779         Instead, fix the 2007-10-16 problem in a different way, by evaluating
53780         the troublesome expressions at configure-time, not at #if-time.
53781         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
53782         preprocessor.
53783         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
53784         compile-time C checks, done at 'configure'-time.
53785         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
53786         * modules/inttypes (Makefile): Substitute the new symbols that
53787         gl_INTTYPES_H now generates.
53788         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
53789
53790 2007-11-12  Bruno Haible  <bruno@clisp.org>
53791
53792         Tests for Unicode character classification functions.
53793
53794         * modules/unictype/bidicategory-byname-tests: New file.
53795         * modules/unictype/bidicategory-name-tests: New file.
53796         * modules/unictype/bidicategory-of-tests: New file.
53797         * modules/unictype/bidicategory-test-tests: New file.
53798         * modules/unictype/block-list-tests: New file.
53799         * modules/unictype/block-of-tests: New file.
53800         * modules/unictype/block-test-tests: New file.
53801         * modules/unictype/category-C-tests: New file.
53802         * modules/unictype/category-Cc-tests: New file.
53803         * modules/unictype/category-Cf-tests: New file.
53804         * modules/unictype/category-Cn-tests: New file.
53805         * modules/unictype/category-Co-tests: New file.
53806         * modules/unictype/category-Cs-tests: New file.
53807         * modules/unictype/category-L-tests: New file.
53808         * modules/unictype/category-Ll-tests: New file.
53809         * modules/unictype/category-Lm-tests: New file.
53810         * modules/unictype/category-Lo-tests: New file.
53811         * modules/unictype/category-Lt-tests: New file.
53812         * modules/unictype/category-Lu-tests: New file.
53813         * modules/unictype/category-M-tests: New file.
53814         * modules/unictype/category-Mc-tests: New file.
53815         * modules/unictype/category-Me-tests: New file.
53816         * modules/unictype/category-Mn-tests: New file.
53817         * modules/unictype/category-N-tests: New file.
53818         * modules/unictype/category-Nd-tests: New file.
53819         * modules/unictype/category-Nl-tests: New file.
53820         * modules/unictype/category-No-tests: New file.
53821         * modules/unictype/category-P-tests: New file.
53822         * modules/unictype/category-Pc-tests: New file.
53823         * modules/unictype/category-Pd-tests: New file.
53824         * modules/unictype/category-Pe-tests: New file.
53825         * modules/unictype/category-Pf-tests: New file.
53826         * modules/unictype/category-Pi-tests: New file.
53827         * modules/unictype/category-Po-tests: New file.
53828         * modules/unictype/category-Ps-tests: New file.
53829         * modules/unictype/category-S-tests: New file.
53830         * modules/unictype/category-Sc-tests: New file.
53831         * modules/unictype/category-Sk-tests: New file.
53832         * modules/unictype/category-Sm-tests: New file.
53833         * modules/unictype/category-So-tests: New file.
53834         * modules/unictype/category-Z-tests: New file.
53835         * modules/unictype/category-Zl-tests: New file.
53836         * modules/unictype/category-Zp-tests: New file.
53837         * modules/unictype/category-Zs-tests: New file.
53838         * modules/unictype/category-and-not-tests: New file.
53839         * modules/unictype/category-and-tests: New file.
53840         * modules/unictype/category-byname-tests: New file.
53841         * modules/unictype/category-name-tests: New file.
53842         * modules/unictype/category-none-tests: New file.
53843         * modules/unictype/category-of-tests: New file.
53844         * modules/unictype/category-or-tests: New file.
53845         * modules/unictype/category-test-withtable-tests: New file.
53846         * modules/unictype/combining-class-tests: New file.
53847         * modules/unictype/ctype-alnum-tests: New file.
53848         * modules/unictype/ctype-alpha-tests: New file.
53849         * modules/unictype/ctype-blank-tests: New file.
53850         * modules/unictype/ctype-cntrl-tests: New file.
53851         * modules/unictype/ctype-digit-tests: New file.
53852         * modules/unictype/ctype-graph-tests: New file.
53853         * modules/unictype/ctype-lower-tests: New file.
53854         * modules/unictype/ctype-print-tests: New file.
53855         * modules/unictype/ctype-punct-tests: New file.
53856         * modules/unictype/ctype-space-tests: New file.
53857         * modules/unictype/ctype-upper-tests: New file.
53858         * modules/unictype/ctype-xdigit-tests: New file.
53859         * modules/unictype/decimal-digit-tests: New file.
53860         * modules/unictype/digit-tests: New file.
53861         * modules/unictype/mirror-tests: New file.
53862         * modules/unictype/numeric-tests: New file.
53863         * modules/unictype/property-alphabetic-tests: New file.
53864         * modules/unictype/property-ascii-hex-digit-tests: New file.
53865         * modules/unictype/property-bidi-arabic-digit-tests: New file.
53866         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
53867         * modules/unictype/property-bidi-block-separator-tests: New file.
53868         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
53869         * modules/unictype/property-bidi-common-separator-tests: New file.
53870         * modules/unictype/property-bidi-control-tests: New file.
53871         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
53872         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
53873         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
53874         * modules/unictype/property-bidi-european-digit-tests: New file.
53875         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
53876         * modules/unictype/property-bidi-left-to-right-tests: New file.
53877         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
53878         * modules/unictype/property-bidi-other-neutral-tests: New file.
53879         * modules/unictype/property-bidi-pdf-tests: New file.
53880         * modules/unictype/property-bidi-segment-separator-tests: New file.
53881         * modules/unictype/property-bidi-whitespace-tests: New file.
53882         * modules/unictype/property-byname-tests: New file.
53883         * modules/unictype/property-combining-tests: New file.
53884         * modules/unictype/property-composite-tests: New file.
53885         * modules/unictype/property-currency-symbol-tests: New file.
53886         * modules/unictype/property-dash-tests: New file.
53887         * modules/unictype/property-decimal-digit-tests: New file.
53888         * modules/unictype/property-default-ignorable-code-point-tests: New file.
53889         * modules/unictype/property-deprecated-tests: New file.
53890         * modules/unictype/property-diacritic-tests: New file.
53891         * modules/unictype/property-extender-tests: New file.
53892         * modules/unictype/property-format-control-tests: New file.
53893         * modules/unictype/property-grapheme-base-tests: New file.
53894         * modules/unictype/property-grapheme-extend-tests: New file.
53895         * modules/unictype/property-grapheme-link-tests: New file.
53896         * modules/unictype/property-hex-digit-tests: New file.
53897         * modules/unictype/property-hyphen-tests: New file.
53898         * modules/unictype/property-id-continue-tests: New file.
53899         * modules/unictype/property-id-start-tests: New file.
53900         * modules/unictype/property-ideographic-tests: New file.
53901         * modules/unictype/property-ids-binary-operator-tests: New file.
53902         * modules/unictype/property-ids-trinary-operator-tests: New file.
53903         * modules/unictype/property-ignorable-control-tests: New file.
53904         * modules/unictype/property-iso-control-tests: New file.
53905         * modules/unictype/property-join-control-tests: New file.
53906         * modules/unictype/property-left-of-pair-tests: New file.
53907         * modules/unictype/property-line-separator-tests: New file.
53908         * modules/unictype/property-logical-order-exception-tests: New file.
53909         * modules/unictype/property-lowercase-tests: New file.
53910         * modules/unictype/property-math-tests: New file.
53911         * modules/unictype/property-non-break-tests: New file.
53912         * modules/unictype/property-not-a-character-tests: New file.
53913         * modules/unictype/property-numeric-tests: New file.
53914         * modules/unictype/property-other-alphabetic-tests: New file.
53915         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
53916         * modules/unictype/property-other-grapheme-extend-tests: New file.
53917         * modules/unictype/property-other-id-continue-tests: New file.
53918         * modules/unictype/property-other-id-start-tests: New file.
53919         * modules/unictype/property-other-lowercase-tests: New file.
53920         * modules/unictype/property-other-math-tests: New file.
53921         * modules/unictype/property-other-uppercase-tests: New file.
53922         * modules/unictype/property-paired-punctuation-tests: New file.
53923         * modules/unictype/property-paragraph-separator-tests: New file.
53924         * modules/unictype/property-pattern-syntax-tests: New file.
53925         * modules/unictype/property-pattern-white-space-tests: New file.
53926         * modules/unictype/property-private-use-tests: New file.
53927         * modules/unictype/property-punctuation-tests: New file.
53928         * modules/unictype/property-quotation-mark-tests: New file.
53929         * modules/unictype/property-radical-tests: New file.
53930         * modules/unictype/property-sentence-terminal-tests: New file.
53931         * modules/unictype/property-soft-dotted-tests: New file.
53932         * modules/unictype/property-space-tests: New file.
53933         * modules/unictype/property-terminal-punctuation-tests: New file.
53934         * modules/unictype/property-test-tests: New file.
53935         * modules/unictype/property-titlecase-tests: New file.
53936         * modules/unictype/property-unassigned-code-value-tests: New file.
53937         * modules/unictype/property-unified-ideograph-tests: New file.
53938         * modules/unictype/property-uppercase-tests: New file.
53939         * modules/unictype/property-variation-selector-tests: New file.
53940         * modules/unictype/property-white-space-tests: New file.
53941         * modules/unictype/property-xid-continue-tests: New file.
53942         * modules/unictype/property-xid-start-tests: New file.
53943         * modules/unictype/property-zero-width-tests: New file.
53944         * modules/unictype/scripts-tests: New file.
53945         * modules/unictype/syntax-c-ident-tests: New file.
53946         * modules/unictype/syntax-c-whitespace-tests: New file.
53947         * modules/unictype/syntax-java-ident-tests: New file.
53948         * modules/unictype/syntax-java-whitespace-tests: New file.
53949         * tests/unictype/test-bidi_byname.c: New file.
53950         * tests/unictype/test-bidi_name.c: New file.
53951         * tests/unictype/test-bidi_of.c: New file.
53952         * tests/unictype/test-bidi_test.c: New file.
53953         * tests/unictype/test-block_list.c: New file.
53954         * tests/unictype/test-block_of.c: New file.
53955         * tests/unictype/test-block_test.c: New file.
53956         * tests/unictype/test-categ_and.c: New file.
53957         * tests/unictype/test-categ_and_not.c: New file.
53958         * tests/unictype/test-categ_byname.c: New file.
53959         * tests/unictype/test-categ_name.c: New file.
53960         * tests/unictype/test-categ_none.c: New file.
53961         * tests/unictype/test-categ_of.c: New file.
53962         * tests/unictype/test-categ_or.c: New file.
53963         * tests/unictype/test-categ_test_withtable.c: New file.
53964         * tests/unictype/test-combining.c: New file.
53965         * tests/unictype/test-decdigit.c: New file.
53966         * tests/unictype/test-digit.c: New file.
53967         * tests/unictype/test-mirror.c: New file.
53968         * tests/unictype/test-numeric.c: New file.
53969         * tests/unictype/test-pr_byname.c: New file.
53970         * tests/unictype/test-pr_test.c: New file.
53971         * tests/unictype/test-predicate-part1.h: New file.
53972         * tests/unictype/test-predicate-part2.h: New file.
53973         * tests/unictype/test-scripts.c: New file.
53974         * tests/unictype/test-sy_c_ident.c: New file.
53975         * tests/unictype/test-sy_java_ident.c: New file.
53976
53977         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
53978         for Unicode 5.0.0.
53979         * tests/unictype/test-categ_Cc.c: Likewise.
53980         * tests/unictype/test-categ_Cf.c: Likewise.
53981         * tests/unictype/test-categ_Cn.c: Likewise.
53982         * tests/unictype/test-categ_Co.c: Likewise.
53983         * tests/unictype/test-categ_Cs.c: Likewise.
53984         * tests/unictype/test-categ_L.c: Likewise.
53985         * tests/unictype/test-categ_Ll.c: Likewise.
53986         * tests/unictype/test-categ_Lm.c: Likewise.
53987         * tests/unictype/test-categ_Lo.c: Likewise.
53988         * tests/unictype/test-categ_Lt.c: Likewise.
53989         * tests/unictype/test-categ_Lu.c: Likewise.
53990         * tests/unictype/test-categ_M.c: Likewise.
53991         * tests/unictype/test-categ_Mc.c: Likewise.
53992         * tests/unictype/test-categ_Me.c: Likewise.
53993         * tests/unictype/test-categ_Mn.c: Likewise.
53994         * tests/unictype/test-categ_N.c: Likewise.
53995         * tests/unictype/test-categ_Nd.c: Likewise.
53996         * tests/unictype/test-categ_Nl.c: Likewise.
53997         * tests/unictype/test-categ_No.c: Likewise.
53998         * tests/unictype/test-categ_P.c: Likewise.
53999         * tests/unictype/test-categ_Pc.c: Likewise.
54000         * tests/unictype/test-categ_Pd.c: Likewise.
54001         * tests/unictype/test-categ_Pe.c: Likewise.
54002         * tests/unictype/test-categ_Pf.c: Likewise.
54003         * tests/unictype/test-categ_Pi.c: Likewise.
54004         * tests/unictype/test-categ_Po.c: Likewise.
54005         * tests/unictype/test-categ_Ps.c: Likewise.
54006         * tests/unictype/test-categ_S.c: Likewise.
54007         * tests/unictype/test-categ_Sc.c: Likewise.
54008         * tests/unictype/test-categ_Sk.c: Likewise.
54009         * tests/unictype/test-categ_Sm.c: Likewise.
54010         * tests/unictype/test-categ_So.c: Likewise.
54011         * tests/unictype/test-categ_Z.c: Likewise.
54012         * tests/unictype/test-categ_Zl.c: Likewise.
54013         * tests/unictype/test-categ_Zp.c: Likewise.
54014         * tests/unictype/test-categ_Zs.c: Likewise.
54015         * tests/unictype/test-ctype_alnum.c: Likewise.
54016         * tests/unictype/test-ctype_alpha.c: Likewise.
54017         * tests/unictype/test-ctype_blank.c: Likewise.
54018         * tests/unictype/test-ctype_cntrl.c: Likewise.
54019         * tests/unictype/test-ctype_digit.c: Likewise.
54020         * tests/unictype/test-ctype_graph.c: Likewise.
54021         * tests/unictype/test-ctype_lower.c: Likewise.
54022         * tests/unictype/test-ctype_print.c: Likewise.
54023         * tests/unictype/test-ctype_punct.c: Likewise.
54024         * tests/unictype/test-ctype_space.c: Likewise.
54025         * tests/unictype/test-ctype_upper.c: Likewise.
54026         * tests/unictype/test-ctype_xdigit.c: Likewise.
54027         * tests/unictype/test-decdigit.h: Likewise.
54028         * tests/unictype/test-digit.h: Likewise.
54029         * tests/unictype/test-numeric.h: Likewise.
54030         * tests/unictype/test-pr_alphabetic.c: Likewise.
54031         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
54032         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
54033         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
54034         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
54035         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
54036         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
54037         * tests/unictype/test-pr_bidi_control.c: Likewise.
54038         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
54039         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
54040         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
54041         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
54042         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
54043         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
54044         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
54045         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
54046         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
54047         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
54048         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
54049         * tests/unictype/test-pr_combining.c: Likewise.
54050         * tests/unictype/test-pr_composite.c: Likewise.
54051         * tests/unictype/test-pr_currency_symbol.c: Likewise.
54052         * tests/unictype/test-pr_dash.c: Likewise.
54053         * tests/unictype/test-pr_decimal_digit.c: Likewise.
54054         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
54055         * tests/unictype/test-pr_deprecated.c: Likewise.
54056         * tests/unictype/test-pr_diacritic.c: Likewise.
54057         * tests/unictype/test-pr_extender.c: Likewise.
54058         * tests/unictype/test-pr_format_control.c: Likewise.
54059         * tests/unictype/test-pr_grapheme_base.c: Likewise.
54060         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
54061         * tests/unictype/test-pr_grapheme_link.c: Likewise.
54062         * tests/unictype/test-pr_hex_digit.c: Likewise.
54063         * tests/unictype/test-pr_hyphen.c: Likewise.
54064         * tests/unictype/test-pr_id_continue.c: Likewise.
54065         * tests/unictype/test-pr_id_start.c: Likewise.
54066         * tests/unictype/test-pr_ideographic.c: Likewise.
54067         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
54068         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
54069         * tests/unictype/test-pr_ignorable_control.c: Likewise.
54070         * tests/unictype/test-pr_iso_control.c: Likewise.
54071         * tests/unictype/test-pr_join_control.c: Likewise.
54072         * tests/unictype/test-pr_left_of_pair.c: Likewise.
54073         * tests/unictype/test-pr_line_separator.c: Likewise.
54074         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
54075         * tests/unictype/test-pr_lowercase.c: Likewise.
54076         * tests/unictype/test-pr_math.c: Likewise.
54077         * tests/unictype/test-pr_non_break.c: Likewise.
54078         * tests/unictype/test-pr_not_a_character.c: Likewise.
54079         * tests/unictype/test-pr_numeric.c: Likewise.
54080         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
54081         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
54082         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
54083         * tests/unictype/test-pr_other_id_continue.c: Likewise.
54084         * tests/unictype/test-pr_other_id_start.c: Likewise.
54085         * tests/unictype/test-pr_other_lowercase.c: Likewise.
54086         * tests/unictype/test-pr_other_math.c: Likewise.
54087         * tests/unictype/test-pr_other_uppercase.c: Likewise.
54088         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
54089         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
54090         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
54091         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
54092         * tests/unictype/test-pr_private_use.c: Likewise.
54093         * tests/unictype/test-pr_punctuation.c: Likewise.
54094         * tests/unictype/test-pr_quotation_mark.c: Likewise.
54095         * tests/unictype/test-pr_radical.c: Likewise.
54096         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
54097         * tests/unictype/test-pr_soft_dotted.c: Likewise.
54098         * tests/unictype/test-pr_space.c: Likewise.
54099         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
54100         * tests/unictype/test-pr_titlecase.c: Likewise.
54101         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
54102         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
54103         * tests/unictype/test-pr_uppercase.c: Likewise.
54104         * tests/unictype/test-pr_variation_selector.c: Likewise.
54105         * tests/unictype/test-pr_white_space.c: Likewise.
54106         * tests/unictype/test-pr_xid_continue.c: Likewise.
54107         * tests/unictype/test-pr_xid_start.c: Likewise.
54108         * tests/unictype/test-pr_zero_width.c: Likewise.
54109         * tests/unictype/test-sy_c_whitespace.c: Likewise.
54110         * tests/unictype/test-sy_java_whitespace.c: Likewise.
54111
54112 2007-11-12  Bruno Haible  <bruno@clisp.org>
54113
54114         Unicode character classification functions.
54115         * lib/unictype.h: New file.
54116         * modules/unictype/base: New file.
54117         * modules/unictype/category-L: New file.
54118         * modules/unictype/category-Lu: New file.
54119         * modules/unictype/category-Ll: New file.
54120         * modules/unictype/category-Lt: New file.
54121         * modules/unictype/category-Lm: New file.
54122         * modules/unictype/category-Lo: New file.
54123         * modules/unictype/category-M: New file.
54124         * modules/unictype/category-Mn: New file.
54125         * modules/unictype/category-Mc: New file.
54126         * modules/unictype/category-Me: New file.
54127         * modules/unictype/category-N: New file.
54128         * modules/unictype/category-Nd: New file.
54129         * modules/unictype/category-Nl: New file.
54130         * modules/unictype/category-No: New file.
54131         * modules/unictype/category-P: New file.
54132         * modules/unictype/category-Pc: New file.
54133         * modules/unictype/category-Pd: New file.
54134         * modules/unictype/category-Ps: New file.
54135         * modules/unictype/category-Pe: New file.
54136         * modules/unictype/category-Pi: New file.
54137         * modules/unictype/category-Pf: New file.
54138         * modules/unictype/category-Po: New file.
54139         * modules/unictype/category-S: New file.
54140         * modules/unictype/category-Sm: New file.
54141         * modules/unictype/category-Sc: New file.
54142         * modules/unictype/category-Sk: New file.
54143         * modules/unictype/category-So: New file.
54144         * modules/unictype/category-Z: New file.
54145         * modules/unictype/category-Zs: New file.
54146         * modules/unictype/category-Zl: New file.
54147         * modules/unictype/category-Zp: New file.
54148         * modules/unictype/category-C: New file.
54149         * modules/unictype/category-Cc: New file.
54150         * modules/unictype/category-Cf: New file.
54151         * modules/unictype/category-Cs: New file.
54152         * modules/unictype/category-Co: New file.
54153         * modules/unictype/category-Cn: New file.
54154         * modules/unictype/category-or: New file.
54155         * modules/unictype/category-of: New file.
54156         * modules/unictype/category-test: New file.
54157         * modules/unictype/category-test-withtable: New file.
54158         * modules/unictype/category-byname: New file.
54159         * modules/unictype/category-none: New file.
54160         * modules/unictype/category-and: New file.
54161         * modules/unictype/category-and-not: New file.
54162         * modules/unictype/category-name: New file.
54163         * modules/unictype/combining-class: New file.
54164         * modules/unictype/category-all: New file.
54165         * modules/unictype/bidicategory-all: New file.
54166         * modules/unictype/bidicategory-byname: New file.
54167         * modules/unictype/bidicategory-name: New file.
54168         * modules/unictype/bidicategory-of: New file.
54169         * modules/unictype/bidicategory-test: New file.
54170         * modules/unictype/decimal-digit: New file.
54171         * modules/unictype/digit: New file.
54172         * modules/unictype/numeric: New file.
54173         * modules/unictype/mirror: New file.
54174         * modules/unictype/property-white-space: New file.
54175         * modules/unictype/property-alphabetic: New file.
54176         * modules/unictype/property-other-alphabetic: New file.
54177         * modules/unictype/property-not-a-character: New file.
54178         * modules/unictype/property-default-ignorable-code-point: New file.
54179         * modules/unictype/property-other-default-ignorable-code-point: New
54180         file.
54181         * modules/unictype/property-deprecated: New file.
54182         * modules/unictype/property-logical-order-exception: New file.
54183         * modules/unictype/property-variation-selector: New file.
54184         * modules/unictype/property-private-use: New file.
54185         * modules/unictype/property-unassigned-code-value: New file.
54186         * modules/unictype/property-uppercase: New file.
54187         * modules/unictype/property-other-uppercase: New file.
54188         * modules/unictype/property-lowercase: New file.
54189         * modules/unictype/property-other-lowercase: New file.
54190         * modules/unictype/property-titlecase: New file.
54191         * modules/unictype/property-soft-dotted: New file.
54192         * modules/unictype/property-id-start: New file.
54193         * modules/unictype/property-other-id-start: New file.
54194         * modules/unictype/property-id-continue: New file.
54195         * modules/unictype/property-other-id-continue: New file.
54196         * modules/unictype/property-xid-start: New file.
54197         * modules/unictype/property-xid-continue: New file.
54198         * modules/unictype/property-pattern-white-space: New file.
54199         * modules/unictype/property-pattern-syntax: New file.
54200         * modules/unictype/property-join-control: New file.
54201         * modules/unictype/property-grapheme-base: New file.
54202         * modules/unictype/property-grapheme-extend: New file.
54203         * modules/unictype/property-other-grapheme-extend: New file.
54204         * modules/unictype/property-grapheme-link: New file.
54205         * modules/unictype/property-bidi-control: New file.
54206         * modules/unictype/property-bidi-left-to-right: New file.
54207         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
54208         * modules/unictype/property-bidi-arabic-right-to-left: New file.
54209         * modules/unictype/property-bidi-european-digit: New file.
54210         * modules/unictype/property-bidi-eur-num-separator: New file.
54211         * modules/unictype/property-bidi-eur-num-terminator: New file.
54212         * modules/unictype/property-bidi-arabic-digit: New file.
54213         * modules/unictype/property-bidi-common-separator: New file.
54214         * modules/unictype/property-bidi-block-separator: New file.
54215         * modules/unictype/property-bidi-segment-separator: New file.
54216         * modules/unictype/property-bidi-whitespace: New file.
54217         * modules/unictype/property-bidi-non-spacing-mark: New file.
54218         * modules/unictype/property-bidi-boundary-neutral: New file.
54219         * modules/unictype/property-bidi-pdf: New file.
54220         * modules/unictype/property-bidi-embedding-or-override: New file.
54221         * modules/unictype/property-bidi-other-neutral: New file.
54222         * modules/unictype/property-hex-digit: New file.
54223         * modules/unictype/property-ascii-hex-digit: New file.
54224         * modules/unictype/property-ideographic: New file.
54225         * modules/unictype/property-unified-ideograph: New file.
54226         * modules/unictype/property-radical: New file.
54227         * modules/unictype/property-ids-binary-operator: New file.
54228         * modules/unictype/property-ids-trinary-operator: New file.
54229         * modules/unictype/property-zero-width: New file.
54230         * modules/unictype/property-space: New file.
54231         * modules/unictype/property-non-break: New file.
54232         * modules/unictype/property-iso-control: New file.
54233         * modules/unictype/property-format-control: New file.
54234         * modules/unictype/property-dash: New file.
54235         * modules/unictype/property-hyphen: New file.
54236         * modules/unictype/property-punctuation: New file.
54237         * modules/unictype/property-line-separator: New file.
54238         * modules/unictype/property-paragraph-separator: New file.
54239         * modules/unictype/property-quotation-mark: New file.
54240         * modules/unictype/property-sentence-terminal: New file.
54241         * modules/unictype/property-terminal-punctuation: New file.
54242         * modules/unictype/property-currency-symbol: New file.
54243         * modules/unictype/property-math: New file.
54244         * modules/unictype/property-other-math: New file.
54245         * modules/unictype/property-paired-punctuation: New file.
54246         * modules/unictype/property-left-of-pair: New file.
54247         * modules/unictype/property-combining: New file.
54248         * modules/unictype/property-composite: New file.
54249         * modules/unictype/property-decimal-digit: New file.
54250         * modules/unictype/property-numeric: New file.
54251         * modules/unictype/property-diacritic: New file.
54252         * modules/unictype/property-extender: New file.
54253         * modules/unictype/property-ignorable-control: New file.
54254         * modules/unictype/property-test: New file.
54255         * modules/unictype/property-byname: New file.
54256         * modules/unictype/property-all: New file.
54257         * modules/unictype/scripts: New file.
54258         * modules/unictype/scripts-all: New file.
54259         * modules/unictype/block-of: New file.
54260         * modules/unictype/block-test: New file.
54261         * modules/unictype/block-list: New file.
54262         * modules/unictype/block-all: New file.
54263         * modules/unictype/syntax-c-whitespace: New file.
54264         * modules/unictype/syntax-java-whitespace: New file.
54265         * modules/unictype/syntax-c-ident: New file.
54266         * modules/unictype/syntax-java-ident: New file.
54267         * modules/unictype/ctype-alnum: New file.
54268         * modules/unictype/ctype-alpha: New file.
54269         * modules/unictype/ctype-cntrl: New file.
54270         * modules/unictype/ctype-digit: New file.
54271         * modules/unictype/ctype-graph: New file.
54272         * modules/unictype/ctype-lower: New file.
54273         * modules/unictype/ctype-print: New file.
54274         * modules/unictype/ctype-punct: New file.
54275         * modules/unictype/ctype-space: New file.
54276         * modules/unictype/ctype-upper: New file.
54277         * modules/unictype/ctype-xdigit: New file.
54278         * modules/unictype/ctype-blank: New file.
54279         * lib/unictype/bidi_byname.c: New file.
54280         * lib/unictype/bidi_name.c: New file.
54281         * lib/unictype/bidi_of.c: New file.
54282         * lib/unictype/bidi_test.c: New file.
54283         * lib/unictype/bitmap.h: New file.
54284         * lib/unictype/block_test.c: New file.
54285         * lib/unictype/blocks.c: New file.
54286         * lib/unictype/categ_C.c: New file.
54287         * lib/unictype/categ_Cc.c: New file.
54288         * lib/unictype/categ_Cf.c: New file.
54289         * lib/unictype/categ_Cn.c: New file.
54290         * lib/unictype/categ_Co.c: New file.
54291         * lib/unictype/categ_Cs.c: New file.
54292         * lib/unictype/categ_L.c: New file.
54293         * lib/unictype/categ_Ll.c: New file.
54294         * lib/unictype/categ_Lm.c: New file.
54295         * lib/unictype/categ_Lo.c: New file.
54296         * lib/unictype/categ_Lt.c: New file.
54297         * lib/unictype/categ_Lu.c: New file.
54298         * lib/unictype/categ_M.c: New file.
54299         * lib/unictype/categ_Mc.c: New file.
54300         * lib/unictype/categ_Me.c: New file.
54301         * lib/unictype/categ_Mn.c: New file.
54302         * lib/unictype/categ_N.c: New file.
54303         * lib/unictype/categ_Nd.c: New file.
54304         * lib/unictype/categ_Nl.c: New file.
54305         * lib/unictype/categ_No.c: New file.
54306         * lib/unictype/categ_P.c: New file.
54307         * lib/unictype/categ_Pc.c: New file.
54308         * lib/unictype/categ_Pd.c: New file.
54309         * lib/unictype/categ_Pe.c: New file.
54310         * lib/unictype/categ_Pf.c: New file.
54311         * lib/unictype/categ_Pi.c: New file.
54312         * lib/unictype/categ_Po.c: New file.
54313         * lib/unictype/categ_Ps.c: New file.
54314         * lib/unictype/categ_S.c: New file.
54315         * lib/unictype/categ_Sc.c: New file.
54316         * lib/unictype/categ_Sk.c: New file.
54317         * lib/unictype/categ_Sm.c: New file.
54318         * lib/unictype/categ_So.c: New file.
54319         * lib/unictype/categ_Z.c: New file.
54320         * lib/unictype/categ_Zl.c: New file.
54321         * lib/unictype/categ_Zp.c: New file.
54322         * lib/unictype/categ_Zs.c: New file.
54323         * lib/unictype/categ_and.c: New file.
54324         * lib/unictype/categ_and_not.c: New file.
54325         * lib/unictype/categ_byname.c: New file.
54326         * lib/unictype/categ_name.c: New file.
54327         * lib/unictype/categ_none.c: New file.
54328         * lib/unictype/categ_of.c: New file.
54329         * lib/unictype/categ_or.c: New file.
54330         * lib/unictype/categ_test.c: New file.
54331         * lib/unictype/combining.c: New file.
54332         * lib/unictype/ctype_alnum.c: New file.
54333         * lib/unictype/ctype_alpha.c: New file.
54334         * lib/unictype/ctype_blank.c: New file.
54335         * lib/unictype/ctype_cntrl.c: New file.
54336         * lib/unictype/ctype_digit.c: New file.
54337         * lib/unictype/ctype_graph.c: New file.
54338         * lib/unictype/ctype_lower.c: New file.
54339         * lib/unictype/ctype_print.c: New file.
54340         * lib/unictype/ctype_punct.c: New file.
54341         * lib/unictype/ctype_space.c: New file.
54342         * lib/unictype/ctype_upper.c: New file.
54343         * lib/unictype/ctype_xdigit.c: New file.
54344         * lib/unictype/decdigit.c: New file.
54345         * lib/unictype/digit.c: New file.
54346         * lib/unictype/identsyntaxmap.h: New file.
54347         * lib/unictype/mirror.c: New file.
54348         * lib/unictype/numeric.c: New file.
54349         * lib/unictype/pr_alphabetic.c: New file.
54350         * lib/unictype/pr_ascii_hex_digit.c: New file.
54351         * lib/unictype/pr_bidi_arabic_digit.c: New file.
54352         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
54353         * lib/unictype/pr_bidi_block_separator.c: New file.
54354         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
54355         * lib/unictype/pr_bidi_common_separator.c: New file.
54356         * lib/unictype/pr_bidi_control.c: New file.
54357         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
54358         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
54359         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
54360         * lib/unictype/pr_bidi_european_digit.c: New file.
54361         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
54362         * lib/unictype/pr_bidi_left_to_right.c: New file.
54363         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
54364         * lib/unictype/pr_bidi_other_neutral.c: New file.
54365         * lib/unictype/pr_bidi_pdf.c: New file.
54366         * lib/unictype/pr_bidi_segment_separator.c: New file.
54367         * lib/unictype/pr_bidi_whitespace.c: New file.
54368         * lib/unictype/pr_byname.c: New file.
54369         * lib/unictype/pr_byname.gperf: New file.
54370         * lib/unictype/pr_combining.c: New file.
54371         * lib/unictype/pr_composite.c: New file.
54372         * lib/unictype/pr_currency_symbol.c: New file.
54373         * lib/unictype/pr_dash.c: New file.
54374         * lib/unictype/pr_decimal_digit.c: New file.
54375         * lib/unictype/pr_default_ignorable_code_point.c: New file.
54376         * lib/unictype/pr_deprecated.c: New file.
54377         * lib/unictype/pr_diacritic.c: New file.
54378         * lib/unictype/pr_extender.c: New file.
54379         * lib/unictype/pr_format_control.c: New file.
54380         * lib/unictype/pr_grapheme_base.c: New file.
54381         * lib/unictype/pr_grapheme_extend.c: New file.
54382         * lib/unictype/pr_grapheme_link.c: New file.
54383         * lib/unictype/pr_hex_digit.c: New file.
54384         * lib/unictype/pr_hyphen.c: New file.
54385         * lib/unictype/pr_id_continue.c: New file.
54386         * lib/unictype/pr_id_start.c: New file.
54387         * lib/unictype/pr_ideographic.c: New file.
54388         * lib/unictype/pr_ids_binary_operator.c: New file.
54389         * lib/unictype/pr_ids_trinary_operator.c: New file.
54390         * lib/unictype/pr_ignorable_control.c: New file.
54391         * lib/unictype/pr_iso_control.c: New file.
54392         * lib/unictype/pr_join_control.c: New file.
54393         * lib/unictype/pr_left_of_pair.c: New file.
54394         * lib/unictype/pr_line_separator.c: New file.
54395         * lib/unictype/pr_logical_order_exception.c: New file.
54396         * lib/unictype/pr_lowercase.c: New file.
54397         * lib/unictype/pr_math.c: New file.
54398         * lib/unictype/pr_non_break.c: New file.
54399         * lib/unictype/pr_not_a_character.c: New file.
54400         * lib/unictype/pr_numeric.c: New file.
54401         * lib/unictype/pr_other_alphabetic.c: New file.
54402         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
54403         * lib/unictype/pr_other_grapheme_extend.c: New file.
54404         * lib/unictype/pr_other_id_continue.c: New file.
54405         * lib/unictype/pr_other_id_start.c: New file.
54406         * lib/unictype/pr_other_lowercase.c: New file.
54407         * lib/unictype/pr_other_math.c: New file.
54408         * lib/unictype/pr_other_uppercase.c: New file.
54409         * lib/unictype/pr_paired_punctuation.c: New file.
54410         * lib/unictype/pr_paragraph_separator.c: New file.
54411         * lib/unictype/pr_pattern_syntax.c: New file.
54412         * lib/unictype/pr_pattern_white_space.c: New file.
54413         * lib/unictype/pr_private_use.c: New file.
54414         * lib/unictype/pr_punctuation.c: New file.
54415         * lib/unictype/pr_quotation_mark.c: New file.
54416         * lib/unictype/pr_radical.c: New file.
54417         * lib/unictype/pr_sentence_terminal.c: New file.
54418         * lib/unictype/pr_soft_dotted.c: New file.
54419         * lib/unictype/pr_space.c: New file.
54420         * lib/unictype/pr_terminal_punctuation.c: New file.
54421         * lib/unictype/pr_test.c: New file.
54422         * lib/unictype/pr_titlecase.c: New file.
54423         * lib/unictype/pr_unassigned_code_value.c: New file.
54424         * lib/unictype/pr_unified_ideograph.c: New file.
54425         * lib/unictype/pr_uppercase.c: New file.
54426         * lib/unictype/pr_variation_selector.c: New file.
54427         * lib/unictype/pr_white_space.c: New file.
54428         * lib/unictype/pr_xid_continue.c: New file.
54429         * lib/unictype/pr_xid_start.c: New file.
54430         * lib/unictype/pr_zero_width.c: New file.
54431         * lib/unictype/scripts.c: New file.
54432         * lib/unictype/sy_c_ident.c: New file.
54433         * lib/unictype/sy_c_whitespace.c: New file.
54434         * lib/unictype/sy_java_ident.c: New file.
54435         * lib/unictype/sy_java_whitespace.c: New file.
54436
54437         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
54438         Unicode 5.0.0.
54439         * lib/unictype/blocks.h: Likewise.
54440         * lib/unictype/categ_C.h: Likewise.
54441         * lib/unictype/categ_Cc.h: Likewise.
54442         * lib/unictype/categ_Cf.h: Likewise.
54443         * lib/unictype/categ_Cn.h: Likewise.
54444         * lib/unictype/categ_Co.h: Likewise.
54445         * lib/unictype/categ_Cs.h: Likewise.
54446         * lib/unictype/categ_L.h: Likewise.
54447         * lib/unictype/categ_Ll.h: Likewise.
54448         * lib/unictype/categ_Lm.h: Likewise.
54449         * lib/unictype/categ_Lo.h: Likewise.
54450         * lib/unictype/categ_Lt.h: Likewise.
54451         * lib/unictype/categ_Lu.h: Likewise.
54452         * lib/unictype/categ_M.h: Likewise.
54453         * lib/unictype/categ_Mc.h: Likewise.
54454         * lib/unictype/categ_Me.h: Likewise.
54455         * lib/unictype/categ_Mn.h: Likewise.
54456         * lib/unictype/categ_N.h: Likewise.
54457         * lib/unictype/categ_Nd.h: Likewise.
54458         * lib/unictype/categ_Nl.h: Likewise.
54459         * lib/unictype/categ_No.h: Likewise.
54460         * lib/unictype/categ_P.h: Likewise.
54461         * lib/unictype/categ_Pc.h: Likewise.
54462         * lib/unictype/categ_Pd.h: Likewise.
54463         * lib/unictype/categ_Pe.h: Likewise.
54464         * lib/unictype/categ_Pf.h: Likewise.
54465         * lib/unictype/categ_Pi.h: Likewise.
54466         * lib/unictype/categ_Po.h: Likewise.
54467         * lib/unictype/categ_Ps.h: Likewise.
54468         * lib/unictype/categ_S.h: Likewise.
54469         * lib/unictype/categ_Sc.h: Likewise.
54470         * lib/unictype/categ_Sk.h: Likewise.
54471         * lib/unictype/categ_Sm.h: Likewise.
54472         * lib/unictype/categ_So.h: Likewise.
54473         * lib/unictype/categ_Z.h: Likewise.
54474         * lib/unictype/categ_Zl.h: Likewise.
54475         * lib/unictype/categ_Zp.h: Likewise.
54476         * lib/unictype/categ_Zs.h: Likewise.
54477         * lib/unictype/categ_of.h: Likewise.
54478         * lib/unictype/combining.h: Likewise.
54479         * lib/unictype/ctype_alnum.h: Likewise.
54480         * lib/unictype/ctype_alpha.h: Likewise.
54481         * lib/unictype/ctype_blank.h: Likewise.
54482         * lib/unictype/ctype_cntrl.h: Likewise.
54483         * lib/unictype/ctype_digit.h: Likewise.
54484         * lib/unictype/ctype_graph.h: Likewise.
54485         * lib/unictype/ctype_lower.h: Likewise.
54486         * lib/unictype/ctype_print.h: Likewise.
54487         * lib/unictype/ctype_punct.h: Likewise.
54488         * lib/unictype/ctype_space.h: Likewise.
54489         * lib/unictype/ctype_upper.h: Likewise.
54490         * lib/unictype/ctype_xdigit.h: Likewise.
54491         * lib/unictype/decdigit.h: Likewise.
54492         * lib/unictype/digit.h: Likewise.
54493         * lib/unictype/mirror.h: Likewise.
54494         * lib/unictype/numeric.h: Likewise.
54495         * lib/unictype/pr_alphabetic.h: Likewise.
54496         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
54497         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
54498         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
54499         * lib/unictype/pr_bidi_block_separator.h: Likewise.
54500         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
54501         * lib/unictype/pr_bidi_common_separator.h: Likewise.
54502         * lib/unictype/pr_bidi_control.h: Likewise.
54503         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
54504         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
54505         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
54506         * lib/unictype/pr_bidi_european_digit.h: Likewise.
54507         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
54508         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
54509         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
54510         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
54511         * lib/unictype/pr_bidi_pdf.h: Likewise.
54512         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
54513         * lib/unictype/pr_bidi_whitespace.h: Likewise.
54514         * lib/unictype/pr_combining.h: Likewise.
54515         * lib/unictype/pr_composite.h: Likewise.
54516         * lib/unictype/pr_currency_symbol.h: Likewise.
54517         * lib/unictype/pr_dash.h: Likewise.
54518         * lib/unictype/pr_decimal_digit.h: Likewise.
54519         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
54520         * lib/unictype/pr_deprecated.h: Likewise.
54521         * lib/unictype/pr_diacritic.h: Likewise.
54522         * lib/unictype/pr_extender.h: Likewise.
54523         * lib/unictype/pr_format_control.h: Likewise.
54524         * lib/unictype/pr_grapheme_base.h: Likewise.
54525         * lib/unictype/pr_grapheme_extend.h: Likewise.
54526         * lib/unictype/pr_grapheme_link.h: Likewise.
54527         * lib/unictype/pr_hex_digit.h: Likewise.
54528         * lib/unictype/pr_hyphen.h: Likewise.
54529         * lib/unictype/pr_id_continue.h: Likewise.
54530         * lib/unictype/pr_id_start.h: Likewise.
54531         * lib/unictype/pr_ideographic.h: Likewise.
54532         * lib/unictype/pr_ids_binary_operator.h: Likewise.
54533         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
54534         * lib/unictype/pr_ignorable_control.h: Likewise.
54535         * lib/unictype/pr_iso_control.h: Likewise.
54536         * lib/unictype/pr_join_control.h: Likewise.
54537         * lib/unictype/pr_left_of_pair.h: Likewise.
54538         * lib/unictype/pr_line_separator.h: Likewise.
54539         * lib/unictype/pr_logical_order_exception.h: Likewise.
54540         * lib/unictype/pr_lowercase.h: Likewise.
54541         * lib/unictype/pr_math.h: Likewise.
54542         * lib/unictype/pr_non_break.h: Likewise.
54543         * lib/unictype/pr_not_a_character.h: Likewise.
54544         * lib/unictype/pr_numeric.h: Likewise.
54545         * lib/unictype/pr_other_alphabetic.h: Likewise.
54546         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
54547         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
54548         * lib/unictype/pr_other_id_continue.h: Likewise.
54549         * lib/unictype/pr_other_id_start.h: Likewise.
54550         * lib/unictype/pr_other_lowercase.h: Likewise.
54551         * lib/unictype/pr_other_math.h: Likewise.
54552         * lib/unictype/pr_other_uppercase.h: Likewise.
54553         * lib/unictype/pr_paired_punctuation.h: Likewise.
54554         * lib/unictype/pr_paragraph_separator.h: Likewise.
54555         * lib/unictype/pr_pattern_syntax.h: Likewise.
54556         * lib/unictype/pr_pattern_white_space.h: Likewise.
54557         * lib/unictype/pr_private_use.h: Likewise.
54558         * lib/unictype/pr_punctuation.h: Likewise.
54559         * lib/unictype/pr_quotation_mark.h: Likewise.
54560         * lib/unictype/pr_radical.h: Likewise.
54561         * lib/unictype/pr_sentence_terminal.h: Likewise.
54562         * lib/unictype/pr_soft_dotted.h: Likewise.
54563         * lib/unictype/pr_space.h: Likewise.
54564         * lib/unictype/pr_terminal_punctuation.h: Likewise.
54565         * lib/unictype/pr_titlecase.h: Likewise.
54566         * lib/unictype/pr_unassigned_code_value.h: Likewise.
54567         * lib/unictype/pr_unified_ideograph.h: Likewise.
54568         * lib/unictype/pr_uppercase.h: Likewise.
54569         * lib/unictype/pr_variation_selector.h: Likewise.
54570         * lib/unictype/pr_white_space.h: Likewise.
54571         * lib/unictype/pr_xid_continue.h: Likewise.
54572         * lib/unictype/pr_xid_start.h: Likewise.
54573         * lib/unictype/pr_zero_width.h: Likewise.
54574         * lib/unictype/scripts.h: Likewise.
54575         * lib/unictype/scripts_byname.gperf: Likewise.
54576         * lib/unictype/sy_c_ident.h: Likewise.
54577         * lib/unictype/sy_c_whitespace.h: Likewise.
54578         * lib/unictype/sy_java_ident.h: Likewise.
54579         * lib/unictype/sy_java_whitespace.h: Likewise.
54580
54581         * lib/unictype/Makefile: New file.
54582         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
54583         glibc.
54584         * lib/unictype/3level.h: New file, copied from glibc.
54585         * lib/unictype/3levelbit.h: New file.
54586
54587 2007-11-11  Bruno Haible  <bruno@clisp.org>
54588
54589         * modules/gperf: New file.
54590         * modules/iconv_open (Depends-on): Add it.
54591         (Makefile.am): Remove the GPERF definition.
54592
54593 2007-11-11  Bruno Haible  <bruno@clisp.org>
54594
54595         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
54596         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
54597
54598 2007-11-11  Bruno Haible  <bruno@clisp.org>
54599
54600         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
54601         (usage): Remove function.
54602
54603 2007-11-11  Bruno Haible  <bruno@clisp.org>
54604
54605         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
54606         gl_FUNC_CEILF_LIBS.
54607         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
54608         gl_FUNC_CEIL_LIBS.
54609         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
54610         gl_FUNC_CEILL_LIBS.
54611         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
54612         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
54613         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
54614
54615 2007-11-11  Bruno Haible  <bruno@clisp.org>
54616
54617         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
54618         roundf were declared but do not exist on functions.
54619         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
54620         roundl were declared but do not exist on functions.
54621         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
54622         HAVE_FLOORL_AND_CEILL, respectively.
54623         Needed for Sun C on Solaris 10.
54624
54625 2007-11-11  Bruno Haible  <bruno@clisp.org>
54626
54627         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
54628         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
54629         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
54630         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
54631         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
54632         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
54633         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
54634         HAVE_DECL_ROUNDF.
54635         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
54636         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
54637         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
54638         of HAVE_DECL_ROUND*.
54639         * modules/math (Makefile.am): Update.
54640
54641 2007-11-10  Bruno Haible  <bruno@clisp.org>
54642
54643         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
54644         ptrdiff_t as m4/intl.m4.
54645
54646 2007-11-10  Jim Meyering  <meyering@redhat.com>
54647
54648         Avoid link failure for the argmatch test.
54649         * tests/test-argmatch.c (usage): Define function to avoid a link
54650         failure: argmatch_die requires a usage function.
54651
54652 2007-11-09  Bruno Haible  <bruno@clisp.org>
54653
54654         * doc/functions/snprintf.texi: Mention BeOS deficiency.
54655         * doc/functions/vsnprintf.texi: Likewise.
54656         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
54657         with a size argument < 2.
54658
54659 2007-11-09  Bruno Haible  <bruno@clisp.org>
54660
54661         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
54662         buffer. Fixes an inefficiency introduced on 2007-11-03.
54663
54664 2007-11-09  Bruno Haible  <bruno@clisp.org>
54665
54666         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
54667         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
54668
54669 2007-11-08  Jim Meyering  <meyering@redhat.com>
54670
54671         Change cache variable name prefix "jm_" to "gl_" everywhere.
54672         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
54673         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
54674         * m4/uptime.m4: s/gl_/jm_/
54675
54676 2007-11-07  Bruno Haible  <bruno@clisp.org>
54677
54678         Update to GNU gettext 0.17.
54679         * m4/intl.m4: Update to GNU gettext 0.17.
54680         * m4/po.m4: Likewise.
54681         * modules/gettext (Files): Remove m4/ulonglong.m4.
54682         (configure.ac): Require gettext infrastructure from version 0.17.
54683
54684 2007-11-06  Bruno Haible  <bruno@clisp.org>
54685
54686         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
54687         symbolic values are not defined in a public header.
54688         * lib/freadable.c (freadable) [QNX]: Likewise.
54689         * lib/freadahead.c (freadahead) [QNX]: Likewise.
54690         * lib/freading.c (freading) [QNX]: Likewise.
54691         * lib/fseterr.c (fseterr) [QNX]: Likewise.
54692         * lib/fwritable.c (fwritable) [QNX]: Likewise.
54693         * lib/fwriting.c (fwriting) [QNX]: Likewise.
54694         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
54695         Reported by Alain Magloire.
54696
54697         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
54698
54699 2007-11-05  Bruno Haible  <bruno@clisp.org>
54700
54701         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
54702         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
54703         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
54704         Reported by Eric Blake.
54705
54706 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54707             Bruno Haible  <bruno@clisp.org>
54708
54709         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
54710         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
54711         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
54712         (malloc): Undefine also before including <stdlib.h>.
54713         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
54714         Needed on OSF/1 4.0.
54715
54716 2007-11-05  Jim Meyering  <meyering@redhat.com>
54717
54718         git-version-gen: sync from coreutils.
54719         * build-aux/git-version-gen: Add comments.
54720         Change the first '-' to '.' in the snapshot version string,
54721         e.g., 6.9-377-08144 -> 6.9.377-08144
54722         Remove first parameter.
54723         Don't declare a version "-dirty" merely because a time
54724         stamp has changed.
54725
54726 2007-11-04  Bruno Haible  <bruno@clisp.org>
54727
54728         * lib/lock.h: Protect all macro definitions containing an 'if'
54729         statement through a "do { ... } while (0)".
54730         * lib/tls.h: Likewise.
54731
54732 2007-11-04  Bruno Haible  <bruno@clisp.org>
54733
54734         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
54735
54736 2007-11-04  Bruno Haible  <bruno@clisp.org>
54737
54738         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
54739         * modules/fprintf-posix (Depends-on): Add nocrash.
54740         * modules/snprintf-posix (Depends-on): Likewise.
54741         * modules/sprintf-posix (Depends-on): Likewise.
54742         * modules/vasnprintf-posix (Depends-on): Likewise.
54743         * modules/vasprintf-posix (Depends-on): Likewise.
54744         * modules/vfprintf-posix (Depends-on): Likewise.
54745         * modules/vsnprintf-posix (Depends-on): Likewise.
54746         * modules/vsprintf-posix (Depends-on): Likewise.
54747         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54748         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54749         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54750         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54751         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54752         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54753         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54754
54755 2007-11-04  Bruno Haible  <bruno@clisp.org>
54756
54757         * modules/nocrash: New file.
54758         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
54759         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
54760
54761 2007-11-04  Bruno Haible  <bruno@clisp.org>
54762
54763         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
54764         precision handling.
54765         * tests/test-vasprintf-posix.c (test_function): Likewise.
54766         * tests/test-snprintf-posix.h (test_function): Likewise.
54767         * tests/test-sprintf-posix.h (test_function): Likewise.
54768
54769         Fix *printf behaviour for large precisions on mingw and BeOS.
54770         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
54771         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
54772         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
54773         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54774         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54775         gl_PRINTF_PRECISION and test its result. Invoke
54776         gl_PREREQ_VASNPRINTF_PRECISION.
54777         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54778         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54779         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54780         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54781         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54782         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54783         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54784         * doc/functions/fprintf.texi: Update.
54785         * doc/functions/printf.texi: Update.
54786         * doc/functions/snprintf.texi: Update.
54787         * doc/functions/sprintf.texi: Update.
54788         * doc/functions/vfprintf.texi: Update.
54789         * doc/functions/vprintf.texi: Update.
54790         * doc/functions/vsnprintf.texi: Update.
54791         * doc/functions/vsprintf.texi: Update.
54792
54793 2007-11-04  Bruno Haible  <bruno@clisp.org>
54794
54795         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
54796
54797 2007-11-04  Bruno Haible  <bruno@clisp.org>
54798
54799         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
54800         Reported by Sylvain Beucler <beuc@gnu.org>.
54801
54802 2007-11-03  Bruno Haible  <bruno@clisp.org>
54803
54804         * tests/test-fprintf-posix2.sh: New file.
54805         * tests/test-fprintf-posix2.c: New file.
54806         * modules/fprintf-posix-tests (Files): Add them.
54807         (TESTS): Add test-fprintf-posix2.sh.
54808         (configure.ac): Check for getrlimit and setrlimit.
54809         (check_PROGRAMS): Add test-fprintf-posix2.
54810
54811         * tests/test-printf-posix2.sh: New file.
54812         * tests/test-printf-posix2.c: New file.
54813         * modules/printf-posix-tests (Files): Add them.
54814         (TESTS): Add test-printf-posix2.sh.
54815         (configure.ac): Check for getrlimit and setrlimit.
54816         (check_PROGRAMS): Add test-printf-posix2.
54817
54818         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
54819         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
54820         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
54821         (decode_double): New function, copied from decode_long_double.
54822         (scale10_round_decimal_decoded): New function, extracted from
54823         scale10_round_decimal_long_double.
54824         (scale10_round_decimal_long_double): Use it.
54825         (scale10_round_decimal_double): New function.
54826         (floorlog10): New function.
54827         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
54828         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
54829         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54830         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54831         gl_PRINTF_ENOMEM and test its result. Invoke
54832         gl_PREREQ_VASNPRINTF_ENOMEM.
54833         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54834         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54835         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54836         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54837         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54838         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54839         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54840         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
54841         * modules/snprintf-posix (Depends-on): Likewise.
54842         * modules/sprintf-posix (Depends-on): Likewise.
54843         * modules/vasnprintf-posix (Depends-on): Likewise.
54844         * modules/vasprintf-posix (Depends-on): Likewise.
54845         * modules/vfprintf-posix (Depends-on): Likewise.
54846         * modules/vsnprintf-posix (Depends-on): Likewise.
54847         * modules/vsprintf-posix (Depends-on): Likewise.
54848         * doc/functions/fprintf.texi: Update.
54849         * doc/functions/printf.texi: Update.
54850         * doc/functions/snprintf.texi: Update.
54851         * doc/functions/sprintf.texi: Update.
54852         * doc/functions/vfprintf.texi: Update.
54853         * doc/functions/vprintf.texi: Update.
54854         * doc/functions/vsnprintf.texi: Update.
54855         * doc/functions/vsprintf.texi: Update.
54856
54857 2007-11-03  Bruno Haible  <bruno@clisp.org>
54858
54859         * modules/frexp-nolibm-tests: New file.
54860
54861         * modules/frexp-nolibm: New file.
54862         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
54863
54864 2007-11-03  Bruno Haible  <bruno@clisp.org>
54865
54866         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
54867         value is C99 compliant.
54868         Needed for OSF/1 5.1.
54869
54870 2007-11-03  Bruno Haible  <bruno@clisp.org>
54871
54872         Fix out-of-memory handling of vasnprintf.
54873         * lib/printf-parse.c: Include <errno.h>.
54874         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
54875         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
54876         is already set.
54877
54878 2007-11-02  Eric Blake  <ebb9@byu.net>
54879
54880         Fix tests on cygwin.
54881         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
54882
54883 2007-11-01  Bruno Haible  <bruno@clisp.org>
54884
54885         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
54886         warning.
54887         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
54888         needed for POSIX compatibility.
54889
54890 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54891
54892         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
54893         for compatibility with GNU.
54894
54895 2007-11-01  Bruno Haible  <bruno@clisp.org>
54896
54897         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
54898         (putenv): Renamed from rpl_putenv. Change argument type from
54899         'const char *' to 'char *'.
54900         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
54901         of defining putenv in config.h, just set REPLACE_PUTENV.
54902         * modules/putenv (Depends-on): Add stdlib.
54903         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54904         (Include): Use <stdlib.h>.
54905         * lib/stdlib.in.h (putenv): New declaration.
54906         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
54907         REPLACE_PUTENV.
54908         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
54909         REPLACE_PUTENV.
54910         Needed for MacOS X 10.5.0.
54911         Reported by Peter O'Gorman <peter@pogma.com>.
54912
54913 2007-11-01  Jim Meyering  <meyering@redhat.com>
54914
54915         Treat an empty date string exactly like "0".
54916         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
54917         if the remaining date string (to be parsed) is empty, use "0".
54918         Reported by Mischa Molhoek and discussed in this thread:
54919         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
54920
54921 2007-10-31  Bruno Haible  <bruno@clisp.org>
54922
54923         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
54924         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
54925         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
54926         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
54927         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
54928         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
54929
54930 2007-10-31  Bruno Haible  <bruno@clisp.org>
54931
54932         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
54933         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
54934         (AC_TYPE_LONG_LONG_INT): Use it.
54935         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
54936         it as well.
54937         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
54938         to m4/longlong.m4.
54939         * modules/stdint (Files): Remove m4/ulonglong.m4.
54940         * modules/strtoull (Files): Use m4/longlong.m4 instead of
54941         m4/ulonglong.m4.
54942         * modules/strtoumax (Files): Likewise.
54943
54944 2007-10-30  Bruno Haible  <bruno@clisp.org>
54945
54946         * modules/xvasprintf-posix: New file.
54947         Suggested by Eric Blake.
54948
54949 2007-10-30  Bruno Haible  <bruno@clisp.org>
54950
54951         * modules/xprintf-posix-tests: New file.
54952         * tests/test-xprintf-posix.sh: New file.
54953         * tests/test-xprintf-posix.c: New file.
54954         * tests/test-xfprintf-posix.c: New file.
54955
54956         * modules/xprintf-posix: New file.
54957
54958 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54959
54960         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
54961         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
54962         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
54963
54964 2007-10-29  Bruno Haible  <bruno@clisp.org>
54965
54966         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
54967         contain the special marker '_cv_'.
54968         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
54969         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
54970         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
54971         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
54972         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
54973         Reported by Ralf Wildenhues.
54974
54975 2007-10-29  Bruno Haible  <bruno@clisp.org>
54976
54977         * gnulib-tool (func_import): When --lgpl is not specified, set
54978         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
54979         GPLv3.
54980         Reported by Simon Josefsson.
54981
54982 2007-10-28  Bruno Haible  <bruno@clisp.org>
54983
54984         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
54985         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
54986         HAVE_DECL_ISFINITE.
54987         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54988         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
54989         HAVE_DECL_ISFINITE.
54990
54991 2007-10-28  Bruno Haible  <bruno@clisp.org>
54992
54993         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
54994         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
54995
54996 2007-10-28  Bruno Haible  <bruno@clisp.org>
54997
54998         Fix link errors with Sun C 5.0 on Solaris 10.
54999         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
55000         function is declared but not present in the compiler's libm.
55001         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
55002         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
55003         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
55004         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
55005         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
55006         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
55007         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
55008         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
55009         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
55010         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
55011         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
55012         HAVE_DECL_FLOORL.
55013
55014 2007-10-28  Bruno Haible  <bruno@clisp.org>
55015
55016         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
55017         gl_FUNC_FLOORL. Cache the result.
55018         (gl_FUNC_FLOORL): Use it.
55019         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
55020         gl_FUNC_CEILL. Cache the result.
55021         (gl_FUNC_CEILL): Use it.
55022
55023         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
55024         gl_FUNC_FLOOR. Cache the result.
55025         (gl_FUNC_FLOOR): Use it.
55026         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
55027         gl_FUNC_CEIL. Cache the result.
55028         (gl_FUNC_CEIL): Use it.
55029
55030         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
55031         gl_FUNC_FLOORF. Cache the result.
55032         (gl_FUNC_FLOORF): Use it.
55033         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
55034         gl_FUNC_CEILF. Cache the result.
55035         (gl_FUNC_CEILF): Use it.
55036
55037 2007-10-28  Bruno Haible  <bruno@clisp.org>
55038
55039         * gnulib-tool: Allow specifying the LGPL version number through
55040         --lgpl=2 or --lgpl=3.
55041         (func_usage): Document --lgpl with argument.
55042         Handle --lgpl=... arguments.
55043         (func_import): Recognize also gl_LGPL calls with an argument. When
55044         --lgpl=2 is used and the module's license is just LGPL, report an
55045         error. Set sed_transform_lib_file according to the lgpl variable. In
55046         the generated files, use --lgpl or gl_LGPL invocations with argument,
55047         if necessary.
55048         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
55049         an LGPv2+ license.
55050         * doc/gnulib-tool.texi (Modified imports): Update explanation of
55051         gl_LGPL macro.
55052
55053 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55054             Bruno Haible  <bruno@clisp.org>
55055
55056         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
55057         (u16_uctomb_aux): Likewise.
55058         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
55059         !HAVE_INLINE.
55060         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
55061
55062 2007-10-28  Bruno Haible  <bruno@clisp.org>
55063
55064         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
55065         Invoke AM_GETTEXT_OPTION if it exists.
55066         * modules/vasprintf: Likewise.
55067         * modules/verror: Likewise.
55068         * modules/xprintf: Likewise.
55069         * modules/xvasprintf: Likewise.
55070
55071 2007-10-27  Ben Pfaff  <blp@gnu.org>
55072
55073         * lib/math.in.h: Define isfinite macro and prototypes for
55074         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
55075         implementations.
55076         * m4/math_h.m4: New substitutions for isfinite module.
55077         * lib/isfinite.c: New file.
55078         * m4/isfinite.m4: New file.
55079         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
55080         * modules/isfinite: New file.
55081         * modules/isfinite-tests: New file.
55082         * tests/tests-isfinite.c: New file.
55083         * doc/functions/isfinite.texi: Mention isfinite module.
55084         * MODULES.html.sh: Mention new module.
55085
55086 2007-10-27  Ben Pfaff  <blp@gnu.org>
55087
55088         Ralf Wildenhues reported that Tru64 4.0D declares the round
55089         functions but does not have definitions.
55090         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
55091         cannot be found in any library, set the output variable to
55092         "missing" instead of "".
55093         * m4/round.m4: Also use our substitute if we cannot find round in
55094         any library, even if it is declared.
55095         * m4/roundf.m4: Likewise for roundf.
55096         * m4/roundl.m4: Likewise for roundl.
55097         * lib/math.in.h: Undefine roundf, round, roundl before defining
55098         their replacements, to allow for hypothetical systems where these
55099         may be defined as macros but not available in libraries.
55100
55101 2007-10-27  Bruno Haible  <bruno@clisp.org>
55102
55103         * doc/gnulib.texi: Invoke @firstparagraphindent.
55104         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
55105         changes in gnulib.
55106         (Source changes): New section.
55107
55108 2007-10-26  Bruno Haible  <bruno@clisp.org>
55109
55110         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
55111         borrowed from autoconf.
55112
55113 2007-10-26  Bruno Haible  <bruno@clisp.org>
55114
55115         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
55116         strerror returned the empty string. Needed on HP-UX 11.00.
55117
55118 2007-10-24  Micah Cowan  <micah@cowan.name>
55119
55120         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
55121         * build-aux/bootstrap: Remove support for now-unnecessary option,
55122         --cvs-user, and envvars CVS_USER, CVS_RSH.
55123
55124 2007-10-24  Jim Meyering  <meyering@redhat.com>
55125
55126         Avoid diagnostics from sha1sum when there is no cached checksum.
55127         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
55128         if the po.s1 file hasn't been created yet.
55129
55130         * build-aux/bootstrap: Sync from coreutils:
55131         2007-10-24  Jim Meyering  <meyering@redhat.com>
55132         Get gnulib from the git repository, not from an obsolete cvs one.
55133         * build-aux/bootstrap: Suggestion from Micah Cowan.
55134         2007-10-04  Jim Meyering  <jim@meyering.net>
55135         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
55136         (update_po_files): Work also when there are no .po files in po/.
55137
55138 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55139
55140         * README: Append ".git" to git and cg examples.
55141         Problem reported by Benoit Sigoure.
55142
55143 2007-10-23  Micah Cowan  <micah@cowan.name>
55144
55145         * users.txt: Add wget.
55146
55147 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55148
55149         Fix linking of some unistdio tests on FreeBSD.
55150         * modules/unistdio/u16-vsnprintf-tests
55151         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
55152         * modules/unistdio/u16-vsprintf-tests
55153         (test_u16_vsnprintf1_LDADD): Likewise.
55154         * modules/unistdio/u32-vsnprintf-tests
55155         (test_u32_vsnprintf1_LDADD): Likewise.
55156         * modules/unistdio/u32-vsprintf-tests
55157         (test_u32_vsprintf1_LDADD): Likewise.
55158         * modules/unistdio/u8-vsnprintf-tests
55159         (test_u8_vsnprintf1_LDADD): Likewise.
55160         * modules/unistdio/u8-vsprintf-tests
55161         (test_u8_vsprintf1_LDADD): Likewise.
55162         * modules/unistdio/ulc-vsnprintf-tests
55163         (test_ulc_vsnprintf1_LDADD): Likewise.
55164         * modules/unistdio/ulc-vsprintf-tests
55165         (test_ulc_vsprintf1_LDADD): Likewise.
55166
55167         Fix linking of some uniconv tests on FreeBSD.
55168         * modules/uniconv/u16-conv-from-enc-tests
55169         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
55170         * modules/uniconv/u16-conv-to-enc-tests
55171         (test_u16_conv_to_enc_LDADD): Likewise.
55172         * modules/uniconv/u16-strconv-from-enc-tests
55173         (test_u16_strconv_from_enc_LDADD): Likewise.
55174         * modules/uniconv/u16-strconv-to-enc-tests
55175         (test_u16_strconv_to_enc_LDADD): Likewise.
55176         * modules/uniconv/u32-conv-from-enc-tests
55177         (test_u32_conv_from_enc_LDADD): Likewise.
55178         * modules/uniconv/u32-conv-to-enc-tests
55179         (test_u32_conv_to_enc_LDADD): Likewise.
55180         * modules/uniconv/u32-strconv-from-enc-tests
55181         (test_u32_strconv_from_enc_LDADD): Likewise.
55182         * modules/uniconv/u32-strconv-to-enc-tests
55183         (test_u32_strconv_to_enc_LDADD): Likewise.
55184         * modules/uniconv/u8-conv-from-enc-tests
55185         (test_u8_conv_from_enc_LDADD): Likewise.
55186         * modules/uniconv/u8-conv-to-enc-tests
55187         (test_u8_conv_to_enc_LDADD): Likewise.
55188         * modules/uniconv/u8-strconv-from-enc-tests
55189         (test_u8_strconv_from_enc_LDADD): Likewise.
55190         * modules/uniconv/u8-strconv-to-enc-tests
55191         (test_u8_strconv_to_enc_LDADD): Likewise.
55192
55193 2007-10-22  Bruno Haible  <bruno@clisp.org>
55194
55195         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
55196         size.
55197
55198 2007-10-22  Eric Blake  <ebb9@byu.net>
55199
55200         Tweak x*printf documentation.
55201         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
55202         variable name and comments.
55203         Suggested by Bruno Haible.
55204
55205 2007-10-22  Bruno Haible  <bruno@clisp.org>
55206
55207         * lib/acl.c (copy_acl): Fix file name in comment.
55208
55209 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
55210
55211         Fix Tru64 problem with stdbool.h.
55212         * lib/stdbool.in.h (false, true):
55213         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
55214         Don't declare as an enum in this situation; it runs afoul of Tru64.
55215         Problem reported by Steven M. Schweda in
55216         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
55217
55218 2007-10-22  Eric Blake  <ebb9@byu.net>
55219
55220         Also wrap vf?printf.
55221         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
55222         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
55223         (xvprintf, xvfprintf): New functions.
55224
55225 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55226
55227         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
55228         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
55229
55230         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
55231         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
55232
55233 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
55234
55235         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
55236         by Bruno Haible.
55237
55238 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55239
55240         * lib/getloadavg.c
55241         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
55242         Undef `sys' after including sys/table.h, for Tru64 4.0D.
55243
55244         * tests/test-i-ring.c: Work for C89.
55245
55246 2007-10-22  Bruno Haible  <bruno@clisp.org>
55247
55248         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
55249         -1u, in preprocessor expression, so that we don't test for the bug
55250         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
55251         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
55252
55253 2007-10-22  Eric Blake  <ebb9@byu.net>
55254
55255         * tests/test-yesno.sh: Silence stderr during test.
55256
55257 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55258
55259         * modules/crypto/gc-camellia: New file.
55260
55261         * m4/gc-camellia.m4: New file.
55262
55263         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
55264
55265         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
55266
55267 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55268
55269         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
55270         --help to stdout.  Reported by sms@antinode.org (Steven
55271         M. Schweda).
55272
55273 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55274
55275         * users.txt: Fix link to libksba.
55276
55277 2007-10-21  Ben Pfaff  <blp@gnu.org>
55278
55279         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
55280         round.c roundf implementation that depends on floorf and ceilf to
55281         be tested unconditionally.
55282
55283 2007-10-21  Ben Pfaff  <blp@gnu.org>
55284
55285         * m4/check-libm-func.m4: Removed.
55286         * m4/check-math-lib.m4: New file.
55287         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
55288         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
55289         definition and lack of AC_LIBOBJ([roundf]).
55290         * m4/roundl.m4: Ditto, and similarly for roundl.
55291         * modules/round: Reference new m4 file.
55292         * modules/roundf: Ditto.
55293         * modules/roundl: Ditto.
55294         * tests/test-round2.c (main): Use ROUND instead of round.
55295         Bug report from Bruno Haible.
55296
55297 2007-10-21  Bruno Haible  <bruno@clisp.org>
55298
55299         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
55300         context.
55301
55302 2007-10-21  Bruno Haible  <bruno@clisp.org>
55303
55304         * tests/test-wcwidth.c (main): Allow negative result for some control
55305         characters.
55306
55307         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
55308         Needed on OSF/1 5.1.
55309
55310 2007-10-21  Bruno Haible  <bruno@clisp.org>
55311
55312         * tests/test-floorf1.c: Include isnanf.h.
55313         (main): Use isnanf() instead of isnan().
55314         * tests/test-ceilf1.c: Include isnanf.h.
55315         (main): Use isnanf() instead of isnan().
55316         * tests/test-truncf1.c: Include isnanf.h.
55317         (main): Use isnanf() instead of isnan().
55318         * tests/test-roundf1.c: Include isnanf.h.
55319         (main): Use isnanf() instead of isnan().
55320
55321 2007-10-21  Eric Blake  <ebb9@byu.net>
55322
55323         * users.txt: Update URL for m4.
55324
55325 2007-10-21  Bruno Haible  <bruno@clisp.org>
55326
55327         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
55328
55329 2007-10-21  Bruno Haible  <bruno@clisp.org>
55330
55331         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
55332         Git's management files if the CVS files are not present.
55333
55334 2007-10-20  Bruno Haible  <bruno@clisp.org>
55335
55336         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
55337         gcc-3.4.x.
55338
55339 2007-10-20  Ben Pfaff  <blp@gnu.org>
55340
55341         * lib/math.in.h: Declare round, roundf, roundl if we are providing
55342         implementations.
55343         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
55344         * lib/round.c: New file.
55345         * lib/roundf.c: New file.
55346         * lib/roundl.c: New file.
55347         * m4/round.m4: New file.
55348         * m4/roundf.m4: New file.
55349         * m4/roundl.m4: New file.
55350         * m4/check-libm-func-m4: New file.
55351         * modules/math: Replace round, roundf, roundl related @VARS@ in
55352         math.in.h.
55353         * modules/round: New file.
55354         * modules/round-tests: New file.
55355         * modules/roundf: New file.
55356         * modules/roundf-tests: New file.
55357         * modules/roundl: New file.
55358         * modules/roundl-tests: New file.
55359         * tests/test-round1.c: New file.
55360         * tests/test-round2.c: New file.
55361         * tests/test-roundf1.c: New file.
55362         * tests/test-roundf2.c: New file.
55363         * tests/test-roundl.c: New file.
55364         * doc/functions/round.texi: Mention round module.
55365         * doc/functions/roundf.texi: Mention roundf module.
55366         * doc/functions/roundl.texi: Mention roundl module.
55367         * MODULES.html.sh: Mention new modules.
55368         Thanks to Bruno Haible for suggestions.
55369
55370 2007-10-20  Jim Meyering  <meyering@redhat.com>
55371
55372         * lib/xprintf.c: Include <config.h> unconditionally.
55373
55374         Change xprintf's license to GPL.
55375         * modules/xprintf (License): s/LGPL/GPL/, since this module
55376         depends on modules (exit and exitfail) which are GPL.
55377         Suggestion from Bruno Haible.
55378
55379         xprintf fixes.
55380         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
55381         Use a clearer diagnostic.
55382         Patch from Bruno Haible.
55383
55384 2007-10-20  Bruno Haible  <bruno@clisp.org>
55385
55386         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
55387         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
55388         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55389
55390 2007-10-20  Bruno Haible  <bruno@clisp.org>
55391
55392         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
55393         precision in the comparison result > x - 1 or similar.
55394         * tests/test-ceilf2.c (correct_result_p): Likewise.
55395         * tests/test-truncf2.c (correct_result_p): Likewise.
55396         * tests/test-trunc2.c (correct_result_p): Likewise.
55397         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55398
55399 2007-10-20  Bruno Haible  <bruno@clisp.org>
55400
55401         * modules/ceil: New file.
55402         * m4/ceil.m4: New file.
55403         * doc/functions/ceil.texi: Mention the 'ceil' module.
55404
55405 2007-10-20  Bruno Haible  <bruno@clisp.org>
55406
55407         * modules/floor: New file.
55408         * m4/floor.m4: New file.
55409         * doc/functions/floor.texi: Mention the 'floor' module.
55410
55411 2007-10-20  Bruno Haible  <bruno@clisp.org>
55412
55413         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
55414         of %a.
55415         * modules/floorf-tests (Depends-on): Likewise.
55416         * modules/truncf-tests (Depends-on): Likewise.
55417         * modules/trunc-tests (Depends-on): Likewise.
55418         Reported by Ben Pfaff.
55419
55420 2007-10-19  Jim Meyering  <meyering@redhat.com>
55421
55422         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
55423         Don't bother testing specific errno values.  Just test ferror.
55424
55425         New module: xprintf
55426         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
55427
55428 2007-10-19  Bruno Haible  <bruno@clisp.org>
55429
55430         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
55431         syntax.
55432         * modules/javaexec (Makefile.am): Likewise.
55433         * modules/relocatable-prog (Makefile.am): Likewise.
55434         Suggested by Jim Meyering.
55435
55436 2007-10-18  Bruno Haible  <bruno@clisp.org>
55437
55438         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
55439         Reported by Jim Meyering.
55440
55441 2007-10-18  Eric Blake  <ebb9@byu.net>
55442
55443         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
55444
55445 2007-10-18  Bruno Haible  <bruno@clisp.org>
55446
55447         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
55448         the format string into writable memory. Needed in Fortify conditions.
55449
55450 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
55451             Bruno Haible  <bruno@clisp.org>
55452
55453         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
55454         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
55455         * modules/trim (Depends-on): Add mbchar.
55456         (configure.ac): Add gl_FUNC_MBRTOWC.
55457         (Makefile.am): Augment lib_SOURCES.
55458
55459 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
55460
55461         Modify glob.c to use fstatat and dirfd, to simplify it.
55462         Suggested by Eric Blake.
55463         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
55464         Don't include <stdbool.h>; not used.
55465         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
55466         (link_exists_p): Simplify implementation, since we can now assume
55467         dirfd and fstatat.
55468         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
55469
55470 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55471
55472         * gnulib-tool (func_get_dependencies): Fix sed script to
55473         match only tests.
55474
55475 2007-10-17  Bruno Haible  <bruno@clisp.org>
55476
55477         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
55478         allow locale names without encoding suffix.
55479         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
55480         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
55481
55482 2007-10-16  Bruno Haible  <bruno@clisp.org>
55483
55484         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
55485         * lib/getgroups.c (getgroups): Likewise.
55486         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
55487
55488 2007-10-16  Bruno Haible  <bruno@clisp.org>
55489
55490         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
55491         * modules/malloc-posix (License): Likewise.
55492         * modules/realloc-posix (License): Likewise.
55493         * modules/calloc-posix (License): Likewise.
55494         * modules/intprops (License): Change from GPL to LGPL, with
55495         Paul Eggert's approval.
55496
55497 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55498
55499         Merge glibc changes into lib/glob.c.
55500
55501         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
55502         2007-10-15 04:59:03 UTC.  Here are the changes:
55503
55504         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
55505
55506         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
55507
55508         * lib/glob.c: Add some branch prediction throughout.
55509
55510         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
55511
55512         [BZ #5103]
55513         * lib/glob.c (glob): Recognize patterns starting \/.
55514
55515         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
55516
55517         [BZ #3996]
55518         * lib/glob.c (attribute_hidden): Define if not defined.
55519         (glob): Unescape dirname, filename or username when needed and not
55520         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
55521         is NULL.  Handle unescaped [ in pattern without closing ].
55522         Don't pass GLOB_CHECK down to recursive glob for directories.
55523         (__glob_pattern_type): New function.
55524         (__glob_pattern_p): Implement using __glob_pattern_type.
55525         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
55526         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
55527         Remove unreachable code.
55528
55529         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
55530
55531         * lib/glob.c (glob_in_dir): Add some comments and asserts to
55532         explain why there are no leaks.
55533
55534         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
55535
55536         [BZ #3253]
55537         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
55538         time, rather allocate increasingly bigger arrays of pointers, if
55539         possible with alloca, if too large with malloc.
55540
55541 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55542
55543         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
55544         Problem reported by H.Merijn Brand in
55545         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
55546         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
55547         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
55548
55549 2007-10-15  Bruno Haible  <bruno@clisp.org>
55550
55551         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
55552         with explicit rpl_ prefix.
55553         * lib/fopen.c (fopen): Likewise.
55554         * lib/freopen.c (freopen): Likewise.
55555         * lib/iconv.c (iconv): Likewise.
55556         * lib/iconv_close.c (iconv_close): Likewise.
55557
55558 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55559
55560         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
55561
55562 2007-10-15  Bruno Haible  <bruno@clisp.org>
55563
55564         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
55565         <stddef.h> instead of <stdlib.h> since we only need NULL.
55566         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55567
55568 2007-10-15  Bruno Haible  <bruno@clisp.org>
55569
55570         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
55571         Replace paragraph talking about LIBOBJS.
55572         Reported by Colin Watson <cjwatson@debian.org>.
55573
55574 2007-10-15  Bruno Haible  <bruno@clisp.org>
55575
55576         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
55577         <stdlib.h> before using NULL.
55578
55579 2007-10-15  Simon Josefsson  <simon@josefsson.org>
55580
55581         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
55582         Reported by Albert Chin <china@thewrittenword.com>.
55583
55584 2007-10-14  Bruno Haible  <bruno@clisp.org>
55585
55586         * modules/iconv_open-utf-tests: New file.
55587         * tests/test-iconv-utf.c: New file.
55588
55589         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
55590         * modules/iconv_open-utf: New file.
55591         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
55592         (iconv, iconv_close): New declarations.
55593         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
55594         be defined.
55595         (iconv_open): Add special handling of conversion between UTF-8 and
55596         UTF-{16,32}{BE,LE}.
55597         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
55598         * lib/iconv_close.c: New file.
55599         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
55600         gl_FUNC_ICONV_OPEN.
55601         (gl_FUNC_ICONV_OPEN): Use it.
55602         (gl_FUNC_ICONV_OPEN_UTF): New macro.
55603         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
55604         and REPLACE_ICONV_UTF.
55605         * modules/iconv_open (Depends-on): Add c-strcase.
55606         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
55607         ICONV_CONST.
55608         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
55609
55610 2007-10-13  Albert Chin  <china@thewrittenword.com>
55611             Bruno Haible  <bruno@clisp.org>
55612
55613         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
55614         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
55615
55616 2007-10-13  Bruno Haible  <bruno@clisp.org>
55617
55618         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
55619         defined, use the ISO C99 inline semantics.
55620         * lib/argp.h (ARGP_EI): Likewise.
55621
55622 2007-10-13  Bruno Haible  <bruno@clisp.org>
55623
55624         Handle 'inline' change in gcc 4.3.0.
55625         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
55626         argp_fmtstream_write, argp_fmtstream_set_lmargin,
55627         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
55628         argp_fmtstream_point): Disable 'extern' declaration if the function
55629         definition is going to be provided inline.
55630         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
55631         semantics, not the ISO C99 inline semantics.
55632         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
55633         'extern' declaration if the function definition is going to be provided
55634         inline.
55635         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
55636         the GNU C inline semantics, not the ISO C99 inline semantics. With
55637         GCC 4.2, avoid a warning.
55638
55639 2007-10-13  Bruno Haible  <bruno@clisp.org>
55640
55641         * lib/freading.h (freading): Enable the use of __freading for
55642         glibc >= 2.7.
55643         * lib/freading.c (freading): Likewise.
55644
55645 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
55646
55647         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
55648         "warning: C99 inline functions are not supported; using GNU89".
55649
55650 2007-10-12  Bruno Haible  <bruno@clisp.org>
55651
55652         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
55653         of 2.
55654         * tests/test-ceilf2.c: New file.
55655         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
55656
55657         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
55658         * modules/ceilf-tests: Update.
55659
55660 2007-10-12  Bruno Haible  <bruno@clisp.org>
55661
55662         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
55663         of 2.
55664         * tests/test-floorf2.c: New file.
55665         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
55666
55667         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
55668         * modules/floorf-tests: Update.
55669
55670 2007-10-12  Bruno Haible  <bruno@clisp.org>
55671
55672         * tests/test-trunc2.c: New file.
55673         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
55674
55675         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
55676         * modules/trunc-tests: Update.
55677
55678 2007-10-12  Bruno Haible  <bruno@clisp.org>
55679
55680         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
55681         of 2.
55682         * tests/test-truncf2.c: New file.
55683         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
55684
55685         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
55686         * modules/truncf-tests: Update.
55687
55688 2007-10-11  Eric Blake  <ebb9@byu.net>
55689
55690         Don't claim strerror is broken on Interix.
55691         * doc/functions/strerror.texi (strerror): Known broken systems are
55692         now Solaris 8, and not Interix.
55693         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
55694         Interix on cross-compile.
55695         Reported by Martin Koeppe in
55696         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
55697
55698 2007-10-11  Bruno Haible  <bruno@clisp.org>
55699
55700         * modules/i-ring-tests: New file.
55701         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
55702         instead of assert.
55703
55704 2007-10-11  Bruno Haible  <bruno@clisp.org>
55705
55706         * modules/filenamecat-tests: New file.
55707         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
55708         * lib/filenamecat.c: Remove test code.
55709
55710 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
55711
55712         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
55713
55714         * lib/strerror.c: Include <string.h> always, to test interface,
55715         and to remove the need for the dummy.
55716         Include intprops.h to compute width instead of doing it ourselves
55717         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
55718         (strerror): Define it to return NULL if there's no system strerror.
55719         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
55720         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
55721         ancient pre-strerror Unix systems well any more.  Saying "unknown
55722         system error" is enough.
55723         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
55724         simpler strerror.c implementation.
55725         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
55726         Simplify the tests to reflect the simpler strerror implementation.
55727         * modules/strerror (Depends-on): Add intprops.
55728
55729 2007-10-09  Eric Blake  <ebb9@byu.net>
55730
55731         Silence test-fpending.
55732         * modules/fpending-tests (Files): Add wrapper script.
55733         * tests/test-fpending.sh: New file.
55734
55735 2007-10-09  Bruno Haible  <bruno@clisp.org>
55736
55737         * MODULES.html.sh (func_module): Don't create a hyperlink for
55738         function names like 'printf_frexp'.
55739         (Misc): Add crc, memxor.
55740         (Characteristics of floating types): New section.
55741         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
55742         isnanf-nolibm, signbit, trunc, truncf, truncl.
55743         (Enhancements for ISO C 99 functions): New subsection Input/output.
55744         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
55745         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
55746         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
55747         (Compatibility checks for POSIX:2001 functions): Add clock-time.
55748         (Enhancements for POSIX:2001 functions): Add chdir-long.
55749         (File system functions): Add areadlink, chdir-safer, read-file.
55750         Remove cycle-check.
55751         (File system as inode set): New section.
55752         (Date and time): Add gethrxtime.
55753         (Multithreading): Add openmp.
55754         (Internationalization functions): Add localename.
55755         (Unicode string functions): Add unistr/u*-mbsnlen.
55756         (Support for maintaining and releasing projects): Add git-version-gen.
55757         (Lone files): Remove directories.
55758
55759 2007-10-08  Ben Pfaff  <blp@gnu.org>
55760
55761         * lib/xmalloca.h: Fix typo in comment.
55762
55763 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55764
55765         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
55766         when avoiding problems with integer overflow.  Use a portable test
55767         instead.
55768
55769 2007-10-08  Simon Josefsson  <simon@josefsson.org>
55770
55771         * modules/dummy (License): Change to LGPLv2+.
55772         * modules/float (License): Likewise
55773         * modules/realloc (License): Likewise
55774         * modules/stdlib (License): Likewise
55775
55776 2007-10-07  Bruno Haible  <bruno@clisp.org>
55777
55778         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
55779         * floor.c (TWO_MANT_DIG): Likewise.
55780         * ceil.c (TWO_MANT_DIG): Likewise.
55781         Reported by Ben Pfaff.
55782
55783 2007-10-07  Bruno Haible  <bruno@clisp.org>
55784
55785         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
55786         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
55787         * lib/frexp.c (FUNC): Likewise.
55788         * lib/printf-frexp.h (printf_frexp): Likewise.
55789         * lib/printf-frexpl.h (printf_frexpl): Likewise.
55790         * lib/printf-frexp.c (FUNC): Likewise.
55791         Suggested by Jim Meyering.
55792
55793 2007-10-07  Jim Meyering  <meyering@redhat.com>
55794
55795         Make xnanosleep's integer overflow test more robust.
55796         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
55797         so that gcc-4.3.0 doesn't optimize away this test for overflow.
55798
55799 2007-10-07  Bruno Haible  <bruno@clisp.org>
55800
55801         * NEWS: Mention the license change.
55802
55803         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
55804         abbreviations in the modules files.
55805
55806         Change copyright notice from GPLv2+ to GPLv3+.
55807         * README: Change copyright notice.
55808         * MODULES.html.sh: Likewise.
55809         * build-aux/bootstrap.conf: Likewise.
55810         * build-aux/config.libpath: Likewise.
55811         * build-aux/csharpcomp.sh.in: Likewise.
55812         * build-aux/csharpexec.sh.in: Likewise.
55813         * build-aux/install-reloc: Likewise.
55814         * build-aux/javacomp.sh.in: Likewise.
55815         * build-aux/javaexec.sh.in: Likewise.
55816         * build-aux/ldd.sh.in: Likewise.
55817         * build-aux/reloc-ldflags: Likewise.
55818         * build-aux/relocatable.sh.in: Likewise.
55819         * build-aux/x-to-1.in: Likewise.
55820         * check-module: Likewise.
55821         * config/srclistvars.sh: Likewise.
55822         * gnulib-tool: Likewise.
55823         * lib/acl-internal.h: Likewise.
55824         * lib/acl.c: Likewise.
55825         * lib/acl.h: Likewise.
55826         * lib/acl_entries.c: Likewise.
55827         * lib/areadlink-with-size.c: Likewise.
55828         * lib/areadlink.c: Likewise.
55829         * lib/areadlink.h: Likewise.
55830         * lib/argmatch.c: Likewise.
55831         * lib/argmatch.h: Likewise.
55832         * lib/argp-ba.c: Likewise.
55833         * lib/argp-eexst.c: Likewise.
55834         * lib/argp-fmtstream.c: Likewise.
55835         * lib/argp-fmtstream.h: Likewise.
55836         * lib/argp-fs-xinl.c: Likewise.
55837         * lib/argp-help.c: Likewise.
55838         * lib/argp-namefrob.h: Likewise.
55839         * lib/argp-parse.c: Likewise.
55840         * lib/argp-pin.c: Likewise.
55841         * lib/argp-pv.c: Likewise.
55842         * lib/argp-pvh.c: Likewise.
55843         * lib/argp-xinl.c: Likewise.
55844         * lib/argp.h: Likewise.
55845         * lib/at-func.c: Likewise.
55846         * lib/atanl.c: Likewise.
55847         * lib/backupfile.c: Likewise.
55848         * lib/backupfile.h: Likewise.
55849         * lib/basename.c: Likewise.
55850         * lib/binary-io.h: Likewise.
55851         * lib/byteswap.in.h: Likewise.
55852         * lib/c-stack.c: Likewise.
55853         * lib/c-stack.h: Likewise.
55854         * lib/c-strcasestr.c: Likewise.
55855         * lib/c-strcasestr.h: Likewise.
55856         * lib/c-strstr.c: Likewise.
55857         * lib/c-strstr.h: Likewise.
55858         * lib/c-strtod.c: Likewise.
55859         * lib/calloc.c: Likewise.
55860         * lib/canon-host.c: Likewise.
55861         * lib/canon-host.h: Likewise.
55862         * lib/canonicalize-lgpl.c: Likewise.
55863         * lib/canonicalize.c: Likewise.
55864         * lib/canonicalize.h: Likewise.
55865         * lib/ceil.c: Likewise.
55866         * lib/ceilf.c: Likewise.
55867         * lib/ceill.c: Likewise.
55868         * lib/chdir-long.c: Likewise.
55869         * lib/chdir-long.h: Likewise.
55870         * lib/chdir-safer.c: Likewise.
55871         * lib/chdir-safer.h: Likewise.
55872         * lib/chown.c: Likewise.
55873         * lib/classpath.c: Likewise.
55874         * lib/classpath.h: Likewise.
55875         * lib/clean-temp.c: Likewise.
55876         * lib/clean-temp.h: Likewise.
55877         * lib/cloexec.c: Likewise.
55878         * lib/close-stream.c: Likewise.
55879         * lib/closein.c: Likewise.
55880         * lib/closein.h: Likewise.
55881         * lib/closeout.c: Likewise.
55882         * lib/closeout.h: Likewise.
55883         * lib/concat-filename.c: Likewise.
55884         * lib/copy-file.c: Likewise.
55885         * lib/copy-file.h: Likewise.
55886         * lib/count-one-bits.h: Likewise.
55887         * lib/crc.c: Likewise.
55888         * lib/crc.h: Likewise.
55889         * lib/creat-safer.c: Likewise.
55890         * lib/csharpcomp.c: Likewise.
55891         * lib/csharpcomp.h: Likewise.
55892         * lib/csharpexec.c: Likewise.
55893         * lib/csharpexec.h: Likewise.
55894         * lib/cycle-check.c: Likewise.
55895         * lib/cycle-check.h: Likewise.
55896         * lib/diacrit.c: Likewise.
55897         * lib/diacrit.h: Likewise.
55898         * lib/diffseq.h: Likewise.
55899         * lib/dirchownmod.c: Likewise.
55900         * lib/dirent.in.h: Likewise.
55901         * lib/dirfd.c: Likewise.
55902         * lib/dirfd.h: Likewise.
55903         * lib/dirname.c: Likewise.
55904         * lib/dirname.h: Likewise.
55905         * lib/dummy.c: Likewise.
55906         * lib/dup-safer.c: Likewise.
55907         * lib/dup2.c: Likewise.
55908         * lib/eealloc.h: Likewise.
55909         * lib/error.c: Likewise.
55910         * lib/error.h: Likewise.
55911         * lib/euidaccess.c: Likewise.
55912         * lib/exclude.c: Likewise.
55913         * lib/exclude.h: Likewise.
55914         * lib/execute.c: Likewise.
55915         * lib/execute.h: Likewise.
55916         * lib/exitfail.c: Likewise.
55917         * lib/exitfail.h: Likewise.
55918         * lib/expl.c: Likewise.
55919         * lib/fatal-signal.c: Likewise.
55920         * lib/fatal-signal.h: Likewise.
55921         * lib/fbufmode.c: Likewise.
55922         * lib/fbufmode.h: Likewise.
55923         * lib/fchdir.c: Likewise.
55924         * lib/fchmodat.c: Likewise.
55925         * lib/fchownat.c: Likewise.
55926         * lib/fcntl--.h: Likewise.
55927         * lib/fcntl-safer.h: Likewise.
55928         * lib/fcntl.in.h: Likewise.
55929         * lib/fd-safer.c: Likewise.
55930         * lib/fflush.c: Likewise.
55931         * lib/file-has-acl.c: Likewise.
55932         * lib/file-set.c: Likewise.
55933         * lib/file-type.c: Likewise.
55934         * lib/file-type.h: Likewise.
55935         * lib/fileblocks.c: Likewise.
55936         * lib/filemode.c: Likewise.
55937         * lib/filemode.h: Likewise.
55938         * lib/filename.h: Likewise.
55939         * lib/filenamecat.c: Likewise.
55940         * lib/filenamecat.h: Likewise.
55941         * lib/findprog.c: Likewise.
55942         * lib/findprog.h: Likewise.
55943         * lib/float.in.h: Likewise.
55944         * lib/floor.c: Likewise.
55945         * lib/floorf.c: Likewise.
55946         * lib/floorl.c: Likewise.
55947         * lib/fopen-safer.c: Likewise.
55948         * lib/fopen.c: Likewise.
55949         * lib/fpending.c: Likewise.
55950         * lib/fpending.h: Likewise.
55951         * lib/fprintf.c: Likewise.
55952         * lib/fprintftime.h: Likewise.
55953         * lib/fpucw.h: Likewise.
55954         * lib/fpurge.c: Likewise.
55955         * lib/fpurge.h: Likewise.
55956         * lib/freadable.c: Likewise.
55957         * lib/freadable.h: Likewise.
55958         * lib/freadahead.c: Likewise.
55959         * lib/freadahead.h: Likewise.
55960         * lib/freading.c: Likewise.
55961         * lib/freading.h: Likewise.
55962         * lib/free.c: Likewise.
55963         * lib/freopen.c: Likewise.
55964         * lib/frexp.c: Likewise.
55965         * lib/frexpl.c: Likewise.
55966         * lib/fseek.c: Likewise.
55967         * lib/fseterr.c: Likewise.
55968         * lib/fseterr.h: Likewise.
55969         * lib/fstatat.c: Likewise.
55970         * lib/fstrcmp.c: Likewise.
55971         * lib/fstrcmp.h: Likewise.
55972         * lib/fsusage.c: Likewise.
55973         * lib/fsusage.h: Likewise.
55974         * lib/ftell.c: Likewise.
55975         * lib/ftello.c: Likewise.
55976         * lib/fts-cycle.c: Likewise.
55977         * lib/fts.c: Likewise.
55978         * lib/fts_.h: Likewise.
55979         * lib/full-read.c: Likewise.
55980         * lib/full-read.h: Likewise.
55981         * lib/full-write.c: Likewise.
55982         * lib/full-write.h: Likewise.
55983         * lib/fwritable.c: Likewise.
55984         * lib/fwritable.h: Likewise.
55985         * lib/fwriteerror.c: Likewise.
55986         * lib/fwriteerror.h: Likewise.
55987         * lib/fwriting.c: Likewise.
55988         * lib/fwriting.h: Likewise.
55989         * lib/gcd.c: Likewise.
55990         * lib/gcd.h: Likewise.
55991         * lib/getcwd.c: Likewise.
55992         * lib/getdate.h: Likewise.
55993         * lib/getdate.y: Likewise.
55994         * lib/getdomainname.c: Likewise.
55995         * lib/getdomainname.h: Likewise.
55996         * lib/getgroups.c: Likewise.
55997         * lib/gethostname.c: Likewise.
55998         * lib/gethrxtime.c: Likewise.
55999         * lib/gethrxtime.h: Likewise.
56000         * lib/getloadavg.c: Likewise.
56001         * lib/getndelim2.c: Likewise.
56002         * lib/getndelim2.h: Likewise.
56003         * lib/getnline.c: Likewise.
56004         * lib/getnline.h: Likewise.
56005         * lib/getopt.c: Likewise.
56006         * lib/getopt.in.h: Likewise.
56007         * lib/getopt1.c: Likewise.
56008         * lib/getopt_int.h: Likewise.
56009         * lib/getpagesize.h: Likewise.
56010         * lib/getsubopt.c: Likewise.
56011         * lib/gettime.c: Likewise.
56012         * lib/getugroups.c: Likewise.
56013         * lib/getugroups.h: Likewise.
56014         * lib/getusershell.c: Likewise.
56015         * lib/gl_anyavltree_list1.h: Likewise.
56016         * lib/gl_anyavltree_list2.h: Likewise.
56017         * lib/gl_anyhash_list1.h: Likewise.
56018         * lib/gl_anyhash_list2.h: Likewise.
56019         * lib/gl_anylinked_list1.h: Likewise.
56020         * lib/gl_anylinked_list2.h: Likewise.
56021         * lib/gl_anyrbtree_list1.h: Likewise.
56022         * lib/gl_anyrbtree_list2.h: Likewise.
56023         * lib/gl_anytree_list1.h: Likewise.
56024         * lib/gl_anytree_list2.h: Likewise.
56025         * lib/gl_anytree_oset.h: Likewise.
56026         * lib/gl_anytreehash_list1.h: Likewise.
56027         * lib/gl_anytreehash_list2.h: Likewise.
56028         * lib/gl_array_list.c: Likewise.
56029         * lib/gl_array_list.h: Likewise.
56030         * lib/gl_array_oset.c: Likewise.
56031         * lib/gl_array_oset.h: Likewise.
56032         * lib/gl_avltree_list.c: Likewise.
56033         * lib/gl_avltree_list.h: Likewise.
56034         * lib/gl_avltree_oset.c: Likewise.
56035         * lib/gl_avltree_oset.h: Likewise.
56036         * lib/gl_avltreehash_list.c: Likewise.
56037         * lib/gl_avltreehash_list.h: Likewise.
56038         * lib/gl_carray_list.c: Likewise.
56039         * lib/gl_carray_list.h: Likewise.
56040         * lib/gl_linked_list.c: Likewise.
56041         * lib/gl_linked_list.h: Likewise.
56042         * lib/gl_linkedhash_list.c: Likewise.
56043         * lib/gl_linkedhash_list.h: Likewise.
56044         * lib/gl_list.c: Likewise.
56045         * lib/gl_list.h: Likewise.
56046         * lib/gl_oset.c: Likewise.
56047         * lib/gl_oset.h: Likewise.
56048         * lib/gl_rbtree_list.c: Likewise.
56049         * lib/gl_rbtree_list.h: Likewise.
56050         * lib/gl_rbtree_oset.c: Likewise.
56051         * lib/gl_rbtree_oset.h: Likewise.
56052         * lib/gl_rbtreehash_list.c: Likewise.
56053         * lib/gl_rbtreehash_list.h: Likewise.
56054         * lib/gl_sublist.c: Likewise.
56055         * lib/gl_sublist.h: Likewise.
56056         * lib/group-member.c: Likewise.
56057         * lib/group-member.h: Likewise.
56058         * lib/hard-locale.c: Likewise.
56059         * lib/hard-locale.h: Likewise.
56060         * lib/hash-pjw.c: Likewise.
56061         * lib/hash-pjw.h: Likewise.
56062         * lib/hash-triple.c: Likewise.
56063         * lib/hash.c: Likewise.
56064         * lib/hash.h: Likewise.
56065         * lib/human.c: Likewise.
56066         * lib/human.h: Likewise.
56067         * lib/i-ring.c: Likewise.
56068         * lib/i-ring.h: Likewise.
56069         * lib/idcache.c: Likewise.
56070         * lib/imaxabs.c: Likewise.
56071         * lib/imaxdiv.c: Likewise.
56072         * lib/inet_pton.c: Likewise.
56073         * lib/inet_pton.h: Likewise.
56074         * lib/intprops.h: Likewise.
56075         * lib/inttostr.c: Likewise.
56076         * lib/inttostr.h: Likewise.
56077         * lib/inttypes.in.h: Likewise.
56078         * lib/isapipe.c: Likewise.
56079         * lib/isdir.c: Likewise.
56080         * lib/isnan.c: Likewise.
56081         * lib/isnan.h: Likewise.
56082         * lib/isnanf.c: Likewise.
56083         * lib/isnanf.h: Likewise.
56084         * lib/isnanl-nolibm.h: Likewise.
56085         * lib/isnanl.c: Likewise.
56086         * lib/isnanl.h: Likewise.
56087         * lib/javacomp.c: Likewise.
56088         * lib/javacomp.h: Likewise.
56089         * lib/javaexec.c: Likewise.
56090         * lib/javaexec.h: Likewise.
56091         * lib/javaversion.c: Likewise.
56092         * lib/javaversion.h: Likewise.
56093         * lib/javaversion.java: Likewise.
56094         * lib/lbrkprop.h: Likewise.
56095         * lib/lchmod.h: Likewise.
56096         * lib/lchown.c: Likewise.
56097         * lib/ldexpl.c: Likewise.
56098         * lib/linebreak.c: Likewise.
56099         * lib/linebreak.h: Likewise.
56100         * lib/linebuffer.c: Likewise.
56101         * lib/linebuffer.h: Likewise.
56102         * lib/locale.in.h: Likewise.
56103         * lib/logl.c: Likewise.
56104         * lib/long-options.c: Likewise.
56105         * lib/long-options.h: Likewise.
56106         * lib/lstat.c: Likewise.
56107         * lib/lstat.h: Likewise.
56108         * lib/math.in.h: Likewise.
56109         * lib/mbchar.c: Likewise.
56110         * lib/mbchar.h: Likewise.
56111         * lib/mbfile.h: Likewise.
56112         * lib/mbiter.h: Likewise.
56113         * lib/mbscasecmp.c: Likewise.
56114         * lib/mbscasestr.c: Likewise.
56115         * lib/mbschr.c: Likewise.
56116         * lib/mbscspn.c: Likewise.
56117         * lib/mbslen.c: Likewise.
56118         * lib/mbsncasecmp.c: Likewise.
56119         * lib/mbsnlen.c: Likewise.
56120         * lib/mbspbrk.c: Likewise.
56121         * lib/mbspcasecmp.c: Likewise.
56122         * lib/mbsrchr.c: Likewise.
56123         * lib/mbssep.c: Likewise.
56124         * lib/mbsspn.c: Likewise.
56125         * lib/mbsstr.c: Likewise.
56126         * lib/mbstok_r.c: Likewise.
56127         * lib/mbswidth.c: Likewise.
56128         * lib/mbswidth.h: Likewise.
56129         * lib/mbuiter.h: Likewise.
56130         * lib/memcasecmp.c: Likewise.
56131         * lib/memcasecmp.h: Likewise.
56132         * lib/memchr.c: Likewise.
56133         * lib/memcmp.c: Likewise.
56134         * lib/memcoll.c: Likewise.
56135         * lib/memcoll.h: Likewise.
56136         * lib/memcpy.c: Likewise.
56137         * lib/memrchr.c: Likewise.
56138         * lib/mkancesdirs.c: Likewise.
56139         * lib/mkdir-p.c: Likewise.
56140         * lib/mkdir-p.h: Likewise.
56141         * lib/mkdir.c: Likewise.
56142         * lib/mkdirat.c: Likewise.
56143         * lib/mkdtemp.c: Likewise.
56144         * lib/mkstemp-safer.c: Likewise.
56145         * lib/mkstemp.c: Likewise.
56146         * lib/modechange.c: Likewise.
56147         * lib/modechange.h: Likewise.
56148         * lib/mountlist.c: Likewise.
56149         * lib/mountlist.h: Likewise.
56150         * lib/mpsort.c: Likewise.
56151         * lib/nanosleep.c: Likewise.
56152         * lib/obstack.c: Likewise.
56153         * lib/obstack.h: Likewise.
56154         * lib/open-safer.c: Likewise.
56155         * lib/open.c: Likewise.
56156         * lib/openat-die.c: Likewise.
56157         * lib/openat-priv.h: Likewise.
56158         * lib/openat-proc.c: Likewise.
56159         * lib/openat.c: Likewise.
56160         * lib/openat.h: Likewise.
56161         * lib/pagealign_alloc.c: Likewise.
56162         * lib/pagealign_alloc.h: Likewise.
56163         * lib/physmem.c: Likewise.
56164         * lib/physmem.h: Likewise.
56165         * lib/pipe-safer.c: Likewise.
56166         * lib/pipe.c: Likewise.
56167         * lib/pipe.h: Likewise.
56168         * lib/posixtm.c: Likewise.
56169         * lib/posixtm.h: Likewise.
56170         * lib/posixver.c: Likewise.
56171         * lib/printf-frexp.c: Likewise.
56172         * lib/printf-frexp.h: Likewise.
56173         * lib/printf-frexpl.c: Likewise.
56174         * lib/printf-frexpl.h: Likewise.
56175         * lib/printf.c: Likewise.
56176         * lib/progname.c: Likewise.
56177         * lib/progname.h: Likewise.
56178         * lib/progreloc.c: Likewise.
56179         * lib/putenv.c: Likewise.
56180         * lib/quote.c: Likewise.
56181         * lib/quote.h: Likewise.
56182         * lib/quotearg.c: Likewise.
56183         * lib/quotearg.h: Likewise.
56184         * lib/raise.c: Likewise.
56185         * lib/readline.c: Likewise.
56186         * lib/readline.h: Likewise.
56187         * lib/readlink.c: Likewise.
56188         * lib/readtokens.c: Likewise.
56189         * lib/readtokens.h: Likewise.
56190         * lib/readtokens0.c: Likewise.
56191         * lib/readtokens0.h: Likewise.
56192         * lib/readutmp.c: Likewise.
56193         * lib/readutmp.h: Likewise.
56194         * lib/realloc.c: Likewise.
56195         * lib/relocwrapper.c: Likewise.
56196         * lib/rename-dest-slash.c: Likewise.
56197         * lib/rename.c: Likewise.
56198         * lib/rmdir.c: Likewise.
56199         * lib/rpmatch.c: Likewise.
56200         * lib/safe-read.c: Likewise.
56201         * lib/safe-read.h: Likewise.
56202         * lib/safe-write.c: Likewise.
56203         * lib/safe-write.h: Likewise.
56204         * lib/same-inode.h: Likewise.
56205         * lib/same.c: Likewise.
56206         * lib/same.h: Likewise.
56207         * lib/save-cwd.c: Likewise.
56208         * lib/save-cwd.h: Likewise.
56209         * lib/savedir.c: Likewise.
56210         * lib/savedir.h: Likewise.
56211         * lib/savewd.c: Likewise.
56212         * lib/savewd.h: Likewise.
56213         * lib/search.in.h: Likewise.
56214         * lib/setenv.c: Likewise.
56215         * lib/setenv.h: Likewise.
56216         * lib/settime.c: Likewise.
56217         * lib/sh-quote.c: Likewise.
56218         * lib/sh-quote.h: Likewise.
56219         * lib/sig2str.c: Likewise.
56220         * lib/sig2str.h: Likewise.
56221         * lib/signal.in.h: Likewise.
56222         * lib/signbitd.c: Likewise.
56223         * lib/signbitf.c: Likewise.
56224         * lib/signbitl.c: Likewise.
56225         * lib/sigprocmask.c: Likewise.
56226         * lib/sincosl.c: Likewise.
56227         * lib/sleep.c: Likewise.
56228         * lib/sprintf.c: Likewise.
56229         * lib/sqrtl.c: Likewise.
56230         * lib/stat-time.h: Likewise.
56231         * lib/stdio--.h: Likewise.
56232         * lib/stdio-safer.h: Likewise.
56233         * lib/stdlib--.h: Likewise.
56234         * lib/stdlib-safer.h: Likewise.
56235         * lib/stdlib.in.h: Likewise.
56236         * lib/stpcpy.c: Likewise.
56237         * lib/stpncpy.c: Likewise.
56238         * lib/strchrnul.c: Likewise.
56239         * lib/strcspn.c: Likewise.
56240         * lib/strerror.c: Likewise.
56241         * lib/strftime.c: Likewise.
56242         * lib/strftime.h: Likewise.
56243         * lib/striconveh.c: Likewise.
56244         * lib/striconveh.h: Likewise.
56245         * lib/striconveha.c: Likewise.
56246         * lib/striconveha.h: Likewise.
56247         * lib/stripslash.c: Likewise.
56248         * lib/strnlen1.c: Likewise.
56249         * lib/strnlen1.h: Likewise.
56250         * lib/strtod.c: Likewise.
56251         * lib/strtoimax.c: Likewise.
56252         * lib/strtok_r.c: Likewise.
56253         * lib/strtol.c: Likewise.
56254         * lib/strtoll.c: Likewise.
56255         * lib/strtoul.c: Likewise.
56256         * lib/strtoull.c: Likewise.
56257         * lib/sysexits.in.h: Likewise.
56258         * lib/tempname.c: Likewise.
56259         * lib/tempname.h: Likewise.
56260         * lib/timespec.h: Likewise.
56261         * lib/tls.c: Likewise.
56262         * lib/tls.h: Likewise.
56263         * lib/tmpdir.c: Likewise.
56264         * lib/tmpdir.h: Likewise.
56265         * lib/tmpfile-safer.c: Likewise.
56266         * lib/tmpfile.c: Likewise.
56267         * lib/trigl.c: Likewise.
56268         * lib/trigl.h: Likewise.
56269         * lib/trim.c: Likewise.
56270         * lib/trim.h: Likewise.
56271         * lib/trunc.c: Likewise.
56272         * lib/truncf.c: Likewise.
56273         * lib/truncl.c: Likewise.
56274         * lib/tsearch.c: Likewise.
56275         * lib/unicodeio.c: Likewise.
56276         * lib/unicodeio.h: Likewise.
56277         * lib/unistd--.h: Likewise.
56278         * lib/unistd-safer.h: Likewise.
56279         * lib/unistdio/ulc-fprintf.c: Likewise.
56280         * lib/unistdio/ulc-vfprintf.c: Likewise.
56281         * lib/unlinkdir.c: Likewise.
56282         * lib/unlinkdir.h: Likewise.
56283         * lib/unlocked-io.h: Likewise.
56284         * lib/unsetenv.c: Likewise.
56285         * lib/userspec.c: Likewise.
56286         * lib/utime.c: Likewise.
56287         * lib/utimecmp.c: Likewise.
56288         * lib/utimecmp.h: Likewise.
56289         * lib/utimens.c: Likewise.
56290         * lib/verify.h: Likewise.
56291         * lib/verror.c: Likewise.
56292         * lib/verror.h: Likewise.
56293         * lib/version-etc-fsf.c: Likewise.
56294         * lib/version-etc.c: Likewise.
56295         * lib/version-etc.h: Likewise.
56296         * lib/vfprintf.c: Likewise.
56297         * lib/vprintf.c: Likewise.
56298         * lib/vsprintf.c: Likewise.
56299         * lib/w32spawn.h: Likewise.
56300         * lib/wait-process.c: Likewise.
56301         * lib/wait-process.h: Likewise.
56302         * lib/wcwidth.c: Likewise.
56303         * lib/write-any-file.c: Likewise.
56304         * lib/xalloc-die.c: Likewise.
56305         * lib/xalloc.h: Likewise.
56306         * lib/xasprintf.c: Likewise.
56307         * lib/xgetcwd.c: Likewise.
56308         * lib/xgetcwd.h: Likewise.
56309         * lib/xgetdomainname.c: Likewise.
56310         * lib/xgetdomainname.h: Likewise.
56311         * lib/xgethostname.c: Likewise.
56312         * lib/xmalloc.c: Likewise.
56313         * lib/xmalloca.c: Likewise.
56314         * lib/xmalloca.h: Likewise.
56315         * lib/xmemcoll.c: Likewise.
56316         * lib/xnanosleep.c: Likewise.
56317         * lib/xreadlink.c: Likewise.
56318         * lib/xreadlink.h: Likewise.
56319         * lib/xsetenv.c: Likewise.
56320         * lib/xsetenv.h: Likewise.
56321         * lib/xstriconv.c: Likewise.
56322         * lib/xstriconv.h: Likewise.
56323         * lib/xstrndup.c: Likewise.
56324         * lib/xstrndup.h: Likewise.
56325         * lib/xstrtod.c: Likewise.
56326         * lib/xstrtod.h: Likewise.
56327         * lib/xstrtol-error.c: Likewise.
56328         * lib/xstrtol.c: Likewise.
56329         * lib/xstrtol.h: Likewise.
56330         * lib/xtime.h: Likewise.
56331         * lib/xvasprintf.c: Likewise.
56332         * lib/xvasprintf.h: Likewise.
56333         * lib/yesno.c: Likewise.
56334         * lib/yesno.h: Likewise.
56335         * posix-modules: Likewise.
56336         * tests/test-alloca-opt.c: Likewise.
56337         * tests/test-arcfour.c: Likewise.
56338         * tests/test-arctwo.c: Likewise.
56339         * tests/test-argmatch.c: Likewise.
56340         * tests/test-argp-2.sh: Likewise.
56341         * tests/test-argp.c: Likewise.
56342         * tests/test-arpa_inet.c: Likewise.
56343         * tests/test-array_list.c: Likewise.
56344         * tests/test-array_oset.c: Likewise.
56345         * tests/test-atexit.c: Likewise.
56346         * tests/test-avltree_list.c: Likewise.
56347         * tests/test-avltree_oset.c: Likewise.
56348         * tests/test-avltreehash_list.c: Likewise.
56349         * tests/test-base64.c: Likewise.
56350         * tests/test-binary-io.c: Likewise.
56351         * tests/test-byteswap.c: Likewise.
56352         * tests/test-c-ctype.c: Likewise.
56353         * tests/test-c-strcasecmp.c: Likewise.
56354         * tests/test-c-strcasestr.c: Likewise.
56355         * tests/test-c-strncasecmp.c: Likewise.
56356         * tests/test-c-strstr.c: Likewise.
56357         * tests/test-canonicalize-lgpl.c: Likewise.
56358         * tests/test-canonicalize.c: Likewise.
56359         * tests/test-carray_list.c: Likewise.
56360         * tests/test-ceilf.c: Likewise.
56361         * tests/test-ceill.c: Likewise.
56362         * tests/test-count-one-bits.c: Likewise.
56363         * tests/test-crc.c: Likewise.
56364         * tests/test-dirname.c: Likewise.
56365         * tests/test-fbufmode.c: Likewise.
56366         * tests/test-fcntl.c: Likewise.
56367         * tests/test-fflush.c: Likewise.
56368         * tests/test-floorf.c: Likewise.
56369         * tests/test-floorl.c: Likewise.
56370         * tests/test-fopen.c: Likewise.
56371         * tests/test-fprintf-posix.c: Likewise.
56372         * tests/test-fprintf-posix.h: Likewise.
56373         * tests/test-fpurge.c: Likewise.
56374         * tests/test-freadable.c: Likewise.
56375         * tests/test-freadahead.c: Likewise.
56376         * tests/test-freading.c: Likewise.
56377         * tests/test-freopen.c: Likewise.
56378         * tests/test-frexp.c: Likewise.
56379         * tests/test-frexpl.c: Likewise.
56380         * tests/test-fseek.c: Likewise.
56381         * tests/test-fseeko.c: Likewise.
56382         * tests/test-fseterr.c: Likewise.
56383         * tests/test-fstrcmp.c: Likewise.
56384         * tests/test-ftell.c: Likewise.
56385         * tests/test-ftello.c: Likewise.
56386         * tests/test-fwritable.c: Likewise.
56387         * tests/test-fwriting.c: Likewise.
56388         * tests/test-getaddrinfo.c: Likewise.
56389         * tests/test-getpass.c: Likewise.
56390         * tests/test-gettimeofday.c: Likewise.
56391         * tests/test-hmac-md5.c: Likewise.
56392         * tests/test-hmac-sha1.c: Likewise.
56393         * tests/test-iconv.c: Likewise.
56394         * tests/test-iconvme.c: Likewise.
56395         * tests/test-inttypes.c: Likewise.
56396         * tests/test-isnan.c: Likewise.
56397         * tests/test-isnanf.c: Likewise.
56398         * tests/test-isnanl-nolibm.c: Likewise.
56399         * tests/test-isnanl.c: Likewise.
56400         * tests/test-isnanl.h: Likewise.
56401         * tests/test-ldexpl.c: Likewise.
56402         * tests/test-linked_list.c: Likewise.
56403         * tests/test-linkedhash_list.c: Likewise.
56404         * tests/test-locale.c: Likewise.
56405         * tests/test-localename.c: Likewise.
56406         * tests/test-lock.c: Likewise.
56407         * tests/test-lseek.c: Likewise.
56408         * tests/test-malloca.c: Likewise.
56409         * tests/test-math.c: Likewise.
56410         * tests/test-mbscasecmp.c: Likewise.
56411         * tests/test-mbscasestr1.c: Likewise.
56412         * tests/test-mbscasestr2.c: Likewise.
56413         * tests/test-mbscasestr3.c: Likewise.
56414         * tests/test-mbscasestr4.c: Likewise.
56415         * tests/test-mbschr.c: Likewise.
56416         * tests/test-mbscspn.c: Likewise.
56417         * tests/test-mbsncasecmp.c: Likewise.
56418         * tests/test-mbspbrk.c: Likewise.
56419         * tests/test-mbspcasecmp.c: Likewise.
56420         * tests/test-mbsrchr.c: Likewise.
56421         * tests/test-mbsspn.c: Likewise.
56422         * tests/test-mbsstr1.c: Likewise.
56423         * tests/test-mbsstr2.c: Likewise.
56424         * tests/test-mbsstr3.c: Likewise.
56425         * tests/test-md5.c: Likewise.
56426         * tests/test-memmem.c: Likewise.
56427         * tests/test-netinet_in.c: Likewise.
56428         * tests/test-open.c: Likewise.
56429         * tests/test-printf-frexp.c: Likewise.
56430         * tests/test-printf-frexpl.c: Likewise.
56431         * tests/test-printf-posix.c: Likewise.
56432         * tests/test-printf-posix.h: Likewise.
56433         * tests/test-rbtree_list.c: Likewise.
56434         * tests/test-rbtree_oset.c: Likewise.
56435         * tests/test-rbtreehash_list.c: Likewise.
56436         * tests/test-read-file.c: Likewise.
56437         * tests/test-rijndael.c: Likewise.
56438         * tests/test-search.c: Likewise.
56439         * tests/test-signbit.c: Likewise.
56440         * tests/test-sleep.c: Likewise.
56441         * tests/test-snprintf-posix.c: Likewise.
56442         * tests/test-snprintf-posix.h: Likewise.
56443         * tests/test-snprintf.c: Likewise.
56444         * tests/test-sprintf-posix.c: Likewise.
56445         * tests/test-sprintf-posix.h: Likewise.
56446         * tests/test-stat-time.c: Likewise.
56447         * tests/test-stdbool.c: Likewise.
56448         * tests/test-stdint.c: Likewise.
56449         * tests/test-stdio.c: Likewise.
56450         * tests/test-stdlib.c: Likewise.
56451         * tests/test-stpncpy.c: Likewise.
56452         * tests/test-strcasestr.c: Likewise.
56453         * tests/test-striconv.c: Likewise.
56454         * tests/test-striconveh.c: Likewise.
56455         * tests/test-striconveha.c: Likewise.
56456         * tests/test-string.c: Likewise.
56457         * tests/test-sys_select.c: Likewise.
56458         * tests/test-sys_socket.c: Likewise.
56459         * tests/test-sys_stat.c: Likewise.
56460         * tests/test-sys_time.c: Likewise.
56461         * tests/test-sysexits.c: Likewise.
56462         * tests/test-time.c: Likewise.
56463         * tests/test-tls.c: Likewise.
56464         * tests/test-trunc.c: Likewise.
56465         * tests/test-truncf.c: Likewise.
56466         * tests/test-truncl.c: Likewise.
56467         * tests/test-unistd.c: Likewise.
56468         * tests/test-vasnprintf-posix.c: Likewise.
56469         * tests/test-vasnprintf-posix2.c: Likewise.
56470         * tests/test-vasnprintf.c: Likewise.
56471         * tests/test-vasprintf-posix.c: Likewise.
56472         * tests/test-vasprintf.c: Likewise.
56473         * tests/test-verify.c: Likewise.
56474         * tests/test-vfprintf-posix.c: Likewise.
56475         * tests/test-vprintf-posix.c: Likewise.
56476         * tests/test-vsnprintf-posix.c: Likewise.
56477         * tests/test-vsnprintf.c: Likewise.
56478         * tests/test-vsprintf-posix.c: Likewise.
56479         * tests/test-wchar.c: Likewise.
56480         * tests/test-wctype.c: Likewise.
56481         * tests/test-wcwidth.c: Likewise.
56482         * tests/test-xstrtol.c: Likewise.
56483         * tests/test-xvasprintf.c: Likewise.
56484         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
56485         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
56486         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
56487         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
56488         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
56489         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
56490         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
56491         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
56492         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
56493         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
56494         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
56495         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
56496         * tests/uniname/test-uninames.c: Likewise.
56497         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
56498         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
56499         * tests/unistdio/test-u16-printf1.h: Likewise.
56500         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
56501         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
56502         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
56503         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
56504         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
56505         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
56506         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
56507         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
56508         * tests/unistdio/test-u32-printf1.h: Likewise.
56509         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
56510         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
56511         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
56512         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
56513         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
56514         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
56515         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
56516         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
56517         * tests/unistdio/test-u8-printf1.h: Likewise.
56518         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
56519         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
56520         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
56521         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
56522         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
56523         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
56524         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
56525         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
56526         * tests/unistdio/test-ulc-printf1.h: Likewise.
56527         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
56528         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
56529         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
56530         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
56531         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
56532         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
56533         * tests/uniwidth/test-u16-strwidth.c: Likewise.
56534         * tests/uniwidth/test-u16-width.c: Likewise.
56535         * tests/uniwidth/test-u32-strwidth.c: Likewise.
56536         * tests/uniwidth/test-u32-width.c: Likewise.
56537         * tests/uniwidth/test-u8-strwidth.c: Likewise.
56538         * tests/uniwidth/test-u8-width.c: Likewise.
56539         * tests/uniwidth/test-uc_width.c: Likewise.
56540         * config/srclist-update: Likewise.
56541         (fixlicense): Update to GPLv3+.
56542
56543         Change copyright notice from LGPLv2.1+ to LGPLv3+.
56544         * tests/test-tsearch.c: Change copyright notice.
56545
56546         Change copyright notice from LGPLv2.0+ to LGPLv3+.
56547         * lib/c-strcaseeq.h: Change copyright notice.
56548         * lib/streq.h: Likewise.
56549         * lib/uniconv.h: Likewise.
56550         * lib/uniconv/u-conv-from-enc.h: Likewise.
56551         * lib/uniconv/u-conv-to-enc.h: Likewise.
56552         * lib/uniconv/u-strconv-from-enc.h: Likewise.
56553         * lib/uniconv/u-strconv-to-enc.h: Likewise.
56554         * lib/uniconv/u16-conv-from-enc.c: Likewise.
56555         * lib/uniconv/u16-conv-to-enc.c: Likewise.
56556         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
56557         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
56558         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
56559         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
56560         * lib/uniconv/u32-conv-from-enc.c: Likewise.
56561         * lib/uniconv/u32-conv-to-enc.c: Likewise.
56562         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
56563         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
56564         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
56565         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
56566         * lib/uniconv/u8-conv-from-enc.c: Likewise.
56567         * lib/uniconv/u8-conv-to-enc.c: Likewise.
56568         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
56569         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
56570         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
56571         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
56572         * lib/uniname.h: Likewise.
56573         * lib/uniname/uniname.c: Likewise.
56574         * lib/unistdio.h: Likewise.
56575         * lib/unistdio/u-asnprintf.h: Likewise.
56576         * lib/unistdio/u-asprintf.h: Likewise.
56577         * lib/unistdio/u-printf-args.c: Likewise.
56578         * lib/unistdio/u-printf-args.h: Likewise.
56579         * lib/unistdio/u-printf-parse.h: Likewise.
56580         * lib/unistdio/u-snprintf.h: Likewise.
56581         * lib/unistdio/u-sprintf.h: Likewise.
56582         * lib/unistdio/u-vasprintf.h: Likewise.
56583         * lib/unistdio/u-vsnprintf.h: Likewise.
56584         * lib/unistdio/u-vsprintf.h: Likewise.
56585         * lib/unistdio/u16-asnprintf.c: Likewise.
56586         * lib/unistdio/u16-asprintf.c: Likewise.
56587         * lib/unistdio/u16-printf-parse.c: Likewise.
56588         * lib/unistdio/u16-snprintf.c: Likewise.
56589         * lib/unistdio/u16-sprintf.c: Likewise.
56590         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
56591         * lib/unistdio/u16-u16-asprintf.c: Likewise.
56592         * lib/unistdio/u16-u16-snprintf.c: Likewise.
56593         * lib/unistdio/u16-u16-sprintf.c: Likewise.
56594         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
56595         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
56596         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
56597         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
56598         * lib/unistdio/u16-vasnprintf.c: Likewise.
56599         * lib/unistdio/u16-vasprintf.c: Likewise.
56600         * lib/unistdio/u16-vsnprintf.c: Likewise.
56601         * lib/unistdio/u16-vsprintf.c: Likewise.
56602         * lib/unistdio/u32-asnprintf.c: Likewise.
56603         * lib/unistdio/u32-asprintf.c: Likewise.
56604         * lib/unistdio/u32-printf-parse.c: Likewise.
56605         * lib/unistdio/u32-snprintf.c: Likewise.
56606         * lib/unistdio/u32-sprintf.c: Likewise.
56607         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
56608         * lib/unistdio/u32-u32-asprintf.c: Likewise.
56609         * lib/unistdio/u32-u32-snprintf.c: Likewise.
56610         * lib/unistdio/u32-u32-sprintf.c: Likewise.
56611         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
56612         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
56613         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
56614         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
56615         * lib/unistdio/u32-vasnprintf.c: Likewise.
56616         * lib/unistdio/u32-vasprintf.c: Likewise.
56617         * lib/unistdio/u32-vsnprintf.c: Likewise.
56618         * lib/unistdio/u32-vsprintf.c: Likewise.
56619         * lib/unistdio/u8-asnprintf.c: Likewise.
56620         * lib/unistdio/u8-asprintf.c: Likewise.
56621         * lib/unistdio/u8-printf-parse.c: Likewise.
56622         * lib/unistdio/u8-snprintf.c: Likewise.
56623         * lib/unistdio/u8-sprintf.c: Likewise.
56624         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
56625         * lib/unistdio/u8-u8-asprintf.c: Likewise.
56626         * lib/unistdio/u8-u8-snprintf.c: Likewise.
56627         * lib/unistdio/u8-u8-sprintf.c: Likewise.
56628         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
56629         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
56630         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
56631         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
56632         * lib/unistdio/u8-vasnprintf.c: Likewise.
56633         * lib/unistdio/u8-vasprintf.c: Likewise.
56634         * lib/unistdio/u8-vsnprintf.c: Likewise.
56635         * lib/unistdio/u8-vsprintf.c: Likewise.
56636         * lib/unistdio/ulc-asnprintf.c: Likewise.
56637         * lib/unistdio/ulc-asprintf.c: Likewise.
56638         * lib/unistdio/ulc-printf-parse.c: Likewise.
56639         * lib/unistdio/ulc-snprintf.c: Likewise.
56640         * lib/unistdio/ulc-sprintf.c: Likewise.
56641         * lib/unistdio/ulc-vasnprintf.c: Likewise.
56642         * lib/unistdio/ulc-vasprintf.c: Likewise.
56643         * lib/unistdio/ulc-vsnprintf.c: Likewise.
56644         * lib/unistdio/ulc-vsprintf.c: Likewise.
56645         * lib/unistr.h: Likewise.
56646         * lib/unistr/u-cpy-alloc.h: Likewise.
56647         * lib/unistr/u-cpy.h: Likewise.
56648         * lib/unistr/u-endswith.h: Likewise.
56649         * lib/unistr/u-move.h: Likewise.
56650         * lib/unistr/u-set.h: Likewise.
56651         * lib/unistr/u-startswith.h: Likewise.
56652         * lib/unistr/u-stpcpy.h: Likewise.
56653         * lib/unistr/u-stpncpy.h: Likewise.
56654         * lib/unistr/u-strcat.h: Likewise.
56655         * lib/unistr/u-strcpy.h: Likewise.
56656         * lib/unistr/u-strcspn.h: Likewise.
56657         * lib/unistr/u-strdup.h: Likewise.
56658         * lib/unistr/u-strlen.h: Likewise.
56659         * lib/unistr/u-strncat.h: Likewise.
56660         * lib/unistr/u-strncpy.h: Likewise.
56661         * lib/unistr/u-strnlen.h: Likewise.
56662         * lib/unistr/u-strpbrk.h: Likewise.
56663         * lib/unistr/u-strspn.h: Likewise.
56664         * lib/unistr/u-strstr.h: Likewise.
56665         * lib/unistr/u-strtok.h: Likewise.
56666         * lib/unistr/u16-check.c: Likewise.
56667         * lib/unistr/u16-chr.c: Likewise.
56668         * lib/unistr/u16-cmp.c: Likewise.
56669         * lib/unistr/u16-cpy-alloc.c: Likewise.
56670         * lib/unistr/u16-cpy.c: Likewise.
56671         * lib/unistr/u16-endswith.c: Likewise.
56672         * lib/unistr/u16-mblen.c: Likewise.
56673         * lib/unistr/u16-mbsnlen.c: Likewise.
56674         * lib/unistr/u16-mbtouc-aux.c: Likewise.
56675         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
56676         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
56677         * lib/unistr/u16-mbtouc.c: Likewise.
56678         * lib/unistr/u16-mbtoucr.c: Likewise.
56679         * lib/unistr/u16-move.c: Likewise.
56680         * lib/unistr/u16-next.c: Likewise.
56681         * lib/unistr/u16-prev.c: Likewise.
56682         * lib/unistr/u16-set.c: Likewise.
56683         * lib/unistr/u16-startswith.c: Likewise.
56684         * lib/unistr/u16-stpcpy.c: Likewise.
56685         * lib/unistr/u16-stpncpy.c: Likewise.
56686         * lib/unistr/u16-strcat.c: Likewise.
56687         * lib/unistr/u16-strchr.c: Likewise.
56688         * lib/unistr/u16-strcmp.c: Likewise.
56689         * lib/unistr/u16-strcpy.c: Likewise.
56690         * lib/unistr/u16-strcspn.c: Likewise.
56691         * lib/unistr/u16-strdup.c: Likewise.
56692         * lib/unistr/u16-strlen.c: Likewise.
56693         * lib/unistr/u16-strmblen.c: Likewise.
56694         * lib/unistr/u16-strmbtouc.c: Likewise.
56695         * lib/unistr/u16-strncat.c: Likewise.
56696         * lib/unistr/u16-strncmp.c: Likewise.
56697         * lib/unistr/u16-strncpy.c: Likewise.
56698         * lib/unistr/u16-strnlen.c: Likewise.
56699         * lib/unistr/u16-strpbrk.c: Likewise.
56700         * lib/unistr/u16-strrchr.c: Likewise.
56701         * lib/unistr/u16-strspn.c: Likewise.
56702         * lib/unistr/u16-strstr.c: Likewise.
56703         * lib/unistr/u16-strtok.c: Likewise.
56704         * lib/unistr/u16-to-u32.c: Likewise.
56705         * lib/unistr/u16-to-u8.c: Likewise.
56706         * lib/unistr/u16-uctomb-aux.c: Likewise.
56707         * lib/unistr/u16-uctomb.c: Likewise.
56708         * lib/unistr/u32-check.c: Likewise.
56709         * lib/unistr/u32-chr.c: Likewise.
56710         * lib/unistr/u32-cmp.c: Likewise.
56711         * lib/unistr/u32-cpy-alloc.c: Likewise.
56712         * lib/unistr/u32-cpy.c: Likewise.
56713         * lib/unistr/u32-endswith.c: Likewise.
56714         * lib/unistr/u32-mblen.c: Likewise.
56715         * lib/unistr/u32-mbsnlen.c: Likewise.
56716         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
56717         * lib/unistr/u32-mbtouc.c: Likewise.
56718         * lib/unistr/u32-mbtoucr.c: Likewise.
56719         * lib/unistr/u32-move.c: Likewise.
56720         * lib/unistr/u32-next.c: Likewise.
56721         * lib/unistr/u32-prev.c: Likewise.
56722         * lib/unistr/u32-set.c: Likewise.
56723         * lib/unistr/u32-startswith.c: Likewise.
56724         * lib/unistr/u32-stpcpy.c: Likewise.
56725         * lib/unistr/u32-stpncpy.c: Likewise.
56726         * lib/unistr/u32-strcat.c: Likewise.
56727         * lib/unistr/u32-strchr.c: Likewise.
56728         * lib/unistr/u32-strcmp.c: Likewise.
56729         * lib/unistr/u32-strcpy.c: Likewise.
56730         * lib/unistr/u32-strcspn.c: Likewise.
56731         * lib/unistr/u32-strdup.c: Likewise.
56732         * lib/unistr/u32-strlen.c: Likewise.
56733         * lib/unistr/u32-strmblen.c: Likewise.
56734         * lib/unistr/u32-strmbtouc.c: Likewise.
56735         * lib/unistr/u32-strncat.c: Likewise.
56736         * lib/unistr/u32-strncmp.c: Likewise.
56737         * lib/unistr/u32-strncpy.c: Likewise.
56738         * lib/unistr/u32-strnlen.c: Likewise.
56739         * lib/unistr/u32-strpbrk.c: Likewise.
56740         * lib/unistr/u32-strrchr.c: Likewise.
56741         * lib/unistr/u32-strspn.c: Likewise.
56742         * lib/unistr/u32-strstr.c: Likewise.
56743         * lib/unistr/u32-strtok.c: Likewise.
56744         * lib/unistr/u32-to-u16.c: Likewise.
56745         * lib/unistr/u32-to-u8.c: Likewise.
56746         * lib/unistr/u32-uctomb.c: Likewise.
56747         * lib/unistr/u8-check.c: Likewise.
56748         * lib/unistr/u8-chr.c: Likewise.
56749         * lib/unistr/u8-cmp.c: Likewise.
56750         * lib/unistr/u8-cpy-alloc.c: Likewise.
56751         * lib/unistr/u8-cpy.c: Likewise.
56752         * lib/unistr/u8-endswith.c: Likewise.
56753         * lib/unistr/u8-mblen.c: Likewise.
56754         * lib/unistr/u8-mbsnlen.c: Likewise.
56755         * lib/unistr/u8-mbtouc-aux.c: Likewise.
56756         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
56757         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
56758         * lib/unistr/u8-mbtouc.c: Likewise.
56759         * lib/unistr/u8-mbtoucr.c: Likewise.
56760         * lib/unistr/u8-move.c: Likewise.
56761         * lib/unistr/u8-next.c: Likewise.
56762         * lib/unistr/u8-prev.c: Likewise.
56763         * lib/unistr/u8-set.c: Likewise.
56764         * lib/unistr/u8-startswith.c: Likewise.
56765         * lib/unistr/u8-stpcpy.c: Likewise.
56766         * lib/unistr/u8-stpncpy.c: Likewise.
56767         * lib/unistr/u8-strcat.c: Likewise.
56768         * lib/unistr/u8-strchr.c: Likewise.
56769         * lib/unistr/u8-strcmp.c: Likewise.
56770         * lib/unistr/u8-strcpy.c: Likewise.
56771         * lib/unistr/u8-strcspn.c: Likewise.
56772         * lib/unistr/u8-strdup.c: Likewise.
56773         * lib/unistr/u8-strlen.c: Likewise.
56774         * lib/unistr/u8-strmblen.c: Likewise.
56775         * lib/unistr/u8-strmbtouc.c: Likewise.
56776         * lib/unistr/u8-strncat.c: Likewise.
56777         * lib/unistr/u8-strncmp.c: Likewise.
56778         * lib/unistr/u8-strncpy.c: Likewise.
56779         * lib/unistr/u8-strnlen.c: Likewise.
56780         * lib/unistr/u8-strpbrk.c: Likewise.
56781         * lib/unistr/u8-strrchr.c: Likewise.
56782         * lib/unistr/u8-strspn.c: Likewise.
56783         * lib/unistr/u8-strstr.c: Likewise.
56784         * lib/unistr/u8-strtok.c: Likewise.
56785         * lib/unistr/u8-to-u16.c: Likewise.
56786         * lib/unistr/u8-to-u32.c: Likewise.
56787         * lib/unistr/u8-uctomb-aux.c: Likewise.
56788         * lib/unistr/u8-uctomb.c: Likewise.
56789         * lib/unitypes.h: Likewise.
56790         * lib/uniwidth.h: Likewise.
56791         * lib/uniwidth/cjk.h: Likewise.
56792         * lib/uniwidth/u16-strwidth.c: Likewise.
56793         * lib/uniwidth/u16-width.c: Likewise.
56794         * lib/uniwidth/u32-strwidth.c: Likewise.
56795         * lib/uniwidth/u32-width.c: Likewise.
56796         * lib/uniwidth/u8-strwidth.c: Likewise.
56797         * lib/uniwidth/u8-width.c: Likewise.
56798         * lib/uniwidth/width.c: Likewise.
56799
56800 2007-10-07  Bruno Haible  <bruno@clisp.org>
56801
56802         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
56803         The file is still under LGPL (see modules/inttypes).
56804
56805 2007-10-06  Bruno Haible  <bruno@clisp.org>
56806
56807         * modules/trunc (Dependencies): Add 'extensions'.
56808         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
56809         Reported by Ben Pfaff <blp@gnu.org>.
56810
56811 2007-10-06  Bruno Haible  <bruno@clisp.org>
56812
56813         * modules/freopen-tests: New file.
56814         * tests/test-freopen.c: New file.
56815
56816         * modules/fopen-tests: New file.
56817         * tests/test-fopen.c: New file.
56818
56819         * modules/fopen: New file.
56820         * lib/fopen.c: New file.
56821         * m4/fopen.m4: New file.
56822         * modules/freopen: New file.
56823         * lib/freopen.c: New file.
56824         * m4/freopen.m4: New file.
56825         * lib/stdio.in.h (fopen, freopen): New declarations.
56826         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
56827         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56828         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
56829         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56830         * doc/functions/fopen.texi: Mention the 'fopen' module.
56831         * doc/functions/freopen.texi: Mention the 'freopen' module.
56832
56833 2007-10-06  Bruno Haible  <bruno@clisp.org>
56834
56835         * modules/open-tests: New file.
56836         * tests/test-open.c: New file.
56837
56838         * modules/open: New file.
56839         * lib/open.c: New file.
56840         * m4/open.m4: New file.
56841         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
56842         lib/open.c does.
56843         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
56844         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
56845         macros.
56846         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
56847         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
56848         REPLACE_OPEN.
56849         * doc/functions/open.texi: Mention the 'open' module.
56850
56851 2007-10-04  Bruno Haible  <bruno@clisp.org>
56852
56853         * modules/ceill-tests: New file.
56854         * tests/test-ceill.c: New file.
56855
56856         * modules/ceill: New file.
56857         * lib/ceill.c: Replace entire file.
56858         * m4/ceill.m4: New file.
56859         * lib/math.in.h (ceill): Replace declaration.
56860         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
56861         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
56862         * doc/functions/ceill.texi: Mention the 'ceill' module.
56863         * modules/mathl (Files): Remove lib/ceill.c.
56864         (Depends-on): Add ceill.
56865
56866 2007-10-04  Bruno Haible  <bruno@clisp.org>
56867
56868         * modules/ceilf-tests: New file.
56869         * tests/test-ceilf.c: New file.
56870
56871         * modules/ceilf: New file.
56872         * lib/ceil.c: New file.
56873         * lib/ceilf.c: New file.
56874         * m4/ceilf.m4: New file.
56875         * lib/math.in.h (ceilf): New declaration.
56876         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
56877         HAVE_DECL_CEILF.
56878         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
56879         HAVE_DECL_CEILF.
56880         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
56881
56882 2007-10-04  Bruno Haible  <bruno@clisp.org>
56883
56884         * modules/floorl-tests: New file.
56885         * tests/test-floorl.c: New file.
56886
56887         * modules/floorl: New file.
56888         * lib/floorl.c: Replace entire file.
56889         * m4/floorl.m4: New file.
56890         * lib/math.in.h (floorl): Replace declaration.
56891         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
56892         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
56893         * doc/functions/floorl.texi: Mention the 'floorl' module.
56894         * modules/mathl (Files): Remove lib/floorl.c.
56895         (Depends-on): Add floorl.
56896
56897 2007-10-04  Bruno Haible  <bruno@clisp.org>
56898
56899         * modules/floorf-tests: New file.
56900         * tests/test-floorf.c: New file.
56901
56902         * modules/floorf: New file.
56903         * lib/floor.c: New file.
56904         * lib/floorf.c: New file.
56905         * m4/floorf.m4: New file.
56906         * lib/math.in.h (floorf): New declaration.
56907         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
56908         HAVE_DECL_FLOORF.
56909         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
56910         HAVE_DECL_FLOORF.
56911         * doc/functions/floorf.texi: Mention the 'floorf' module.
56912
56913 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
56914             Bruno Haible  <bruno@clisp.org>
56915
56916         Advertise for the Git server instead of the CVS server.
56917         * doc/gnulib-intro.texi (Steady Development): Mention the Git
56918         repository instead of the CVS one.
56919         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
56920         about all VCS systems generically.
56921         * doc/gnulib.texi (Introduction): Capitalize `Git'.
56922
56923 2007-10-04  Bruno Haible  <bruno@clisp.org>
56924
56925         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
56926         means.
56927         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
56928
56929 2007-10-04  Bruno Haible  <bruno@clisp.org>
56930
56931         * modules/truncl-tests: New file.
56932         * tests/test-truncl.c: New file.
56933
56934         * modules/truncl: New file.
56935         * lib/truncl.c: New file.
56936         * m4/truncl.m4: New file.
56937         * lib/math.in.h (truncl): New declaration.
56938         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
56939         HAVE_DECL_TRUNCL.
56940         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
56941         HAVE_DECL_TRUNCL.
56942         * doc/functions/truncl.texi: Mention the 'truncl' module.
56943
56944 2007-10-04  Bruno Haible  <bruno@clisp.org>
56945
56946         * modules/truncf-tests: New file.
56947         * tests/test-truncf.c: New file.
56948
56949         * modules/truncf: New file.
56950         * lib/trunc.c: Make paramerizable through USE_* macros.
56951         * lib/truncf.c: New file.
56952         * m4/truncf.m4: New file.
56953         * lib/math.in.h (truncf): New declaration.
56954         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
56955         HAVE_DECL_TRUNCF.
56956         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
56957         HAVE_DECL_TRUNCF.
56958         * doc/functions/truncf.texi: Mention the 'truncf' module.
56959
56960 2007-10-03  Bruno Haible  <bruno@clisp.org>
56961
56962         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
56963         augmentation also for tests modules.
56964         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
56965         * modules/atexit-tests (Makefile.am): Likewise.
56966         * modules/binary-io-tests (Makefile.am): Likewise.
56967         * modules/c-strcase-tests (Makefile.am): Likewise.
56968         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
56969         * modules/canonicalize-tests (Makefile.am): Likewise.
56970         * modules/closein-tests (Makefile.am): Likewise.
56971         * modules/fprintf-posix-tests (Makefile.am): Likewise.
56972         * modules/freadahead-tests (Makefile.am): Likewise.
56973         * modules/fseek-tests (Makefile.am): Likewise.
56974         * modules/fseeko-tests (Makefile.am): Likewise.
56975         * modules/ftell-tests (Makefile.am): Likewise.
56976         * modules/ftello-tests (Makefile.am): Likewise.
56977         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
56978         * modules/isnanl-tests (Makefile.am): Likewise.
56979         * modules/lseek-tests (Makefile.am): Likewise.
56980         * modules/mbscasecmp-tests (Makefile.am): Likewise.
56981         * modules/mbscasestr-tests (Makefile.am): Likewise.
56982         * modules/mbschr-tests (Makefile.am): Likewise.
56983         * modules/mbscspn-tests (Makefile.am): Likewise.
56984         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
56985         * modules/mbspbrk-tests (Makefile.am): Likewise.
56986         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
56987         * modules/mbsrchr-tests (Makefile.am): Likewise.
56988         * modules/mbsspn-tests (Makefile.am): Likewise.
56989         * modules/mbsstr-tests (Makefile.am): Likewise.
56990         * modules/printf-posix-tests (Makefile.am): Likewise.
56991         * modules/snprintf-posix-tests (Makefile.am): Likewise.
56992         * modules/sprintf-posix-tests (Makefile.am): Likewise.
56993         * modules/tsearch-tests (Makefile.am): Likewise.
56994         * modules/uniname/uniname-tests (Makefile.am): Likewise.
56995         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
56996         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
56997         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
56998         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
56999         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
57000         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
57001         * modules/vprintf-posix-tests (Makefile.am): Likewise.
57002         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
57003         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
57004         * modules/xstrtoimax-tests (Makefile.am): Likewise.
57005         * modules/xstrtol-tests (Makefile.am): Likewise.
57006         * modules/xstrtoumax-tests (Makefile.am): Likewise.
57007         * modules/yesno-tests (Makefile.am): Likewise.
57008
57009 2007-10-03  Bruno Haible  <bruno@clisp.org>
57010
57011         * modules/trunc-tests: New file.
57012         * tests/test-trunc.c: New file.
57013
57014         * modules/trunc: New file.
57015         * lib/trunc.c: New file.
57016         * m4/trunc.m4: New file.
57017         * lib/math.in.h (trunc): New declaration.
57018         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
57019         HAVE_DECL_TRUNC.
57020         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
57021         HAVE_DECL_TRUNC.
57022         * doc/functions/trunc.texi: Mention the 'trunc' module.
57023
57024 2007-10-03  Bruno Haible  <bruno@clisp.org>
57025
57026         * tests/test-fpending.c: New file, mostly copied
57027         from coreutils/lib/t-fpending.c.
57028         * modules/fpending-tests: New file.
57029
57030 2007-10-03  Bruno Haible  <bruno@clisp.org>
57031
57032         Port the stdio extensions to QNX (untested).
57033         * lib/fseterr.c (fseterr): Add support for QNX.
57034         * lib/fbufmode.c (fbufmode): Likewise.
57035         * lib/freadable.c (freadable): Likewise.
57036         * lib/fwritable.c (fwritable): Likewise.
57037         * lib/freading.c (freading): Likewise.
57038         * lib/fwriting.c (fwriting): Likewise.
57039         * lib/freadahead.c (freadahed): Likewise.
57040         * lib/fpurge.c (fpurge): Likewise.
57041         * lib/fseeko.c (rpl_fseeko): Likewise.
57042
57043 2007-10-03  Bruno Haible  <bruno@clisp.org>
57044             Jim Meyering  <jim@meyering.net>
57045             Eric Blake  <ebb9@byu.net>
57046
57047         * doc/relocatable.texi: Use @command instead of @program.
57048
57049 2007-10-02  Jim Meyering  <jim@meyering.net>
57050
57051         Perform one more "_.h" -> ".in.h" substitution.
57052         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
57053         instead of unistd_.h here, too.
57054
57055 2007-10-01  Bruno Haible  <bruno@clisp.org>
57056
57057         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
57058         Needed for the alloca-opt module.
57059
57060 2007-09-30  Bruno Haible  <bruno@clisp.org>
57061
57062         * lib/alloca.in.h: Renamed from lib/alloca_.h.
57063         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
57064         alloca_.h.
57065         * lib/argz.in.h: Renamed from lib/argz_.h.
57066         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
57067         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
57068         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
57069         byteswap_.h.
57070         * lib/dirent.in.h: Renamed from lib/dirent_.h.
57071         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
57072         dirent_.h.
57073         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
57074         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
57075         fcntl_.h.
57076         * lib/float.in.h: Renamed from lib/float_.h.
57077         * modules/float (Files, Makefile.am): Use float.in.h instead of
57078         float_.h.
57079         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
57080         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
57081         fnmatch_.h.
57082         * lib/getopt.in.h: Renamed from lib/getopt_.h.
57083         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
57084         getopt_.h.
57085         * lib/glob.in.h: Renamed from lib/glob_.h.
57086         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
57087         * lib/iconv.in.h: Renamed from lib/iconv_.h.
57088         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
57089         iconv_.h.
57090         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
57091         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
57092         inttypes_.h.
57093         * lib/locale.in.h: Renamed from lib/locale_.h.
57094         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
57095         locale_.h.
57096         * lib/math.in.h: Renamed from lib/math_.h.
57097         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
57098         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
57099         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
57100         of netinet_in_.h. Add dependency.
57101         * lib/poll.in.h: Renamed from lib/poll_.h.
57102         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
57103         * lib/search.in.h: Renamed from lib/search_.h.
57104         * modules/search (Files, Makefile.am): Use search.in.h instead of
57105         search_.h.
57106         * lib/signal.in.h: Renamed from lib/signal_.h.
57107         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
57108         _signal.h.
57109         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
57110         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
57111         stdbool_.h.
57112         * lib/stdint.in.h: Renamed from lib/stdint_.h.
57113         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
57114         stdint_.h.
57115         * lib/stdio.in.h: Renamed from lib/stdio_.h.
57116         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
57117         stdio_.h.
57118         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
57119         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
57120         stdlib_.h.
57121         * lib/string.in.h: Renamed from lib/string_.h.
57122         * modules/string (Files, Makefile.am): Use string.in.h instead of
57123         string_.h.
57124         * doc/gnulib-tool.texi (Initial import): Update.
57125         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
57126         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
57127         of sys_select_.h. Add dependency.
57128         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
57129         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
57130         of sys_socket_.h.
57131         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
57132         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
57133         sys_stat_.h.
57134         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
57135         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
57136         sys_time_.h.
57137         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
57138         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
57139         sysexits_.h.
57140         * lib/time.in.h: Renamed from lib/time_.h.
57141         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
57142         * lib/unistd.in.h: Renamed from lib/unistd_.h.
57143         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
57144         unistd_.h.
57145         * lib/wchar.in.h: Renamed from lib/wchar_.h.
57146         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
57147         wchar_.h.
57148         * lib/wctype.in.h: Renamed from lib/wctype_.h.
57149         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
57150         wctype_.h.
57151         * build-aux/bootstrap (slurp): Update.
57152         * lib/.cppi-disable: Update.
57153
57154 2007-09-30  Bruno Haible  <bruno@clisp.org>
57155
57156         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
57157         Needed on BeOS.
57158
57159 2007-09-30  Bruno Haible  <bruno@clisp.org>
57160
57161         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
57162
57163 2007-09-29  Bruno Haible  <bruno@clisp.org>
57164
57165         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
57166
57167 2007-09-29  Bruno Haible  <bruno@clisp.org>
57168
57169         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
57170         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
57171         * build-aux/install-reloc: Compile also areadlink.c.
57172         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
57173
57174 2007-09-29  Bruno Haible  <bruno@clisp.org>
57175
57176         * gnulib-tool (func_emit_initmacro_done): Indentation.
57177
57178 2007-09-29  Bruno Haible  <bruno@clisp.org>
57179
57180         * README: Add CVS checkout update instructions.
57181         Info from Bob Proulx <bob@proulx.com>.
57182
57183 2007-09-28  Eric Blake  <ebb9@byu.net>
57184
57185         Provide move-if-change.
57186         * build-aux/move-if-change: New file, based on best practice
57187         rather than any canonical upstream location.
57188
57189 2007-09-28  Jim Meyering  <jim@meyering.net>
57190
57191         Fix canonicalize loop-detection corner case.
57192         Do not attempt to stat the symlink values stored via seen_triple.
57193         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
57194         on linux-2.6.18, (but not 2.6.22).
57195         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
57196         triple_compare.  The former compares dev,ino,filename, while the latter
57197         would actually stat dirname(filename) when dev and ino were equal.
57198         * lib/hash-triple.c: Install <string.h>.
57199         (STREQ): Define.
57200         (triple_compare_ino_str): New function.
57201         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
57202
57203 2007-09-28  Eric Blake  <ebb9@byu.net>
57204
57205         Enforce that AC_REPLACE_FUNCS files exist.
57206         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
57207         override check for typos.
57208
57209         Fix test-closein on Solaris 10.
57210         * tests/test-closein.c (main): Don't assume stdin can be inherited
57211         closed on all systems.
57212         * tests/test-closein.sh: Likewise.
57213         Reported by Piotr Tarnowski.
57214
57215 2007-09-28  Jim Meyering  <jim@meyering.net>
57216
57217         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
57218
57219 2007-09-27  Jim Meyering  <jim@meyering.net>
57220
57221         canonicalize: Avoid a false-positive cycle failure.
57222         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
57223         Sort.  Remove cycle-check.
57224         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
57225         not cycle-check.h.
57226         (seen_triple): New function.
57227         (canonicalize_filename_mode): Use it instead of cycle-check.
57228         * tests/test-canonicalize.c: Add a test for this bug.
57229         * tests/test-canonicalize.sh: Set up and run the test.
57230
57231         New module, file-set, from coreutils.
57232         * modules/file-set: Define it.
57233         * lib/file-set.c, lib/file-set.h: Implement.
57234
57235         New module, hash-triple, from coreutils.
57236         * modules/hash-triple: Define it.
57237         * lib/hash-triple.c, lib/hash-triple.h: Implement.
57238
57239 2007-09-25  Eric Blake  <ebb9@byu.net>
57240
57241         Fix strerror on Interix.
57242         * lib/string_.h (strerror): Declare replacement.
57243         * doc/functions/strerror.texi (strerror): Document the Interix
57244         shortcoming.
57245         * modules/string (Makefile.am): Support new hooks.
57246         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
57247         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
57248         gl_FUNC_STRERROR_SEPARATE.
57249         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
57250         * lib/strerror.c (rpl_strerror): Provide replacement.
57251         * modules/strerror (Depends-on): Add string.
57252         (configure.ac): Detect use of module.
57253         * tests/test-strerror.c: New file.
57254         * modules/strerror-tests: New test module.
57255         * modules/argp (Depends-on): Add strerror.
57256         * modules/error (Depends-on): Likewise.
57257         Reported by Martin Koeppe.
57258
57259 2007-09-24  Bruno Haible  <bruno@clisp.org>
57260
57261         * README: Update git instructions.
57262
57263 2007-09-24  Eric Blake  <ebb9@byu.net>
57264
57265         Revert fpending breakage from 2007-09-08.
57266         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
57267         __fpending.c.
57268
57269 2007-09-24  Jim Meyering  <jim@meyering.net>
57270
57271         filenamecat.c: Add a test.
57272         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
57273         showing how the function works when DIR is the empty string.
57274
57275 2007-09-21  Simon Josefsson  <simon@josefsson.org>
57276
57277         * tests/test-canonicalize.sh: Turn on executable bit.
57278
57279 2007-09-19  Eric Blake  <ebb9@byu.net>
57280
57281         * README: Update CVS instructions.
57282
57283 2007-09-18  Bruno Haible  <bruno@clisp.org>
57284
57285         * modules/areadlink: New file.
57286         * lib/areadlink.h (areadlink): New declaration.
57287         * lib/areadlink.c: New file, based on lib/xreadlink.c.
57288
57289 2007-09-17  Jim Meyering  <jim@meyering.net>
57290
57291         * lib/savewd.c (ESTALE) [!defined]: Define.
57292         Reported to be required on Interix by Martin Koeppe.
57293
57294 2007-09-17  Bruno Haible  <bruno@clisp.org>
57295
57296         * gnulib-tool (func_version): Use $version.
57297
57298 2007-09-16  Bruno Haible  <bruno@clisp.org>
57299
57300         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
57301         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
57302         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
57303         Reported by Greg Schafer <gschafer@zip.com.au>.
57304
57305 2007-09-15  Bruno Haible  <bruno@clisp.org>
57306
57307         * gnulib-tool (sed): Try a little harder to make bash understand the
57308         alias.
57309         Reported by Bruce Korb <bruce.korb@gmail.com>.
57310
57311 2007-09-13  Eric Blake  <ebb9@byu.net>
57312
57313         * ChangeLog: Remove conflict markers.
57314
57315 2007-09-13  Simon Josefsson  <simon@josefsson.org>
57316
57317         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
57318         Reported by Bruno Haible <bruno@clisp.org>.
57319
57320 2007-09-12  Bruno Haible  <bruno@clisp.org>
57321
57322         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
57323         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
57324         is not defined.
57325
57326 2007-09-12  Eric Blake  <ebb9@byu.net>
57327
57328         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
57329         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
57330         Autoconf definition.
57331         * modules/euidaccess (Depends-on): Add extensions, for
57332         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
57333         * modules/fnmatch (Depends-on): Likewise.
57334         * modules/getaddrinfo (Depends-on): Likewise.
57335         * modules/getdelim (Depends-on): Likewise.
57336         * modules/getline (Depends-on): Likewise.
57337         * modules/getsubopt (Depends-on): Likewise.
57338         * modules/gettext (Depends-on): Likewise.
57339         * modules/group-member (Depends-on): Likewise.
57340         * modules/mbchar (Depends-on): Likewise.
57341         * modules/memmem (Depends-on): Likewise.
57342         * modules/mempcpy (Depends-on): Likewise.
57343         * modules/memrchr (Depends-on): Likewise.
57344         * modules/pagealign_alloc (Depends-on): Likewise.
57345         * modules/readutmp (Depends-on): Likewise.
57346         * modules/stpcpy (Depends-on): Likewise.
57347         * modules/stpncpy (Depends-on): Likewise.
57348         * modules/strchrnul (Depends-on): Likewise.
57349         * modules/strndup (Depends-on): Likewise.
57350         * modules/strsep (Depends-on): Likewise.
57351         * modules/strverscmp (Depends-on): Likewise.
57352         * modules/vasprintf (Depends-on): Likewise.
57353         * modules/wcwidth (Depends-on): Likewise.
57354         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
57355         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
57356         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
57357         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
57358         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
57359         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57360         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
57361         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
57362         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
57363         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
57364         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57365         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
57366         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
57367         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
57368         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
57369         * m4/readutmp.m4 (gl_READUTMP): Likewise.
57370         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
57371         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
57372         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
57373         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
57374         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
57375         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
57376         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
57377         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
57378         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
57379         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57380         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
57381         so that lock.m4 can be used in gettext without extensions module.
57382
57383 2007-09-11  Bruno Haible  <bruno@clisp.org>
57384
57385         * m4/isc-posix.m4: Remove file.
57386         Suggested by Eric Blake.
57387
57388 2007-09-11  Eric Blake  <ebb9@byu.net>
57389
57390         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
57391
57392 2007-09-10  Bruno Haible  <bruno@clisp.org>
57393
57394         * posix-modules: Fix typo in error message.
57395         Reported by Matt <mkraai@beckman.com>.
57396
57397 2007-09-09  Bruno Haible  <bruno@clisp.org>
57398
57399         * doc/functions/getdelim.texi: Update list of platforms lacking the
57400         function.
57401         * doc/functions/getline.texi: Likewise.
57402
57403 2007-09-09  Jim Meyering  <jim@meyering.net>
57404
57405         * lib/hash.c (hash_initialize): Detect calloc failure.
57406         Reported by Bruno Haible.
57407
57408 2007-09-09  Bruno Haible  <bruno@clisp.org>
57409
57410         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
57411         malloc or realloc fails.
57412
57413 2007-09-09  Bruno Haible  <bruno@clisp.org>
57414
57415         * modules/getcwd (Depends-on): Add malloc-posix.
57416         * modules/glob (Depends-on): Likewise.
57417         * modules/putenv (Depends-on): Likewise.
57418         * modules/strdup (Depends-on): Likewise.
57419         * modules/getdelim (Depends-on): Add realloc-posix.
57420         * modules/read-file (Depends-on): Likewise.
57421
57422 2007-09-09  Bruno Haible  <bruno@clisp.org>
57423
57424         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
57425         (gl_FUNC_MALLOC_POSIX): Require it.
57426         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
57427         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
57428         * modules/realloc (Files): Add m4/malloc.m4.
57429         * modules/calloc (Files): Likewise.
57430
57431 2007-09-09  Bruno Haible  <bruno@clisp.org>
57432
57433         * modules/malloc-posix: New file.
57434         * modules/malloc (Depends-on): Add malloc-posix.
57435         * lib/malloc.c: Include errno.h.
57436         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
57437         and a POSIX-compatible malloc into a single function. Set ENOMEM
57438         when returning NULL.
57439         * m4/malloc.m4: New file.
57440         * doc/functions/malloc.texi: Mention the malloc-posix module.
57441         * lib/stdlib_.h (malloc): New declaration.
57442         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57443         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
57444         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
57445         and HAVE_MALLOC_POSIX.
57446
57447 2007-09-09  Bruno Haible  <bruno@clisp.org>
57448
57449         * modules/realloc-posix: New file.
57450         * modules/realloc (Depends-on): Add realloc-posix.
57451         * lib/realloc.c: Include errno.h.
57452         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
57453         and a POSIX-compatible realloc into a single function. Set ENOMEM
57454         when returning NULL.
57455         * m4/realloc.m4: New file.
57456         * doc/functions/realloc.texi: Mention the realloc-posix module.
57457         * lib/stdlib_.h (realloc): New declaration.
57458         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57459         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
57460         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
57461         and HAVE_REALLOC_POSIX.
57462
57463 2007-09-09  Bruno Haible  <bruno@clisp.org>
57464
57465         * modules/calloc-posix: New file.
57466         * modules/calloc (Depends-on): Add calloc-posix.
57467         * lib/calloc.c: Include errno.h.
57468         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
57469         and a POSIX-compatible calloc into a single function. Set ENOMEM
57470         when returning NULL.
57471         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
57472         * doc/functions/calloc.texi: Mention the calloc-posix module.
57473         * lib/stdlib_.h (calloc): New declaration.
57474         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57475         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
57476         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
57477         and HAVE_CALLOC_POSIX.
57478
57479 2007-09-09  Bruno Haible  <bruno@clisp.org>
57480
57481         Allow for modules to show an arbitrary notice.
57482         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
57483         * gnulib-tool: New option --extract-notice.
57484         (func_usage): Document it.
57485         (sed_extract_prog): Update.
57486         (func_get_notice): New function.
57487         (func_modules_notice): New function.
57488         (func_import, func_create_testdir): Invoke it.
57489         Suggested by Jim Meyering.
57490
57491 2007-09-09  Bruno Haible  <bruno@clisp.org>
57492
57493         * gnulib-tool: New options --verbose, --quiet.
57494         (func_usage): Document them.
57495         (verbose): New variable.
57496         (func_execute_command): New function.
57497         (func_import): Don't show the module list and the file list if
57498         $verbose < 0.
57499         (func_create_testdir): Likewise. Use func_execute_command.
57500         (func_create_megatestdir): Use func_execute_command.
57501
57502 2007-09-08  Bruno Haible  <bruno@clisp.org>
57503
57504         * gnulib-tool (func_import): Prefer rsync over wget when available,
57505         for fetching the PO files.
57506
57507 2007-09-08  Bruno Haible  <bruno@clisp.org>
57508
57509         * posix-modules: New file. Portions copied from gnulib-tool.
57510         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
57511
57512 2007-09-08  Jim Meyering  <jim@meyering.net>
57513
57514         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
57515         * lib/fpending.h: Rename from __fpending.h.
57516         * lib/fpending.c: Rename from __fpending.c.
57517         Include "fpending.h", not "__fpending.h".
57518         * lib/__fpending.h, lib/__fpending.c: Remove files.
57519         * modules/fpending (Files): Reflect new file names.
57520         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
57521
57522 2007-09-08  Bruno Haible  <bruno@clisp.org>
57523
57524         * m4/inttypes-h.m4: Remove stub file.
57525
57526 2007-09-07  Simon Josefsson  <simon@josefsson.org>
57527
57528         * doc/headers/stdint.texi: Discuss #include_next issue.
57529
57530 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
57531
57532         * build-aux/bootstrap: Remove obsolete comment about wget --help.
57533
57534 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57535
57536         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
57537         in variable name.
57538
57539 2007-09-03  Jim Meyering  <jim@meyering.net>
57540
57541         New module: git-version-gen.
57542         * modules/git-version-gen: New file.
57543
57544         Import changes from coreutils for bootstrap script.
57545
57546         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
57547
57548         bootstrap: uses rsync to download the .po files
57549         * build-aux/bootstrap (po_download_command_format): New global.
57550         (download_po_files): Use rsync.
57551         (update_po_files): Don't remove .po files after download,
57552         so future rsync runs can take advantage of the copies.
57553
57554         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
57555
57556         Solve the unnecessary-.po-file-regeneration problem once and for all.
57557         * build-aux/bootstrap (download_po_files): New function, renamed from
57558         get_translations.  Now, downloads, but doesn't update LINGUAS.
57559         (update_po_files): New function.
57560
57561         bootstrap: Ignore more.
57562         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
57563         uniwidth to e.g., lib/.gitignore.
57564         (slurp): Handle the sys_stat_.h -> sys mapping, too.
57565
57566         * build-aux/bootstrap: New setting: vc_ignore.
57567         (insert_sorted_if_absent): Create $file if absent.
57568         Adapt to new, possibly empty, list: $vc_ignore.
57569
57570         bootstrap: generate more ignorable names
57571         * build-aux/bootstrap (slurp): When generating ignorable names,
57572         also map .sin to .sed, .gperf to .c, and .y to .c.
57573
57574 2007-09-03  Jim Meyering  <jim@meyering.net>
57575
57576         * build-aux/git-version-gen: New file, from coreutils.  For details, see
57577         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
57578
57579 2007-09-02  Bruno Haible  <bruno@clisp.org>
57580
57581         Fix mis-recognition of 'mcs' on QNX 6.
57582         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
57583         output contains the string "Mono".
57584         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
57585         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
57586
57587 2007-09-01  Bruno Haible  <bruno@clisp.org>
57588
57589         Fix collision between uniwidth/* and linebreak modules.
57590         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
57591         u32_width): Remove declarations.
57592         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
57593         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
57594         streq3, streq2, streq1, streq0): Remove functions.
57595         (STREQ): Remove macro.
57596         (is_cjk_encoding): Remove function.
57597         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
57598         (uc_width, u8_width, u16_width, u32_width): Remove functions.
57599         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
57600         * NEWS: Document the change.
57601
57602 2007-09-01  Bruno Haible  <bruno@clisp.org>
57603
57604         * lib/streq.h: Add double-inclusion guard.
57605
57606 2007-09-01  Karl Berry  <karl@gnu.org>
57607
57608         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
57609
57610 2007-08-28  Jim Meyering  <jim@meyering.net>
57611
57612         Rename mreadlink_with_size to areadlink_with_size.
57613         * NEWS: Document the change.
57614         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
57615         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
57616         * lib/mreadlink.h: Rename this to...
57617         * lib/areadlink.h: ...this.
57618         * modules/mreadlink-with-size: Rename this to...
57619         * modules/areadlink-with-size: ...this.
57620         * lib/canonicalize.c: Reflect the renaming.
57621         * modules/canonicalize: Likewise.
57622
57623 2007-08-26  Bruno Haible  <bruno@clisp.org>
57624
57625         * gnulib-tool (func_import): When deciding which files to remove,
57626         consider also dangling symbolic links.
57627         Reported by Eric Blake.
57628
57629 2007-08-26  Bruno Haible  <bruno@clisp.org>
57630
57631         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
57632
57633 2007-08-23  Simon Josefsson  <simon@josefsson.org>
57634
57635         * lib/readline.c: Don't include getline.h, the prototype is now
57636         found in stdio.h.
57637
57638 2007-08-23  Jim Meyering  <jim@meyering.net>
57639
57640         Getdelim touchup.
57641         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
57642         around the funlockfile call, since funlockfile never sets errno.
57643         Don't set errno upon failed realloc.
57644
57645 2007-08-22  Eric Blake  <ebb9@byu.net>
57646
57647         Getline touchups.
57648         * lib/getdelim.c (getdelim): Revert regression that required *n to
57649         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
57650         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
57651         getdelim, rather than whether implementation is missing.
57652         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
57653         * lib/stdio_.h (getline): Also declare if replacement is
57654         required.
57655         * doc/functions/getdelim.texi: New file.
57656         * doc/functions/getline.texi: Likewise.
57657         * doc/gnulib.texi (Function Substitutes): Add new files.
57658         Reported by Bruno Haible.
57659
57660 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
57661
57662         * users.txt: Add Guile.
57663
57664 2007-08-22  Eric Blake  <ebb9@byu.net>
57665
57666         * tests/test-getdelim.c (main): Use remove, not unlink.
57667         * tests/test-getline.c (main): Likewise.
57668
57669         Move getline and getdelim into stdio.h, per POSIX 200x.
57670         * modules/getline (Files): Remove getline.h.
57671         (Depends-on): Add stdio.
57672         (configure.ac): Add module indicator.
57673         * modules/getdelim (Files): Remove getdelim.h.
57674         (Depends-on): Add stdio.
57675         (configure.ac): Add module indicator.
57676         * modules/stdio (Makefile.am): Work with new indicators.
57677         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
57678         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
57679         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57680         * lib/getdelim.h: Delete.
57681         * lib/getline.h: Delete.
57682         * lib/stdio_.h (getdelim, getline): Declare.
57683         * modules/getdelim-tests: New module.
57684         * modules/getline-tests: Likewise.
57685         * tests/test-getdelim.c: New file.
57686         * tests/test-getline.c: Likewise.
57687         * NEWS: Document the change.
57688         * lib/getline.c: Update choice of header.
57689         * lib/csharpcomp.c: Likewise.
57690         * lib/getpass.c: Likewise.
57691         * lib/javacomp.c: Likewise.
57692         * lib/javaversion.c: Likewise.
57693         * lib/yesno.c: Likewise.
57694         * lib/getdelim.c: Likewise.
57695         (getdelim): Set errno on failure, and avoid memory leak.
57696
57697 2007-08-19  Bruno Haible  <bruno@clisp.org>
57698
57699         * modules/closein (Depends-on): Add freadahead.
57700         * lib/closein.c: Include freadahead.h.
57701         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
57702         is zero.
57703
57704 2007-08-19  Bruno Haible  <bruno@clisp.org>
57705
57706         * modules/freadahead-tests: New file.
57707         * tests/test-freadahead.sh: New file.
57708         * tests/test-freadahead.c: New file.
57709
57710         * modules/freadahead: New file.
57711         * lib/freadahead.h: New file.
57712         * lib/freadahead.c: New file.
57713         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
57714         fbufmode, fpurge, freadable, fwritable.
57715
57716 2007-08-19  Eric Blake  <ebb9@byu.net>
57717
57718         Test yesno in combination with closein.
57719         * lib/yesno.c (yesno): Document use of stdin.
57720         * modules/yesno-tests (Files): New module.
57721         * tests/test-yesno.c (main): New file.
57722         * tests/test-yesno.sh: Likewise.
57723
57724 2007-08-19  Bruno Haible  <bruno@clisp.org>
57725
57726         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
57727         * lib/fseeko.c (rpl_fseeko): Likewise.
57728         * lib/fseterr.c (fseterr): Likewise.
57729
57730 2007-08-19  Bruno Haible  <bruno@clisp.org>
57731
57732         * tests/test-lseek.c (main): Disable a test for BeOS.
57733         * doc/functions/lseek.texi: Document the BeOS bug.
57734
57735 2007-08-19  Bruno Haible  <bruno@clisp.org>
57736             Eric Blake  <ebb9@byu.net>
57737
57738         * lib/lseek.c: Include <sys/stat.h>.
57739         (rpl_lseek): Add workaround code also for Unix platforms.
57740         Needed for BeOS.
57741         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
57742         * doc/functions/lseek.texi: Document BeOS definiency.
57743
57744 2007-08-18  Bruno Haible  <bruno@clisp.org>
57745
57746         * modules/fstrcmp-tests: New file.
57747         * tests/test-fstrcmp.c: New file.
57748
57749 2007-08-18  Bruno Haible  <bruno@clisp.org>
57750
57751         * modules/fstrcmp: New file, from GNU gettext with modifications.
57752         * lib/fstrcmp.h: New file, from GNU gettext.
57753         * lib/fstrcmp.c: New file, from GNU gettext.
57754         * MODULES.html.sh (String handling): Add fstrcmp.
57755
57756 2007-08-18  Bruno Haible  <bruno@clisp.org>
57757
57758         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
57759         'bool'.
57760         (diag, compareseq): Remove const from the ctxt argument.
57761         (USE_HEURISTIC): Undefine at the end.
57762
57763 2007-08-18  Jim Meyering  <jim@meyering.net>
57764
57765         New file: lib/idcache.h
57766         * NEWS: Mention the addition.
57767         * modules/idcache (Files): Add lib/idcache.h
57768         * lib/idcache.c: Include "idcache.h".
57769         Don't include <sys/types.h>.
57770         Add a FIXME comment.
57771         Move file-scoped "static" declarations to the top.
57772         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
57773
57774 2007-08-17  Bruno Haible  <bruno@clisp.org>
57775         and Paul Eggert  <eggert@cs.ucla.edu>
57776
57777         * MODULES.html.sh: Add diffseq.
57778         * modules/diffseq: New file.
57779         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
57780         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
57781
57782 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57783
57784         Import changes from coreutils for bootstrap script.
57785
57786         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
57787
57788         * build-aux/bootstrap (slurp): Work even in environments where
57789         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
57790         current code does not slurp files whose names start with ".", and
57791         this looks like it might be a troublesome area.
57792
57793         2007-07-11  Jim Meyering  <jim@meyering.net>
57794
57795         If there's a GPL vN copyright comment, require that N == 3.
57796
57797         2007-07-08  Jim Meyering  <jim@meyering.net>
57798
57799         Run the coreutils-specific code only if tests/Makefile.am.in exists.
57800         * build-aux/bootstrap (mam_template): Move definition out of loop.
57801
57802         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
57803
57804         * build-aux/bootstrap (symlink_to_dir): Rename function from
57805         symlink_to_gnulib.  Add a directory parameter.  Update all
57806         callers.
57807         (cp_mark_as_generated): Also check for -- and link to -- files in
57808         gl/.
57809
57810         2007-07-08  Jim Meyering  <jim@meyering.net>
57811
57812         Adapt to deeper hierarchy in gnulib.
57813         * build-aux/bootstrap (symlink_to_dir): If the destination
57814         directory doesn't exist, create it. This is required at least for
57815         "lib/uniwidth/cjk.h".
57816
57817         2007-05-15  Jim Meyering  <jim@meyering.net>
57818
57819         * build-aux/bootstrap: Now that generated Makefile.am files
57820         are no longer under version control, they must be created at
57821         bootstrap time.
57822
57823 2007-08-14  Ben Pfaff  <blp@gnu.org>
57824
57825         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
57826
57827 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57828
57829         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
57830         given the changes below.
57831         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
57832         even on hosts that have padding bits beyond the supported 64.
57833
57834 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
57835
57836         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
57837         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
57838         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
57839         depends on it.
57840         (xstrtol_error): Remove.
57841         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
57842         but with a different signature.
57843         (ATTRIBUTE_NORETURN, __attribute__): New macros.
57844         * lib/xstrtol-error.c: Include exitfail.h.
57845         (xstrtol_fatal): New function, with a different signature from the
57846         old xstrtol_error, so that the caller need not worry about passing
57847         in an exit status, or about storage management of the option argument.
57848         (xstrtol_error): Now a static function.  Redo signature to
57849         implement xstrtol_fatal.  Output the correct number of hyphens in
57850         front of the option so that the caller need not worry about
57851         storage management.
57852         (N_): New macro.
57853         (_): Remove; not used now.
57854         * modules/xstrtol: Depend on getopt.
57855         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
57856         of old STRTOL_FATAL_ERROR macro.
57857         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
57858         of test program.
57859         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
57860         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
57861
57862 2007-08-08  Eric Blake  <ebb9@byu.net>
57863
57864         * lib/xstrtol-error.c: Add missing include.
57865
57866         Move xstrtol messages into gnulib domain, when --pobase is used.
57867         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
57868         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
57869         * modules/xstrtol (Files): Distribute new file.
57870         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
57871         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
57872         * tests/test-xstrtol.c: ...into new file.
57873         * tests/test-xstrtoul.c: Also test xstrtoul.
57874         * tests/test-xstrtoimax.c: Also test xstrtoimax.
57875         * tests/test-xstrtoumax.c: Also test xstrtoumax.
57876         * tests/test-xstrtol.sh: Drive the tests.
57877         * tests/test-xstrtoimax.sh: Likewise.
57878         * tests/test-xstrtoumax.sh: Likewise.
57879         * modules/xstrtol-tests: New module.
57880         * modules/xstrtoimax-tests: Likewise.
57881         * modules/xstrtoumax-tests: Likewise.
57882
57883 2007-08-08  Jim Meyering  <jim@meyering.net>
57884
57885         New function: mfile_name_concat.
57886         * lib/filenamecat.c (mfile_name_concat): New function, just like
57887         file_name_concat, but return NULL upon failure rather than exiting
57888         with a diagnostic.
57889         * lib/filenamecat.h: Declare it.
57890
57891 2007-08-07  Bruno Haible  <bruno@clisp.org>
57892
57893         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
57894         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
57895         warning from gcc.
57896         Reported by Eric Blake.
57897
57898 2007-08-07  Simon Josefsson  <simon@josefsson.org>
57899
57900         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
57901         * modules/crypto/arcfour (License): Likewise.
57902         * modules/crypto/des-tests (License): Likewise.
57903         * modules/crypto/gc-arctwo-tests (License): Likewise.
57904         * modules/crypto/gc-des-tests (License): Likewise.
57905         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
57906         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
57907         * modules/crypto/gc-md2-tests (License): Likewise.
57908         * modules/crypto/gc-md4-tests (License): Likewise.
57909         * modules/crypto/gc-md5-tests (License): Likewise.
57910         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
57911         * modules/crypto/gc-rijndael-tests (License): Likewise.
57912         * modules/crypto/gc-sha1-tests (License): Likewise.
57913         * modules/crypto/gc-tests (License): Likewise.
57914         * modules/crypto/hmac-md5 (License): Likewise.
57915         * modules/crypto/hmac-sha1 (License): Likewise.
57916         * modules/crypto/md2-tests (License): Likewise.
57917         * modules/crypto/md4-tests (License): Likewise.
57918         * modules/crypto/md5 (License): Likewise.
57919         * modules/crypto/rijndael (License): Likewise.
57920         * modules/crypto/sha1 (License): Likewise.
57921         * modules/memxor (License): Likewise.
57922
57923 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
57924         and Bruno Haible  <bruno@clisp.org>
57925
57926         * NEWS: Describe interface changes to human, xstrtol.
57927         * lib/human.h: Include <xstrtol.h>.
57928         (human_options): Return enum strtol_error, not int.  Remove
57929         bool arg; take int * instead.
57930         * lib/human.c: Don't include "gettext.h".
57931         (_): Remove; no longer used.
57932         Don't include <xstrtol.h>, since human.h does it.
57933         (human_options): Adjust to abovementioned interface changes.
57934         Do not report error to stderr; that's now the caller's
57935         responsibility.
57936         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
57937         interface change.
57938         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
57939         Str, Argument_type_string.  All uses changed.  Put " argument"
57940         in diagnostics to make them clearer.  Change wording of suffix
57941         message for clarity.
57942         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
57943         Argument_type_string.
57944         (STRTOL_FATAL_WARN): Remove; no longer used.
57945         * modules/human (Depends-on): Remove gettext-h.
57946
57947 2007-08-06  Simon Josefsson  <simon@josefsson.org>
57948
57949         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
57950
57951 2007-07-31  Bruno Haible  <bruno@clisp.org>
57952
57953         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
57954         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
57955         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
57956
57957 2007-07-31  Bruno Haible  <bruno@clisp.org>
57958
57959         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
57960         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
57961
57962 2007-07-30  Bruno Haible  <bruno@clisp.org>
57963
57964         * modules/base64 (License): Use the synonymous term "LGPLv2+".
57965         * modules/c-ctype (License): Likewise.
57966         * modules/c-strcase (License): Likewise.
57967         * modules/check-version (License): Likewise.
57968         * modules/iconv (License): Likewise.
57969         * modules/iconv_open (License): Likewise.
57970         * modules/read-file (License): Likewise.
57971         * modules/striconv (License): Likewise.
57972         * modules/strverscmp (License): Likewise.
57973         * modules/vasprintf (License): Likewise.
57974         * modules/crypto/des (License): Likewise.
57975         * modules/crypto/gc (License): Likewise.
57976         * modules/crypto/gc-arcfour (License): Likewise.
57977         * modules/crypto/gc-arctwo (License): Likewise.
57978         * modules/crypto/gc-des (License): Likewise.
57979         * modules/crypto/gc-hmac-md5 (License): Likewise.
57980         * modules/crypto/gc-hmac-sha1 (License): Likewise.
57981         * modules/crypto/gc-md2 (License): Likewise.
57982         * modules/crypto/gc-md4 (License): Likewise.
57983         * modules/crypto/gc-md5 (License): Likewise.
57984         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
57985         * modules/crypto/gc-random (License): Likewise.
57986         * modules/crypto/gc-rijndael (License): Likewise.
57987         * modules/crypto/gc-sha1 (License): Likewise.
57988         * modules/crypto/md2 (License): Likewise.
57989         * modules/crypto/md4 (License): Likewise.
57990
57991 2007-07-30  Jim Meyering  <jim@meyering.net>
57992
57993         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
57994         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
57995         it has valid stat data.  This bug would cause du not to count the
57996         sizes of inaccessible directories.
57997         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
57998         in <http://bugzilla.redhat.com/250077>.
57999
58000 2007-07-25  Peter O'Gorman  <peter@pogma.com>
58001             Bruno Haible  <bruno@clisp.org>
58002
58003         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
58004         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
58005         #include_next, gives a diagnostic about it, but reports no error in
58006         the exit code.
58007         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
58008
58009 2007-07-24  Ben Pfaff  <blp@gnu.org>
58010
58011         Improve name: "count-one-bits" is better than "popcount".
58012         * MODULES.html.sh: Update name.
58013         * lib/popcount.h: Renamed lib/count-one-bits.h.
58014         (popcount): Renamed count_one_bits.
58015         (popcountl): Renamed count_one_bits_l.
58016         (popcountll): Renamed count_one_bits_ll.
58017         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
58018         * modules/popcount: Renamed module/count-one-bits.
58019         * modules/popcount-tests: Renamed module/count-one-bits-tests.
58020         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
58021
58022 2007-07-23  Ben Pfaff  <blp@gnu.org>
58023
58024         * lib/popcount.h (popcount32): Reduce size of constants, to allow
58025         better code generation, and add U to large constants to avoid
58026         warnings, in non-GCC case.
58027         Suggested by Bruno Haible.
58028
58029 2007-07-23  Ben Pfaff  <blp@gnu.org>
58030
58031         * lib/popcount.h: Use verify_true instead of if...abort.
58032         * modules/popcount: Depend on verify module.
58033         Suggested by Jim Meyering.
58034
58035 2007-07-23  Bruno Haible  <bruno@clisp.org>
58036
58037         * gnulib-tool (func_import): Create a .cvsignore file also when the
58038         directory is not yet in CVS but the toplevel directory is. When
58039         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
58040         Reported by Karl Berry.
58041
58042 2007-07-22  Ben Pfaff  <blp@gnu.org>
58043
58044         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
58045         case.
58046         Suggested by Eric Blake.
58047
58048 2007-07-22  Ben Pfaff  <blp@gnu.org>
58049
58050         New module: popcount.
58051         * MODULES.html.sh: Add popcount.
58052         * modules/popcount: New file.
58053         * modules/popcount-tests: New file.
58054         * tests/test-popcount.c: New file.
58055         * lib/popcount.h: New file.
58056         * m4/popcount.m4: New file.
58057
58058 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
58059
58060         * build-aux/announce-gen: Update to GPLv3.
58061
58062         * build-aux/config.guess: Update from config.
58063
58064 2007-07-21  Bruno Haible  <bruno@clisp.org>
58065
58066         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
58067         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
58068
58069 2007-07-20  Jim Meyering  <jim@meyering.net>
58070
58071         * check-module: Diagnose a self-dependency.
58072
58073 2007-07-19  Bruno Haible  <bruno@clisp.org>
58074
58075         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
58076         empty.
58077         Reported by Eric Blake.
58078
58079 2007-07-18  Bruno Haible  <bruno@clisp.org>
58080
58081         * gnulib-tool: New options --po-base, --po-domain.
58082         (func_usage): Document them.
58083         (pobase, po_domain): New variables.
58084         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
58085         DEFAULT_TEXT_DOMAIN.
58086         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
58087         (func_import): Consider pobase and po_domain. Create a po/ directory.
58088         (func_create_testdir): Set pobase and po_domain to empty.
58089         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
58090         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
58091
58092 2007-07-18  Bruno Haible  <bruno@clisp.org>
58093
58094         * gnulib-tool (func_get_automake_snippet): Synthesize also an
58095         EXTRA_DIST augmentation for files in build-aux/.
58096
58097 2007-07-16  Bruno Haible  <bruno@clisp.org>
58098
58099         * modules/lseek (License): Use the synonymous term "LGPLv2+".
58100         * modules/getdelim (License): Likewise.
58101
58102 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58103
58104         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
58105         * modules/d-type (License): Likewise.
58106         * modules/extensions (License): Likewise.
58107         * modules/fnmatch (License): Likewise.
58108         * modules/fseeko (License): Likewise.
58109         * modules/getaddrinfo (License): Likewise.
58110         * modules/getline (License): Likewise.
58111         * modules/getlogin_r (License): Likewise.
58112         * modules/getpass (License): Likewise.
58113         * modules/gettimeofday (License): Likewise.
58114         * modules/glob (License): Likewise.
58115         * modules/inet_ntop (License): Likewise.
58116         * modules/malloc (License): Likewise.
58117         * modules/malloca (License): Likewise.
58118         * modules/memmem (License): Likewise.
58119         * modules/mempcpy (License): Likewise.
58120         * modules/memset (License): Likewise.
58121         * modules/minmax (License): Likewise.
58122         * modules/mktime (License): Likewise.
58123         * modules/netinet_in (License): Likewise.
58124         * modules/pathmax (License): Likewise.
58125         * modules/poll (License): Likewise.
58126         * modules/regex (License): Likewise.
58127         * modules/snprintf (License): Likewise.
58128         * modules/stdbool (License): Likewise.
58129         * modules/stdint (License): Likewise.
58130         * modules/stdio (License): Likewise.
58131         * modules/strcase (License): Likewise.
58132         * modules/strcasestr (License): Likewise.
58133         * modules/strdup (License): Likewise.
58134         * modules/string (License): Likewise.
58135         * modules/strndup (License): Likewise.
58136         * modules/strnlen (License): Likewise.
58137         * modules/strpbrk (License): Likewise.
58138         * modules/strptime (License): Likewise.
58139         * modules/strsep (License): Likewise.
58140         * modules/sys_select (License): Likewise.
58141         * modules/sys_socket (License): Likewise.
58142         * modules/sys_stat (License): Likewise.
58143         * modules/sys_time (License): Likewise.
58144         * modules/time (License): Likewise.
58145         * modules/time_r (License): Likewise.
58146         * modules/timegm (License): Likewise.
58147         * modules/unistd (License): Likewise.
58148         * modules/vsnprintf (License): Likewise.
58149         * modules/wctype (License): Likewise.
58150
58151 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58152
58153         * modules/argz (License): LGPLv2+.
58154
58155 2007-07-15  Karl Berry  <karl@gnu.org>
58156
58157         * doc/gnulib.texi: revise node structure per new fdl.texi.
58158
58159 2007-07-14  Bruno Haible  <bruno@clisp.org>
58160
58161         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
58162         the output file.
58163         * lib/uniname/uninames.h: Regenerated.
58164
58165 2007-07-14  Karl Berry  <karl@gnu.org>
58166
58167         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
58168         omitting sectioning and index commands.
58169
58170 2007-07-13  Bruno Haible  <bruno@clisp.org>
58171
58172         New gnulib-tool option --more-symlinks.
58173         * gnulib-tool (func_usage): Document --more-symlinks.
58174         (do_copyrights): New variable.
58175         Recognize option --more-symlinks.
58176         (func_import): Don't add a copyright notice transform to
58177         sed_transform_lib_file if do_copyrights is empty.
58178
58179 2007-07-13  Bruno Haible  <bruno@clisp.org>
58180
58181         * lib/vasnprintf.c (decimal_point_char): Define also if
58182         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
58183         && !NEED_PRINTF_DIRECTIVE_A.
58184         Reported by Clemens Koller <clemens.koller@anagramm.de> via
58185         Gary V. Vaughan <gary@gnu.org>.
58186
58187 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
58188
58189         * lib/inttypes_.h: Undo previous change, since it was fixed
58190         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
58191
58192 2007-07-13  Bruno Haible  <bruno@clisp.org>
58193
58194         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
58195         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
58196
58197 2007-07-13  Jim Meyering  <jim@meyering.net>
58198
58199         df: Don't fail for Tru64's "file-on-file mount".
58200         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
58201         so we fall through and use statfs instead.  Details here:
58202         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
58203         Reported by Albert Chin.
58204
58205 2007-07-13  Bruno Haible  <bruno@clisp.org>
58206
58207         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
58208         * modules/configmake (License): Likewise.
58209         * modules/gettext (License): Likewise.
58210         * modules/gettext-h (License): Likewise.
58211         * modules/include_next (License): Likewise.
58212         * modules/link-warning (License): Likewise.
58213         * modules/localcharset (License): Likewise.
58214         * modules/localename (License): Likewise.
58215         * modules/lock (License): Likewise.
58216         * modules/relocatable-lib-lgpl (License): Likewise.
58217         * modules/size_max (License): Likewise.
58218         * modules/vasnprintf (License): Likewise.
58219         * modules/wchar (License): Likewise.
58220         * modules/xsize (License): Likewise.
58221
58222 2007-07-13  Bruno Haible  <bruno@clisp.org>
58223
58224         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
58225         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
58226
58227 2007-07-12  Bruno Haible  <bruno@clisp.org>
58228
58229         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
58230         in the modules files.
58231
58232 2007-07-11  Karl Berry  <karl@gnu.org>
58233
58234         * MODULES.html.sh (func_module): use
58235          sed -e '\|^'"${includefile}"'$|d'
58236          instead of /.../d, to avoid errors on $includefile's containing /.
58237
58238 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
58239
58240         * gnulib-tool (func_import): Avoid duplication of --avoid
58241         statements
58242         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
58243         names to `_' in variable names.
58244
58245 2007-07-10  Eric Blake  <ebb9@byu.net>
58246
58247         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
58248         * NEWS: Document this change.
58249
58250 2007-07-08  Bruno Haible  <bruno@clisp.org>
58251
58252         Update to Unicode 5.0.
58253         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
58254         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
58255         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
58256         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
58257         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
58258         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
58259         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
58260         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
58261         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
58262         U+10A3F, U+1D242..U+1D244.
58263         (nonspacing_table_ind): Update.
58264         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
58265         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
58266
58267 2007-07-08  Bruno Haible  <bruno@clisp.org>
58268
58269         Update to Unicode 5.0.
58270         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
58271         code transform. Extend the name index field of unicode_name_to_code and
58272         unicode_code_to_name from 16 to 24 bits.
58273         * lib/uniname/uniname.c (unicode_character_name,
58274         unicode_name_character): Add the range 0x12xxx to the code transform.
58275         * lib/uniname/uninames.h: Regenerated.
58276         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
58277
58278 2007-07-07  Bruno Haible  <bruno@clisp.org>
58279
58280         * modules/wcwidth-tests: New file.
58281         * tests/test-wcwidth.c: New file.
58282
58283         Work around MacOS X wcwidth() bug.
58284         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
58285         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
58286         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
58287         original wcwidth in non-UTF-8 locales.
58288         * modules/wcwidth (Depends-on): Add localcharset, streq,
58289         uniwidth/width.
58290         * doc/functions/wcwidth.texi: Update.
58291
58292 2007-07-07  Bruno Haible  <bruno@clisp.org>
58293
58294         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
58295         (wcwidth): New declaration.
58296         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
58297         macros.
58298         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
58299         here. Prepare for creating <wchar.h> unconditionally.
58300         * modules/wchar (Depends-on): Add link-warning.
58301         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
58302         REPLACE_WCWIDTH, and GL_LINK_WARNING.
58303         * lib/wcwidth.h: Remove file.
58304         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
58305         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
58306         * modules/wcwidth (Files): Remove lib/wcwidth.h.
58307         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
58308         (Include): Replace wcwidth.h with <wchar.h>.
58309         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
58310         * lib/mbchar.h: Don't include wcwidth.h.
58311         * lib/mbswidth.c: Likewise.
58312         * NEWS: Mention the change.
58313
58314 2007-07-07  Bruno Haible  <bruno@clisp.org>
58315
58316         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
58317         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
58318         definition with an external declaration.
58319         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
58320         defined as a function. Remove AC_C_INLINE requirement.
58321         * modules/wcwidth (Files): Add lib/wcwidth.c.
58322         (Makefile.am): Remove redundant statement.
58323
58324 2007-07-07  Bruno Haible  <bruno@clisp.org>
58325
58326         * MODULES.html.sh (Unicode string functions): Add the new modules.
58327
58328         * tests/uniwidth/test-u32-strwidth.c: New file.
58329         * modules/uniwidth/u32-strwidth-tests: New file.
58330
58331         * lib/uniwidth/u32-strwidth.c: New file.
58332         * modules/uniwidth/u32-strwidth: New file.
58333
58334         * tests/uniwidth/test-u16-strwidth.c: New file.
58335         * modules/uniwidth/u16-strwidth-tests: New file.
58336
58337         * lib/uniwidth/u16-strwidth.c: New file.
58338         * modules/uniwidth/u16-strwidth: New file.
58339
58340         * tests/uniwidth/test-u8-strwidth.c: New file.
58341         * modules/uniwidth/u8-strwidth-tests: New file.
58342
58343         * lib/uniwidth/u8-strwidth.c: New file.
58344         * modules/uniwidth/u8-strwidth: New file.
58345
58346         * tests/uniwidth/test-u32-width.c: New file.
58347         * modules/uniwidth/u32-width-tests: New file.
58348
58349         * lib/uniwidth/u32-width.c: New file.
58350         * modules/uniwidth/u32-width: New file.
58351
58352         * tests/uniwidth/test-u16-width.c: New file.
58353         * modules/uniwidth/u16-width-tests: New file.
58354
58355         * lib/uniwidth/u16-width.c: New file.
58356         * modules/uniwidth/u16-width: New file.
58357
58358         * tests/uniwidth/test-u8-width.c: New file.
58359         * modules/uniwidth/u8-width-tests: New file.
58360
58361         * lib/uniwidth/u8-width.c: New file.
58362         * modules/uniwidth/u8-width: New file.
58363
58364         * tests/uniwidth/test-uc_width.c: New file.
58365         * modules/uniwidth/width-tests: New file.
58366
58367         * lib/uniwidth/width.c: New file, from GNU libiconv.
58368         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
58369         * modules/uniwidth/width: New file.
58370
58371         * lib/uniwidth.h: New file, from GNU libiconv.
58372         * modules/uniwidth/base: New file.
58373
58374 2007-07-07  Bruno Haible  <bruno@clisp.org>
58375
58376         * lib/uniname.h: New file, from GNU gettext.
58377         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
58378         * lib/uniname/uninames.h: New file, from GNU gettext.
58379         * lib/uniname/uniname.c: New file, from GNU gettext.
58380         * tests/uniname/test-uninames.sh: New file.
58381         * tests/uniname/test-uninames.c: New file, from GNU gettext.
58382         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
58383         * modules/uniname/base: New file.
58384         * modules/uniname/uniname: New file.
58385         * modules/uniname/uniname-tests: New file.
58386         * MODULES.html.sh (Unicode string functions): Add the new modules.
58387
58388 2007-07-06  Bruno Haible  <bruno@clisp.org>
58389
58390         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
58391
58392 2007-07-06  Bruno Haible  <bruno@clisp.org>
58393
58394         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
58395         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
58396         includes <cygwin/sys_time.h> which includes <sys/select.h> which
58397         include <sys/time.h>.
58398         Reported by Eric Blake.
58399
58400 2007-07-06  Eric Blake  <ebb9@byu.net>
58401
58402         Fix testing canonicalize on cygwin.
58403         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58404         Revert patch from 2007-06-19.
58405         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
58406         canonicalize module is also in use.
58407         * tests/test-canonicalize.c: New file.
58408         * tests/test-canonicalize.sh: Likewise.
58409         * modules/canonicalize-tests: Likewise.
58410
58411 2007-07-06  Jim Meyering  <jim@meyering.net>
58412
58413         * lib/getugroups.c (getugroups): Detect getgrent failure.
58414         Adjust comment to reflect reality: this function may return -1.
58415
58416 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
58417
58418         * build-aux/bootstrap (TP_URL,get_translations): Update to use
58419         the new TP address.
58420         (usage): Fix typo
58421         (gnulib_mk): New variable.
58422
58423 2007-07-05  Jim Meyering  <jim@meyering.net>
58424
58425         Don't let endgrent clobber errno, no matter how improbable.
58426         * lib/getugroups.c (getugroups): Save and restore errno around
58427         endgrent call.
58428
58429         Close the group DB even when failing with 2^31 or more members.
58430         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
58431
58432 2007-07-04  Jim Meyering  <jim@meyering.net>
58433
58434         * lib/getugroups.h: New file.
58435         * lib/getugroups.c: Include "getugroups.h".
58436         Remove uses of "register" keyword.
58437         Move local variable, "cp", down into scope where used.
58438         Give "username" parameter the "const" attribute.
58439         * modules/getugroups (Files): Add lib/getugroups.h
58440
58441 2007-07-04  Karl Berry  <karl@gnu.org>
58442
58443         * MODULES.html.sh (func_all_modules): Complete rename of
58444         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
58445
58446 2007-07-02  Bruno Haible  <bruno@clisp.org>
58447
58448         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
58449         mode, when inttypes.h comes from gnulib.
58450         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
58451
58452 2007-07-02  Simon Josefsson  <simon@josefsson.org>
58453
58454         * NEWS: Mention lgpl module name change.
58455
58456         * modules/lgpl-2.1: Renamed from lgpl.
58457
58458         * NEWS: Mention gpl module name change.
58459
58460         * modules/gpl-3.0: New file, based on gpl-2.0.
58461
58462         * modules/gpl-2.0: Renamed from gpl.
58463
58464         * modules/gpl: Fix filename, doc/gpl.texi is now found at
58465         doc/gpl-2.0.texi.
58466
58467 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
58468
58469         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
58470         #define __STDC_LIMIT_MACROS temporarily while including
58471         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
58472         Problem reported by Joel E. Denny in
58473         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
58474
58475 2007-07-01  Bruno Haible  <bruno@clisp.org>
58476
58477         * lib/unistdio.h: New file.
58478         * lib/unistdio/u-asnprintf.h: New file.
58479         * lib/unistdio/u-asprintf.h: New file.
58480         * lib/unistdio/u-printf-args.c: New file.
58481         * lib/unistdio/u-printf-args.h: New file.
58482         * lib/unistdio/u-printf-parse.h: New file.
58483         * lib/unistdio/u-snprintf.h: New file.
58484         * lib/unistdio/u-sprintf.h: New file.
58485         * lib/unistdio/u-vasprintf.h: New file.
58486         * lib/unistdio/u-vsnprintf.h: New file.
58487         * lib/unistdio/u-vsprintf.h: New file.
58488         * lib/unistdio/ulc-asnprintf.c: New file.
58489         * lib/unistdio/ulc-asprintf.c: New file.
58490         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
58491         * lib/unistdio/ulc-printf-parse.c: New file.
58492         * lib/unistdio/ulc-snprintf.c: New file.
58493         * lib/unistdio/ulc-sprintf.c: New file.
58494         * lib/unistdio/ulc-vasnprintf.c: New file.
58495         * lib/unistdio/ulc-vasprintf.c: New file.
58496         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
58497         * lib/unistdio/ulc-vsnprintf.c: New file.
58498         * lib/unistdio/ulc-vsprintf.c: New file.
58499         * lib/unistdio/u8-asnprintf.c: New file.
58500         * lib/unistdio/u8-asprintf.c: New file.
58501         * lib/unistdio/u8-printf-parse.c: New file.
58502         * lib/unistdio/u8-snprintf.c: New file.
58503         * lib/unistdio/u8-sprintf.c: New file.
58504         * lib/unistdio/u8-vasnprintf.c: New file.
58505         * lib/unistdio/u8-vasprintf.c: New file.
58506         * lib/unistdio/u8-vsnprintf.c: New file.
58507         * lib/unistdio/u8-vsprintf.c: New file.
58508         * lib/unistdio/u8-u8-asnprintf.c: New file.
58509         * lib/unistdio/u8-u8-asprintf.c: New file.
58510         * lib/unistdio/u8-u8-snprintf.c: New file.
58511         * lib/unistdio/u8-u8-sprintf.c: New file.
58512         * lib/unistdio/u8-u8-vasnprintf.c: New file.
58513         * lib/unistdio/u8-u8-vasprintf.c: New file.
58514         * lib/unistdio/u8-u8-vsnprintf.c: New file.
58515         * lib/unistdio/u8-u8-vsprintf.c: New file.
58516         * lib/unistdio/u16-asnprintf.c: New file.
58517         * lib/unistdio/u16-asprintf.c: New file.
58518         * lib/unistdio/u16-printf-parse.c: New file.
58519         * lib/unistdio/u16-snprintf.c: New file.
58520         * lib/unistdio/u16-sprintf.c: New file.
58521         * lib/unistdio/u16-vasnprintf.c: New file.
58522         * lib/unistdio/u16-vasprintf.c: New file.
58523         * lib/unistdio/u16-vsnprintf.c: New file.
58524         * lib/unistdio/u16-vsprintf.c: New file.
58525         * lib/unistdio/u16-u16-asnprintf.c: New file.
58526         * lib/unistdio/u16-u16-asprintf.c: New file.
58527         * lib/unistdio/u16-u16-snprintf.c: New file.
58528         * lib/unistdio/u16-u16-sprintf.c: New file.
58529         * lib/unistdio/u16-u16-vasnprintf.c: New file.
58530         * lib/unistdio/u16-u16-vasprintf.c: New file.
58531         * lib/unistdio/u16-u16-vsnprintf.c: New file.
58532         * lib/unistdio/u16-u16-vsprintf.c: New file.
58533         * lib/unistdio/u32-asnprintf.c: New file.
58534         * lib/unistdio/u32-asprintf.c: New file.
58535         * lib/unistdio/u32-printf-parse.c: New file.
58536         * lib/unistdio/u32-snprintf.c: New file.
58537         * lib/unistdio/u32-sprintf.c: New file.
58538         * lib/unistdio/u32-vasnprintf.c: New file.
58539         * lib/unistdio/u32-vasprintf.c: New file.
58540         * lib/unistdio/u32-vsnprintf.c: New file.
58541         * lib/unistdio/u32-vsprintf.c: New file.
58542         * lib/unistdio/u32-u32-asnprintf.c: New file.
58543         * lib/unistdio/u32-u32-asprintf.c: New file.
58544         * lib/unistdio/u32-u32-snprintf.c: New file.
58545         * lib/unistdio/u32-u32-sprintf.c: New file.
58546         * lib/unistdio/u32-u32-vasnprintf.c: New file.
58547         * lib/unistdio/u32-u32-vasprintf.c: New file.
58548         * lib/unistdio/u32-u32-vsnprintf.c: New file.
58549         * lib/unistdio/u32-u32-vsprintf.c: New file.
58550         * tests/unistdio/test-ulc-asnprintf1.c: New file.
58551         * tests/unistdio/test-ulc-asnprintf1.h: New file.
58552         * tests/unistdio/test-ulc-printf1.h: New file.
58553         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
58554         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
58555         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
58556         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
58557         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
58558         * tests/unistdio/test-ulc-vasprintf1.c: New file.
58559         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
58560         * tests/unistdio/test-ulc-vsprintf1.c: New file.
58561         * tests/unistdio/test-u8-asnprintf1.c: New file.
58562         * tests/unistdio/test-u8-asnprintf1.h: New file.
58563         * tests/unistdio/test-u8-printf1.h: New file.
58564         * tests/unistdio/test-u8-vasnprintf1.c: New file.
58565         * tests/unistdio/test-u8-vasnprintf2.c: New file.
58566         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
58567         * tests/unistdio/test-u8-vasnprintf3.c: New file.
58568         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
58569         * tests/unistdio/test-u8-vasprintf1.c: New file.
58570         * tests/unistdio/test-u8-vsnprintf1.c: New file.
58571         * tests/unistdio/test-u8-vsprintf1.c: New file.
58572         * tests/unistdio/test-u16-asnprintf1.c: New file.
58573         * tests/unistdio/test-u16-asnprintf1.h: New file.
58574         * tests/unistdio/test-u16-printf1.h: New file.
58575         * tests/unistdio/test-u16-vasnprintf1.c: New file.
58576         * tests/unistdio/test-u16-vasnprintf2.c: New file.
58577         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
58578         * tests/unistdio/test-u16-vasnprintf3.c: New file.
58579         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
58580         * tests/unistdio/test-u16-vasprintf1.c: New file.
58581         * tests/unistdio/test-u16-vsnprintf1.c: New file.
58582         * tests/unistdio/test-u16-vsprintf1.c: New file.
58583         * tests/unistdio/test-u32-asnprintf1.c: New file.
58584         * tests/unistdio/test-u32-asnprintf1.h: New file.
58585         * tests/unistdio/test-u32-printf1.h: New file.
58586         * tests/unistdio/test-u32-vasnprintf1.c: New file.
58587         * tests/unistdio/test-u32-vasnprintf2.c: New file.
58588         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
58589         * tests/unistdio/test-u32-vasnprintf3.c: New file.
58590         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
58591         * tests/unistdio/test-u32-vasprintf1.c: New file.
58592         * tests/unistdio/test-u32-vsnprintf1.c: New file.
58593         * tests/unistdio/test-u32-vsprintf1.c: New file.
58594         * modules/unistdio/base: New file.
58595         * modules/unistdio/u-printf-args: New file.
58596         * modules/unistdio/ulc-asnprintf: New file.
58597         * modules/unistdio/ulc-asprintf: New file.
58598         * modules/unistdio/ulc-fprintf: New file.
58599         * modules/unistdio/ulc-printf-parse: New file.
58600         * modules/unistdio/ulc-snprintf: New file.
58601         * modules/unistdio/ulc-sprintf: New file.
58602         * modules/unistdio/ulc-vasnprintf: New file.
58603         * modules/unistdio/ulc-vasprintf: New file.
58604         * modules/unistdio/ulc-vfprintf: New file.
58605         * modules/unistdio/ulc-vsnprintf: New file.
58606         * modules/unistdio/ulc-vsprintf: New file.
58607         * modules/unistdio/u8-asnprintf: New file.
58608         * modules/unistdio/u8-asprintf: New file.
58609         * modules/unistdio/u8-printf-parse: New file.
58610         * modules/unistdio/u8-snprintf: New file.
58611         * modules/unistdio/u8-sprintf: New file.
58612         * modules/unistdio/u8-vasnprintf: New file.
58613         * modules/unistdio/u8-vasprintf: New file.
58614         * modules/unistdio/u8-vsnprintf: New file.
58615         * modules/unistdio/u8-vsprintf: New file.
58616         * modules/unistdio/u8-u8-asnprintf: New file.
58617         * modules/unistdio/u8-u8-asprintf: New file.
58618         * modules/unistdio/u8-u8-snprintf: New file.
58619         * modules/unistdio/u8-u8-sprintf: New file.
58620         * modules/unistdio/u8-u8-vasnprintf: New file.
58621         * modules/unistdio/u8-u8-vasprintf: New file.
58622         * modules/unistdio/u8-u8-vsnprintf: New file.
58623         * modules/unistdio/u8-u8-vsprintf: New file.
58624         * modules/unistdio/u16-asnprintf: New file.
58625         * modules/unistdio/u16-asprintf: New file.
58626         * modules/unistdio/u16-printf-parse: New file.
58627         * modules/unistdio/u16-snprintf: New file.
58628         * modules/unistdio/u16-sprintf: New file.
58629         * modules/unistdio/u16-vasnprintf: New file.
58630         * modules/unistdio/u16-vasprintf: New file.
58631         * modules/unistdio/u16-vsnprintf: New file.
58632         * modules/unistdio/u16-vsprintf: New file.
58633         * modules/unistdio/u16-u16-asnprintf: New file.
58634         * modules/unistdio/u16-u16-asprintf: New file.
58635         * modules/unistdio/u16-u16-snprintf: New file.
58636         * modules/unistdio/u16-u16-sprintf: New file.
58637         * modules/unistdio/u16-u16-vasnprintf: New file.
58638         * modules/unistdio/u16-u16-vasprintf: New file.
58639         * modules/unistdio/u16-u16-vsnprintf: New file.
58640         * modules/unistdio/u16-u16-vsprintf: New file.
58641         * modules/unistdio/u32-asnprintf: New file.
58642         * modules/unistdio/u32-asprintf: New file.
58643         * modules/unistdio/u32-printf-parse: New file.
58644         * modules/unistdio/u32-snprintf: New file.
58645         * modules/unistdio/u32-sprintf: New file.
58646         * modules/unistdio/u32-vasnprintf: New file.
58647         * modules/unistdio/u32-vasprintf: New file.
58648         * modules/unistdio/u32-vsnprintf: New file.
58649         * modules/unistdio/u32-vsprintf: New file.
58650         * modules/unistdio/u32-u32-asnprintf: New file.
58651         * modules/unistdio/u32-u32-asprintf: New file.
58652         * modules/unistdio/u32-u32-snprintf: New file.
58653         * modules/unistdio/u32-u32-sprintf: New file.
58654         * modules/unistdio/u32-u32-vasnprintf: New file.
58655         * modules/unistdio/u32-u32-vasprintf: New file.
58656         * modules/unistdio/u32-u32-vsnprintf: New file.
58657         * modules/unistdio/u32-u32-vsprintf: New file.
58658         * modules/unistdio/ulc-asnprintf-tests: New file.
58659         * modules/unistdio/ulc-vasnprintf-tests: New file.
58660         * modules/unistdio/ulc-vasprintf-tests: New file.
58661         * modules/unistdio/ulc-vsnprintf-tests: New file.
58662         * modules/unistdio/ulc-vsprintf-tests: New file.
58663         * modules/unistdio/u8-asnprintf-tests: New file.
58664         * modules/unistdio/u8-vasnprintf-tests: New file.
58665         * modules/unistdio/u8-vasprintf-tests: New file.
58666         * modules/unistdio/u8-vsnprintf-tests: New file.
58667         * modules/unistdio/u8-vsprintf-tests: New file.
58668         * modules/unistdio/u16-asnprintf-tests: New file.
58669         * modules/unistdio/u16-vasnprintf-tests: New file.
58670         * modules/unistdio/u16-vasprintf-tests: New file.
58671         * modules/unistdio/u16-vsnprintf-tests: New file.
58672         * modules/unistdio/u16-vsprintf-tests: New file.
58673         * modules/unistdio/u32-asnprintf-tests: New file.
58674         * modules/unistdio/u32-vasnprintf-tests: New file.
58675         * modules/unistdio/u32-vasprintf-tests: New file.
58676         * modules/unistdio/u32-vsnprintf-tests: New file.
58677         * modules/unistdio/u32-vsprintf-tests: New file.
58678         * MODULES.html.sh (Unicode string functions): Add the new modules.
58679
58680 2007-07-01  Bruno Haible  <bruno@clisp.org>
58681
58682         * lib/sprintf.c (sprintf): Limit the available length estimation,
58683         to avoid address wraparound.
58684         * lib/vsprintf.c (vsprintf): Likewise.
58685         * modules/sprintf-posix (Dependencies): Add stdint.
58686         * modules/vsprintf-posix (Dependencies): Likewise.
58687
58688 2007-07-01  Bruno Haible  <bruno@clisp.org>
58689
58690         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
58691         Windows PATH as well. Conservative double-quoting. Comments.
58692
58693 2007-07-01  Bruno Haible  <bruno@clisp.org>
58694             Eric Blake  <ebb9@byu.net>
58695             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58696
58697         * gnulib-tool (self_abspathname): Fix algorithm to cope with
58698         empty components in $PATH, denoting '.'.
58699
58700 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58701
58702         * gnulib-tool: Fix indentation.
58703         (func_create_megatestdir): Likewise.
58704         Report by Bruno Haible.
58705
58706 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58707
58708         Sync from Automake.
58709         * build-aux/gnupload: Fix shell portability issues with for loops.
58710         Report by Karl Berry.
58711
58712 2007-06-29  Simon Josefsson  <simon@josefsson.org>
58713
58714         * build-aux/maint.mk (POURL): Use translationproject.org.
58715
58716 2007-06-27  Simon Josefsson  <simon@josefsson.org>
58717             Bruno Haible  <bruno@clisp.org>
58718
58719         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
58720         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
58721         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
58722         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
58723         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
58724
58725 2007-06-27  Bruno Haible  <bruno@clisp.org>
58726
58727         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
58728         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
58729
58730 2007-06-26  Karl Berry  <karl@gnu.org>
58731
58732         * MODULES.html.sh: remove xreadlink-with-size.
58733
58734 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58735
58736         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
58737         method that I hope also handles the double-include problem noted
58738         by Bruno Haible in
58739         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
58740
58741 2007-06-23  Bruno Haible  <bruno@clisp.org>
58742
58743         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58744         Don't let the 'mostlyclean' target fail if the last subdirectory could
58745         not be removed.
58746         Reported by Karl Berry.
58747
58748 2007-06-23  Bruno Haible  <bruno@clisp.org>
58749
58750         * gnulib-tool (echo): Add a speedier workaround for ksh.
58751         * tests/test-echo.sh: Likewise.
58752
58753 2007-06-23  Bruno Haible  <bruno@clisp.org>
58754
58755         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
58756         * tests/test-echo.sh: Likewise.
58757
58758 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58759
58760         * gnulib-tool (IFS): Initialize early, so we don't set it to
58761         empty later.
58762         (self_abspathname): Rewrite algorithm to set it, reindent.
58763         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
58764         (func_create_megatestdir): Merge some sed scripts.
58765
58766 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58767
58768         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
58769         exposed by Sun Studio 11 cc on Solaris 8.
58770
58771 2007-06-22  Bruno Haible  <bruno@clisp.org>
58772
58773         * gnulib-tool (echo): Ensure the echo primitive does not interpret
58774         backslashes.
58775         * tests/test-echo.sh: New file.
58776
58777 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58778
58779         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
58780         simplify `sed_replace_build_aux' scripts, they are portable but
58781         echoing them with `echo' is not.
58782         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
58783
58784 2007-06-21  Karl Berry  <karl@gnu.org>
58785
58786         * config/srclist.txt: guess we can't handle the licenses via
58787         srclist at the moment.
58788
58789 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
58790
58791         * MODULES.html.sh: Add include_next.
58792         * modules/include_next: New file.
58793
58794 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
58795
58796         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
58797         INCLUDE_NEXT.
58798         (gl_CHECK_NEXT_HEADERS): New macro.
58799         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
58800         the obsolescent gl_ABSOLUTE_HEADER.
58801         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
58802         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
58803         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
58804         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
58805         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
58806         * m4/math_h.m4 (gl_MATH_H): Likewise.
58807         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
58808         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
58809         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
58810         * m4/stdint.m4 (gl_STDINT_H): Likewise.
58811         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
58812         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
58813         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
58814         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58815         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
58816         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
58817         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
58818         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
58819         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
58820         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
58821         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
58822         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
58823         * m4/inttypes.m4 (gl_INTTYPES_H): Define
58824         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
58825         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
58826         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
58827         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
58828         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
58829         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
58830         * lib/float_.h: Likewise.
58831         * lib/inttypes_.h: Likewise.
58832         * lib/math_.h: Likewise.
58833         * lib/search_.h: Likewise.
58834         * lib/signal_.h: Likewise.
58835         * lib/stdint_.h: Likewise.
58836         * lib/stdio_.h: Likewise.
58837         * lib/stdlib_.h: Likewise.
58838         * lib/string_.h: Likewise.
58839         * lib/sys_stat_.h: Likewise.
58840         * lib/sys_time_.h: Likewise.
58841         * lib/time_.h: Likewise.
58842         * lib/unistd_.h: Likewise.
58843         * lib/wchar_.h: Likewise.
58844         * lib/wctype_.h: Likewise.
58845         * lib/dirent_.h: Likewise.
58846         * lib/iconv_.h: Likewise.
58847         * lib/locale_.h: Likewise.
58848         * lib/netinet_in_.h: Likewise.
58849         * lib/sys_select_.h: Likewise.
58850         * lib/sys_socket_.h: Likewise.
58851         * lib/sysexits_.h: Likewise.
58852         * modules/fcntl (Depends-on): Depend on include_next, not
58853         absolute_header.
58854         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
58855         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
58856         * modules/fchdir: Likewise.
58857         * modules/float: Likewise.
58858         * modules/iconv_open: Likewise.
58859         * modules/inttypes: Likewise.
58860         * modules/locale: Likewise.
58861         * modules/math: Likewise.
58862         * modules/netinet_in: Likewise.
58863         * modules/search: Likewise.
58864         * modules/signal: Likewise.
58865         * modules/stdint: Likewise.
58866         * modules/stdio: Likewise.
58867         * modules/stdlib: Likewise.
58868         * modules/string: Likewise.
58869         * modules/sys_select: Likewise.
58870         * modules/sys_socket: Likewise.
58871         * modules/sys_stat: Likewise.
58872         * modules/sys_time: Likewise.
58873         * modules/sysexits: Likewise.
58874         * modules/time: Likewise.
58875         * modules/unistd: Likewise.
58876         * modules/wchar: Likewise.
58877         * modules/wctype: Likewise.
58878         * modules/sys_stat: Change maintainer to "all".
58879         * modules/unistd: Likewise.
58880
58881 2007-06-20  Karl Berry  <karl@gnu.org>
58882
58883         * config/srclist.txt: track www changes in license files.
58884
58885 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
58886
58887         * build-aux/bootstrap: Remove stray dot.
58888         Make sure build_aux settings are honored when linking
58889         gnulib_extra_files.
58890
58891 2007-06-19  Eric Blake  <ebb9@byu.net>
58892
58893         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58894         Allow compilation on cygwin.
58895
58896 2007-06-19  Jim Meyering  <jim@meyering.net>
58897
58898         xreadlink-with-size: Remove module.  No longer used.
58899         Ex-callers now use xreadlink or mreadlink-with-size.
58900         * modules/xreadlink-with-size: Remove module.
58901         * lib/xreadlink-with-size.c: Remove file.
58902         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
58903         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
58904         just before the function definition *is* accurate.
58905
58906         Eliminate one way canonicalize_filename_mode could exit.
58907         * lib/canonicalize.c (canonicalize_filename_mode):
58908         Use mreadlink_with_size, not xreadlink_with_size.
58909
58910 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
58911
58912         Detect porting problems to FreeBSD/arm, which has time_t wider than
58913         long int.  Original problem reported for GNU diff by Xin Li in
58914         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
58915         * modules/getdate (Depends-on): Add intprops, verify.
58916         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
58917         is an integer type no wider than long int.
58918
58919 2007-06-18  Jim Meyering  <jim@meyering.net>
58920
58921         New module: mreadlink-with-size.
58922         * MODULES.html.sh: Add mreadlink-with-size.
58923         * modules/mreadlink-with-size: New module
58924         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
58925         not xreadlink-with-size.
58926         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
58927
58928 2007-06-16  Bruno Haible  <bruno@clisp.org>
58929
58930         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
58931         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
58932         Reported by Gary V. Vaughan <gary@gnu.org>.
58933
58934 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
58935
58936         Revamp lchown so that it lives in unistd.h where it belongs.
58937         * lib/lchown.h: Remove.
58938         * lib/dirchownmod.c: Don't include lib/lchown.h.
58939         * lib/fchownat.c: Likewise.
58940         * lib/openat.c: Likewise.
58941         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
58942         does not follow symlinks.
58943         (EOPNOTSUPP): Define if not defined.
58944         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
58945         is defined to 0.
58946         (lchown): New decl.
58947         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
58948         Do not check for lchown decl.
58949         Set REPLACE_LCHOWN.
58950         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
58951         REPLACE_LCHOWN.
58952         * modules/chown: Make it clear it follows symlinks.
58953         * modules/lchown: Make it clear it doesn't follow symlinks.
58954         (Files): Remove lib/lchown.h
58955         (Depends-on): Add unistd.
58956         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
58957         (Include): Include <unistd.h>, not "lchown.h".
58958         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
58959         REPLACE_LCHOWN.
58960
58961 2007-06-15  Jim Meyering  <jim@meyering.net>
58962
58963         Change license (GPL to LGPL) of fsusage and dependents.
58964         * modules/fsusage (License): Change to LGPL.
58965         * modules/full-read (License): Likewise.
58966         * modules/full-write (License): Likewise.
58967         * modules/safe-read (License): Likewise.
58968         * modules/safe-write (License): Likewise.
58969
58970 2007-06-14  Ben Pfaff  <blp@gnu.org>
58971
58972         Missing part of allocsa -> malloca transition.
58973         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
58974         gl_MALLOCA.
58975
58976 2007-06-12  Bruno Haible  <bruno@clisp.org>
58977
58978         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
58979         to ia64, x86_64, i386.
58980         Reported by Eric Blake.
58981
58982 2007-06-12  Bruno Haible  <bruno@clisp.org>
58983
58984         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
58985         cross-compiling to x86_64.
58986
58987 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
58988
58989         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
58990         glitch reported by Ralf Wildenhues in
58991         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
58992
58993         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
58994         Vin Shelton.
58995
58996 2007-06-11  Bruno Haible  <bruno@clisp.org>
58997
58998         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
58999         replacement string.
59000         Reported by Eric Blake.
59001
59002 2007-06-10  Bruno Haible  <bruno@clisp.org>
59003
59004         Prepare vasnprintf code for use with Unicode strings.
59005         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
59006         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
59007         TYPE_U32_STRING.
59008         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
59009         a_u32_string variants.
59010         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
59011         * lib/printf-args.c: Don't include config.h and the specification
59012         header if PRINTF_FETCHARGS is already defined.
59013         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
59014         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
59015         TYPE_U16_STRING, TYPE_U32_STRING.
59016         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
59017         u16_directive, u16_directives, u32_directive, u32_directives): New
59018         types.
59019         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
59020         New declarations.
59021         * lib/printf-parse.c: Don't include config.h and the specification
59022         header if PRINTF_PARSE is already defined. Eliminate the set of
59023         parameters for WIDE_CHAR_VERSION; the user of this file must provide
59024         them now. Include c-ctype.h.
59025         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
59026         directive and CHAR_T_ONLY_ASCII.
59027         * lib/vasnprintf.c: Don't include config.h and the specification header
59028         if VASNPRINTF is already defined.
59029         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
59030         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
59031         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
59032         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
59033         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
59034         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
59035         code accordingly.
59036         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
59037         pad_ourselves also in this case, with the 'c' and 's' directives, and
59038         with a different notion of "width".
59039         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
59040
59041 2007-06-10  Bruno Haible  <bruno@clisp.org>
59042
59043         * modules/unistr/u32-mbsnlen: New file.
59044         * lib/unistr/u32-mbsnlen.c: New file.
59045
59046         * modules/unistr/u16-mbsnlen: New file.
59047         * lib/unistr/u16-mbsnlen.c: New file.
59048
59049         * modules/unistr/u8-mbsnlen: New file.
59050         * lib/unistr/u8-mbsnlen.c: New file.
59051
59052         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
59053         declarations.
59054
59055 2007-06-10  Bruno Haible  <bruno@clisp.org>
59056
59057         * lib/string_.h (mbsnlen): New declaration.
59058         * lib/mbsnlen.c: New file.
59059         * m4/mbsnlen.m4: New file.
59060         * modules/mbsnlen: New file.
59061         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
59062         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
59063         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
59064
59065 2007-06-10  Bruno Haible  <bruno@clisp.org>
59066
59067         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
59068
59069 2007-06-10  Bruno Haible  <bruno@clisp.org>
59070
59071         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
59072         * lib/mbuiter.h: Likewise.
59073
59074 2007-06-10  Bruno Haible  <bruno@clisp.org>
59075
59076         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
59077         declaration.
59078
59079 2007-06-10  Karl Berry  <karl@gnu.org>
59080
59081         * config/srclist.txt: remove gettext entries, Bruno prefers
59082         to update individually.
59083
59084 2007-06-10  Bruno Haible  <bruno@clisp.org>
59085
59086         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
59087         'maxlen'. Ensure only length + width bytes are allocated, not
59088         length + 1 + width.
59089
59090 2007-06-09  Bruno Haible  <bruno@clisp.org>
59091
59092         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
59093         (CHAR_T): Remove macro.
59094         (VASNPRINTF): Update.
59095
59096 2007-06-09  Bruno Haible  <bruno@clisp.org>
59097
59098         * MODULES.html.sh (Unicode string functions): Add the new modules.
59099
59100         * modules/uniconv/u32-conv-to-enc: New file.
59101         * lib/uniconv/u32-conv-to-enc.c: New file.
59102         * modules/uniconv/u32-conv-to-enc-tests: New file.
59103         * tests/uniconv/test-u32-conv-to-enc.c: New file.
59104
59105         * modules/uniconv/u16-conv-to-enc: New file.
59106         * lib/uniconv/u16-conv-to-enc.c: New file.
59107         * lib/uniconv/u-conv-to-enc.h: New file.
59108         * modules/uniconv/u16-conv-to-enc-tests: New file.
59109         * tests/uniconv/test-u16-conv-to-enc.c: New file.
59110
59111         * modules/uniconv/u8-conv-to-enc: New file.
59112         * lib/uniconv/u8-conv-to-enc.c: New file.
59113         * modules/uniconv/u8-conv-to-enc-tests: New file.
59114         * tests/uniconv/test-u8-conv-to-enc.c: New file.
59115
59116         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
59117         u32_conv_to_encoding): New declarations.
59118
59119 2007-06-09  Bruno Haible  <bruno@clisp.org>
59120
59121         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
59122
59123 2007-06-09  Bruno Haible  <bruno@clisp.org>
59124
59125         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
59126         * modules/malloca: Renamed from modules/allocsa, updated.
59127         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
59128         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
59129         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
59130         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
59131         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
59132         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
59133         * modules/xmalloca: Renamed from modules/xallocsa, updated.
59134         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
59135         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
59136         * modules/c-strcasestr (Depends-on): Update.
59137         * lib/c-strcasestr.c: Update.
59138         * modules/c-strstr (Depends-on): Update.
59139         * lib/c-strstr.c: Update.
59140         * modules/canonicalize-lgpl (Depends-on): Update.
59141         * lib/canonicalize-lgpl.c: Update.
59142         * modules/clean-temp (Depends-on): Update.
59143         * lib/clean-temp.c: Update.
59144         * modules/csharpcomp (Depends-on): Update.
59145         * lib/csharpcomp.c: Update.
59146         * modules/csharpexec (Depends-on): Update.
59147         * lib/csharpexec.c: Update.
59148         * modules/javacomp (Depends-on): Update.
59149         * lib/javacomp.c: Update.
59150         * modules/javaexec (Depends-on): Update.
59151         * lib/javaexec.c: Update.
59152         * modules/mbscasestr (Depends-on): Update.
59153         * lib/mbscasestr.c: Update.
59154         * modules/mbsstr (Depends-on): Update.
59155         * lib/mbsstr.c: Update.
59156         * modules/setenv (Depends-on): Update.
59157         * lib/setenv.c: Update.
59158         * modules/strcasestr (Depends-on): Update.
59159         * lib/strcasestr.c: Update.
59160         * modules/striconveha (Depends-on): Update.
59161         * lib/striconveha.c: Update.
59162         * modules/relocatable-prog-wrapper (Files): Update.
59163         * lib/relocwrapper.c: Update.
59164         * build-aux/install-reloc: Update.
59165         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
59166
59167 2007-06-08  Bruno Haible  <bruno@clisp.org>
59168
59169         Port to uClibc.
59170         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
59171         * lib/fpurge.c (fpurge): Likewise.
59172         * lib/freading.c (freading): Likewise.
59173         * lib/fseeko.c (rpl_fseeko): Likewise.
59174         * lib/fseterr.c (fseterr): Likewise.
59175         * lib/fwriting.c (fwriting): Likewise.
59176         * tests/test-fflush.c (main): Avoid a failure on uClibc.
59177
59178 2007-06-08  Bruno Haible  <bruno@clisp.org>
59179
59180         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
59181         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
59182         * modules/gettext (Files): Add m4/intlmacosx.m4.
59183
59184 2007-06-07  Bruno Haible  <bruno@clisp.org>
59185
59186         * modules/localename-tests: New file.
59187         * tests/test-localename.c: New file.
59188
59189         New module 'localename'.
59190         * lib/localename.h: New file.
59191         * lib/localename.c: New file, from GNU gettext.
59192         * m4/localename.m4: New file.
59193         * modules/localename: New file.
59194
59195 2007-06-07  Bruno Haible  <bruno@clisp.org>
59196
59197         Work around the lack of <wchar.h> on some builds of uClibc.
59198         * doc/headers/wchar.texi: Update.
59199         * lib/wchar_.h: Include <wchar.h> only if it exists.
59200         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
59201         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
59202         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
59203         doesn't exist.
59204         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
59205         * modules/mbfile (Depends-on): Add wchar.
59206         * modules/mbiter (Depends-on): Likewise.
59207         * modules/mbuiter (Depends-on): Likewise.
59208         Reported by Simon Josefsson.
59209
59210 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
59211
59212         Work around problem reported by Steven M. Schweda in
59213         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
59214         Tru64 5.1B with the Compaq compiler environment installed declares
59215         an 'isblank' function but does not define it in the C library.
59216         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
59217         * lib/regex_internal.h (isblank): Likewise.
59218         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
59219         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
59220
59221 2007-06-05  Bruno Haible  <bruno@clisp.org>
59222
59223         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
59224         ia64.
59225         * modules/printf-safe: New file.
59226         * modules/fprintf-posix (Depends-on): Add printf-safe.
59227         * modules/printf-posix (Depends-on): Likewise.
59228         * modules/snprintf-posix (Depends-on): Likewise.
59229         * modules/sprintf-posix (Depends-on): Likewise.
59230         * modules/vasnprintf-posix (Depends-on): Likewise.
59231         * modules/vasprintf-posix (Depends-on): Likewise.
59232         * modules/vfprintf-posix (Depends-on): Likewise.
59233         * modules/vprintf-posix (Depends-on): Likewise.
59234         * modules/vsnprintf-posix (Depends-on): Likewise.
59235         * modules/vsprintf-posix (Depends-on): Likewise.
59236         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
59237         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
59238         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
59239         "no" on i386, x86_64, ia64.
59240         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
59241         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59242         on i386, x86_64, ia64.
59243         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
59244         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59245         on i386, x86_64, ia64.
59246         * tests/test-vasnprintf-posix.c: Include float.h.
59247         (LDBL80_WORDS): New macro.
59248         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59249         on i386, x86_64, ia64.
59250         * tests/test-vasprintf-posix.c: Include float.h.
59251         (LDBL80_WORDS): New macro.
59252         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59253         on i386, x86_64, ia64.
59254         * tests/test-snprintf-posix.c: Include float.h.
59255         * tests/test-sprintf-posix.c: Likewise.
59256         * tests/test-vsnprintf-posix.c: Likewise.
59257         * tests/test-vsprintf-posix.c: Likewise.
59258
59259 2007-06-05  Bruno Haible  <bruno@clisp.org>
59260
59261         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
59262         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
59263         non-IEEE numbers on i386, x86_64, ia64.
59264         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
59265         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
59266         * tests/test-isnanl.h: Include float.h.
59267         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
59268
59269 2007-06-05  Bruno Haible  <bruno@clisp.org>
59270
59271         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
59272         also the %a / %A. Handle the %a / %A code before this extra handling.
59273
59274 2007-06-05  Bruno Haible  <bruno@clisp.org>
59275
59276         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
59277         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
59278
59279 2007-06-05  Bruno Haible  <bruno@clisp.org>
59280
59281         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
59282         typo in variable name.
59283
59284 2007-06-05  Eric Blake  <ebb9@byu.net>
59285
59286         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
59287         Reported by Simon Josefsson.
59288
59289 2007-06-04  Bruno Haible  <bruno@clisp.org>
59290
59291         Avoid test failures on some PowerPC platforms.
59292         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
59293         Define differently for PowerPC.
59294         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
59295         Reported by Gary V. Vaughan <gary@gnu.org>.
59296
59297 2007-06-02  Bruno Haible  <bruno@clisp.org>
59298
59299         Fix test-stdint failure on FreeBSD/ia64.
59300         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
59301         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
59302         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
59303         * doc/headers/stdint.texi: Update.
59304
59305 2007-06-01  Bruno Haible  <bruno@clisp.org>
59306
59307         * tests/test-binary-io.c (main): Pass a third argument to open().
59308         Reported by Gary V. Vaughan <gary@gnu.org>.
59309
59310 2007-06-01  Bruno Haible  <bruno@clisp.org>
59311
59312         * doc/functions/frexpl.texi: Update for mingw.
59313
59314 2007-06-01  Bruno Haible  <bruno@clisp.org>
59315
59316         * tests/test-lseek.c (main): Disable test of errno for invalid third
59317         argument.
59318         * doc/functions/lseek.texi: Update.
59319         Reported by Gary V. Vaughan <gary@gnu.org>.
59320
59321 2007-05-28  Bruno Haible  <bruno@clisp.org>
59322
59323         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
59324
59325 2007-05-31  Eric Blake  <ebb9@byu.net>
59326
59327         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
59328         cross compiling.
59329
59330 2007-05-30  Eric Blake  <ebb9@byu.net>
59331         and Bruno Haible  <bruno@clisp.org>
59332
59333         Work around mingw test failures exposed by m4-1.4.9b.
59334         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
59335         * tests/test-unistd.c: Disable uid_t and git_t tests for the
59336         moment.
59337
59338 2007-05-30  Bruno Haible  <bruno@clisp.org>
59339
59340         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
59341         assuming that they are closed. Needed on HP-UX 11.
59342
59343 2007-05-29  Bruno Haible  <bruno@clisp.org>
59344
59345         Fix a problem with #include_next.
59346         * lib/dirent_.h: Split the double-inclusion guard.
59347         * lib/fcntl_.h: Likewise.
59348         * lib/float_.h: Likewise.
59349         * lib/iconv_.h: Likewise.
59350         * lib/inttypes_.h: Likewise.
59351         * lib/locale_.h: Likewise.
59352         * lib/math_.h: Likewise.
59353         * lib/netinet_in_.h: Likewise.
59354         * lib/search_.h: Likewise.
59355         * lib/signal_.h: Likewise.
59356         * lib/stdint_.h: Likewise.
59357         * lib/stdio_.h: Likewise.
59358         * lib/stdlib_.h: Likewise.
59359         * lib/string_.h: Likewise.
59360         * lib/sys_select_.h: Likewise.
59361         * lib/sys_socket_.h: Likewise.
59362         * lib/sys_stat_.h: Likewise.
59363         * lib/sys_time_.h: Likewise.
59364         * lib/sysexits_.h: Likewise.
59365         * lib/time_.h: Likewise.
59366         * lib/unistd_.h: Likewise.
59367         * lib/wchar_.h: Likewise.
59368         * lib/wctype_.h: Likewise.
59369
59370 2007-05-29  Bruno Haible  <bruno@clisp.org>
59371
59372         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
59373         for the moment.
59374
59375 2007-05-29  Bruno Haible  <bruno@clisp.org>
59376
59377         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
59378         invocation.
59379         Reported by Eric Blake.
59380
59381 2007-05-29  Bruno Haible  <bruno@clisp.org>
59382
59383         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
59384         compiling case.
59385
59386 2007-05-29  Eric Blake  <ebb9@byu.net>
59387             Bruno Haible  <bruno@clisp.org>
59388
59389         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
59390         cross compiles.
59391
59392 2007-05-28  Eric Blake  <ebb9@byu.net>
59393
59394         * modules/closein-tests (test_closein_LDADD): Support test on
59395         cygwin with libtool.
59396
59397 2007-05-28  Bruno Haible  <bruno@clisp.org>
59398
59399         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
59400         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
59401         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
59402         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
59403         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
59404         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
59405         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
59406         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
59407         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
59408
59409 2007-05-28  Eric Blake  <ebb9@byu.net>
59410
59411         Unconditionally include <config.h> in unit tests.
59412         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
59413         * tests/test-allocsa.c, tests/test-arcfour.c,
59414         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
59415         tests/test-array_list.c, tests/test-array_oset.c,
59416         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
59417         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
59418         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
59419         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
59420         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
59421         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
59422         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
59423         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
59424         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
59425         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
59426         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
59427         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
59428         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
59429         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
59430         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
59431         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
59432         test-md5.c, test-memmem.c, test-printf-posix.c,
59433         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
59434         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
59435         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
59436         test-strcasestr.c, test-striconv.c, test-striconveh.c,
59437         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
59438         test-vasnprintf-posix2.c, test-vasnprintf.c,
59439         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
59440         test-vfprintf-posix.c, test-vprintf-posix.c,
59441         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
59442         test-xvasprintf.c: Likewise.
59443
59444 2007-05-28  Bruno Haible  <bruno@clisp.org>
59445
59446         * gnulib-tool (func_import): Remember the --with-tests command-line
59447         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
59448         Reported by Eric Blake.
59449
59450 2007-05-28  Bruno Haible  <bruno@clisp.org>
59451
59452         * modules/ftell-tests: New file.
59453         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
59454         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
59455
59456         * lib/ftell.c: New file.
59457         * modules/ftell: New file.
59458         * m4/ftell.m4: New file.
59459         * doc/functions/ftell.texi: Update.
59460         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
59461         REPLACE_FTELL.
59462         * lib/stdio_.h (rpl_ftell): New declaration.
59463         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
59464         REPLACE_FTELL.
59465
59466 2007-05-28  Eric Blake  <ebb9@byu.net>
59467
59468         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
59469
59470 2007-05-28  Bruno Haible  <bruno@clisp.org>
59471
59472         * modules/fseek-tests: New file.
59473         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
59474         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
59475
59476         * lib/fseek.c: New file.
59477         * modules/fseek: New file.
59478         * m4/fseek.m4: New file.
59479         * doc/functions/fseek.texi: Update.
59480         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
59481         REPLACE_FSEEK.
59482         * lib/stdio_.h (rpl_fseek): New declaration.
59483         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
59484         REPLACE_FSEEK.
59485
59486 2007-05-28  Bruno Haible  <bruno@clisp.org>
59487
59488         * lib/stdio_.h (fflush): More comments.
59489
59490 2007-05-28  Bruno Haible  <bruno@clisp.org>
59491
59492         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
59493         runtime test.
59494
59495 2007-05-28  Eric Blake  <ebb9@byu.net>
59496
59497         Improve lseek module.
59498         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
59499         * lib/unistd_.h (lseek): Scale back link warning message.
59500         * tests/test-lseek.c: Beef up test.
59501         * tests/test-lseek.sh: Exercise more facets of lseek.
59502         Reported by Bruno Haible.
59503
59504 2007-05-28  Bruno Haible  <bruno@clisp.org>
59505
59506         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
59507         to define.
59508
59509 2007-05-27  Bruno Haible  <bruno@clisp.org>
59510
59511         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
59512
59513 2007-05-27  Bruno Haible  <bruno@clisp.org>
59514
59515         * modules/openmp: New file.
59516         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
59517         Noah Misch.
59518
59519 2007-05-26  Bruno Haible  <bruno@clisp.org>
59520
59521         * modules/chdir-long (Depends-on): Add fchdir.
59522         * modules/chdir-safer (Depends-on): Likewise.
59523         * modules/fts (Depends-on): Likewise.
59524         * modules/fts-lgpl (Depends-on): Likewise.
59525         * modules/openat (Depends-on): Likewise.
59526         * modules/savewd (Depends-on): Likewise.
59527
59528 2007-05-24  Eric Blake  <ebb9@byu.net>
59529
59530         Fix lseek on mingw.
59531         * modules/lseek: New module.
59532         * m4/lseek.m4: New file.
59533         * lib/lseek.c: New file.
59534         * modules/lseek-tests: New file.
59535         * tests/test-lseek.c: New file.
59536         * tests/test-lseek.sh: New file.
59537         * MODULES.html.sh: Document lseek module.
59538         * modules/fflush (Depends-on): Add lseek, fseeko.
59539         * modules/fseeko (Depends-on): Likewise.
59540         * modules/ftello (Depends-on): Likewise.
59541         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
59542         broken.
59543         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
59544         broken.
59545         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
59546         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
59547         * lib/ftello.c (rpl_ftello): Likewise.
59548         * tests/test-fseeko.c (main): Test this.
59549         * tests/test-fseeko.sh: Likewise.
59550         * tests/test-ftello.c (main): Likewise.
59551         * tests/test-ftello.sh: Likewise.
59552         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
59553         implies replacing fseek.
59554         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
59555         HAVE_FTELLO.
59556         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
59557         * modules/unistd (Makefile.am): Likewise.
59558         * lib/unistd_.h (lseek): Declare a replacement.
59559         * doc/functions/lseek.texi (lseek): Document this fix.
59560         * doc/functions/fseek.texi (fseek): Likewise.
59561         * doc/functions/ftell.texi (ftell): Likewise.
59562
59563 2007-05-24  Bruno Haible  <bruno@clisp.org>
59564
59565         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
59566         in the printed representation of a NaN.
59567         * tests/test-vasprintf-posix.c (test_function): Likewise.
59568         * tests/test-snprintf-posix.h (test_function): Likewise.
59569         * tests/test-sprintf-posix.h (test_function): Likewise.
59570         Reported by Eric Blake.
59571
59572 2007-05-23  Eric Blake  <ebb9@byu.net>
59573
59574         Fix fseeko/ftello on cygwin 1.5.24.
59575         * doc/functions/fseeko.texi (fseeko): Document the fix.
59576         * doc/functions/ftello.texi (ftello): Document the fix.
59577         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
59578         * doc/functions/stdout.text (stdout): New file.
59579         * doc/functions/stderr.text (stderr): New file.
59580         * doc/gnulib.texi (Function Substitutes): Use new files.
59581         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
59582         prior to 1.7.0.
59583         * tests/test-ftello.c (main): Likewise for ftello.
59584         * tests/test-fseeko.sh: New file.
59585         * tests/test-ftello.sh: New file.
59586         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
59587         with seekable stdin.
59588         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
59589         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
59590         (gl_REPLACE_FSEEKO): New macro.
59591         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
59592         * modules/fseeko (Files): Distribute fseeko.c.
59593         * modules/ftello (Files): Distribute ftello.c.
59594         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
59595         mode.
59596         * lib/ftello.c (rpl_ftello): New file.
59597         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
59598         fseeko, ftello.
59599         (gl_STDIN_LARGE_OFFSET): New macro.
59600         * modules/stdio (Makefile.am): Perform the replacement.
59601         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
59602
59603 2007-05-23  Bruno Haible  <bruno@clisp.org>
59604
59605         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
59606         GNULIB_POSIXCHECK is defined.
59607
59608 2007-05-21  Bruno Haible  <bruno@clisp.org>
59609
59610         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
59611         Check also the output for NaN arguments. When cross-compiling, guess
59612         no on IRIX.
59613         * lib/vasnprintf.c: Update comments.
59614         * tests/test-vasnprintf-posix.c (strisnan): New function.
59615         (test_function): Use it.
59616         * tests/test-vasprintf-posix.c (strisnan): New function.
59617         (test_function): Use it.
59618         * tests/test-snprintf-posix.h (strisnan): New function.
59619         (test_function): Use it.
59620         * tests/test-sprintf-posix.h (strisnan): New function.
59621         (test_function): Use it.
59622         Reported by Eric Blake.
59623
59624 2007-05-20  Bruno Haible  <bruno@clisp.org>
59625
59626         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
59627         numbers that fails on BeOS.
59628         * doc/functions/frexpl.texi: Update.
59629
59630 2007-05-20  Jim Meyering  <jim@meyering.net>
59631
59632         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
59633         forced upon us by glibc-2.6.
59634
59635 2007-05-20  Bruno Haible  <bruno@clisp.org>
59636
59637         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
59638         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
59639         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
59640         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
59641         NEED_PRINTF_INFINITE.
59642         (is_infinitel): New function.
59643         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
59644         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
59645         gl_PREREQ_VASNPRINTF_INFINITE.
59646         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
59647         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59648         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
59649         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
59650         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
59651         gl_PREREQ_VASNPRINTF_INFINITE.
59652         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59653         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59654         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59655         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59656         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59657         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59658         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59659         * doc/functions/fprintf.texi: Update.
59660         * doc/functions/printf.texi: Update.
59661         * doc/functions/snprintf.texi: Update.
59662         * doc/functions/sprintf.texi: Update.
59663         * doc/functions/vfprintf.texi: Update.
59664         * doc/functions/vprintf.texi: Update.
59665         * doc/functions/vsnprintf.texi: Update.
59666         * doc/functions/vsprintf.texi: Update.
59667
59668 2007-05-20  Bruno Haible  <bruno@clisp.org>
59669
59670         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
59671         was not found in libc.
59672         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
59673
59674 2007-05-20  Bruno Haible  <bruno@clisp.org>
59675
59676         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59677         printed as "-nan" instead of "nan".
59678         * tests/test-vasprintf-posix.c (test_function): Likewise.
59679         * tests/test-snprintf-posix.h (test_function): Likewise.
59680         * tests/test-sprintf-posix.h (test_function): Likewise.
59681         Needed for HP-UX 11.
59682
59683 2007-05-20  Jim Meyering  <jim@meyering.net>
59684
59685         Fix buggy test for the fchownat-deref bug.
59686         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
59687         symlink required for the run-test.  Without it, this test would
59688         always declare that fchownat doesn't work, and client code would
59689         unnecessarily use the replacement function with fixed libc.
59690         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
59691         Reported by Greg Schafer.
59692
59693 2007-05-19  Bruno Haible  <bruno@clisp.org>
59694
59695         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
59696         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
59697         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
59698         Needed for IRIX 6.5 and Solaris 2.5.1.
59699
59700 2007-05-19  Bruno Haible  <bruno@clisp.org>
59701
59702         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
59703         (test_function): Skip tests involving -0.0 on platforms where
59704         -0.0 = 0.0.
59705         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
59706         (test_function): Skip tests involving -0.0 on platforms where
59707         -0.0 = 0.0.
59708         * tests/test-snprintf-posix.h (have_minus_zero): New function.
59709         (test_function): Skip tests involving -0.0 on platforms where
59710         -0.0 = 0.0.
59711         * tests/test-sprintf-posix.h (have_minus_zero): New function.
59712         (test_function): Skip tests involving -0.0 on platforms where
59713         -0.0 = 0.0.
59714         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
59715         tests.
59716         * tests/test-printf-posix.h (test_function): Likewise.
59717         * tests/test-printf-posix.output: Remove all -0.0 related results.
59718         Needed for IRIX 6.5.
59719
59720 2007-05-19  Bruno Haible  <bruno@clisp.org>
59721
59722         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59723         printed as "nan0x7fffffff" instead of "nan".
59724         * tests/test-vasprintf-posix.c (test_function): Likewise.
59725         * tests/test-snprintf-posix.h (test_function): Likewise.
59726         * tests/test-sprintf-posix.h (test_function): Likewise.
59727         * tests/test-fprintf-posix.h (NaN): Remove macro.
59728         (test_function): Remove all NaN related tests.
59729         * tests/test-printf-posix.h (NaN): Remove macro.
59730         (test_function): Remove all NaN related tests.
59731         * tests/test-printf-posix.output: Remove all NaN related results.
59732         Needed for IRIX 6.5.
59733
59734 2007-05-19  Bruno Haible  <bruno@clisp.org>
59735
59736         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
59737         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
59738
59739 2007-05-19  Bruno Haible  <bruno@clisp.org>
59740
59741         * lib/float_.h: New file.
59742         * m4/float_h.m4: New file.
59743         * modules/float: New file.
59744         * modules/isnanl (Dependencies): Add float.
59745         * modules/isnanl-nolibm (Dependencies): Likewise.
59746         * modules/mathl (Dependencies): Likewise.
59747         * modules/printf-frexpl (Dependencies): Likewise.
59748         * modules/signbit (Dependencies): Likewise.
59749         * modules/vasnprintf (Dependencies): Likewise.
59750         * doc/headers/float.texi: Update.
59751
59752 2007-05-19  Jim Meyering  <jim@meyering.net>
59753
59754         * lib/utimens.c (gl_futimens): Rename from futimens,
59755         now that glibc-2.6 declares futimens.
59756         * lib/utimens.h: Likewise.
59757
59758 2007-05-19  Bruno Haible  <bruno@clisp.org>
59759
59760         Avoid test failures on mingw.
59761         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
59762         * tests/test-printf-posix.sh: Likewise.
59763         * tests/test-vfprintf-posix.sh: Likewise.
59764         * tests/test-vprintf-posix.sh: Likewise.
59765
59766 2007-05-19  Bruno Haible  <bruno@clisp.org>
59767
59768         Fix *printf result for NaN, Inf, -0.0 on mingw.
59769         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
59770         * lib/vasnprintf.c: Include math.h and isnan.h.
59771         (is_infinite_or_zero): New function.
59772         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
59773         values in the %f, %F, %e, %E, %g, %G directives.
59774         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
59775         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59776         gl_PRINTF_INFINITE and test its result. Invoke
59777         gl_PREREQ_VASNPRINTF_INFINITE.
59778         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59779         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59780         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59781         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59782         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59783         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59784         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59785         * doc/functions/fprintf.texi: Update.
59786         * doc/functions/printf.texi: Update.
59787         * doc/functions/snprintf.texi: Update.
59788         * doc/functions/sprintf.texi: Update.
59789         * doc/functions/vfprintf.texi: Update.
59790         * doc/functions/vprintf.texi: Update.
59791         * doc/functions/vsnprintf.texi: Update.
59792         * doc/functions/vsprintf.texi: Update.
59793
59794 2007-05-19  Bruno Haible  <bruno@clisp.org>
59795
59796         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
59797         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
59798         Instead of multiplying with 10^k, set extra_zeroes to k.
59799         (scale10_round_long_double): Remove function.
59800
59801 2007-05-18  Bruno Haible  <bruno@clisp.org>
59802
59803         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
59804         introduced on 2007-05-06.
59805
59806 2007-05-18  Bruno Haible  <bruno@clisp.org>
59807
59808         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
59809         %g directives.
59810         * tests/test-vasprintf-posix.c (test_function): Likewise.
59811         * tests/test-snprintf-posix.h (test_function): Likewise.
59812         * tests/test-sprintf-posix.h (test_function): Likewise.
59813
59814 2007-05-18  Bruno Haible  <bruno@clisp.org>
59815
59816         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
59817         (strmatch): New function.
59818         (test_function): Test the %f directive on numbers of various exponents.
59819         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
59820         (strmatch): New function.
59821         (test_function): Test the %f directive on numbers of various exponents.
59822         * tests/test-snprintf-posix.h (strmatch): New function.
59823         (test_function): Test the %f directive on numbers of various exponents.
59824         * tests/test-sprintf-posix.h (strmatch): New function.
59825         (test_function): Test the %f directive on numbers of various exponents.
59826         * tests/test-snprintf-posix.c (SIZEOF): New macro.
59827         * tests/test-sprintf-posix.c (SIZEOF): New macro.
59828         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
59829         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
59830
59831 2007-05-18  Bruno Haible  <bruno@clisp.org>
59832
59833         Add support for 'long double' number output.
59834         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
59835         * lib/vasnprintf.c: Include math.h and float+.h.
59836         (mp_limb_t): New type.
59837         (GMP_LIMB_BITS): New macro.
59838         (mp_twolimb_t): New type.
59839         (GMP_TWOLIMB_BITS): New macro.
59840         (mpn_t): New type.
59841         (multiply, divide, convert_to_decimal, decode_long_double,
59842         scale10_round_long_double, scale10_round_decimal_long_double,
59843         floorlog10l): New functions.
59844         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
59845         for the %f, %F, %e, %E, %g, %G directives.
59846         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
59847         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59848         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
59849         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
59850         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59851         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59852         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59853         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59854         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59855         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59856         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59857         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
59858         * modules/snprintf-posix (Depends-on): Likewise.
59859         * modules/sprintf-posix (Depends-on): Likewise.
59860         * modules/vasnprintf-posix (Depends-on): Likewise.
59861         * modules/vasprintf-posix (Depends-on): Likewise.
59862         * modules/vfprintf-posix (Depends-on): Likewise.
59863         * modules/vsnprintf-posix (Depends-on): Likewise.
59864         * modules/vsprintf-posix (Depends-on): Likewise.
59865         * modules/vasnprintf (Files): Add lib/float+.h.
59866         * doc/functions/fprintf.texi: Update.
59867         * doc/functions/printf.texi: Update.
59868         * doc/functions/snprintf.texi: Update.
59869         * doc/functions/sprintf.texi: Update.
59870         * doc/functions/vfprintf.texi: Update.
59871         * doc/functions/vprintf.texi: Update.
59872         * doc/functions/vsnprintf.texi: Update.
59873         * doc/functions/vsprintf.texi: Update.
59874
59875 2007-05-18  Bruno Haible  <bruno@clisp.org>
59876
59877         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
59878
59879 2007-05-18  Bruno Haible  <bruno@clisp.org>
59880
59881         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
59882         for printing 64-bit integers. Needed for mingw.
59883
59884 2007-05-18  Bruno Haible  <bruno@clisp.org>
59885
59886         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
59887         gl_FUNC_FREXPL_WORKS.
59888         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
59889
59890 2007-05-18  Bruno Haible  <bruno@clisp.org>
59891
59892         * modules/frexpl-nolibm-tests: New file.
59893
59894         * modules/frexpl-nolibm: New file.
59895         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
59896
59897 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
59898
59899         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
59900         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59901         GCC 4.2, which otherwise issues a lot of warnings.
59902         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
59903         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
59904         Likewise.
59905         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
59906         * modules/iconv_open (iconv.h): Likewise.
59907         * modules/locale (locale.h): Likewise.
59908         * modules/netinet_in (netinet/in.h): Likewise.
59909         * modules/sys_select (sys_select.h): Likewise.
59910         * modules/sys_socket (sys/socket.h): Likewise.
59911         * modules/sys_stat (sys/stat.h): Likewise.
59912         * modules/sysexits (sysexits.h): Likewise.
59913         * modules/unistd (unistd.h): Likewise.
59914
59915 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59916
59917         * modules/closein-tests (Makefile.am): Distribute
59918         `test-closein.sh'.
59919
59920 2007-05-17  Bruno Haible  <bruno@clisp.org>
59921
59922         * tests/test-printf-posix.output: Renamed from
59923         tests/test-fprintf-posix.out.
59924         * modules/fprintf-posix-tests: Update.
59925         * modules/printf-posix-tests: Update.
59926         * modules/vfprintf-posix-tests: Update.
59927         * modules/vprintf-posix-tests: Update.
59928         * tests/test-fprintf-posix.sh: Update.
59929         * tests/test-printf-posix.sh: Update.
59930         * tests/test-vfprintf-posix.sh: Update.
59931         * tests/test-vprintf-posix.sh: Update.
59932         Reported by Ralf Wildenhues.
59933
59934 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
59935
59936         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
59937         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59938         GCC 4.2, which otherwise issues a lot of warnings.
59939         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
59940         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
59941         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
59942         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
59943         it should no longer be needed.
59944         * lib/string_.h: Likewise.
59945         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
59946         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
59947         * modules/inttypes (inttypes.h): Likewise.
59948         * modules/math (math.h): Likewise.
59949         * modules/search (search.h): Likewise.
59950         * modules/signal (signal.h): Likewise.
59951         * modules/stdint (stdint.h): Likewise.
59952         * modules/stdio (stdio.h): Likewise.
59953         * modules/stdlib (stdlib.h): Likewise.
59954         * modules/string (string.h): Likewise.
59955         * modules/sys_time (sys/time.h): Likewise.
59956         * modules/time (time.h): Likewise.
59957         * modules/wchar (wchar.h): Likewise.
59958         * modules/wctype (wtype.h): Likewise.
59959
59960 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
59961
59962         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
59963
59964 2007-05-13  Bruno Haible  <bruno@clisp.org>
59965
59966         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
59967         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59968         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
59969         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
59970         (gl_PREREQ_STRTOK_R): Don't require it here.
59971
59972 2007-05-13  Bruno Haible  <bruno@clisp.org>
59973
59974         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
59975         when used in C++ mode.
59976
59977 2007-05-12  Bruno Haible  <bruno@clisp.org>
59978
59979         * lib/linebuffer.h: Tweak doc.
59980         * lib/linebuffer.c: Likewise.
59981
59982 2007-05-12  James Youngman  <jay@gnu.org>
59983
59984         * lib/linebuffer.c (readlinebuffer_delim): New function,
59985         like readlinebuffer, but use a caller-specified delimiter.
59986         (readlinebuffer): Just call readlinebuffer_delim with '\n'
59987         as the delimiter.
59988         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
59989
59990 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59991
59992         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
59993         * modules/openat (Files): Remove openat-die.c.
59994         (Depends-on): Add openat-die.
59995         * modules/openat-die: New module.
59996
59997 2007-05-06  Bruno Haible  <bruno@clisp.org>
59998
59999         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
60000         Update with info about Cygwin.
60001         * doc/functions/fprintf.texi: Update.
60002         * doc/functions/printf.texi: Update.
60003         * doc/functions/snprintf.texi: Update.
60004         * doc/functions/sprintf.texi: Update.
60005         * doc/functions/vfprintf.texi: Update.
60006         * doc/functions/vprintf.texi: Update.
60007         * doc/functions/vsnprintf.texi: Update.
60008         * doc/functions/vsprintf.texi: Update.
60009         Reported by Eric Blake.
60010
60011 2007-05-06  Bruno Haible  <bruno@clisp.org>
60012
60013         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
60014         padding ourselves for the floating-point directives.
60015         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
60016         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
60017         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60018         gl_PRINTF_FLAG_ZERO and test its result. Invoke
60019         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
60020         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60021         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
60022         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60023         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60024         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60025         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60026         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60027         * tests/test-snprintf-posix.h (test_function): Also check the width
60028         and some flags in the %f directive.
60029         * tests/test-sprintf-posix.h (test_function): Likewise.
60030         * tests/test-vasnprintf-posix.c (test_function): Likewise.
60031         * tests/test-vasprintf-posix.c (test_function): Likewise.
60032         * doc/functions/fprintf.texi: Update.
60033         * doc/functions/printf.texi: Update.
60034         * doc/functions/snprintf.texi: Update.
60035         * doc/functions/sprintf.texi: Update.
60036         * doc/functions/vfprintf.texi: Update.
60037         * doc/functions/vprintf.texi: Update.
60038         * doc/functions/vsnprintf.texi: Update.
60039         * doc/functions/vsprintf.texi: Update.
60040
60041 2007-05-06  Bruno Haible  <bruno@clisp.org>
60042
60043         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
60044         pass the ' flag character to sprintf or snprintf.
60045         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
60046         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
60047         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60048         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
60049         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
60050         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60051         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
60052         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60053         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60054         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60055         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60056         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60057         * tests/test-snprintf-posix.h (test_function): Also check the grouping
60058         flag.
60059         * tests/test-sprintf-posix.h (test_function): Likewise.
60060         * tests/test-vasnprintf-posix.c (test_function): Likewise.
60061         * tests/test-vasprintf-posix.c (test_function): Likewise.
60062         * doc/functions/fprintf.texi: Update.
60063         * doc/functions/printf.texi: Update.
60064         * doc/functions/snprintf.texi: Update.
60065         * doc/functions/sprintf.texi: Update.
60066         * doc/functions/vfprintf.texi: Update.
60067         * doc/functions/vprintf.texi: Update.
60068         * doc/functions/vsnprintf.texi: Update.
60069         * doc/functions/vsprintf.texi: Update.
60070
60071 2007-05-01  Bruno Haible  <bruno@clisp.org>
60072
60073         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
60074
60075 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
60076
60077         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
60078         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
60079
60080 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60081
60082         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
60083         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
60084         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
60085
60086 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
60087
60088         * lib/argp-help.c (struct hol_entry): New member `ord'.
60089         (HOL_ENTRY_PTRCMP): Use ord for comparison
60090         (hol_sort): Initialize ord.
60091
60092 2007-05-01  Bruno Haible  <bruno@clisp.org>
60093
60094         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
60095         Reported by Eric Blake.
60096         * doc/gnulib.texi (Function Substitutes): Update.
60097
60098 2007-05-01  Bruno Haible  <bruno@clisp.org>
60099
60100         * doc/functions.texi: Remove file, now redundant through
60101         doc/functions/*.texi.
60102
60103 2007-05-01  Bruno Haible  <bruno@clisp.org>
60104
60105         * modules/argp (Depends-on): Add sleep.
60106
60107 2007-05-01  Bruno Haible  <bruno@clisp.org>
60108
60109         * modules/sleep-tests: New file.
60110         * tests/test-sleep.c: New file.
60111
60112         * modules/sleep: New file.
60113         * lib/sleep.c: New file.
60114         * m4/sleep.m4: New file.
60115         * lib/unistd_.h (sleep): New declaration.
60116         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
60117         HAVE_SLEEP.
60118         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
60119         * doc/functions/sleep.texi: Document the sleep module.
60120
60121 2007-05-01  Bruno Haible  <bruno@clisp.org>
60122
60123         * lib/sigprocmask.h: Remove file.
60124         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
60125         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
60126         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
60127         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
60128         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
60129         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
60130         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
60131         HAVE_SIGSET_T as a shell variable.
60132         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
60133         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
60134         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
60135         (Depends-on): Add signal. Remove verify.
60136         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
60137         (Include): Mention <signal.h> instead of sigprocmask.h.
60138         * NEWS: Mention the change.
60139         * lib/fatal-signal.c: Don't include sigprocmask.h.
60140
60141 2007-05-01  Bruno Haible  <bruno@clisp.org>
60142
60143         * modules/signal: New file.
60144         * lib/signal_.h: New file.
60145         * m4/signal_h.m4: New file.
60146
60147 2007-05-01  Bruno Haible  <bruno@clisp.org>
60148
60149         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
60150         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
60151         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
60152         HAVE_WCTYPE_CTMP_BUG into wctype.h.
60153
60154 2007-05-01  Bruno Haible  <bruno@clisp.org>
60155
60156         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
60157         configure time.
60158         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
60159         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
60160         * modules/sys_stat (Makefile.am): Substitute their values into
60161         sys/stat.h.
60162
60163 2007-05-01  Bruno Haible  <bruno@clisp.org>
60164
60165         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
60166         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
60167         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
60168
60169 2007-05-01  Bruno Haible  <bruno@clisp.org>
60170
60171         * doc/header/assert.texi: Undo last change: don't mention the gnulib
60172         'assert' module here.
60173
60174 2007-05-01  Bruno Haible  <bruno@clisp.org>
60175
60176         * doc/functions/*.texi: New files.
60177         * doc/functions/google-ranking.txt: New file.
60178         * doc/gnulib.texi (Function Substitutes): New chapter.
60179         (ctime, inet_ntoa): Remove sections.
60180         * doc/ctime.texi: Remove file.
60181         * doc/inet_ntoa.texi: Remove file.
60182         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
60183         dependencies.
60184         (%.info): New rule, specifying a --reference-limit.
60185
60186 2007-05-01  Bruno Haible  <bruno@clisp.org>
60187
60188         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
60189
60190 2007-05-01  Bruno Haible  <bruno@clisp.org>
60191
60192         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
60193         the portability of 'mkdir' to mingw systems.
60194
60195 2007-05-01  Bruno Haible  <bruno@clisp.org>
60196
60197         * doc/headers/google-ranking.txt: New file.
60198
60199 2007-04-30  Eric Blake  <ebb9@byu.net>
60200
60201         Prefer fseeko to fseek.
60202         * modules/getpass (Depends-on): Add fseeko.
60203         * lib/getpass.c (getpass): Use fseeko, not fseek.
60204
60205 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
60206
60207         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
60208         assumes the sorting is stable, while most qsort implementations
60209         are not.  Use argument addresses to ensure they never compare as
60210         equal.
60211
60212         * tests/test-argp-2.sh (usage-indent test): Fix output
60213         (func_compare): Restore diff options
60214         * tests/test-argp.c: Restore #include "progname.h"
60215
60216 2007-04-29  Bruno Haible  <bruno@clisp.org>
60217
60218         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
60219         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60220         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
60221         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60222         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
60223         (configure.ac): Define CHECK_SNPRINTF_POSIX.
60224         (TESTS, check_PROGRAMS): Add test-snprintf.
60225         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
60226         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
60227         (TESTS, check_PROGRAMS): Add test-vsnprintf.
60228         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
60229         assertions that fail on HP-UX, OSF/1, or IRIX.
60230         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
60231
60232 2007-04-29  Bruno Haible  <bruno@clisp.org>
60233
60234         * MODULES.html.sh (posix_functions): Remove 'contents'.
60235
60236 2007-04-29  Karl Berry  <karl@gnu.org>
60237
60238         * config/srclist.txt (gendocs_template_min): new entry.
60239
60240 2007-04-29  Bruno Haible  <bruno@clisp.org>
60241
60242         Work around fpurge bug on BSD systems.
60243         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
60244         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
60245         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
60246         fpurge to rpl_fpurge if the system already has this function.
60247         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
60248         the case where the system already has this function. Correct invariants
60249         on BSD systems.
60250         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
60251         BSD systems.
60252
60253 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
60254
60255         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
60256         proposed by Sven Verdoolaege.
60257
60258         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
60259         options.
60260         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
60261         (usage and help tests): Update
60262
60263 2007-04-29  Bruno Haible  <bruno@clisp.org>
60264
60265         * tests/test-fflush.c (main): Use a file of size 17, not 10.
60266         Print more information in case of failure. Disable a test on BeOS.
60267
60268 2007-04-29  Bruno Haible  <bruno@clisp.org>
60269
60270         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
60271         This helps debugging on systems on which no gdb is available.
60272
60273 2007-04-29  Bruno Haible  <bruno@clisp.org>
60274
60275         * lib/freading.h: Improve comments.
60276         * lib/fwriting.h: Likewise.
60277         * tests/test-freading.c (main): Don't check freading immediately after
60278         repositioning. Needed for glibc.
60279
60280 2007-04-29  Bruno Haible  <bruno@clisp.org>
60281
60282         * lib/freading.c (freading): Trivial simplification.
60283
60284 2007-04-28  Bruno Haible  <bruno@clisp.org>
60285
60286         * tests/test-fwriting.c (main): Also test the interaction between
60287         fflush and fwriting.
60288         * modules/fwriting-tests (Depends-on): Add fflush.
60289
60290         * tests/test-freading.c (main): Also test the interaction between
60291         fflush and freading.
60292         * modules/freading-tests (Depends-on): Add fflush.
60293
60294 2007-04-28  Bruno Haible  <bruno@clisp.org>
60295
60296         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
60297         fseeko and ftello.
60298         Suggested by Eric Blake.
60299
60300 2007-04-28  Jim Meyering  <jim@meyering.net>
60301
60302         Avoid false-negative in gl_STDINT_H's C99 conformance test.
60303         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
60304         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
60305
60306 2007-04-27  Eric Blake  <ebb9@byu.net>
60307
60308         * doc/headers/assert.texi (assert.h): Document assert module use.
60309
60310 2007-04-27  Bruno Haible  <bruno@clisp.org>
60311
60312         * doc/headers/*.texi: New files.
60313         * doc/gnulib.texi (Header File Substitutes): New chapter.
60314         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
60315         dependencies.
60316         (standards.info ,standards.html, standards.dvi): Update dependencies.
60317         (mostlyclean, clean): New targets.
60318
60319 2007-04-27  Bruno Haible  <bruno@clisp.org>
60320
60321         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
60322         * modules/sysexits (Files, Makefile.am): Update.
60323
60324         * lib/sys_socket_.h: Renamed from lib/socket_.h.
60325         * modules/sys_socket (Files, Makefile.am): Update.
60326
60327         * lib/sys_stat_.h: Renamed from lib/stat_.h.
60328         * modules/sys_stat (Files, Makefile.am): Update.
60329
60330 2007-04-27  Eric Blake  <ebb9@byu.net>
60331
60332         * lib/freading.h: Improve comments.
60333         * lib/fwriting.h: Likewise.
60334         * lib/fflush.c: Likewise.
60335
60336         Fix closein for mingw.
60337         * modules/closein-tests: Add tests for closein.
60338         * tests/test-closein.c: New file.
60339         * tests/test-closein.sh: Likewise.
60340         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
60341         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
60342
60343 2007-04-27  Bruno Haible  <bruno@clisp.org>
60344
60345         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
60346         version is < 6.
60347         * lib/math_.h [__DECC]: Likewise.
60348         * lib/stdio_.h [__DECC]: Likewise.
60349         * lib/stdlib_.h [__DECC]: Likewise.
60350         * lib/string_.h [__DECC]: Likewise.
60351         * lib/time_.h [__DECC]: Likewise.
60352         * lib/wchar_.h [__DECC]: Likewise.
60353         * lib/wctype_.h [__DECC]: Likewise.
60354
60355 2007-04-27  Bruno Haible  <bruno@clisp.org>
60356
60357         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
60358
60359 2007-04-27  Bruno Haible  <bruno@clisp.org>
60360
60361         * lib/fflush.c: Add comments.
60362         * modules/fpurge-tests (Depends-on): Add fflush.
60363         * modules/freadable-tests (Depends-on): Likewise.
60364         * modules/fwritable-tests (Depends-on): Likewise.
60365
60366 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
60367
60368         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
60369         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
60370         Report by Bruno Haible <bruno@clisp.org>.
60371
60372 2007-04-26  Eric Blake  <ebb9@byu.net>
60373
60374         Fix fflush on mingw.
60375         * modules/fflush (Depends-on): Add freading.
60376         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
60377         but unread data.
60378
60379 2007-04-26  Eric Blake  <ebb9@byu.net>
60380         and Bruno Haible  <bruno@clisp.org>
60381
60382         Implement freading and fwriting.
60383         * lib/freading.c: New file.
60384         * lib/freading.h: Likewise.
60385         * m4/freading.m4: Likewise.
60386         * modules/freading: Likewise.
60387         * modules/freading-tests: Likewise.
60388         * tests/test-freading.c: Likewise.
60389         * lib/fwriting.c: New file.
60390         * lib/fwriting.h: Likewise.
60391         * m4/fwriting.m4: Likewise.
60392         * modules/fwriting: Likewise.
60393         * modules/fwriting-tests: Likewise.
60394         * tests/test-fwriting.c: Likewise.
60395         * MODULES.html.sh (File stream based Input/Output): Mention them.
60396
60397 2007-04-26  Bruno Haible  <bruno@clisp.org>
60398
60399         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
60400         'long' when we assume it.
60401         Suggested by Eric Blake.
60402
60403 2007-04-26  Bruno Haible  <bruno@clisp.org>
60404
60405         Ensure fseeko, ftello are declared on glibc systems.
60406         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
60407         * modules/fseeko (configure.ac-early): Likewise.
60408         * modules/ftello (configure.ac-early): Likewise.
60409         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
60410         AC_FUNC_FSEEKO for this.
60411         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
60412         (gl_CHECK_FSEEKO): Remove macro.
60413
60414 2007-04-26  Bruno Haible  <bruno@clisp.org>
60415
60416         * tests/test-fflush.c (main): Also check the ftell result after
60417         fflush and fseek/fseeko.
60418         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
60419         file descriptor position cache in the stream.
60420         * lib/fseeko.c (rpl_fseeko): Likewise.
60421
60422 2007-04-26  Bruno Haible  <bruno@clisp.org>
60423
60424         * modules/fflush-tests (Depends-on): Add fseeko.
60425
60426 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
60427             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60428
60429         * lib/argz_.h: ensure error_t definition is obtained in same
60430         mechanism system argz.h would have.
60431         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
60432         argz facilities are known bad.  Err on the side of caution if
60433         cross-compiling.
60434
60435 2007-04-25  Eric Blake  <ebb9@byu.net>
60436
60437         * lib/fpurge.c (includes): Use stdlib.h for free.
60438         * tests/test-fflush.c (main): Also test fflush-fseeko.
60439
60440 2007-04-25  Bruno Haible  <bruno@clisp.org>
60441
60442         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
60443         * lib/fseeko.c: New file.
60444         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
60445         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
60446         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
60447         gl_FUNC_FSEEKO.
60448         (gl_FUNC_FSEEKO): Invoke it.
60449         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
60450         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
60451         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
60452
60453 2007-04-25  Bruno Haible  <bruno@clisp.org>
60454
60455         * modules/fflush (Depends-on): Add ftello.
60456
60457 2007-04-25  Bruno Haible  <bruno@clisp.org>
60458
60459         * modules/ftello-tests: New file.
60460         * tests/test-ftello.c: New file.
60461
60462         * modules/ftello: New file.
60463         * m4/ftello.m4: New file.
60464         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
60465         HAVE_FTELLO.
60466         * lib/stdio_.h (ftello): New declaration.
60467         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
60468         HAVE_FTELLO.
60469
60470 2007-04-25  Bruno Haible  <bruno@clisp.org>
60471
60472         * modules/fseeko-tests: New file.
60473         * tests/test-fseeko.c: New file.
60474
60475         * modules/fseeko: New file.
60476         * m4/fseeko.m4: New file.
60477         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
60478         HAVE_FSEEKO.
60479         * lib/stdio_.h (fseeko): New declaration.
60480         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
60481         HAVE_FSEEKO.
60482
60483 2007-04-25  Bruno Haible  <bruno@clisp.org>
60484
60485         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
60486
60487 2007-04-25  Bruno Haible  <bruno@clisp.org>
60488
60489         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
60490         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
60491         * tests/test-unistd.c: Likewise.
60492         * tests/test-fcntl.c: Likewise.
60493
60494 2007-04-23  Eric Blake  <ebb9@byu.net>
60495
60496         * lib/fflush.c: Fix missing include.
60497         Reported by Bruno Haible.
60498
60499 2007-04-23  Bruno Haible  <bruno@clisp.org>
60500
60501         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
60502         Reported by Eric Blake.
60503
60504 2007-04-23  Bruno Haible  <bruno@clisp.org>
60505
60506         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
60507
60508 2007-04-23  Bruno Haible  <bruno@clisp.org>
60509
60510         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
60511
60512 2007-04-23  Bruno Haible  <bruno@clisp.org>
60513
60514         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
60515         Needed on HP-UX 11.
60516
60517 2007-04-16  Eric Blake  <ebb9@byu.net>
60518
60519         Make fflush rely on fpurge.
60520         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
60521         open coding all variants.
60522         * modules/fflush (Depends-on): Add fpurge and unistd.
60523         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
60524         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
60525
60526         Fix --with-tests compilation on cygwin.
60527         * modules/argmatch-tests (Makefile.am): List gnulib library first
60528         in LDADD.
60529         * modules/argp-tests (Makefile.am): Likewise.
60530         * modules/array-list-tests (Makefile.am): Likewise.
60531         * modules/array-oset-tests (Makefile.am): Likewise.
60532         * modules/avltree-list-tests (Makefile.am): Likewise.
60533         * modules/avltree-oset-tests (Makefile.am): Likewise.
60534         * modules/avltreehash-list-tests (Makefile.am): Likewise.
60535         * modules/carray-list-tests (Makefile.am): Likewise.
60536         * modules/dirname-tests (Makefile.am): Likewise.
60537         * modules/frexp-tests (Makefile.am): Likewise.
60538         * modules/isnanl-tests (Makefile.am): Likewise.
60539         * modules/linked-list-tests (Makefile.am): Likewise.
60540         * modules/linkedhash-list-tests (Makefile.am): Likewise.
60541         * modules/lock-tests (Makefile.am): Likewise.
60542         * modules/rbtree-list-tests (Makefile.am): Likewise.
60543         * modules/rbtree-oset-tests (Makefile.am): Likewise.
60544         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
60545         * modules/tls-tests (Makefile.am): Likewise.
60546         * modules/tsearch-tests (Makefile.am): Likewise.
60547         * modules/xvasprintf-tests (Makefile.am): Likewise.
60548
60549         Fix fpurge for cygwin.
60550         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
60551         value.
60552         * modules/fpurge-tests (Depends-on): Clean up trash.
60553
60554 2007-04-16  Simon Josefsson  <simon@josefsson.org>
60555
60556         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
60557
60558         * m4/autobuild.m4: Re-indent.
60559
60560 2007-04-13  Bruno Haible  <bruno@clisp.org>
60561
60562         * modules/fpurge-tests: New file.
60563         * tests/test-fpurge.c: New file.
60564
60565         * modules/fpurge: New file.
60566         * lib/fpurge.h: New file.
60567         * lib/fpurge.c: New file.
60568         * m4/fpurge.m4: New file.
60569
60570 2007-04-13  Bruno Haible  <bruno@clisp.org>
60571
60572         * modules/fbufmode-tests: New file.
60573         * tests/test-fbufmode.c: New file.
60574
60575         * modules/fbufmode: New file.
60576         * lib/fbufmode.h: New file.
60577         * lib/fbufmode.c: New file.
60578         * m4/fbufmode.m4: New file.
60579
60580 2007-04-13  Bruno Haible  <bruno@clisp.org>
60581
60582         * modules/fwritable-tests: New file.
60583         * tests/test-fwritable.c: New file.
60584
60585         * modules/fwritable: New file.
60586         * lib/fwritable.h: New file.
60587         * lib/fwritable.c: New file.
60588         * m4/fwritable.m4: New file.
60589
60590 2007-04-13  Bruno Haible  <bruno@clisp.org>
60591
60592         * modules/freadable-tests: New file.
60593         * tests/test-freadable.c: New file.
60594
60595         * modules/freadable: New file.
60596         * lib/freadable.h: New file.
60597         * lib/freadable.c: New file.
60598         * m4/freadable.m4: New file.
60599
60600 2007-04-13  Bruno Haible  <bruno@clisp.org>
60601
60602         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
60603         MOSTLYCLEANFILES.
60604
60605 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
60606
60607         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
60608         gzip bootstrap.conf to avoid dragging in i18n machinery.
60609         (gnulib_tool_option): Use it.
60610
60611 2007-04-13  Bruno Haible  <bruno@clisp.org>
60612
60613         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
60614         %F directives.
60615         * tests/test-vasprintf-posix.c (test_function): Likewise.
60616         * tests/test-snprintf-posix.h (test_function): Likewise.
60617         * tests/test-sprintf-posix.h (test_function): Likewise.
60618         * tests/test-fprintf-posix.h (test_function): Likewise.
60619         * tests/test-printf-posix.h (test_function): Likewise.
60620         * tests/test-fprintf-posix.out: Likewise.
60621
60622 2007-04-13  Bruno Haible  <bruno@clisp.org>
60623
60624         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
60625         * modules/tls-tests (configure.ac): Likewise.
60626         Reported by Arto C. Nirkko <anirkko@insel.ch>.
60627
60628 2007-04-13  Bruno Haible  <bruno@clisp.org>
60629
60630         * lib/tls.c (glthread_tls_get): Fix return type.
60631         Patch by Arto C. Nirkko <anirkko@insel.ch>.
60632
60633 2007-04-12  Eric Blake  <ebb9@byu.net>
60634
60635         * modules/gettime (Depends-on): Remove gettime.
60636         Reported by Dmitry V. Levin.
60637
60638 2007-04-12  Bruno Haible  <bruno@clisp.org>
60639
60640         * modules/fflush (Include): Mention <stdio.h>.
60641         * modules/strtoimax (Include): Mention <inttypes.h>.
60642         * modules/strtoumax (Include): Likewise.
60643
60644 2007-04-12  Eric Blake  <ebb9@byu.net>
60645
60646         * .cvsignore: New file.
60647         * .gitignore: Likewise.
60648
60649 2007-04-12  Bruno Haible  <bruno@clisp.org>
60650
60651         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
60652         not before, since $(LDADD) often contains libgnu.a.
60653         * modules/striconv-tests (test_striconv_LDADD): Likewise.
60654         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
60655         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
60656         Needed on Cygwin.
60657
60658 2007-04-12  Eric Blake  <ebb9@byu.net>
60659
60660         Work around glibc's failure to flush stdin on fclose.
60661         * lib/closein.c (close_stdin): Flush stdin before closing.
60662
60663         Work around glibc's failure to reset seekable stdin on exit.
60664         * modules/closein: New module.
60665         * lib/closein.c: New file.
60666         * lib/closein.h: Likewise.
60667         * m4/closein.m4: Likewise.
60668         * MODULES.html.sh (File stream based Input/Output): Document it.
60669
60670 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60671
60672         * gnulib-tool: Rename generated 'autobuild' script to
60673         'do-autobuild' in --create-megatestdir output.
60674
60675         * doc/gnulib.texi (Build robot for gnulib): Fix.
60676
60677 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60678
60679         * modules/sysexits (Depends-on): Add absolute-header.
60680
60681 2007-04-12  Eric Blake  <ebb9@byu.net>
60682
60683         No need to preserve errno on success.
60684         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
60685         Reported by Bruno Haible.
60686
60687 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60688
60689         * MODULES.html.sh (Support for maintaining and releasing
60690         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
60691
60692 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60693
60694         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
60695
60696 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60697
60698         * modules/autobuild: New module.
60699
60700         * m4/autobuild.m4: New file.
60701
60702 2007-04-11  Bruno Haible  <bruno@clisp.org>
60703
60704         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
60705         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
60706         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
60707         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
60708         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_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/snprintf-posix.m4 (gl_FUNC_SNPRINTF_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/sprintf-posix.m4 (gl_FUNC_SPRINTF_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/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_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/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_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         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
60724         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60725         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60726         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
60727         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60728         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60729         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
60730         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60731         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60732         Reported by Eric Blake.
60733
60734 2007-04-11  Bruno Haible  <bruno@clisp.org>
60735
60736         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
60737
60738 2007-04-10  Bruno Haible  <bruno@clisp.org>
60739
60740         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
60741         for NaN and Infinity. Needed on FreeBSD 6.1.
60742         * tests/test-vasnprintf-posix.c (test_function): Undo last change
60743         regarding results for "%010a" of Infinity and NaN.
60744         * tests/test-vasprintf-posix.c (test_function): Likewise.
60745         * tests/test-snprintf-posix.h (test_function): Likewise.
60746         * tests/test-sprintf-posix.h (test_function): Likewise.
60747         * tests/test-fprintf-posix.h (test_function): Likewise.
60748         * tests/test-printf-posix.h (test_function): Likewise.
60749         * tests/test-fprintf-posix.out: Likewise.
60750
60751 2007-04-10  Bruno Haible  <bruno@clisp.org>
60752
60753         * modules/locale-tests: New file.
60754         * tests/test-locale.c: New file.
60755
60756         * modules/locale: New file.
60757         * lib/locale_.h: New file.
60758         * m4/locale_h.m4: New file.
60759
60760 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
60761             Bruno Haible  <bruno@clisp.org>
60762
60763         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
60764         be determined, test for availability of the copysignf, copysign,
60765         copysignl functions.
60766         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
60767         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
60768         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
60769
60770 2007-04-09  Eric Blake  <ebb9@byu.net>
60771
60772         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
60773         * modules/stdio (Makefile.am): Support fflush.
60774         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
60775         * modules/fflush: New file.
60776         * lib/fflush.c: Likewise.
60777         * m4/fflush.m4: Likewise.
60778         * modules/fflush-tests: New test.
60779         * tests/test-fflush.c: Likewise.
60780         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
60781
60782 2007-04-06  Bruno Haible  <bruno@clisp.org>
60783
60784         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
60785         (VASNPRINTF): Use signbit for faster determination whether to print a
60786         minus sign.
60787         * modules/vasnprintf (Files): Remove lib/float+.h.
60788         * modules/fprintf-posix (Depends-on): Add signbit.
60789         * modules/snprintf-posix (Depends-on): Likewise.
60790         * modules/sprintf-posix (Depends-on): Likewise.
60791         * modules/vasnprintf-posix (Depends-on): Likewise.
60792         * modules/vasprintf-posix (Depends-on): Likewise.
60793         * modules/vfprintf-posix (Depends-on): Likewise.
60794         * modules/vsnprintf-posix (Depends-on): Likewise.
60795         * modules/vsprintf-posix (Depends-on): Likewise.
60796
60797 2007-04-06  Bruno Haible  <bruno@clisp.org>
60798
60799         * tests/test-frexp.c (main): Test also the sign bit of zero results.
60800         * tests/test-frexpl.c (main): Likewise.
60801         * tests/test-ldexpl.c (main): Likewise.
60802         * modules/frexp-tests (Depends-on): Add signbit.
60803         * modules/frexpl-tests (Depdends-on): Likewise.
60804         * modules/ldexpl-tests (Depdends-on): Likewise.
60805
60806 2007-04-06  Bruno Haible  <bruno@clisp.org>
60807
60808         * modules/signbit-tests: New file.
60809         * tests/test-signbit.c: New file.
60810
60811         * modules/signbit: New file.
60812         * lib/signbitf.c: New file.
60813         * lib/signbitd.c: New file.
60814         * lib/signbitl.c: New file.
60815         * m4/signbit.m4: New file.
60816         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
60817         (signbit): New macro.
60818         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
60819         REPLACE_SIGNBIT.
60820         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
60821         REPLACE_FREXPL into math.h.
60822
60823 2007-04-06  Bruno Haible  <bruno@clisp.org>
60824
60825         * modules/isnanf-nolibm-tests: New file.
60826         * tests/test-isnanf.c: New file.
60827
60828         * modules/isnanf-nolibm: New file.
60829         * lib/isnanf.h: New file.
60830         * lib/isnanf.c: New file.
60831         * lib/isnan.c: Consider the USE_FLOAT macro.
60832         * m4/isnanf.m4: New file.
60833
60834 2007-04-06  Bruno Haible  <bruno@clisp.org>
60835
60836         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
60837         (Link): New section.
60838
60839         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
60840
60841 2007-04-06  Bruno Haible  <bruno@clisp.org>
60842
60843         Assume the 'long double' type.
60844         * m4/longdouble.m4: Remove file.
60845         * config/srclist.txt: Don't mention longdouble.m4.
60846         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
60847         * lib/float+.h: Likewise.
60848         * lib/frexp.c: Likewise.
60849         * lib/printf-args.h: Likewise.
60850         * lib/printf-args.c: Likewise.
60851         * lib/printf-frexp.c: Likewise.
60852         * lib/printf-parse.c: Likewise.
60853         * lib/vasnprintf.c: Likewise.
60854         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
60855         * m4/intl.m4: Likewise.
60856         * m4/isnanl.m4: Likewise.
60857         * m4/printf.m4: Likewise.
60858         * m4/printf-frexpl.m4: Likewise.
60859         * m4/vasnprintf.m4: Likewise.
60860         * modules/allocsa (Files): Remove m4/longdouble.m4.
60861         * modules/gettext (Files): Likewise.
60862         * modules/relocatable-prog-wrapper (Files): Likewise.
60863         * modules/vasnprintf (Files): Likewise.
60864         * modules/isnanl (Files): Likewise.
60865         (Include): Simplify.
60866         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
60867         (Include): Simplify.
60868         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
60869         (Include): Simplify.
60870         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
60871         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60872         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
60873         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60874         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60875         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60876         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
60877         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60878         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60879         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60880         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
60881         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60882         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
60883         * tests/test-isnanl.c: Likewise.
60884         * tests/test-snprintf-posix.h: Likewise.
60885         * tests/test-sprintf-posix.h: Likewise.
60886         * tests/test-vasnprintf-posix.c: Likewise.
60887         * tests/test-vasnprintf-posix2.c: Likewise.
60888         * tests/test-vasprintf-posix.c: Likewise.
60889
60890 2007-04-06  Bruno Haible  <bruno@clisp.org>
60891
60892         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
60893         * lib/math_.h [__DECC]: Include the overridden include file through
60894         #include_next, outside the double-inclusion guard.
60895         * lib/stdio_.h [__DECC]: Likewise.
60896         * lib/stdlib_.h [__DECC]: Likewise.
60897         * lib/string_.h [__DECC]: Likewise.
60898         * lib/time_.h [__DECC]: Likewise.
60899         * lib/wchar_.h [__DECC]: Likewise.
60900         * lib/wctype_.h [__DECC]: Likewise.
60901         * lib/inttypes_.h [__DECC]: Likewise.
60902         Reported by Albert Chin <china@thewrittenword.com> in
60903         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
60904
60905 2007-04-04  Eric Blake  <ebb9@byu.net>
60906
60907         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
60908         1.5.x.
60909
60910 2007-04-04  Bruno Haible  <bruno@clisp.org>
60911
60912         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
60913         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
60914
60915 2007-04-04  Bruno Haible  <bruno@clisp.org>
60916
60917         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
60918         results for "%010a" of Infinity and NaN.
60919         * tests/test-vasprintf-posix.c (test_function): Likewise.
60920         * tests/test-snprintf-posix.h (test_function): Likewise.
60921         * tests/test-sprintf-posix.h (test_function): Likewise.
60922         * tests/test-fprintf-posix.h (test_function): Remove these tests.
60923         * tests/test-printf-posix.h (test_function): Likewise.
60924         * tests/test-fprintf-posix.out: Update.
60925         Needed for FreeBSD 6.1.
60926
60927 2007-04-04  Bruno Haible  <bruno@clisp.org>
60928
60929         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
60930         directly used by the gnulib modules nor by gnulib-tool.
60931
60932 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
60933
60934         * DEPENDENCIES: Give overall description of version dependency
60935         desirability.  Use more-typical names for apps.
60936         Add shell, coreutils, diffutils, grep, tar, gzip.
60937
60938 2007-04-04  Simon Josefsson  <simon@josefsson.org>
60939
60940         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
60941
60942 2007-04-04  Karl Berry  <karl@gnu.org>
60943
60944         * MODULES.html.sh (func_module): missing '.
60945
60946 2007-04-03  Bruno Haible  <bruno@clisp.org>
60947
60948         * modules/argmatch-tests (Makefile.am): New variable
60949         test_argmatch_LDADD.
60950         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
60951         * modules/array-list-tests (Makefile.am): New variable
60952         test_array_list_LDADD.
60953         * modules/array-oset-tests (Makefile.am): New variable
60954         test_array_oset_LDADD.
60955         * modules/avltree-list-tests (Makefile.am): New variable
60956         test_avltree_list_LDADD.
60957         * modules/avltree-oset-tests (Makefile.am): New variable
60958         test_avltree_oset_LDADD.
60959         * modules/avltreehash-list-tests (Makefile.am): New variable
60960         test_avltreehash_list_LDADD.
60961         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
60962         test_canonicalize_lgpl_LDADD.
60963         * modules/carray-list-tests (Makefile.am): New variable
60964         test_carray_list_LDADD.
60965         * modules/dirname-tests (Makefile.am): New variable
60966         test_dirname_LDADD.
60967         * modules/linked-list-tests (Makefile.am): New variable
60968         test_linked_list_LDADD.
60969         * modules/linkedhash-list-tests (Makefile.am): New variable
60970         test_linkedhash_list_LDADD.
60971         * modules/rbtree-list-tests (Makefile.am): New variable
60972         test_rbtree_list_LDADD.
60973         * modules/rbtree-oset-tests (Makefile.am): New variable
60974         test_rbtree_oset_LDADD.
60975         * modules/rbtreehash-list-tests (Makefile.am): New variable
60976         test_rbtreehash_list_LDADD.
60977         * modules/xvasprintf-tests (Makefile.am): New variable
60978         test_xvasprintf_LDADD.
60979         Reported by Eric Blake.
60980
60981 2007-04-03  Eric Blake  <ebb9@byu.net>
60982
60983         * DEPENDENCIES: Weaken m4 requirements.
60984
60985 2007-04-03  Bruno Haible  <bruno@clisp.org>
60986
60987         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
60988         * modules/isnanl-tests (configure.ac): Likewise.
60989
60990 2007-04-03  Ben Pfaff  <blp@gnu.org>
60991
60992         * modules/iconv_open: Add $(srcdir)/ to source directory
60993         references in Makefile fragments that call gperf, to fix VPATH
60994         builds.
60995
60996 2007-04-03  Bruno Haible  <bruno@clisp.org>
60997
60998         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
60999         * lib/ldexpl.c: Undo last change.
61000
61001 2007-04-03  Bruno Haible  <bruno@clisp.org>
61002
61003         * modules/printf-frexpl (Depends-on): Undo last change.
61004         (Files): Add m4/ldexpl.m4.
61005
61006 2007-04-03  Bruno Haible  <bruno@clisp.org>
61007
61008         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
61009         * modules/isnanl (Link): New section.
61010
61011         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
61012         * modules/frexp (Link): New section.
61013
61014         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
61015         * modules/frexpl (Link): New section.
61016
61017         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
61018         * modules/ldexpl (Link): New section.
61019
61020 2007-04-03  Bruno Haible  <bruno@clisp.org>
61021
61022         * modules/TEMPLATE-EXTENDED: New file.
61023         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
61024
61025 2007-04-03  Bruno Haible  <bruno@clisp.org>
61026
61027         * DEPENDENCIES: New file.
61028         Suggested by Simon Josefsson.
61029
61030 2007-04-03  Bruno Haible  <bruno@clisp.org>
61031
61032         * doc/gnulib.texi: Escape @.
61033
61034 2007-04-03  James Youngman  <jay@gnu.org>
61035         and Paul Eggert  <eggert@cs.ucla.edu>
61036
61037         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
61038         birthtime on all systems that have birthtime, not just those which
61039         use st_birthtimensec rather than st_birthtim.  Putting zero in
61040         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
61041         that the birth time is not available for files on an NFS mount.
61042
61043 2007-04-03  Simon Josefsson  <simon@josefsson.org>
61044
61045         * modules/memxor: Move back from crypto/, suggested by Bruno.
61046         * modules/crypto/hmac-sha1: Fix memxor dependency.
61047
61048         * modules/crypto/gc: Moved from ../.
61049
61050 2007-04-02  Eric Blake  <ebb9@byu.net>
61051
61052         * lib/ldexpl.c (includes): Avoid libm.
61053
61054         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
61055
61056 2007-04-02  Bruno Haible  <bruno@clisp.org>
61057
61058         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
61059         on IRIX.
61060
61061 2007-04-02  Bruno Haible  <bruno@clisp.org>
61062
61063         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
61064         x86 or x86_64 platforms running MacOS X.
61065         Reported by Ryan Schmidt <@ryandesign.com>.
61066
61067 2007-04-02  Bruno Haible  <bruno@clisp.org>
61068
61069         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
61070         i386.
61071
61072 2007-04-01  Simon Josefsson  <simon@josefsson.org>
61073
61074         * modules/crypto/arcfour: Moved from ../.
61075         * modules/crypto/arcfour-tests: Moved from ../.
61076         * modules/crypto/arctwo: Moved from ../.
61077         * modules/crypto/arctwo-tests: Moved from ../.
61078         * modules/crypto/des: Moved from ../.
61079         * modules/crypto/des-tests: Moved from ../.
61080         * modules/crypto/gc-arcfour: Moved from ../.
61081         * modules/crypto/gc-arcfour-tests: Moved from ../.
61082         * modules/crypto/gc-arctwo: Moved from ../.
61083         * modules/crypto/gc-arctwo-tests: Moved from ../.
61084         * modules/crypto/gc-des: Moved from ../.
61085         * modules/crypto/gc-des-tests: Moved from ../.
61086         * modules/crypto/gc-hmac-md5: Moved from ../.
61087         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
61088         * modules/crypto/gc-hmac-sha1: Moved from ../.
61089         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
61090         * modules/crypto/gc-md2: Moved from ../.
61091         * modules/crypto/gc-md2-tests: Moved from ../.
61092         * modules/crypto/gc-md4: Moved from ../.
61093         * modules/crypto/gc-md4-tests: Moved from ../.
61094         * modules/crypto/gc-md5: Moved from ../.
61095         * modules/crypto/gc-md5-tests: Moved from ../.
61096         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
61097         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
61098         * modules/crypto/gc-random: Moved from ../.
61099         * modules/crypto/gc-rijndael: Moved from ../.
61100         * modules/crypto/gc-rijndael-tests: Moved from ../.
61101         * modules/crypto/gc-sha1: Moved from ../.
61102         * modules/crypto/gc-sha1-tests: Moved from ../.
61103         * modules/crypto/gc-tests: Moved from ../.
61104         * modules/crypto/hmac-md5: Moved from ../.
61105         * modules/crypto/hmac-md5-tests: Moved from ../.
61106         * modules/crypto/hmac-sha1: Moved from ../.
61107         * modules/crypto/hmac-sha1-tests: Moved from ../.
61108         * modules/crypto/md2: Moved from ../.
61109         * modules/crypto/md2-tests: Moved from ../.
61110         * modules/crypto/md4: Moved from ../.
61111         * modules/crypto/md4-tests: Moved from ../.
61112         * modules/crypto/md5: Moved from ../.
61113         * modules/crypto/md5-tests: Moved from ../.
61114         * modules/crypto/memxor: Moved from ../.
61115         * modules/crypto/rijndael: Moved from ../.
61116         * modules/crypto/rijndael-tests: Moved from ../.
61117         * modules/crypto/sha1: Moved from ../.
61118
61119 2007-03-30  James Youngman  <jay@gnu.org>
61120
61121         * tests/test-stat-time.c (prepare_test): use chmod() rather than
61122         rename() to change the ctime of a file (because ctime is unaffected
61123         by rename on jfs2 on AIX 5.1).
61124         (main): Start by doing cleanup, in case a previous run failed leaving
61125         test files behind.
61126
61127 2007-03-31  Bruno Haible  <bruno@clisp.org>
61128
61129         Support old proprietary implementations of iconv.
61130         * modules/iconv_open: New file.
61131         * lib/iconv_.h: New file.
61132         * m4/iconv_h.m4: New file.
61133         * lib/iconv_open.c: New file.
61134         * lib/iconv_open-aix.gperf: New file.
61135         * lib/iconv_open-hpux.gperf: New file.
61136         * lib/iconv_open-irix.gperf: New file.
61137         * lib/iconv_open-osf.gperf: New file.
61138         * m4/iconv_open.m4: New file.
61139         * modules/linebreak (Depends-on): Add iconv_open.
61140         * modules/striconv (Depends-on): Likewise.
61141         * modules/striconveh (Depends-on): Likewise.
61142         * modules/unicodeio (Depends-on): Likewise.
61143         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
61144         (iconv_t)(-1).
61145         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
61146         conversion if cd is (iconv_t)(-1).
61147         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
61148         is not possible.
61149
61150 2007-03-31  Bruno Haible  <bruno@clisp.org>
61151
61152         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
61153         work on Solaris either. Protect also second use of "autodetect_jp".
61154
61155 2007-03-31  Bruno Haible  <bruno@clisp.org>
61156
61157         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
61158         the function is not present.
61159
61160 2007-03-31  Bruno Haible  <bruno@clisp.org>
61161
61162         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
61163         the function is not present.
61164
61165 2007-03-31  Bruno Haible  <bruno@clisp.org>
61166
61167         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
61168         a bug in HP-UX iconv_open().
61169
61170 2007-03-31  Bruno Haible  <bruno@clisp.org>
61171
61172         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
61173         (Mathematics <math.h>): New section, add fpieee.
61174         (Input/output <stdio.h>): Add fseterr.
61175         (Mathematics <math.h>): New section, add printf-frexp.
61176         (Container data structures): Add sublist.
61177         (Core language properties): Add fpucw, inline.
61178         (Functions for greatest-width integer types <inttypes.h>): Add
61179         imaxabs, imaxdiv, inttypes.
61180         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
61181         isnanl-nolibm, ldexp.
61182         (Mathematics <math.h>): New section, add printf-frexpl.
61183         (Support for systems lacking POSIX:2001): Add fprintf-posix,
61184         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
61185         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
61186         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
61187         (Unicode string functions): Add unistr/u*-mbtoucr.
61188         (Java): Add javacomp-script, javaexec-script.
61189         (C#): Add csharpcomp-script, csharpexec-script.
61190         (Support for building libraries and executables): Add havelib,
61191         relocatable-*.
61192         (Support for maintaining and releasing projects): Renamed from
61193         'Support for maintaining and release projects'. Add announce-gen.
61194
61195 2007-03-31  Bruno Haible  <bruno@clisp.org>
61196
61197         * README: Talk primarily about git.
61198         (git and CVS): Renamed from CVS.
61199         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
61200         gnulib is available through git.
61201         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
61202
61203 2007-03-30  Bruno Haible  <bruno@clisp.org>
61204
61205         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
61206         * lib/poll_.h: Likewise.
61207         * lib/stat_.h: Likewise.
61208         * lib/sys_time_.h: Likewise.
61209         * lib/sysexit_.h: Likewise.
61210         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
61211         * lib/stdbool_.h: Likewise.
61212         * lib/byteswap_.h: Add double-inclusion guard.
61213
61214 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
61215
61216         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
61217
61218 2007-03-30  Karl Berry  <karl@gnu.org>
61219
61220         * config/srclist-update: double space after USA in the license
61221         substitution, since that's how it's usually (?) written.
61222
61223 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
61224
61225         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
61226         reported by Bruno Haible.
61227
61228 2007-03-29  Bruno Haible  <bruno@clisp.org>
61229
61230         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
61231         a bug in AIX iconv().
61232
61233 2007-03-29  Bruno Haible  <bruno@clisp.org>
61234
61235         * modules/ldexpl-tests: New file.
61236         * tests/test-ldexpl.c: New file.
61237
61238 2007-03-29  Bruno Haible  <bruno@clisp.org>
61239
61240         * lib/ldexpl.c: Include fpucw.h.
61241         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
61242         multiplication.
61243         * modules/ldexpl (Depends-on): Add fpucw.
61244
61245 2007-03-29  Bruno Haible  <bruno@clisp.org>
61246
61247         * modules/ldexpl: New file.
61248         * m4/ldexpl.m4: New file.
61249         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
61250         set.
61251         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
61252         REPLACE_LDEXPL.
61253         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
61254         REPLACE_LDEXPL.
61255         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
61256         gl_FUNC_LDEXPL_WORKS.
61257         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
61258         * modules/mathl (Files): Remove lib/ldexpl.c.
61259         (Depends-on): Add ldexpl.
61260
61261 2007-03-29  Bruno Haible  <bruno@clisp.org>
61262
61263         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
61264
61265 2007-03-29  Bruno Haible  <bruno@clisp.org>
61266
61267         * tests/test-striconveh.c (main): Don't assume that a direct conversion
61268         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
61269         and possibly also HP-UX.
61270         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
61271         work on AIX, IRIX, HP-UX, OSF/1.
61272         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
61273         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
61274         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
61275         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
61276         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
61277         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
61278
61279 2007-03-29  Bruno Haible  <bruno@clisp.org>
61280
61281         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
61282
61283 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
61284
61285         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
61286         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
61287
61288 2007-03-29  Eric Blake  <ebb9@byu.net>
61289
61290         * lib/acl-internal.h: Remove redundant include.
61291         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
61292         Cygwin when a file is locked.
61293
61294 2007-03-29  Bruno Haible  <bruno@clisp.org>
61295
61296         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
61297         file.
61298         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
61299
61300 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
61301
61302         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
61303         try to remove a parent directory if the child couldn't be removed
61304         (except for the first rmdir, which could fail because the child
61305         doesn't exist).  Problem reported by Jeff Blaine in
61306         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
61307
61308 2007-03-28  Bruno Haible  <bruno@clisp.org>
61309
61310         * lib/striconveh.c (utf8conv_carefully): New function.
61311         (mem_cd_iconveh_internal): Invoke it.
61312
61313 2007-03-28  Bruno Haible  <bruno@clisp.org>
61314
61315         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
61316         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
61317         input.
61318         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
61319         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
61320         unistr/u8-uctomb.
61321
61322 2007-03-28  Bruno Haible  <bruno@clisp.org>
61323
61324         * modules/unistr/u8-mbtoucr: New file.
61325         * lib/unistr/u8-mbtoucr.c: New file.
61326         * modules/unistr/u16-mbtoucr: New file.
61327         * lib/unistr/u16-mbtoucr.c: New file.
61328         * modules/unistr/u16-mbtoucr: New file.
61329         * lib/unistr/u16-mbtoucr.c: New file.
61330         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
61331
61332 2007-03-27  Simon Josefsson  <simon@josefsson.org>
61333             Bruno Haible  <bruno@clisp.org>
61334
61335         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
61336         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
61337         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
61338
61339         * m4/stdio_h.m4: Add stubs for vasprintf too.
61340
61341         * modules/stdio: Support vasprintf in sed command.
61342
61343         * modules/vasprintf: Depend on stdio for prototypes.  Remove
61344         vasprintf.h.  Add stdio module indicator.
61345
61346         * lib/stdio_.h: Declare asprintf and vasprintf, based on
61347         vasprintf.h.
61348
61349         * lib/vasprintf.h: File removed.
61350
61351         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
61352         * lib/vasprintf.c: Ditto.
61353         * lib/xvasprintf.c: Ditto.
61354         * tests/test-vasprintf-posix.c: Ditto.
61355         * tests/test-vasprintf.c: Ditto.
61356
61357 2007-03-27  Bruno Haible  <bruno@clisp.org>
61358
61359         Make vasnprintf multithread-safe.
61360         * lib/vasnprintf.c (decimal_point_char): New function.
61361         (VASNPRINTF): Use it.
61362         Suggested by Simon Josefsson.
61363
61364 2007-03-27  Eric Blake  <ebb9@byu.net>
61365
61366         Support sub-second birthtime on cygwin.
61367         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
61368         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
61369         (get_stat_birthtime): Also work with st_birthtim.
61370
61371 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
61372
61373         * lib/stat-time.h (USE_BIRTHTIME): Remove.
61374         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
61375         (get_stat_birthtime_ns): Do not try to use "spare" fields.
61376         (get_stat_birthtime_ns): Simplify compile-time tests.
61377         (get_stat_birthtime): Change the API to look like
61378         get_stat_mtime etc., except return a negative tv_nsec on error.
61379         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
61380         Don't check for "spare" fields.
61381         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
61382         or for struct stat.st_birthtime, as these tests aren't used.
61383         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
61384
61385 2007-03-27  Bruno Haible  <bruno@clisp.org>
61386
61387         * lib/stat-time.h: Include <sys/stat.h>.
61388
61389 2007-03-27  James Youngman  <jay@gnu.org>
61390
61391         * lib/stat-time.h (get_stat_birthtime): New function for
61392           retrieving st_birthtime as provided by UFS2 (hence *BSD).
61393         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
61394           and its variants.
61395         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
61396         * modules/stat-time-test: New file.
61397         * tests/test-stat-time.c: New test, devised by Bruno Haible.
61398
61399 2007-03-26  Bruno Haible  <bruno@clisp.org>
61400
61401         Better support of signalling NaNs.
61402         * lib/atanl.c: Include isnanl.h.
61403         (atanl): Perform test for NaN at the beginning of the function and
61404         through a call to isnanl.
61405         * lib/cosl.c: Include isnanl.h.
61406         (cosl): Perform test for NaN at the beginning of the function and
61407         through a call to isnanl.
61408         * lib/ldexpl.c: Include isnanl.h.
61409         (ldexpl): Perform test for NaN through a call to isnanl.
61410         * lib/logl.c: Include isnanl.h.
61411         (logl): Perform test for NaN at the beginning of the function and
61412         through a call to isnanl.
61413         * lib/sinl.c: Include isnanl.h.
61414         (sinl): Perform test for NaN at the beginning of the function and
61415         through a call to isnanl.
61416         * lib/sqrtl.c: Include isnanl.h.
61417         (sqrtl): Perform test for NaN at the beginning of the function and
61418         through a call to isnanl.
61419         * lib/tanl.c: Include isnanl.h.
61420         (tanl): Perform test for NaN at the beginning of the function and
61421         through a call to isnanl.
61422         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
61423         * modules/mathl (Depends-on): Add isnanl.
61424
61425 2007-03-26  Eric Blake  <ebb9@byu.net>
61426
61427         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
61428         regression in logic sense of previous patch.
61429
61430 2007-03-26  Bruno Haible  <bruno@clisp.org>
61431
61432         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
61433         unportable shell command "if ! ...".
61434         Reported by Ralf Wildenhues.
61435
61436 2007-03-25  Bruno Haible  <bruno@clisp.org>
61437
61438         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
61439         <sysexits.h> file, and only add EX_CONFIG.
61440         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
61441         absolute file name and whether it is sufficient. Substitute also
61442         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
61443         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
61444         ABSOLUTE_SYSEXITS_H into sysexits.h.
61445
61446 2007-03-25  Bruno Haible  <bruno@clisp.org>
61447
61448         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
61449         hints is NULL.
61450
61451 2007-03-25  Bruno Haible  <bruno@clisp.org>
61452
61453         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
61454         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
61455
61456 2007-03-25  Bruno Haible  <bruno@clisp.org>
61457
61458         * lib/vasnprintf.c: Include langinfo.h.
61459         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
61460         multithread-safe.
61461         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
61462         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
61463         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61464         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61465         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61466         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61467         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61468         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
61469         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61470         Reported by Simon Josefsson.
61471
61472 2007-03-25  Bruno Haible  <bruno@clisp.org>
61473
61474         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
61475         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
61476         * modules/vasnprintf (Depends-on): Add stdint.
61477
61478 2007-03-25  Bruno Haible  <bruno@clisp.org>
61479
61480         * modules/fpieee: New file.
61481         * m4/fpieee.m4: New file.
61482         * modules/isnan-nolibm (Depends-on): Add fpieee.
61483         * modules/isnanl-nolibm (Depends-on): Add fpieee.
61484         * modules/isnanl (Depends-on): Add fpieee.
61485
61486 2007-03-25  Bruno Haible  <bruno@clisp.org>
61487
61488         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
61489
61490 2007-03-25  Bruno Haible  <bruno@clisp.org>
61491
61492         Avoid test failures on IRIX 6.5.
61493         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
61494         (main): Use it.
61495         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
61496         macros.
61497         (main): Use them.
61498
61499 2007-03-25  Bruno Haible  <bruno@clisp.org>
61500
61501         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
61502         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
61503         exists but doesn't work.
61504         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
61505         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
61506         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
61507         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
61508         math.h.
61509
61510 2007-03-25  Bruno Haible  <bruno@clisp.org>
61511
61512         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
61513         returns inf. Needed on IRIX 6.5.
61514
61515 2007-03-25  Bruno Haible  <bruno@clisp.org>
61516
61517         * tests/test-frexpl.c: Include isnanl-nolibm.h.
61518         (main): Use isnanl instead of x != x idiom.
61519         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
61520
61521         * tests/test-frexp.c: Include isnan.h.
61522         (main): Use isnan instead of x != x idiom.
61523         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
61524
61525 2007-03-25  Bruno Haible  <bruno@clisp.org>
61526
61527         * tests/test-frexp.c (NaN): New function/macro.
61528         (main): Use it instead of 0.0 / 0.0.
61529         * tests/test-isnan.c (NaN): New function/macro.
61530         (main): Use it instead of 0.0 / 0.0.
61531         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
61532         (test_function): Use it instead of 0.0 / 0.0.
61533         * tests/test-vasprintf-posix.c (NaN): New function/macro.
61534         (test_function): Use it instead of 0.0 / 0.0.
61535         * tests/test-snprintf-posix.h (NaN): New function/macro.
61536         (test_function): Use it instead of 0.0 / 0.0.
61537         * tests/test-sprintf-posix.h (NaN): New function/macro.
61538         (test_function): Use it instead of 0.0 / 0.0.
61539         * tests/test-fprintf-posix.h (NaN): New function/macro.
61540         (test_function): Use it instead of 0.0 / 0.0.
61541         * tests/test-printf-posix.h (NaN): New function/macro.
61542         (test_function): Use it instead of 0.0 / 0.0.
61543
61544         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
61545
61546 2007-03-25  Bruno Haible  <bruno@clisp.org>
61547
61548         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
61549
61550 2007-03-25  Bruno Haible  <bruno@clisp.org>
61551
61552         * lib/regexec.c (merge_state_with_log): Make static.
61553
61554 2007-03-25  Bruno Haible  <bruno@clisp.org>
61555
61556         * lib/trigl.c (kernel_rem_pio2): Make static.
61557
61558 2007-03-25  Bruno Haible  <bruno@clisp.org>
61559
61560         * lib/sincosl.c (sincosl_table): Make static.
61561
61562 2007-03-25  Bruno Haible  <bruno@clisp.org>
61563
61564         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
61565         if the compiler does not support C99.
61566
61567 2007-03-25  Bruno Haible  <bruno@clisp.org>
61568
61569         * modules/time (Makefile.am): Ensure all rule action lines start with a
61570         tab.
61571
61572 2007-03-24  Bruno Haible  <bruno@clisp.org>
61573
61574         * modules/tsearch-tests: New file.
61575         * tests/test-tsearch.sh: New file.
61576         * tests/test-tsearch.c: New file, mostly copied from glibc.
61577
61578         * modules/search-tests: New file.
61579         * tests/test-search.c: New file.
61580
61581         * modules/search: New file.
61582         * lib/search_.h: New file, incorporating lib/tsearch.h.
61583         * m4/search_h.m4: New file.
61584         * lib/tsearch.h: Remove file.
61585         * lib/tsearch.c: Include search.h instead of tsearch.h.
61586         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
61587         HAVE_TSEARCH.
61588         * modules/tsearch (Files): Remove lib/tsearch.h.
61589         (Depends-on): Add search.
61590         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
61591         (Include): Change tsearch.h into search.h.
61592
61593 2007-03-24  Bruno Haible  <bruno@clisp.org>
61594
61595         * modules/fpucw: New file.
61596         * lib/fpucw.h: New file.
61597         * lib/frexp.c: Include fpucw.h.
61598         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61599         (FUNC): Use them.
61600         * lib/printf-frexp.c: Include fpucw.h.
61601         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61602         (FUNC): Use them.
61603         * lib/vasnprintf.c: Include fpucw.h.
61604         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
61605         'long double' calculations.
61606         * tests/test-frexpl.c: Include fpucw.h.
61607         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61608         * tests/test-printf-frexpl.c: Include fpucw.h.
61609         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61610         * modules/frexpl (Depends-on): Add fpucw.
61611         * modules/printf-frexpl (Depends-on): Likewise.
61612         * modules/fprintf-posix (Depends-on): Likewise.
61613         * modules/snprintf-posix (Depends-on): Likewise.
61614         * modules/sprintf-posix (Depends-on): Likewise.
61615         * modules/vasnprintf-posix (Depends-on): Likewise.
61616         * modules/vasprintf-posix (Depends-on): Likewise.
61617         * modules/vfprintf-posix (Depends-on): Likewise.
61618         * modules/vsnprintf-posix (Depends-on): Likewise.
61619         * modules/vsprintf-posix (Depends-on): Likewise.
61620         * modules/frexpl-tests (Depends-on): Likewise.
61621         * modules/printf-frexpl-tests (Depends-on): Likewise.
61622
61623 2007-03-24  Bruno Haible  <bruno@clisp.org>
61624
61625         * lib/float+.h: New file.
61626         * lib/isnan.c: Include float+.h.
61627         (SIZE): New macro.
61628         (FUNC): Compare only SIZE bytes of the value.
61629         * lib/vasnprintf.c: Include float+.h.
61630         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
61631         SIZEOF_LDBL or SIZEOF_DBL bytes.
61632         * modules/isnan-nolibm (Files): Add lib/float+.h.
61633         * modules/isnanl-nolibm (Files): Add lib/float+.h.
61634         * modules/isnanl (Files): Add lib/float+.h.
61635         * modules/vasnprintf (Files): Add lib/float+.h.
61636
61637 2007-03-24  Bruno Haible  <bruno@clisp.org>
61638
61639         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
61640         include isnanl-nolibm.h.
61641
61642 2007-03-24  Bruno Haible  <bruno@clisp.org>
61643
61644         * tests/test-read-file.c (main): Don't produce spurious output for
61645         expected situations. Make the test fail if it encountered unexpected
61646         results.
61647
61648 2007-03-24  Bruno Haible  <bruno@clisp.org>
61649
61650         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
61651         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
61652
61653 2007-03-24  Bruno Haible  <bruno@clisp.org>
61654
61655         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
61656
61657 2007-03-24  Bruno Haible  <bruno@clisp.org>
61658
61659         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
61660         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
61661
61662         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
61663         * modules/utf8-ucs4: Turn into a symbolic link to module
61664         unistr/u8-mbtouc.
61665
61666         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
61667         utf8-ucs4-unsafe.
61668         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
61669         unistr/u8-mbtouc-unsafe.
61670
61671         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
61672         * modules/utf16-ucs4: Turn into a symbolic link to module
61673         unistr/u16-mbtouc.
61674
61675         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
61676         utf16-ucs4-unsafe.
61677         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
61678         unistr/u16-mbtouc-unsafe.
61679
61680         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
61681         * modules/ucs4-utf8: Turn into a symbolic link to module
61682         unistr/u8-ubtomb.
61683
61684         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
61685         * modules/ucs4-utf16: Turn into a symbolic link to module
61686         unistr/u16-ubtomb.
61687
61688 2007-03-24  Bruno Haible  <bruno@clisp.org>
61689
61690         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
61691         Enable the function only if HAVE_INLINE.
61692         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
61693         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61694         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
61695         Enable the function only if HAVE_INLINE.
61696         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
61697         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61698         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
61699         Enable the function only if HAVE_INLINE.
61700         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
61701         Enable the function only if HAVE_INLINE.
61702         * modules/utf8-ucs4: Update.
61703         * modules/utf8-ucs4-unsafe: Update.
61704         * modules/utf16-ucs4: Update.
61705         * modules/utf16-ucs4-unsafe: Update.
61706         * modules/ucs4-utf8: Update.
61707         * modules/ucs4-utf16: Update.
61708
61709 2007-03-24  Bruno Haible  <bruno@clisp.org>
61710
61711         * lib/utf8-ucs4.h: Remove file.
61712         * lib/utf8-ucs4-unsafe.h: Remove file.
61713         * lib/utf16-ucs4.h: Remove file.
61714         * lib/utf16-ucs4-unsafe.h: Remove file.
61715         * lib/ucs4-utf8.h: Remove file.
61716         * lib/ucs4-utf16.h: Remove file.
61717         * lib/unistr.h: Include their previous contents.
61718         * m4/utf-ucs4.m4: Remove file.
61719         * m4/ucs4-utf.m4: Remove file.
61720         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
61721         (Depends-on): Add unistr/base.
61722         (configure.ac): Remove gl_UTF_UCS4.
61723         (Makefile.am): Update.
61724         (Include): Change to unistr.h.
61725         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
61726         (Depends-on): Add unistr/base.
61727         (configure.ac): Remove gl_UTF_UCS4.
61728         (Makefile.am): Update.
61729         (Include): Change to unistr.h.
61730         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
61731         (Depends-on): Add unistr/base.
61732         (configure.ac): Remove gl_UTF_UCS4.
61733         (Makefile.am): Update.
61734         (Include): Change to unistr.h.
61735         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
61736         (Depends-on): Add unistr/base.
61737         (configure.ac): Remove gl_UTF_UCS4.
61738         (Makefile.am): Update.
61739         (Include): Change to unistr.h.
61740         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
61741         (Depends-on): Add unistr/base.
61742         (configure.ac): Remove gl_UCS4_UTF.
61743         (Makefile.am): Update.
61744         (Include): Change to unistr.h.
61745         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
61746         (Depends-on): Add unistr/base.
61747         (configure.ac): Remove gl_UCS4_UTF.
61748         (Makefile.am): Update.
61749         (Include): Change to unistr.h.
61750         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
61751         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
61752         utf8-ucs4-unsafe.h.
61753         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
61754         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
61755         utf16-ucs4-unsafe.h.
61756         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
61757         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
61758         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
61759         * lib/unistr/u8-strchr.c: Likewise.
61760         * lib/unistr/u8-strrchr.c: Likewise.
61761         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
61762         * lib/unistr/u16-strchr.c: Likewise.
61763         * lib/unistr/u16-strrchr.c: Likewise.
61764         * lib/striconveh.c: Update.
61765         * lib/linebreak.c: Update.
61766
61767 2007-03-24  Bruno Haible  <bruno@clisp.org>
61768
61769         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
61770         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
61771
61772 2007-03-22  Bruno Haible  <bruno@clisp.org>
61773
61774         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
61775
61776 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
61777
61778         * MODULES.html.sh (File system functions): New module write-any-file.
61779         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
61780         * m4/write-any-file.m4: New files.
61781
61782 2007-03-23  Eric Blake  <ebb9@byu.net>
61783
61784         * gnulib-tool: Rearrange space-tab sequences, since some editors
61785         like to eat them.
61786
61787 2007-03-23  Eric Blake  <ebb9@byu.net>
61788
61789         * lib/version-etc.c (version_etc_va): Update license wording to
61790         be more concise.  Recommended by Richard Stallman.
61791
61792 2007-03-22  Bruno Haible  <bruno@clisp.org>
61793
61794         * lib/poll.c (MSG_PEEK): New fallback definition.
61795
61796 2007-03-22  Bruno Haible  <bruno@clisp.org>
61797
61798         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
61799         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
61800         (main): Update.
61801         Fixes a compilation error on BeOS.
61802
61803 2007-03-22  Bruno Haible  <bruno@clisp.org>
61804
61805         * modules/frexpl-tests: New file.
61806         * tests/test-frexpl.c: New file.
61807
61808         * modules/frexpl: New file.
61809         * m4/frexpl.m4: New file.
61810         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
61811         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
61812         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
61813         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
61814         (Depends-on): Add frexpl. Remove isnanl-nolibm.
61815         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
61816
61817 2007-03-22  Bruno Haible  <bruno@clisp.org>
61818
61819         * lib/frexpl.c: Share code with lib/frexp.c.
61820         * modules/mathl (Files): Add lib/frexp.c.
61821         (Depends-on): Add isnanl-nolibm.
61822
61823 2007-03-22  Bruno Haible  <bruno@clisp.org>
61824
61825         * modules/printf-frexp (Files): Add m4/frexp.m4.
61826         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
61827         only if the found frexp function actually works.
61828
61829 2007-03-22  Bruno Haible  <bruno@clisp.org>
61830
61831         * lib/frexp.c: Remove older implementation that uses divisions.
61832
61833 2007-03-21  Bruno Haible  <bruno@clisp.org>
61834
61835         * modules/frexp-tests: New file.
61836         * tests/test-frexp.c: New file.
61837
61838         * modules/frexp: New file.
61839         * lib/frexp.c: New file.
61840         * m4/frexp.m4: New file.
61841         * lib/math_.h (frexp): New declaration.
61842         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
61843         REPLACE_FREXP.
61844         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
61845
61846 2007-03-21  Bruno Haible  <bruno@clisp.org>
61847
61848         * modules/isnanl-tests: New file.
61849         * tests/test-isnanl.c: New file.
61850
61851         * modules/isnanl: New file.
61852         * lib/isnanl.h: New file.
61853         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
61854         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
61855         gl_FUNC_ISNANL_WORKS.
61856         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
61857         New macros.
61858
61859 2007-03-21  Bruno Haible  <bruno@clisp.org>
61860
61861         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
61862         lib/isnanl.h.
61863         (Include): Update.
61864         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
61865         * lib/vasnprintf.c: Update.
61866         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
61867         tests/test-isnanl.h, remove tests/test-isnanl.c.
61868         (Makefile.am): Update.
61869         * tests/test-isnanl-nolibm.c: New file.
61870         * tests/test-isnanl.h: New file.
61871         * tests/test-isnanl.c: Remove file.
61872
61873 2007-03-21  Jim Meyering  <jim@meyering.net>
61874
61875         When trying to open ".", treat ESTALE like EACCES.
61876         * lib/savewd.c (savewd_save): Resort to forking not just upon
61877         failure with EACCES, but also when errno is ESTALE.
61878
61879 2007-03-20  Bruno Haible  <bruno@clisp.org>
61880
61881         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
61882         Needed on AIX 5.1. Reported by Matthew Woehlke.
61883
61884 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61885
61886         Suggestions by Bruno Haible:
61887         * lib/acl-internal.h: Include "gettext.h" rather than rolling
61888         our own.
61889         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
61890         * modules/acl (Depends-on): Add gettext.
61891
61892 2007-03-19  Bruno Haible  <bruno@clisp.org>
61893
61894         * modules/iconvme: Remove file.
61895         * lib/iconvme.h: Remove file.
61896         * lib/iconvme.c: Remove file.
61897         * m4/iconvme.m4: Remove file.
61898
61899 2007-03-19  Bruno Haible  <bruno@clisp.org>
61900
61901         * doc/relocatable-maint.texi: Break long shell script line.
61902         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61903
61904 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61905
61906         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
61907         handle file_has_acl.
61908         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
61909         * lib/acl.c: Move header inclusions and related macro defns into
61910         lib/acl-internal.h.
61911         (S_ISLNK): Remove defn, since that's now done for us.
61912         (file_has_acl): Move to lib/file-has-acl.c.
61913         Call acl_trivial if available.  This is the crucial part of the fix.
61914         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
61915         shared within the library.  Rewrite a bit, partly to make it compatible
61916         with the GNU coding style.
61917         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
61918         Remove unnecessary double-quotes.
61919         Don't test for acl_to_text; the build will catch that.
61920         Replace acl_entries if it doesn't exist and it is needed.
61921         Check for -lsec and acl_trivial (as used on Solaris 10).
61922         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
61923         lib/file-has-acl.c.
61924         (Depends-on): Add sys_stat, for S_ISLNK.
61925
61926 2007-03-19  Ben Pfaff  <blp@gnu.org>
61927
61928         * doc/gnulib.texi: Fix typos.
61929         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61930
61931 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61932
61933         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
61934         If size is zero here, buf must be zero.
61935
61936 2007-03-19  Simon Josefsson  <simon@josefsson.org>
61937
61938         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
61939         <bruno@clisp.org>.
61940
61941 2007-03-18  Bruno Haible  <bruno@clisp.org>
61942
61943         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
61944         Suggested by Eric Blake.
61945
61946 2007-03-18  Ben Pfaff  <blp@gnu.org>
61947
61948         * doc/relocatable.texi: Recommend using as prefix a directory
61949         that does not exist and will never be created.  Based on
61950         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
61951         and others.
61952
61953 2007-03-17  Bruno Haible  <bruno@clisp.org>
61954
61955         * lib/fchownat.c: Include lchown.h.
61956
61957 2007-03-17  Bruno Haible  <bruno@clisp.org>
61958
61959         Fix endless loop when the given allocated size was > INT_MAX.
61960         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
61961         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
61962         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
61963         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
61964         * lib/sprintf.c (sprintf): Likewise.
61965
61966 2007-03-17  Bruno Haible  <bruno@clisp.org>
61967
61968         * tests/test-argp-2.sh (func_compare): Output a context diff.
61969
61970 2007-03-17  Bruno Haible  <bruno@clisp.org>
61971
61972         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
61973         locale's decimal-point character.
61974
61975 2007-03-17  Bruno Haible  <bruno@clisp.org>
61976
61977         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
61978         before comparing it. Needed because on some platforms (e.g. x86) a
61979         'long double' occupies less bytes than sizeof (long double).
61980
61981 2007-03-17  Bruno Haible  <bruno@clisp.org>
61982
61983         * tests/test-crc.c (main): Make printf statements 64-bit clean.
61984         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
61985         * tests/test-getaddrinfo.c (simple): Likewise.
61986         * tests/test-read-file.c (main): Likewise.
61987
61988 2007-03-17  Bruno Haible  <bruno@clisp.org>
61989
61990         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
61991
61992 2007-03-17  Bruno Haible  <bruno@clisp.org>
61993
61994         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
61995         unused variable.
61996
61997 2007-03-17  Bruno Haible  <bruno@clisp.org>
61998
61999         * tests/test-c-strcasecmp.c: Include c-strcase.h.
62000         * tests/test-c-strncasecmp.c: Likewise.
62001
62002 2007-03-17  Bruno Haible  <bruno@clisp.org>
62003
62004         * modules/stdlib (Depends-on): Add unistd.
62005         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
62006         Needed for MacOS X 10.3.
62007
62008 2007-03-17  Bruno Haible  <bruno@clisp.org>
62009
62010         * lib/unistr/u-strdup.h: Include <stdlib.h>.
62011
62012 2007-03-17  Bruno Haible  <bruno@clisp.org>
62013
62014         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
62015
62016 2007-03-17  Bruno Haible  <bruno@clisp.org>
62017
62018         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
62019         to reflect files copied from gnulib (with or without modifications).
62020         Suggested by Jim Meyering.
62021
62022 2007-03-17  Eric Blake  <ebb9@byu.net>
62023
62024         * NEWS: Document stdlib change from 2007-02-18.
62025
62026 2007-03-17  Jim Meyering  <jim@meyering.net>
62027
62028         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
62029         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
62030         someone uses a name containing shell meta-characters.
62031         Reported by Alfred M. Szmidt.
62032
62033         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
62034
62035 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
62036
62037         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
62038         and copy gettext configuration files only if configure.ac contains
62039         a use of AM_GNU_GETTEXT_VERSION.
62040
62041 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
62042
62043         * build-aux/bootstrap (gnulib_name): New variable.
62044         (gnulib_tool_options): Use it.
62045
62046 2007-03-13  Simon Josefsson  <simon@josefsson.org>
62047
62048         * tests/test-des.c: Use new namespace.
62049
62050 2007-03-15  Bruno Haible  <bruno@clisp.org>
62051
62052         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
62053         Reported by James Youngman <jay@gnu.org>.
62054
62055 2007-03-15  Bruno Haible  <bruno@clisp.org>
62056
62057         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
62058         declared prototype. Needed with cc on OSF/1 5.1.
62059
62060 2007-03-15  Bruno Haible  <bruno@clisp.org>
62061
62062         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
62063         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
62064         (struct gl_list_implementation): Add dispose_fn argument to the
62065         'create_empty', 'create' methods.
62066         (struct gl_list_impl_base): Add field 'dispose_fn'.
62067         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
62068         argument.
62069         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
62070         dispose_fn argument.
62071         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
62072         dispose_fn on the dropped values.
62073         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
62074         dispose_fn argument.
62075         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
62076         dropped values.
62077         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
62078         (gl_tree_remove_node): Call dispose_fn on the dropped value.
62079         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
62080         (gl_tree_remove_node): Call dispose_fn on the dropped value.
62081         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
62082         argument.
62083         (gl_tree_list_free): Call dispose_fn on the dropped values.
62084         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
62085         the dropped values.
62086         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
62087         Add dispose_fn argument.
62088         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
62089         Call dispose_fn on the dropped values.
62090         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
62091         Add dispose_fn argument.
62092         (gl_sublist_create): Initialize the 'dispose_fn' field.
62093         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
62094         * tests/test-array_list.c (main): Update.
62095         * tests/test-carray_list.c (main): Update.
62096         * tests/test-avltree_list.c (main): Update.
62097         * tests/test-rbtree_list.c (main): Update.
62098         * tests/test-avltreehash_list.c (main): Update.
62099         * tests/test-rbtreehash_list.c (main): Update.
62100         * tests/test-linked_list.c (main): Update.
62101         * tests/test-linkedhash_list.c (main): Update.
62102         * tests/test-array_oset.c (main): Update.
62103
62104 2007-03-15  Bruno Haible  <bruno@clisp.org>
62105
62106         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
62107         (gl_oset_create_empty): Add dispose_fn argument.
62108         (struct gl_oset_implementation): Add dispose_fn argument to
62109         'create_empty' method.
62110         (struct gl_oset_impl_base): Add dispose_fn field.
62111         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
62112         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
62113         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
62114         values.
62115         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
62116         (gl_tree_oset_free): Call dispose_fn on the dropped values.
62117         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
62118         dropped value.
62119         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
62120         dropped value.
62121         * tests/test-array_oset.c (main): Update.
62122         * tests/test-avltree_oset.c (main): Update.
62123         * tests/test-rbtree_oset.c (main): Update.
62124         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
62125
62126 2007-03-13  Bruno Haible  <bruno@clisp.org>
62127
62128         * tests/test-stdbool.c (i): Update after last patch.
62129
62130 2007-03-12  Bruno Haible  <bruno@clisp.org>
62131
62132         * lib/quotearg.c: Include <wctype.h> early, before the definition of
62133         the iswprint macro. Needed on Solaris 2.5.1.
62134
62135 2007-03-12  Bruno Haible  <bruno@clisp.org>
62136
62137         * tests/test-printf-frexp.c (main): Declare x as volatile.
62138
62139 2007-03-12  Simon Josefsson  <simon@josefsson.org>
62140
62141         * doc/gnulib.texi (Build robot for gnulib): New section.
62142
62143 2007-03-12  Jim Meyering  <jim@meyering.net>
62144
62145         * build-aux/bootstrap: New file.
62146         * build-aux/bootstrap.conf: New file, from coreutils.
62147
62148 2007-03-11  Bruno Haible  <bruno@clisp.org>
62149
62150         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
62151
62152 2007-03-12  Simon Josefsson  <simon@josefsson.org>
62153
62154         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
62155         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
62156         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
62157
62158 2007-03-11  Bruno Haible  <bruno@clisp.org>
62159
62160         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
62161         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
62162
62163 2007-03-11  Bruno Haible  <bruno@clisp.org>
62164
62165         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
62166         formula. Needed for SunPRO C 5.0.
62167
62168 2007-03-11  Bruno Haible  <bruno@clisp.org>
62169
62170         * modules/long-options (Depends-on): Add getopt.
62171
62172 2007-03-11  Bruno Haible  <bruno@clisp.org>
62173
62174         * modules/modechange (Depends-on): Add stdbool.
62175
62176 2007-03-11  Bruno Haible  <bruno@clisp.org>
62177
62178         * modules/i-ring (Depends-on): Add stdbool.
62179
62180 2007-03-11  Bruno Haible  <bruno@clisp.org>
62181
62182         * modules/gc-des (Depends-on): Add stdbool.
62183
62184 2007-03-11  Bruno Haible  <bruno@clisp.org>
62185
62186         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
62187
62188 2007-03-11  Bruno Haible  <bruno@clisp.org>
62189
62190         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
62191
62192 2007-03-11  Bruno Haible  <bruno@clisp.org>
62193
62194         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
62195
62196 2007-03-11  Bruno Haible  <bruno@clisp.org>
62197
62198         * lib/vasnprintf.c (sprintf): Undefine.
62199
62200 2007-03-11  Bruno Haible  <bruno@clisp.org>
62201
62202         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
62203         initializers in SunPRO C and Compaq C compilers.
62204
62205 2007-03-11  Bruno Haible  <bruno@clisp.org>
62206
62207         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
62208         decrementing code ANSI C compliant.
62209
62210 2007-03-11  Bruno Haible  <bruno@clisp.org>
62211
62212         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
62213         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
62214
62215 2007-03-11  Bruno Haible  <bruno@clisp.org>
62216
62217         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
62218         <stdbool.h> substitute doesn't pass.
62219
62220 2007-03-11  Bruno Haible  <bruno@clisp.org>
62221
62222         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
62223
62224 2007-03-11  Bruno Haible  <bruno@clisp.org>
62225
62226         * gnulib-tool (func_create_megatestdir): Create also an autobuild
62227         script, for submission to autobuild.josefsson.org.
62228
62229 2007-03-10  Bruno Haible  <bruno@clisp.org>
62230
62231         * modules/canonicalize-lgpl-tests: New file.
62232         * tests/test-canonicalize-lgpl.sh: New file.
62233         * tests/test-canonicalize-lgpl.c: New file.
62234
62235         * modules/c-strcase-tests: New file.
62236         * tests/test-c-strcase.sh: New file.
62237         * tests/test-c-strcasecmp.c: New file.
62238         * tests/test-c-strncasecmp.c: New file.
62239
62240         * modules/atexit-tests: New file.
62241         * tests/test-atexit.sh: New file.
62242         * tests/test-atexit.c: New file.
62243
62244 2007-03-10  Bruno Haible  <bruno@clisp.org>
62245
62246         * tests/test-binary-io.sh: Use temporary filenames that are not so
62247         likely to clash with those of other tests (in a parallel make).
62248         * tests/test-binary-io.c: Likewise.
62249
62250 2007-03-10  Bruno Haible  <bruno@clisp.org>
62251
62252         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
62253         fallback; use #error instead.
62254         Suggested by Simon Josefsson.
62255
62256 2007-03-10  Bruno Haible  <bruno@clisp.org>
62257
62258         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
62259         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
62260         first and the last.
62261
62262 2007-03-10  Bruno Haible  <bruno@clisp.org>
62263
62264         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
62265
62266 2007-03-10  Bruno Haible  <bruno@clisp.org>
62267
62268         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
62269         "make distcheck".
62270         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
62271         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
62272         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
62273
62274 2007-03-10  Bruno Haible  <bruno@clisp.org>
62275
62276         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
62277         variable.
62278         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
62279         variable.
62280
62281 2007-03-09  Eric Blake  <ebb9@byu.net>
62282         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
62283
62284         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
62285         types are not being provided by gnulib.
62286         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
62287         types are supported.
62288
62289 2007-03-10  Bruno Haible  <bruno@clisp.org>
62290
62291         * lib/stdio_.h (__attribute__): New macro.
62292         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
62293         vsprintf): Specify __attribute__ __format__ for GCC.
62294         Suggested by Eric Blake.
62295
62296 2007-03-09  Bruno Haible  <bruno@clisp.org>
62297
62298         * modules/printf-posix-tests: New file.
62299         * tests/test-printf-posix.sh: New file.
62300         * tests/test-printf-posix.c: New file.
62301
62302         * modules/printf-posix: New file.
62303         * lib/printf.c: New file.
62304         * m4/printf-posix-rpl.m4: New file.
62305         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
62306         REPLACE_PRINTF.
62307         * lib/stdio_.h (printf): New declaration.
62308         (format, __format__, ____printf____, ____scanf____, ____strftime____,
62309         ____strfmon____): New macros.
62310         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
62311         REPLACE_PRINTF.
62312
62313 2007-03-09  Bruno Haible  <bruno@clisp.org>
62314
62315         * tests/test-vasnprintf-posix2.sh: New file.
62316         * tests/test-vasnprintf-posix2.c: New file.
62317         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
62318         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
62319         (Makefile.am): Activate test-vasnprintf-posix2.sh.
62320
62321         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
62322         a locale dependent decimal point, rather than always '.'.
62323
62324 2007-03-09  Eric Blake  <ebb9@byu.net>
62325
62326         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
62327         spite of platforms like Tandem/NSK that define it to -1.
62328
62329 2007-03-08  Bruno Haible  <bruno@clisp.org>
62330
62331         * modules/vprintf-posix-tests: New file.
62332         * tests/test-vprintf-posix.sh: New file.
62333         * tests/test-vprintf-posix.c: New file.
62334         * tests/test-printf-posix.h: New file.
62335
62336         * modules/vprintf-posix: New file.
62337         * lib/vprintf.c: New file.
62338         * m4/vprintf-posix.m4: New file.
62339         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
62340         REPLACE_VPRINTF.
62341         * lib/stdio_.h (vprintf): New declaration.
62342         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
62343         REPLACE_VPRINTF.
62344
62345 2007-03-08  Bruno Haible  <bruno@clisp.org>
62346
62347         * modules/fprintf-posix-tests: New file.
62348         * tests/test-fprintf-posix.sh: New file.
62349         * tests/test-fprintf-posix.c: New file.
62350
62351         * modules/fprintf-posix: New file.
62352         * lib/fprintf.c: New file.
62353         * m4/fprintf-posix.m4: New file.
62354         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
62355         REPLACE_FPRINTF.
62356         * lib/stdio_.h (fprintf): New declaration.
62357         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
62358         REPLACE_FPRINTF.
62359
62360 2007-03-08  Bruno Haible  <bruno@clisp.org>
62361
62362         * modules/vfprintf-posix-tests: New file.
62363         * tests/test-vfprintf-posix.sh: New file.
62364         * tests/test-vfprintf-posix.c: New file.
62365         * tests/test-fprintf-posix.h: New file.
62366         * tests/test-fprintf-posix.out: New file.
62367
62368         * modules/vfprintf-posix: New file.
62369         * lib/vfprintf.c: New file.
62370         * m4/vfprintf-posix.m4: New file.
62371         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
62372         REPLACE_VFPRINTF.
62373         * lib/stdio_.h (vfprintf): New declaration.
62374         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
62375         REPLACE_VFPRINTF.
62376
62377 2007-03-08  Bruno Haible  <bruno@clisp.org>
62378
62379         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
62380
62381 2007-03-08  Bruno Haible  <bruno@clisp.org>
62382
62383         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
62384         instead of 'expr' invocations.
62385         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62386         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62387         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62388         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62389         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62390         Suggested by Paul Eggert.
62391
62392 2007-03-08  Bruno Haible  <bruno@clisp.org>
62393
62394         * modules/fseterr-tests: New file.
62395         * tests/test-fseterr.c: New file.
62396
62397         * modules/fseterr: New file.
62398         * lib/fseterr.h: New file.
62399         * lib/fseterr.c: New file.
62400
62401 2007-03-08  Bruno Haible  <bruno@clisp.org>
62402
62403         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
62404         * lib/getopt_.h: Likewise.
62405         * lib/mbswidth.h: Likewise.
62406         * lib/setenv.h: Likewise.
62407         * lib/vasnprintf.h: Likewise.
62408         * lib/vasprintf.h: Likewise.
62409         * lib/verror.h: Likewise.
62410         * lib/xsetenv.h: Likewise.
62411         * lib/xvasprintf.h: Likewise.
62412
62413 2007-03-08  Jim Meyering  <jim@meyering.net>
62414
62415         * users.txt: Add parted.
62416
62417         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
62418
62419 2007-03-07  Bruno Haible  <bruno@clisp.org>
62420
62421         * m4/printf.m4: Make the shell script snippets copy&pastable.
62422
62423 2007-03-02  Bruno Haible  <bruno@clisp.org>
62424
62425         * lib/netinet_in_.h: New file.
62426         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
62427         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
62428         * modules/netinet_in (Files): Add lib/netinet_in_.h.
62429         (Depends-on): Add absolute-header.
62430         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
62431         into netinet/in.h.
62432
62433 2007-03-03  Bruno Haible  <bruno@clisp.org>
62434
62435         * lib/sys_select_.h: New file.
62436         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
62437         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
62438         * modules/sys_select (Files): Add lib/sys_select_.h.
62439         (Depends-on): Add absolute-header.
62440         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
62441         into sys/select.h.
62442
62443 2007-03-02  Bruno Haible  <bruno@clisp.org>
62444
62445         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
62446         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
62447         values.
62448         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
62449         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
62450         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
62451         * modules/sys_socket (Depends-on): Add absolute-header.
62452         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
62453         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
62454         (Include): Remove requirement of inclusion of <sys/types.h>.
62455
62456 2007-03-02  Bruno Haible  <bruno@clisp.org>
62457
62458         * lib/byteswap_.h (bswap_32): Fix formula.
62459
62460 2007-03-06  Bruno Haible  <bruno@clisp.org>
62461
62462         * modules/sprintf-posix-tests: New file.
62463         * tests/test-sprintf-posix.c: New file.
62464
62465         * modules/sprintf-posix: New file.
62466         * lib/sprintf.c: New file.
62467         * m4/sprintf-posix.m4: New file.
62468         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
62469         REPLACE_SPRINTF.
62470         * lib/stdio_.h (sprintf): New declaration.
62471         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
62472         REPLACE_SPRINTF.
62473
62474 2007-03-06  Bruno Haible  <bruno@clisp.org>
62475
62476         * modules/vsprintf-posix-tests: New file.
62477         * tests/test-vsprintf-posix.c: New file.
62478         * tests/test-sprintf-posix.h: New file.
62479
62480         * modules/vsprintf-posix: New file.
62481         * lib/vsprintf.c: New file.
62482         * m4/vsprintf-posix.m4: New file.
62483         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
62484         REPLACE_VSPRINTF.
62485         * lib/stdio_.h (vsprintf): New declaration.
62486         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
62487         REPLACE_VSPRINTF.
62488
62489 2007-03-06  Bruno Haible  <bruno@clisp.org>
62490
62491         * modules/vsnprintf (Depend-on): Remove minmax.
62492
62493 2007-03-06  Bruno Haible  <bruno@clisp.org>
62494
62495         * modules/snprintf-posix-tests: New file.
62496         * tests/test-snprintf-posix.c: New file.
62497
62498         * modules/snprintf-posix: New file.
62499         * m4/snprintf-posix.m4: New file.
62500         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
62501         gl_FUNC_SNPRINTF.
62502         (gl_FUNC_SNPRINTF): Invoke it.
62503         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
62504         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
62505         is set.
62506         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
62507
62508 2007-03-06  Bruno Haible  <bruno@clisp.org>
62509
62510         * modules/vsnprintf-posix-tests: New file.
62511         * tests/test-vsnprintf-posix.c: New file.
62512         * tests/test-snprintf-posix.h: New file.
62513
62514         * modules/vsnprintf-posix: New file.
62515         * m4/vsnprintf-posix.m4: New file.
62516         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
62517         gl_FUNC_VSNPRINTF.
62518         (gl_FUNC_VSNPRINTF): Invoke it.
62519         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
62520         * lib/stdio_.h (vsnprintf): Define as a replacement if
62521         REPLACE_VSNPRINTF is set.
62522         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
62523
62524 2007-03-06  Bruno Haible  <bruno@clisp.org>
62525
62526         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
62527         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
62528
62529 2007-03-06  Bruno Haible  <bruno@clisp.org>
62530
62531         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
62532         (asinl): Declare also if HAVE_DECL_ASINL is set.
62533         (atanl): Declare also if HAVE_DECL_ATANL is set.
62534         (ceill): Declare also if HAVE_DECL_CEILL is set.
62535         (cosl): Declare also if HAVE_DECL_COSL is set.
62536         (expl): Declare also if HAVE_DECL_EXPL is set.
62537         (floorl): Declare also if HAVE_DECL_FLOORL is set.
62538         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
62539         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
62540         (logl): Declare also if HAVE_DECL_LOGL is set.
62541         (sinl): Declare also if HAVE_DECL_SINL is set.
62542         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
62543         (tanl): Declare also if HAVE_DECL_TANL is set.
62544         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
62545         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
62546         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
62547         declaration of frexpl, ldexpl.
62548         * modules/printf-frexpl (Depends-on): Add math.
62549         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
62550
62551 2007-03-05  Bruno Haible  <bruno@clisp.org>
62552
62553         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
62554         frexpl and ldexpl are declared.
62555         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
62556
62557 2007-03-05  Bruno Haible  <bruno@clisp.org>
62558
62559         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
62560         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
62561
62562 2007-03-05  Bruno Haible  <bruno@clisp.org>
62563
62564         * lib/stdio_.h: Include <stddef.h>.
62565
62566 2007-03-05  Bruno Haible  <bruno@clisp.org>
62567
62568         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
62569
62570 2007-03-05  Bruno Haible  <bruno@clisp.org>
62571
62572         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
62573         NetBSD 4, from Ralf Wildenhues.
62574
62575 2007-03-04  Bruno Haible  <bruno@clisp.org>
62576
62577         * lib/vasprintf.h: Update #if logic for the case when the functions
62578         exist but are overridden.
62579
62580 2007-03-04  Bruno Haible  <bruno@clisp.org>
62581
62582         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
62583         implementations: glibc-2.4 and MacOS X 10.3.
62584         * tests/test-vasnprintf-posix.c (test_function): Test also the case
62585         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
62586         * tests/test-vasprintf-posix.c (test_function): Likewise.
62587
62588 2007-03-04  Bruno Haible  <bruno@clisp.org>
62589
62590         * modules/vasprintf-posix-tests: New file.
62591         * tests/test-vasprintf-posix.c: New file.
62592
62593         * modules/vasprintf-posix: New file.
62594         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
62595         defined.
62596         * m4/vasprintf-posix.m4: New file.
62597         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
62598         gl_FUNC_VASPRINTF.
62599         (gl_FUNC_VASPRINTF): Invoke it.
62600         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
62601         here.
62602         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
62603
62604 2007-03-04  Bruno Haible  <bruno@clisp.org>
62605
62606         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
62607         REPLACE_GETTIMEOFDAY.
62608         * modules/sys_time (Makefile.am): Likewise.
62609         * m4/sys_time_h.m4: Likewise.
62610         * m4/gettimeofday.m4: Likewise.
62611
62612 2007-03-04  Bruno Haible  <bruno@clisp.org>
62613
62614         * modules/vasnprintf-posix-tests: New file.
62615         * tests/test-vasnprintf-posix.c: New file.
62616
62617         * modules/vasnprintf-posix: New file.
62618         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
62619         printf-frexpl.h.
62620         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
62621         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
62622         REPLACE_VASNPRINTF is defined.
62623         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
62624         gl_FUNC_VASNPRINTF.
62625         (gl_FUNC_VASNPRINTF): Invoke it.
62626         * m4/vasnprintf-posix.m4: New file.
62627         * m4/printf.m4: New file.
62628
62629 2007-03-04  Bruno Haible  <bruno@clisp.org>
62630
62631         Compile progreloc.c only if --enable-relocatable is specified.
62632         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
62633         if --enable-relocatable was specified.
62634         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
62635         lib_SOURCES.
62636
62637 2007-03-04  Jim Meyering  <jim@meyering.net>
62638
62639         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
62640         Use it consistently, rather than enumerating errno constants.
62641
62642 2007-03-04  Bruno Haible  <bruno@clisp.org>
62643
62644         * modules/xvasprintf-tests: New file.
62645         * tests/test-xvasprintf.c: New file.
62646
62647         * modules/vasprintf-tests: New file.
62648         * tests/test-vasprintf.c: New file.
62649
62650         * modules/vasnprintf-tests: New file.
62651         * tests/test-vasnprintf.c: New file.
62652
62653         * modules/vsnprintf-tests: New file.
62654         * tests/test-vsnprintf.c: New file.
62655
62656         * modules/snprintf-tests: New file.
62657         * tests/test-snprintf.c: New file.
62658
62659 2007-03-04  Bruno Haible  <bruno@clisp.org>
62660
62661         Compile relocatable.c only if --enable-relocatable is specified.
62662         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
62663         gl_RELOCATABLE_LIBRARY.
62664         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
62665         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
62666         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
62667         gl_RELOCATABLE_LIBRARY.
62668         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
62669         (Makefile.am): Remove lib_SOURCES.
62670         * modules/relocatable-lib-lgpl (configure.ac): Invoke
62671         gl_RELOCATABLE_LIBRARY.
62672         (Makefile.am): Remove lib_SOURCES.
62673         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
62674         always.
62675         * modules/relocatable-prog-wrapper (configure.ac): Invoke
62676         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
62677
62678 2007-03-04  Bruno Haible  <bruno@clisp.org>
62679
62680         * modules/argmatch-tests: New file.
62681         * tests/test-argmatch.c: New file.
62682
62683         * tests/test-allocsa.c (main): Halve the number of loop runs.
62684
62685         * modules/alloca-opt-tests: New file.
62686         * tests/test-alloca-opt.c: New file.
62687
62688 2007-03-04  Jim Meyering  <jim@meyering.net>
62689
62690         Work around difference between Linux ACLs and Solaris 10 ZFS.
62691         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
62692         for EINVAL.
62693
62694 2007-03-03  Bruno Haible  <bruno@clisp.org>
62695
62696         * modules/relocatable-prog (Depends-on): Add back progreloc's
62697         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
62698
62699 2007-03-03  Bruno Haible  <bruno@clisp.org>
62700
62701         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
62702         * modules/relocatable-lib: New file.
62703
62704 2007-03-03  Bruno Haible  <bruno@clisp.org>
62705
62706         * modules/relocatable-prog: Renamed from modules/relocatable.
62707         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
62708
62709 2007-03-03  Bruno Haible  <bruno@clisp.org>
62710
62711         * modules/relocatable-script (Files): Add doc/relocatable.texi,
62712         m4/relocatable-lib.m4.
62713         (Depends-on): Remove 'relocatable'.
62714         (configure.ac): Add gl_RELOCATABLE_NOP.
62715
62716 2007-03-03  Bruno Haible  <bruno@clisp.org>
62717
62718         * modules/relocatable-prog-wrapper: New file.
62719         * modules/relocatable (Depends-on): Add it. Remove all other
62720         dependencies except progname.
62721         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
62722
62723         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
62724         (gl_FUNC_STRERROR): Nop.
62725         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
62726
62727         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
62728         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
62729
62730         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
62731         (gl_FUNC_READLINK): Update.
62732
62733         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
62734
62735 2007-03-03  Bruno Haible  <bruno@clisp.org>
62736
62737         * lib/xreadlink.c: Include <unistd.h> unconditionally.
62738         * modules/xreadlink (Depends-on): Add unistd.
62739         * modules/xreadlink-with-size (Depends-on): Likewise.
62740
62741 2007-03-03  Bruno Haible  <bruno@clisp.org>
62742
62743         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
62744         extracted from gt_FUNC_SETENV.
62745         (gt_FUNC_SETENV): Remove macro.
62746         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
62747         remove gt_FUNC_SETENV.
62748
62749 2007-03-03  Bruno Haible  <bruno@clisp.org>
62750
62751         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
62752         ENABLE_RELOCATABLE here.
62753         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
62754
62755 2007-03-03  Bruno Haible  <bruno@clisp.org>
62756
62757         * modules/rbtreehash-list-tests (Depends-on): Add progname.
62758         * tests/test-rbtreehash_list.c: Include progname.h.
62759         (main): Call set_program_name.
62760
62761         * modules/rbtree-oset-tests (Depends-on): Add progname.
62762         * tests/test-rbtree_oset.c: Include progname.h.
62763         (main): Call set_program_name.
62764
62765         * modules/rbtree-list-tests (Depends-on): Add progname.
62766         * tests/test-rbtree_list.c: Include progname.h.
62767         (main): Call set_program_name.
62768
62769         * modules/linked-list-tests (Depends-on): Add progname.
62770         * tests/test-linked_list.c: Include progname.h.
62771         (main): Call set_program_name.
62772
62773 2007-03-03  Bruno Haible  <bruno@clisp.org>
62774
62775         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
62776         All uses of __restrict changed to _Restrict_.
62777         * lib/glob_.h (__restrict): Remove macro.
62778
62779 2007-03-02  Bruno Haible  <bruno@clisp.org>
62780
62781         * modules/gettext (configure.ac): Require gettext infrastructure
62782         from version 0.16.1.
62783
62784 2007-03-02  Bruno Haible  <bruno@clisp.org>
62785
62786         * modules/linkedhash-list-tests (Depends-on): Add progname.
62787         * tests/test-linkedhash_list.c: Include progname.h.
62788         (main): Call set_program_name.
62789
62790         * modules/carray-list-tests (Depends-on): Add progname.
62791         * tests/test-carray_list.c: Include progname.h.
62792         (main): Call set_program_name.
62793
62794         * modules/avltreehash-list-tests (Depends-on): Add progname.
62795         * tests/test-avltreehash_list.c: Include progname.h.
62796         (main): Call set_program_name.
62797
62798         * modules/avltree-oset-tests (Depends-on): Add progname.
62799         * tests/test-avltree_oset.c: Include progname.h.
62800         (main): Call set_program_name.
62801
62802         * modules/avltree-list-tests (Depends-on): Add progname.
62803         * tests/test-avltree_list.c: Include progname.h.
62804         (main): Call set_program_name.
62805
62806         * modules/array-oset-tests (Depends-on): Add progname.
62807         * tests/test-array_oset.c: Include progname.h.
62808         (main): Call set_program_name.
62809
62810         * modules/array-list-tests (Depends-on): Add progname.
62811         * tests/test-array_list.c: Include progname.h.
62812         (main): Call set_program_name.
62813
62814         * modules/argp-tests (Depends-on): Add progname.
62815         * tests/test-argp.c: Include argp.h first. Include progname.h.
62816         (main): Call set_program_name.
62817
62818 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
62819
62820         * doc/gnulib-tool.texi (Initial import): Reword description of
62821         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
62822         limited effect even if defined after the first system include.
62823
62824 2007-03-01  Bruno Haible  <bruno@clisp.org>
62825
62826         * build-aux/config.libpath: Update to libtool-1.5.22.
62827         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
62828
62829 2007-03-01  Bruno Haible  <bruno@clisp.org>
62830
62831         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
62832         foo_CFLAGS.
62833         Reported by Ralf Wildenhues.
62834
62835 2007-03-01  Bruno Haible  <bruno@clisp.org>
62836
62837         * build-aux/install-reloc: Remove object files left over by some
62838         compilers.
62839         Reported by Ralf Wildenhues.
62840
62841 2007-03-01  Bruno Haible  <bruno@clisp.org>
62842
62843         * build-aux/install-reloc: Break long lines.
62844
62845 2007-03-01  Bruno Haible  <bruno@clisp.org>
62846
62847         * doc/relocatable.texi: Document that it may not work on OpenBSD.
62848         Reported by Ralf Wildenhues.
62849
62850 2007-03-01  Bruno Haible  <bruno@clisp.org>
62851
62852         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
62853         include ordering constraints.
62854
62855 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62856
62857         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
62858         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
62859         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
62860         as another example.
62861         * lib/time_.h: Fix misspelling.
62862         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
62863         Require gl_HEADER_TIME_H_DEFAULTS.
62864         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
62865         * m4/time_r.m4 (gl_TIME_R): Likewise.
62866         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
62867
62868 2007-03-01  Bruno Haible  <bruno@clisp.org>
62869
62870         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
62871         * m4/utimens.m4 (gl_UTIMENS): Likewise.
62872
62873 2007-03-01  Jim Meyering  <jim@meyering.net>
62874
62875         * modules/xreadlink (Maintainer): Add my name.
62876         * modules/xreadlink-with-size (Depends-on): Alphabetize.
62877
62878 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
62879             Bruno Haible  <bruno@clisp.org>
62880
62881         * build-aux/install-reloc: Compile also c-ctype.c.
62882         * build-aux/relocatable.sh.in: New file.
62883         * doc/relocatable.texi: New file.
62884         * doc/relocatable-maint.texi: New file.
62885         * doc/gnulib.texi: Include relocatable-maint.texi.
62886         * lib/progreloc.c: Include unistd.h unconditionally.
62887         * lib/relocwrapper.c: Include unistd.h unconditionally.
62888         Include c-ctype.h.
62889         (add_dotbin): Use c_tolower.
62890         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
62891         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
62892         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
62893         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
62894         to m4/relocatable-lib.m4.
62895         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
62896         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
62897         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
62898         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
62899         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
62900         * modules/relocatable: New file.
62901         * modules/relocatable-lib: New file.
62902         * modules/relocatable-script: New file.
62903
62904 2007-02-28  Bruno Haible  <bruno@clisp.org>
62905
62906         Import --enable-relocatable infrastructure.
62907         * build-aux/config.libpath: New file, from GNU gettext.
62908         * build-aux/install-reloc: New file, from GNU gettext.
62909         * build-aux/reloc-ldflags: New file, from GNU gettext.
62910         * lib/relocatable.h: New file, from GNU gettext.
62911         * lib/relocatable.c: New file, from GNU gettext.
62912         * lib/relocwrapper.c: New file, from GNU gettext.
62913         * m4/relocatable.m4: New file, from GNU gettext.
62914
62915 2007-02-28  Bruno Haible  <bruno@clisp.org>
62916
62917         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
62918
62919         * modules/xreadlink: New file, from GNU gettext with modifications.
62920         * lib/xreadlink.c: New file, from GNU gettext.
62921         * lib/xreadlink.h: Add comments.
62922         (xreadlink): New declaration.
62923
62924         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
62925         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
62926         lib/xreadlink-with-size.c.
62927         (configure.ac): Remove gl_XREADLINK invocation.
62928         (Makefile.am): Augment lib_SOURCES.
62929         * m4/xreadlink.m4: Remove file.
62930         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
62931         (xreadlink_with_size): Renamed from xreadink.
62932         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
62933         * modules/canonicalize (Depends-on): Replace xreadlink with
62934         xreadlink-with-size.
62935         * lib/canonicalize.c (canonicalize_filename_mode): Update.
62936
62937 2007-02-25  Jim Meyering  <jim@meyering.net>
62938
62939         * build-aux/announce-gen: When complaining about excess arguments,
62940         list them.
62941
62942 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
62943
62944         * README: Document signed integer overflow situation more
62945         accurately.
62946
62947 2007-02-25  Bruno Haible  <bruno@clisp.org>
62948
62949         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
62950         'a' or 'A' conversion.
62951
62952 2007-02-25  Bruno Haible  <bruno@clisp.org>
62953
62954         * modules/filename: Renamed from modules/pathname.
62955         (Files): Replace lib/pathname.h with lib/filename.h. Replace
62956         lib/concatpath.c with lib/concat-filename.c.
62957         (Makefile.am): Update.
62958         (Include): Replace pathname.h with filename.h.
62959         * lib/filename.h: Renamed from lib/pathname.h.
62960         (concatenated_filename): Renamed from concatenated_pathname.
62961         * lib/concat-filename.c: Renamed from lib/concatpath.c.
62962         (concatenated_filename): Renamed from concatenated_pathname.
62963         * lib/findprog.c: Include filename.h instead of pathname.h.
62964         (find_in_path): Update.
62965         * lib/javacomp.c: Include filename.h instead of pathname.h.
62966         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
62967         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
62968         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
62969         is_oldgcj_14_13_usable, is_javac_usable): Update.
62970         * lib/javaexec.c: Include filename.h instead of pathname.h.
62971         (execute_java_class): Update.
62972         * modules/findprog: Update.
62973         * modules/javacomp: Update.
62974         * modules/javaexec: Update.
62975         * MODULES.html.sh (File system functions): Add 'filename', remove
62976         'pathname'.
62977
62978 2007-02-25  Bruno Haible  <bruno@clisp.org>
62979
62980         * modules/printf-frexpl-tests: New file.
62981         * tests/test-printf-frexpl.c: New file.
62982
62983         * modules/printf-frexpl: New file.
62984         * lib/printf-frexpl.h: New file.
62985         * lib/printf-frexpl.c: New file.
62986         * m4/printf-frexpl.m4: New file.
62987
62988 2007-02-25  Bruno Haible  <bruno@clisp.org>
62989
62990         * modules/printf-frexp-tests: New file.
62991         * tests/test-printf-frexp.c: New file.
62992
62993         * modules/printf-frexp: New file.
62994         * lib/printf-frexp.h: New file.
62995         * lib/printf-frexp.c: New file.
62996         * m4/printf-frexp.m4: New file.
62997
62998 2007-02-25  Bruno Haible  <bruno@clisp.org>
62999
63000         Assume automake >= 1.10 for the tests.
63001         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
63002         * modules/arctwo-tests: Likewise.
63003         * modules/argp-tests: Likewise.
63004         * modules/avltree-list-tests: Likewise.
63005         * modules/avltree-oset-tests: Likewise.
63006         * modules/avltreehash-list-tests: Likewise.
63007         * modules/carray-list-tests: Likewise.
63008         * modules/crc-tests: Likewise.
63009         * modules/des-tests: Likewise.
63010         * modules/gc-arcfour-tests: Likewise.
63011         * modules/gc-arctwo-tests: Likewise.
63012         * modules/gc-des-tests: Likewise.
63013         * modules/gc-hmac-md5-tests: Likewise.
63014         * modules/gc-hmac-sha1-tests: Likewise.
63015         * modules/gc-md2-tests: Likewise.
63016         * modules/gc-md4-tests: Likewise.
63017         * modules/gc-md5-tests: Likewise.
63018         * modules/gc-pbkdf2-sha1-tests: Likewise.
63019         * modules/gc-rijndael-tests: Likewise.
63020         * modules/gc-sha1-tests: Likewise.
63021         * modules/gc-tests: Likewise.
63022         * modules/getaddrinfo-tests: Likewise.
63023         * modules/hmac-md5-tests: Likewise.
63024         * modules/hmac-sha1-tests: Likewise.
63025         * modules/linked-list-tests: Likewise.
63026         * modules/linkedhash-list-tests: Likewise.
63027         * modules/lock-tests: Likewise.
63028         * modules/md2-tests: Likewise.
63029         * modules/md4-tests: Likewise.
63030         * modules/md5-tests: Likewise.
63031         * modules/rbtree-list-tests: Likewise.
63032         * modules/rbtree-oset-tests: Likewise.
63033         * modules/rbtreehash-list-tests: Likewise.
63034         * modules/read-file-tests: Likewise.
63035         * modules/rijndael-tests: Likewise.
63036         * modules/stdint-tests: Likewise.
63037         * modules/tls-tests: Likewise.
63038
63039 2007-02-24  Bruno Haible  <bruno@clisp.org>
63040
63041         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
63042         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
63043         function; instead check whether isnan with a double argument links.
63044         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
63045         function; instead check whether isnan with a 'long double' argument
63046         links.
63047         Reported by Eric Blake <ebb9@byu.net>.
63048
63049 2007-02-24  Bruno Haible  <bruno@clisp.org>
63050
63051         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
63052         defined.
63053         * lib/isnanl.c: Remove all code. Just include isnan.c.
63054         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
63055
63056 2007-02-25  Jim Meyering  <jim@meyering.net>
63057
63058         Avoid conflicting types for 'unsetenv' on FreeBSD.
63059         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
63060         conflicting with FreeBSD's (5.0 and 6.1) function declaration
63061         in stdlib.h.
63062
63063 2007-02-24  Bruno Haible  <bruno@clisp.org>
63064
63065         * modules/isnanl-nolibm-tests: New file.
63066         * tests/test-isnanl.c: New file.
63067
63068         * modules/isnanl-nolibm: New file.
63069         * lib/isnanl.h: New file.
63070         * lib/isnanl.c: New file.
63071         * m4/isnanl.m4: New file.
63072
63073 2007-02-24  Bruno Haible  <bruno@clisp.org>
63074
63075         * modules/isnan-nolibm-tests: New file.
63076         * tests/test-isnan.c: New file.
63077
63078         * modules/isnan-nolibm: New file.
63079         * lib/isnan.h: New file.
63080         * lib/isnan.c: New file.
63081         * m4/isnan.m4: New file.
63082
63083 2007-02-24  Bruno Haible  <bruno@clisp.org>
63084
63085         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
63086         assume that an exponent fits in 20 bits.
63087
63088 2007-02-24  Jim Meyering  <jim@meyering.net>
63089
63090         * m4/regex.m4: Update the description of the configure-time option,
63091         --without-included-regex, to state accurately what the defaults are,
63092         and perhaps to give people an idea why using this option is risky.
63093
63094 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
63095
63096         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
63097         loops on small arguments.  This attempts to avoid the problem
63098         Bruno Haible reported for AIX 4.3.2 in
63099         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
63100
63101 2007-02-23  Bruno Haible  <bruno@clisp.org>
63102
63103         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
63104         Needed for help2man.
63105
63106 2007-02-23  Karl Berry  <karl@gnu.org>
63107
63108         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
63109         exists, foo.h should be cvs-ignored, not committed.
63110
63111 2007-02-23  Eric Blake  <ebb9@byu.net>
63112
63113         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
63114         * lib/stat-time.h (includes): Likewise.
63115         * lib/utimecmp.c (includes): Likewise.
63116         * lib/utimens.h (includes): Likewise.
63117         * lib/getdate.y (includes): Also include "timespec.h" for use
63118         internal to the module.
63119         * modules/utimens (Depends-on): Revert yesterday's patch.
63120         * modules/nanosleep (Depends-on): Add missing dependency.
63121
63122 2007-02-22  Bruno Haible  <bruno@clisp.org>
63123
63124         * lib/glob.c: Don't include getlogin_r.h.
63125
63126 2007-02-22  Jim Meyering  <jim@meyering.net>
63127
63128         * modules/utimens (Depends-on): Add timespec, required for
63129         utimens.h's inclusion of timespec.h.
63130
63131 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
63132
63133         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
63134         long unreadable paths in GNU/Linux.  Problem reported by Andreas
63135         Schwab in
63136         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
63137         I'll try to think of a better way to fix the Solaris problem.
63138
63139         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
63140         like glibc; on Solaris 10, it fails with errno == EINVAL.
63141         POSIX says the behavior is unspecified if the first argument is NULL,
63142         so play it safe and never pass NULL to the system getcwd.
63143
63144 2007-02-21  Jim Meyering  <jim@meyering.net>
63145
63146         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
63147         of gettimeofday.  It would conflict with the one now always
63148         provided via sys_time_.h.  Reported by Matthew Woehlke, as
63149         an IRIX 6.5 build failure.
63150
63151 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
63152
63153         Minor fixups to port to Solaris 10 with Sun C 5.8.
63154         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
63155         * modules/getcwd (Depends-on): Add dirfd.
63156         * lib/putenv.c (putenv): #undef it.
63157         (rpl_putenv): New decl.
63158         (malloc, free): Include <stdlib.h> rather than prototyping separately.
63159
63160 2007-02-20  Bruno Haible  <bruno@clisp.org>
63161
63162         * modules/stdio-tests: New file.
63163         * tests/test-stdio.c: New file.
63164
63165         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
63166         (Depends-on): Add stdio.
63167         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
63168         (Include): Use <stdio.h> instead of vsnprintf.h.
63169         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
63170         HAVE_DECL_VSNPRINTF.
63171         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
63172
63173         * modules/snprintf (Files): Remove lib/snprintf.h.
63174         (Depends-on): Add stdio.
63175         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
63176         (Include): Use <stdio.h> instead of snprintf.h.
63177         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
63178         HAVE_DECL_SNPRINTF.
63179         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
63180         * lib/getaddrinfo.c: Likewise.
63181
63182         * modules/stdio: New file.
63183         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
63184         * lib/snprintf.h: Remove file.
63185         * lib/vsnprintf.h: Remove file.
63186         * lib/.cppi-disable: Remove snprintf.h.
63187         * m4/stdio_h.m4: New file.
63188         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
63189
63190 2007-02-20  Jim Meyering  <jim@meyering.net>
63191
63192         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
63193         used by e.g., mingw.  From Bruno Haible.
63194
63195 2007-02-19  Bruno Haible  <bruno@clisp.org>
63196
63197         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
63198         warnings.
63199         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63200
63201 2007-02-19  Bruno Haible  <bruno@clisp.org>
63202
63203         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
63204         from mingw users.
63205
63206 2007-02-19  Bruno Haible  <bruno@clisp.org>
63207
63208         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
63209         warnings.
63210         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
63211
63212 2007-02-19  Jim Meyering  <jim@meyering.net>
63213
63214         Don't use FD after a successful "fdopendir (fd)".
63215         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
63216         Reset it by calling dirfd on the just-obtained DIR*.
63217
63218         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
63219         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
63220
63221 2007-02-18  Bruno Haible  <bruno@clisp.org>
63222
63223         * lib/readlink.c: Include <unistd.h>.
63224         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
63225         HAVE_READLINK.
63226         * modules/readlink (Depends-on): Add unistd.
63227         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63228         (Include): Add <unistd.h>.
63229
63230         * lib/getlogin_r.h: Remove file.
63231         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
63232         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
63233         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
63234         HAVE_DECL_GETLOGIN_R.
63235         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
63236         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63237         (Include): Use <unistd.h> instead of getlogin_r.h.
63238
63239         * lib/getcwd.h: Remove file.
63240         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
63241         * lib/xgetcwd.c: Likewise.
63242         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
63243         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
63244         * modules/getcwd (Files): Remove lib/getcwd.h.
63245         (Depends-on): Add unistd.
63246         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63247         (Include): Use <unistd.h> instad of getcwd.h.
63248
63249         * lib/ftruncate.c: Include <unistd.h> first.
63250         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
63251         Set HAVE_FTRUNCATE.
63252         * modules/ftruncate (Depends-on): Add unistd.
63253         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63254
63255         * lib/fchdir.c: Include <unistd.h> first.
63256         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
63257         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
63258         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
63259         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63260         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
63261
63262         * lib/dup2.c: Include <unistd.h> first.
63263         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
63264         HAVE_DUP2.
63265         * modules/dup2 (Depends-on): Add unistd.
63266         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63267
63268         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
63269         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
63270         REPLACE_CHOWN. Don't define chown as a macro here.
63271         * modules/chown (Depends-on): Add unistd.
63272         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63273
63274         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
63275         Add definition for GL_LINK_WARNING.
63276         (chown, dup2): New declarations.
63277         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
63278         link warning.
63279         (ftruncate): New declaration.
63280         (getcwd): New declaration, taken from old getcwd.h.
63281         (getlogin_r): New declaration, taken from old getlogin_r.h.
63282         (readlink): New declaration.
63283         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
63284         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
63285         (gl_PREREQ_UNISTD): Remove macro.
63286         (gl_UNISTD_MODULE_INDICATOR): New macro.
63287         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
63288         many new variables. Don't set UNISTD_H.
63289         * modules/unistd (Description): Change.
63290         (Depends-on): Add link-warning.
63291         (configure.ac): Update.
63292         (Makefile.am): Create unistd.h always. Substitute many new variables
63293         into it.
63294
63295 2007-02-18  Bruno Haible  <bruno@clisp.org>
63296
63297         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
63298         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
63299         HAVE_GETSUBOPT.
63300         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
63301         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
63302         * lib/getsubopt.h: Remove file.
63303         * modules/getsubopt (Files): Remove lib/getsubopt.h.
63304         (Depends-on): Add stdlib.
63305         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63306         (Includes): Use <stdlib.h> instead of getsubopt.h.
63307         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
63308         Set HAVE_GETSUBOPT.
63309         * lib/getsubopt.c: Don't include getsubopt.h.
63310
63311 2007-02-18  Bruno Haible  <bruno@clisp.org>
63312
63313         * modules/fchdir (Depends-on): Add dup2.
63314
63315 2007-02-18  Bruno Haible  <bruno@clisp.org>
63316
63317         * lib/stdlib_.h: Handle glibc's special invocation convention
63318         specially.
63319
63320 2007-02-18  Bruno Haible  <bruno@clisp.org>
63321
63322         * modules/stdlib-tests: New file.
63323         * tests/test-stdlib.c: New file.
63324
63325         * modules/mkstemp (Files): Remove lib/mkstemp.h.
63326         (Depends-on): Add stdlib.
63327         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63328         (Includes): Use <stdlib.h> instead of mkstemp.h.
63329         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
63330         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
63331         * lib/mkstemp.c: Don't include mkstemp.h.
63332         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
63333         * lib/stdlib--.h: Don't include mkstemp.h.
63334
63335         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
63336         (Depends-on): Add stdlib.
63337         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63338         (Includes): Use <stdlib.h> instead of mkdtemp.h.
63339         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
63340         HAVE_MKDTEMP.
63341         * lib/mkdtemp.c: Don't include mkdtemp.h.
63342         * lib/clean-temp.c: Don't include mkdtemp.h.
63343
63344         * modules/exit (Files): Remove lib/exit.h.
63345         (Depends-on): Add stdlib.
63346         (Makefile.am): Remove lib_SOURCES.
63347         (Include): Use <stdlib.h> instead of exit.h.
63348         * lib/argmatch.c: Don't include exit.h.
63349         * lib/execute.c: Likewise.
63350         * lib/pagealign_alloc.c: Likewise.
63351         * lib/pipe.c: Likewise.
63352         * lib/wait-process.c: Likewise.
63353         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
63354         * lib/exitfail.c: Likewise.
63355         * lib/savewd.c: Likewise.
63356         * lib/xsetenv.c: Likewise.
63357
63358         * modules/stdlib: New file.
63359         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
63360         and extra comments about mkstemp().
63361         * lib/exit.h: Remove file.
63362         * lib/mkdtemp.h: Remove file.
63363         * lib/mkstemp.h: Remove file.
63364         * m4/stdlib_h.m4: New file.
63365         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
63366
63367 2007-02-18  Bruno Haible  <bruno@clisp.org>
63368
63369         * modules/math-tests: New file.
63370         * tests/test-math.c: New file.
63371
63372         * modules/math: New file.
63373         * modules/mathl (Files): Remove lib/mathl.h.
63374         (Depends-on): Add math.
63375         (Makefile.am): Don't mention mathl.h.
63376         (Include): Use <math.h> instead of mathl.h.
63377         * lib/math_.h: New file.
63378         * lib/mathl.h: Remove file.
63379         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
63380         mathl.h.
63381         * lib/asinl.c: Likewise.
63382         * lib/atanl.c: Likewise.
63383         * lib/ceill.c: Likewise.
63384         * lib/cosl.c: Likewise.
63385         * lib/expl.c: Likewise.
63386         * lib/floorl.c: Likewise.
63387         * lib/frexpl.c: Likewise.
63388         * lib/ldexpl.c: Likewise.
63389         * lib/logl.c: Likewise.
63390         * lib/sincosl.c: Likewise.
63391         * lib/sinl.c: Likewise.
63392         * lib/sqrtl.c: Likewise.
63393         * lib/tanl.c: Likewise.
63394         * lib/trigl.c: Likewise.
63395         * m4/math_h.m4: New file.
63396         * MODULES.html.sh (Mathematics): Add math.
63397
63398 2007-02-17  Bruno Haible  <bruno@clisp.org>
63399
63400         * modules/wctype-tests: New file.
63401         * tests/test-wctype.c: New file.
63402
63403         * modules/wchar-tests: New file.
63404         * tests/test-wchar.c: New file.
63405
63406         * modules/unistd-tests: New file.
63407         * tests/test-unistd.c: New file.
63408
63409         * modules/time-tests: New file.
63410         * tests/test-time.c: New file.
63411
63412         * modules/sysexits-tests: New file.
63413         * tests/test-sysexits.c: New file.
63414
63415         * modules/sys_time-tests: New file.
63416         * tests/test-sys_time.c: New file.
63417
63418         * modules/sys_stat-tests: New file.
63419         * tests/test-sys_stat.c: New file.
63420
63421         * modules/sys_socket-tests: New file.
63422         * tests/test-sys_socket.c: New file.
63423
63424         * modules/sys_select-tests: New file.
63425         * tests/test-sys_select.c: New file.
63426
63427         * modules/string-tests: New file.
63428         * tests/test-string.c: New file.
63429
63430         * modules/stdbool-tests: New file.
63431         * tests/test-stdbool.c: New file.
63432
63433         * modules/netinet_in-tests: New file.
63434         * tests/test-netinet_in.c: New file.
63435
63436         * modules/inttypes-tests: New file.
63437         * tests/test-inttypes.c: New file.
63438
63439         * modules/fcntl-tests: New file.
63440         * tests/test-fcntl.c: New file.
63441
63442         * modules/byteswap-tests: New file.
63443         * tests/test-byteswap.c: New file.
63444
63445         * modules/arpa_inet-tests: New file.
63446         * tests/test-arpa_inet.c: New file.
63447
63448 2007-02-17  Bruno Haible  <bruno@clisp.org>
63449
63450         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
63451         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
63452         if the corresponding module is not enabled. Emit link warnings if
63453         the function is used nevertheless.
63454         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
63455         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
63456         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
63457         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
63458         * modules/inttypes (Depends-on): Add link-warning.
63459         (Makefile.am): Copy the contents of build-aux/link-warning.h into
63460         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
63461         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
63462         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
63463         * modules/imaxdiv (configure.ac): Likewise.
63464         * modules/strtoimax (configure.ac): Likewise.
63465         * modules/strtoumax (configure.ac): Likewise.
63466
63467 2007-02-17  Bruno Haible  <bruno@clisp.org>
63468
63469         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
63470         gl_STRING_MODULE_INDICATOR_DEFAULTS.
63471         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
63472         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
63473
63474 2007-02-17  Bruno Haible  <bruno@clisp.org>
63475
63476         * modules/link-warning: New file.
63477         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
63478         * lib/string_.h (GL_LINK_WARNING): Remove definition.
63479         * modules/string (Depends-on): Add link-warning.
63480         (Makefile.am): Copy the contents of build-aux/link-warning.h into
63481         string.h.
63482         * MODULES.html.sh (Support for building libraries and executables): Add
63483         link-warning.
63484
63485 2007-02-17  Bruno Haible  <bruno@clisp.org>
63486
63487         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
63488         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
63489         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
63490         long lines.
63491
63492 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
63493             Bruno Haible  <bruno@clisp.org>
63494
63495         * modules/tmpfile: New file.
63496         * lib/tmpfile.c: New file.
63497         * m4/tmpfile.m4: New file.
63498         * MODULES.html.sh (func_all_modules): New section "Input/output".
63499
63500 2007-02-15  Bruno Haible  <bruno@clisp.org>
63501
63502         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
63503         (supports_delete_on_close): New function.
63504         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
63505
63506 2007-02-14  Bruno Haible  <bruno@clisp.org>
63507
63508         * modules/mbspcasecmp-tests: New file.
63509         * tests/test-mbspcasecmp.sh: New file.
63510         * tests/test-mbspcasecmp.c: New file.
63511
63512         New module mbspcasecmp.
63513         * modules/mbspcasecmp: New file.
63514         * lib/mbspcasecmp.c: New file.
63515         * lib/string_.h (strncasecmp): Change warning message.
63516         (mbspcasecmp): New declaration.
63517         * m4/mbspcasecmp.m4: New file.
63518         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63519         GNULIB_MBSPCASECMP.
63520         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
63521         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
63522
63523 2007-02-14  Bruno Haible  <bruno@clisp.org>
63524
63525         * modules/mbsncasecmp-tests: New file.
63526         * tests/test-mbsncasecmp.sh: New file.
63527         * tests/test-mbsncasecmp.c: New file.
63528
63529         New module mbsncasecmp.
63530         * modules/mbsncasecmp: New file.
63531         * lib/mbsncasecmp.c: New file.
63532         * lib/string_.h (mbsncasecmp): New declaration.
63533         * m4/mbsncasecmp.m4: New file.
63534         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63535         GNULIB_MBSNCASECMP.
63536         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
63537         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
63538
63539 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
63540
63541         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
63542         Verify that it doesn't overlap with our flags.
63543         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
63544         do not have the desired effect in multibyte locales; instead, use
63545         mbscasecmp.
63546         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
63547         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
63548         we don't require GNU fnmatch ourselves (if our users require it, they
63549         should do so explicitly).
63550
63551         Fix regex code so it doesn't rely on strcasecmp.
63552         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
63553         Otherwise, include gnulib's langinfo.h.
63554         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
63555         undesirable behavior in non-C locales.  Instead, rely on localecharset.
63556         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
63557         * modules/regex (FILES): Remove m4/codeset.m4.
63558         (Depends-on): Add localcharset.  Remove strcase.
63559
63560 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63561
63562         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
63563         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
63564
63565 2007-02-13  Bruno Haible  <bruno@clisp.org>
63566
63567         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
63568         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63569
63570 2007-02-12  Bruno Haible  <bruno@clisp.org>
63571
63572         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
63573         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
63574         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
63575         time warning rather than a link error.
63576
63577 2007-02-12  Bruno Haible  <bruno@clisp.org>
63578
63579         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
63580         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63581         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63582
63583 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63584
63585         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
63586         args, not 2.
63587
63588 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63589
63590         New module 'time', so that apps can include <time.h> as per
63591         POSIX and GNU instead of separate include files like time_r.h
63592         and timegm.h.  This implementation tries out a simpler approach
63593         for replacing decls in standard include files (as compared to
63594         the string module), somewhat as an experiment.
63595
63596         * config/srclist.txt: Comment out mktime.c for now.
63597         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
63598         since it doesn't apply any more.  Use generic wording instead.
63599         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
63600         'time'.
63601         * lib/time_.h, m4/time_h.m4, modules/time: New files.
63602         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
63603         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
63604         Don't include <sys/types.h>; no longer needed since we assume C89.
63605         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
63606         * lib/strftime.c: Likewise.
63607         * lib/time_r.c: Likewise.
63608         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
63609         * lib/nanosleep.c: Include <time.h> first, to check interface.
63610         * lib/strptime.c: Likewise.
63611         * lib/time_r.c: Likewise.
63612         * lib/timegm.c: Likewise.
63613         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
63614         needed.
63615         * lib/timegm.c: Don't include timegm.h; no longer needed.
63616         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
63617         time.h now handles any problems in that area.
63618         (struct timespec, nanosleep): Remove; time.h now arranges for these.
63619         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
63620         that time.h defines struct timespec.
63621         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
63622         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
63623         handles that.
63624         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
63625         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
63626         needed.  Set REPLACE_LOCALTIME.
63627         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
63628         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
63629         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
63630         nanosleep; time_h.m4 now does that.  Don't require
63631         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
63632         module handles this now.
63633         * modules/getdate (Depends-on): Remove timespec.  Add time.
63634         * modules/nanosleep (Depends-on): Likewise.
63635         * modules/stat-time (Depends-on): Likewise.
63636         * modules/nanosleep (Include): Include time.h, not timespec.h.
63637         * modules/strptime (Files): Remove lib/strptime.h.
63638         (Depends-on): Add extensions, time.
63639         (Include): Include time.h, not strptime.h.
63640         * modules/time_r (Files): Remove lib/time_r.h.
63641         (Depends-on): Add time.
63642         (Include): Include time.h, not time_r.h.
63643         * modules/timegm: Likewise.
63644         * modules/timespec (Description): Now does timespec-related decls
63645         of our own, instead of struct timespec itself.
63646         (Depends-on): Add time; remove extensions.
63647         (Maintainer): Add self.
63648         * modules/utimecmp (Depends-on): Add time; remove timespec.
63649         * modules/utimens (Depends-on): Likewise.
63650         * modules/xnanosleep (Depends-on): Likewise.
63651
63652 2007-02-11  Bruno Haible  <bruno@clisp.org>
63653
63654         * lib/c-strstr.c: Include allocsa.h.
63655         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63656         * lib/c-strcasestr.c: Include allocsa.h.
63657         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63658         * lib/strcasestr.c: Include allocsa.h.
63659         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63660         * lib/mbsstr.c: Include allocsa.h.
63661         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63662         allocsa/freesa instead of malloc/free.
63663         * lib/mbscasestr.c: Include allocsa.h.
63664         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63665         allocsa/freesa instead of malloc/free.
63666         * modules/c-strstr (Depends-on): Add allocsa.
63667         * modules/c-strcasestr (Depends-on): Likewise.
63668         * modules/strcasestr (Depends-on): Likewise.
63669         * modules/mbsstr (Depends-on): Likewise.
63670         * modules/mbscasestr (Depends-on): Likewise.
63671
63672 2007-02-11  Bruno Haible  <bruno@clisp.org>
63673
63674         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
63675
63676         * modules/mbsspn-tests: New file.
63677         * tests/test-mbsspn.sh: New file.
63678         * tests/test-mbsspn.c: New file.
63679
63680 2007-02-11  Bruno Haible  <bruno@clisp.org>
63681
63682         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
63683
63684         * modules/mbspbrk-tests: New file.
63685         * tests/test-mbspbrk.sh: New file.
63686         * tests/test-mbspbrk.c: New file.
63687
63688 2007-02-11  Bruno Haible  <bruno@clisp.org>
63689
63690         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
63691         unneeded cast.
63692
63693         * modules/mbscspn-tests: New file.
63694         * tests/test-mbscspn.sh: New file.
63695         * tests/test-mbscspn.c: New file.
63696
63697 2007-02-11  Bruno Haible  <bruno@clisp.org>
63698
63699         * modules/mbscasecmp-tests: New file.
63700         * tests/test-mbscasecmp.sh: New file.
63701         * tests/test-mbscasecmp.c: New file.
63702
63703 2007-02-11  Bruno Haible  <bruno@clisp.org>
63704
63705         Ensure O(n) worst-case complexity of mbscasestr.
63706         * lib/mbscasestr.c: Include stdbool.h.
63707         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63708         functions.
63709         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
63710         the bookkeeping indicates that it's worth it.
63711         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
63712
63713         * modules/mbscasestr-tests: New file.
63714         * tests/test-mbscasestr1.c: New file.
63715         * tests/test-mbscasestr2.sh: New file.
63716         * tests/test-mbscasestr2.c: New file.
63717         * tests/test-mbscasestr3.sh: New file.
63718         * tests/test-mbscasestr3.c: New file.
63719         * tests/test-mbscasestr4.sh: New file.
63720         * tests/test-mbscasestr4.c: New file.
63721         * m4/locale-tr.m4: New file.
63722
63723 2007-02-11  Bruno Haible  <bruno@clisp.org>
63724
63725         Ensure O(n) worst-case complexity of mbsstr.
63726         * lib/mbsstr.c: Include stdbool.h.
63727         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63728         functions.
63729         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
63730         bookkeeping indicates that it's worth it.
63731         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
63732
63733         * modules/mbsstr-tests: New file.
63734         * tests/test-mbsstr1.c: New file.
63735         * tests/test-mbsstr2.sh: New file.
63736         * tests/test-mbsstr2.c: New file.
63737         * tests/test-mbsstr3.sh: New file.
63738         * tests/test-mbsstr3.c: New file.
63739         * m4/locale-fr.m4: New file.
63740
63741 2007-02-11  Bruno Haible  <bruno@clisp.org>
63742
63743         * lib/mbsrchr.c (mbsrchr): Fix bug.
63744
63745         * modules/mbsrchr-tests: New file.
63746         * tests/test-mbsrchr.sh: New file.
63747         * tests/test-mbsrchr.c: New file.
63748
63749 2007-02-11  Bruno Haible  <bruno@clisp.org>
63750
63751         * lib/mbschr.c (mbschr): Fix bug.
63752
63753         * modules/mbschr-tests: New file.
63754         * tests/test-mbschr.sh: New file.
63755         * tests/test-mbschr.c: New file.
63756         * m4/locale-zh.m4: New file.
63757
63758 2007-02-11  Bruno Haible  <bruno@clisp.org>
63759
63760         Support for copying multibyte string iterators.
63761         * lib/mbiter.h: Include <string.h>.
63762         (mbiter_multi_copy): New function.
63763         (mbi_copy): New macro.
63764         * lib/mbuiter.h: Include <string.h>.
63765         (mbuiter_multi_copy): New function.
63766         (mbui_copy): New macro.
63767
63768 2007-02-11  Bruno Haible  <bruno@clisp.org>
63769
63770         New module mbslen.
63771         * modules/mbslen: New file.
63772         * lib/mbslen.c: New file.
63773         * lib/string_.h (mbslen): New declaration.
63774         * m4/mbslen.m4: New file.
63775         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63776         GNULIB_MBSLEN.
63777         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
63778         * MODULES.html.sh (Internationalization functions): Add mbslen.
63779
63780 2007-02-11  Bruno Haible  <bruno@clisp.org>
63781
63782         Ensure O(n) worst-case complexity of strcasestr substitute.
63783         * lib/strcasestr.c: Include stdbool.h.
63784         (knuth_morris_pratt): New function.
63785         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63786         bookkeeping indicates that it's worth it.
63787         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
63788
63789         * modules/strcasestr-tests: New file.
63790         * tests/test-strcasestr.c: New file.
63791
63792 2007-02-11  Bruno Haible  <bruno@clisp.org>
63793
63794         Ensure O(n) worst-case complexity of c_strcasestr.
63795         * lib/c-strcasestr.c: Include stdbool.h, string.h.
63796         (knuth_morris_pratt): New function.
63797         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
63798         the bookkeeping indicates that it's worth it.
63799         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
63800
63801         * modules/c-strcasestr-tests: New file.
63802         * tests/test-c-strcasestr.c: New file.
63803
63804 2007-02-11  Bruno Haible  <bruno@clisp.org>
63805
63806         Ensure O(n) worst-case complexity of c_strstr.
63807         * lib/c-strstr.c: Include stdbool.h, string.h.
63808         (knuth_morris_pratt): New function.
63809         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63810         bookkeeping indicates that it's worth it.
63811         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
63812
63813         * lib/c-strstr.c: Complete rewrite for maintainability.
63814
63815         * modules/c-strstr-tests: New file.
63816         * tests/test-c-strstr.c: New file.
63817
63818 2007-02-11  Bruno Haible  <bruno@clisp.org>
63819
63820         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
63821         5.2.1 and earlier, whereby \055 was treated just like the range
63822         delimiter '-'.
63823         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63824
63825 2007-02-08  Bruno Haible  <bruno@clisp.org>
63826
63827         * modules/regex (Depends-on): Add stdbool.
63828         Reported by Dalibor Topic <robilad@kaffe.org>.
63829
63830 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
63831
63832         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
63833         Prefer returning from main to exiting from it.
63834         Remove unnecessary parens after sizeof.
63835
63836 2007-02-05  Bruno Haible  <bruno@clisp.org>
63837
63838         New module mbssep.
63839         * modules/mbssep: New file.
63840         * lib/mbssep.c: New file.
63841         * lib/string_.h (strsep): Add a conditional link warning.
63842         (mbssep): New declaration.
63843         * m4/mbssep.m4: New file.
63844         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63845         GNULIB_MBSSEP.
63846         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
63847         * MODULES.html.sh (Internationalization functions): Add mbssep.
63848
63849 2007-02-05  Bruno Haible  <bruno@clisp.org>
63850
63851         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
63852         Optimize search in case of 1 delimiter.
63853
63854 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63855
63856         * lib/acl.h: Include sys/types.h before sys/acl.h.
63857
63858 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63859
63860         Merge upstream fix for glibc bugzilla #3957:
63861
63862         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
63863
63864         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
63865         bit for RE_HAT_LISTS_NOT_NEWLINE.
63866         (build_charclass_op): Remove bogus comment.
63867
63868 2007-02-05  Simon Josefsson  <simon@josefsson.org>
63869
63870         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
63871
63872 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63873
63874         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
63875         * lib/memmem.c [!defined _LIBC]: Include config.h.
63876
63877 2007-02-04  Bruno Haible  <bruno@clisp.org>
63878
63879         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
63880         warning message.
63881
63882 2007-02-04  Bruno Haible  <bruno@clisp.org>
63883
63884         New module mbstok_r.
63885         * modules/mbstok_r: New file.
63886         * lib/mbstok_r.c: New file.
63887         * lib/string_.h (strtok_r): Change argument names to match the
63888         comments. Add a conditional link warning.
63889         (mbstok_r): New declaration.
63890         * m4/mbstok_r.m4: New file.
63891         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63892         GNULIB_MBSTOK_R.
63893         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
63894         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
63895
63896 2007-02-04  Bruno Haible  <bruno@clisp.org>
63897
63898         New module mbsspn.
63899         * modules/mbsspn: New file.
63900         * lib/mbsspn.c: New file.
63901         * lib/string_.h (strspn): Add a conditional link warning.
63902         (mbsspn): New declaration.
63903         * m4/mbsspn.m4: New file.
63904         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63905         GNULIB_MBSSPN.
63906         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
63907         * MODULES.html.sh (Internationalization functions): Add mbsspn.
63908
63909 2007-02-04  Bruno Haible  <bruno@clisp.org>
63910
63911         New module mbspbrk.
63912         * modules/mbspbrk: New file.
63913         * lib/mbspbrk.c: New file.
63914         * lib/string_.h (strpbrk): Add a conditional link warning.
63915         (mbspbrk): New declaration.
63916         * m4/mbspbrk.m4: New file.
63917         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63918         GNULIB_MBSPBRK.
63919         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
63920         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
63921
63922 2007-02-04  Bruno Haible  <bruno@clisp.org>
63923
63924         New module mbscspn.
63925         * modules/mbscspn: New file.
63926         * lib/mbscspn.c: New file.
63927         * lib/string_.h (strcspn): Add a conditional link warning.
63928         (mbscspn): New declaration.
63929         * m4/mbscspn.m4: New file.
63930         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63931         GNULIB_MBSCSPN.
63932         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
63933         * MODULES.html.sh (Internationalization functions): Add mbscspn.
63934
63935 2007-02-04  Bruno Haible  <bruno@clisp.org>
63936
63937         New module mbscasestr, reduced goal of strcasestr.
63938         * modules/mbscasestr: New file.
63939         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
63940         (mbscasestr): Renamed from strcasestr.
63941         * lib/strcasestr.c: Don't include mbuiter.h.
63942         (strcasestr): Remove support for multibyte locales.
63943         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
63944         Change the conditional link warning.
63945         (mbscasestr): New declaration.
63946         * m4/mbscasestr.m4: New file.
63947         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
63948         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
63949         REPLACE_STRCASESTR.
63950         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
63951         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63952         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63953         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
63954         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
63955         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63956         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
63957         (Depends-on): Remove mbuiter.
63958         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
63959
63960 2007-02-04  Bruno Haible  <bruno@clisp.org>
63961
63962         Simplify handling of strncasecmp.
63963         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
63964         the conditional link warning.
63965         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63966         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
63967         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
63968         * modules/strcase (configure.ac): Don't invoke
63969         gl_STRING_MODULE_INDICATOR.
63970         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
63971
63972 2007-02-04  Bruno Haible  <bruno@clisp.org>
63973
63974         New module mbscasecmp, reduced goal of strcasecmp.
63975         * modules/mbscasecmp: New file.
63976         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
63977         (mbscasecmp): Renamed from strcasecmp.
63978         * lib/strcasecmp.c: Don't include mbuiter.h.
63979         (strcasecmp): Remove support for multibyte locales.
63980         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
63981         Change the conditional link warning.
63982         (mbscasecmp): New declaration.
63983         * m4/mbscasecmp.m4: New file.
63984         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
63985         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
63986         REPLACE_STRCASECMP.
63987         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
63988         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63989         GNULIB_MBSCASECMP.
63990         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
63991         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
63992         * modules/strcase (Files): Remove m4/mbrtowc.m4.
63993         (Depends-on): Remove mbuiter.
63994         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
63995
63996 2007-02-04  Bruno Haible  <bruno@clisp.org>
63997
63998         New module mbsstr. Remove module strstr.
63999         * modules/mbsstr: New file.
64000         * modules/strstr: Remove file.
64001         * lib/mbsstr.c: Renamed from lib/strstr.c.
64002         (mbsstr): Renamed from strstr.
64003         * lib/string_.h (strstr): Remove declaration. Change the conditional
64004         link warning.
64005         (mbsstr): New declaration.
64006         * m4/mbsstr.m4: New file.
64007         * m4/strstr.m4: Remove file.
64008         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
64009         REPLACE_STRSTR.
64010         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
64011         Don't initialize GNULIB_STRSTR.
64012         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
64013         substitute GNULIB_STRSTR and REPLACE_STRSTR.
64014         * MODULES.html.sh (Internationalization functions): Add mbsstr.
64015         (Support for systems lacking ANSI C 89): Remove strstr.
64016
64017 2007-02-04  Bruno Haible  <bruno@clisp.org>
64018
64019         New module mbsrchr.
64020         * modules/mbsrchr: New file.
64021         * lib/mbsrchr.c: New file.
64022         * lib/string_.h (strrchr): Add a conditional link warning.
64023         (mbsrchr): New declaration.
64024         * m4/mbsrchr.m4: New file.
64025         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64026         GNULIB_MBSRCHR.
64027         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
64028         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
64029
64030 2007-02-04  Bruno Haible  <bruno@clisp.org>
64031
64032         New module mbschr.
64033         * modules/mbschr: New file.
64034         * lib/mbschr.c: New file.
64035         * lib/string_.h (strchr): Add a conditional link warning.
64036         (mbschr): New declaration.
64037         * m4/mbschr.m4: New file.
64038         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64039         GNULIB_MBSCHR.
64040         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
64041         * MODULES.html.sh (Internationalization functions): Add mbschr.
64042
64043 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
64044
64045         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
64046
64047         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
64048
64049 2007-02-04  Bruno Haible  <bruno@clisp.org>
64050
64051         New module description section 'configure.ac-early'.
64052         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
64053         (func_get_autoconf_early_snippet): New function.
64054         (func_import, func_create_testdir): Use it. Remove special cases for
64055         modules 'extensions' and 'lock'.
64056         * modules/extensions (configure.ac-early): Require
64057         gl_USE_SYSTEM_EXTENSIONS.
64058         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
64059
64060 2007-02-04  Bruno Haible  <bruno@clisp.org>
64061
64062         Make use of gcj-4.3's -fsource and -ftarget option.
64063         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
64064         and if so try the options -fsource and -ftarget.
64065         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
64066         source_version, ftarget_option, target_version arguments.
64067         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
64068         (is_envjavac_oldgcj_14_14_usable): Renamed from
64069         is_envjavac_gcj_14_14_usable.
64070         (is_envjavac_oldgcj_14_13_usable): Renamed from
64071         is_envjavac_gcj_14_13_usable.
64072         (is_gcj_present): Update.
64073         (is_gcj_43, is_gcj43_usable): New functions.
64074         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
64075         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
64076         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
64077         try the options -fsource and -ftarget.
64078
64079 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
64080
64081         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
64082         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
64083         larger value.
64084
64085 2007-02-03  Jim Meyering  <jim@meyering.net>
64086
64087         Give tools a better chance to allocate space for very large buffers.
64088         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
64089
64090         Make pwd and readlink work also when run with an unreadable parent dir
64091         on systems with openat support.
64092         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
64093         provided getcwd function, even when we have openat support.
64094         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
64095
64096 2007-02-02  Bruno Haible  <bruno@clisp.org>
64097
64098         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
64099         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
64100         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
64101         portability problems if one of these functions is only used on specific
64102         platforms.
64103         Reported by Paul Eggert.
64104
64105 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
64106
64107         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
64108         is causing more trouble than it's curing.
64109         * lib/regex_internal.h (__mempcpy): Remove.
64110         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
64111         (and make the code a tad smaller to boot).
64112         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
64113
64114 2007-02-02  Jim Meyering  <jim@meyering.net>
64115
64116         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
64117         section, not in the Makefile.am: one.
64118
64119 2007-02-02  Eric Blake  <ebb9@byu.net>
64120
64121         * lib/strchrnul.c: Always include config.h first.
64122
64123         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
64124         gnulib strstr is not necessary here.
64125
64126 2007-02-02  Simon Josefsson  <simon@josefsson.org>
64127
64128         * m4/socklen.m4: Fix typo.
64129
64130 2007-02-02  Eric Blake  <ebb9@byu.net>
64131
64132         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
64133         * modules/netinet_in (Makefile.am): Likewise.
64134
64135 2007-02-01  Bruno Haible  <bruno@clisp.org>
64136
64137         * lib/string_.h (GL_LINK_WARNING): New macro.
64138         (strcasecmp, strstr, strcasestr): If provided by the system,
64139         conditionally define as a macro that leads to a warning instead of to
64140         an error.
64141         (strncasecmp): Conditionally define as a macro that leads to a warning.
64142
64143 2007-02-01  Karl Berry  <karl@gnu.org>
64144
64145         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
64146
64147 2007-02-01  Bruno Haible  <bruno@clisp.org>
64148
64149         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
64150         renamings.
64151
64152 2007-02-01  Eric Blake  <ebb9@byu.net>
64153
64154         * modules/regex (Depends-on): Revert dependence on mempcpy.
64155         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
64156         module's definition of mempcpy.
64157         Reported by Paul Eggert.
64158
64159 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
64160
64161         * lib/string_.h: If the gnulib module XYZ is not present, undefine
64162         the symbol XYZ before redefining it.  This fixes a problem with
64163         programs that don't use XYZ, when compiled on systems that define
64164         XYZ to something else.
64165
64166 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
64167
64168         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
64169         occurs when "mkdir -m foo" creates a setgid directory that is (1)
64170         writeable to group or other and (2) is intended to have a special
64171         mode bit that is set or cleared.  In such a case, the directory
64172         should be neither group- nor other-writeable until the special
64173         mode bits are right.
64174
64175 2007-01-31  Eric Blake  <ebb9@byu.net>
64176
64177         * modules/mountlist (Depends-on): Add strstr.
64178
64179         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
64180         bug.
64181         * modules/string (Makefile.am): Remove redundant replacement.
64182         * modules/regex (Depends-on): Add mempcpy.
64183
64184 2007-01-31  Bruno Haible  <bruno@clisp.org>
64185
64186         New module description field 'Link'.
64187         * gnulib-tool (func_usage): Document --extract-link-directive.
64188         (sed_extract_prog): Recognize 'Link' directive.
64189         (func_get_link_directive): New function.
64190         (func_import): Show summary of link directives.
64191         Handle --extract-link-directive option.
64192         * modules/acl (Link): New section.
64193         * modules/clock-time (Link): New section.
64194         * modules/euidaccess (Link): New section.
64195         * modules/gettext (Link): New section.
64196         * modules/iconv (Link): New section.
64197         * modules/lock (Link): New section.
64198         * modules/nanosleep (Link): New section.
64199         * modules/readline (Link): New section.
64200
64201 2007-01-27  Bruno Haible  <bruno@clisp.org>
64202
64203         Enforce the use of gnulib modules for unportable <string.h> functions.
64204         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
64205         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
64206         (gl_HEADER_STRING_H_BODY): Require it.
64207         * lib/string_.h: If the gnulib module XYZ is not present, redefine
64208         the symbol XYZ to one that gives a link error.
64209         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
64210         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
64211         * modules/mempcpy (configure.ac): Likewise.
64212         * modules/memrchr (configure.ac): Likewise.
64213         * modules/stpcpy (configure.ac): Likewise.
64214         * modules/stpncpy (configure.ac): Likewise.
64215         * modules/strcase (configure.ac): Likewise.
64216         * modules/strcasestr (configure.ac): Likewise.
64217         * modules/strchrnul (configure.ac): Likewise.
64218         * modules/strdup (configure.ac): Likewise.
64219         * modules/strndup (configure.ac): Likewise.
64220         * modules/strnlen (configure.ac): Likewise.
64221         * modules/strpbrk (configure.ac): Likewise.
64222         * modules/strsep (configure.ac): Likewise.
64223         * modules/strstr (configure.ac): Likewise.
64224         * modules/strtok_r (configure.ac): Likewise.
64225
64226 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
64227
64228         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
64229
64230 2007-01-30  Jim Meyering  <jim@meyering.net>
64231
64232         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
64233
64234 2007-01-29  Bruno Haible  <bruno@clisp.org>
64235
64236         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
64237         * lib/execute.c: Likewise.
64238         * lib/pipe.c: Likewise.
64239         * lib/printf-args.h: Likewise.
64240         * lib/printf-args.c: Likewise.
64241         * lib/printf-parse.c: Likewise.
64242         * lib/vasnprintf.c: Likewise.
64243
64244 2007-01-29  Eric Blake  <ebb9@byu.net>
64245
64246         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
64247         declaration.
64248
64249 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
64250
64251         * lib/strptime.h (strptime): Use 'restrict' for args where
64252         POSIX requires this.
64253         * lib/strptime.c (strptime): Likewise.
64254         Change license notice from LGPL to GPL, since gnulib-tool will
64255         change this as needed.
64256         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
64257         defined.
64258         Include "strptime.h" first, to check interface.
64259         Do not #undef _LIBC and _NL_CURRENT.
64260         Do not include <stdlib.h>; no longer needed.
64261         Include "time_r.h" and declare ptime_locale_status
64262         only if _LIBC is not defined.
64263         (__P): Remove unused macro.
64264         (match_string): Bring back glibc version, but use it only if _LIBC
64265         is defined.
64266         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
64267         Remove unnecessary assertion and abort() call.
64268         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
64269         * m4/strptime.m4: Fix serial number comment.
64270         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
64271         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
64272         (Depends-on): Add time_r.
64273
64274 2007-01-29  Bruno Haible  <bruno@clisp.org>
64275
64276         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64277         strptime.
64278         * modules/strptime (Depends-on): Add stdbool.
64279         * lib/strptime.h: Include <time.h> always. Add comments.
64280
64281 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64282
64283         * modules/strptime: New file.
64284         * lib/strptime.h: New file.
64285         * lib/strptime.c: New file.
64286         * m4/strptime.m4: New file.
64287
64288 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
64289
64290         * MODULES.html.sh: New module mpsort.
64291         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
64292
64293         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
64294         a circularity problem with HP-UX ia64 reported by Bob Proulx in
64295         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
64296         All uses changed.
64297         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
64298         All uses changed.
64299         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
64300         to _Restrict_.
64301         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
64302         the parameter matches the prototype.
64303
64304 2007-01-28  Jim Meyering  <jim@meyering.net>
64305
64306         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
64307         sys/time.h here, reverting that part of the previous patch:
64308         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
64309
64310 2007-01-28  Bruno Haible  <bruno@clisp.org>
64311
64312         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
64313         value of $(SYS_TIME_H).
64314         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
64315         remove it conditionally, too. [added by Jim Meyering]
64316         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
64317         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
64318         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
64319         GETTIMEOFDAY_REPLACEMENT to 1.
64320
64321 2007-01-28  Bruno Haible  <bruno@clisp.org>
64322
64323         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
64324         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
64325         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
64326         Set UNISTD_H instead of UNISTD_H2.
64327         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
64328
64329 2007-01-28  Bruno Haible  <bruno@clisp.org>
64330
64331         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
64332         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
64333
64334 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64335
64336         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
64337         (func_create_testdir): Ensure C locale for `grep' and `tr'
64338         character ranges.
64339         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
64340         ACLOCAL_AMFLAGS parsing state machine.
64341
64342 2007-01-27  Bruno Haible  <bruno@clisp.org>
64343
64344         * modules/unistr/base: Update.
64345
64346 2007-01-27  Bruno Haible  <bruno@clisp.org>
64347
64348         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
64349         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
64350         * modules/unistr/u32-mbtouc-unsafe: Renamed from
64351         modules/unistr/u32-mbtouc.
64352         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
64353         * lib/unistr.h: Update.
64354         * lib/linebreak.c: Update.
64355         * modules/unistr/u32-mbtouc: Renamed from
64356         modules/unistr/u32-mbtouc-safe.
64357         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
64358         * lib/unistr.h: Update.
64359         * lib/unistr/u32-to-u8.c: Update.
64360         * lib/unistr/u32-to-u16.c: Update.
64361
64362 2007-01-27  Bruno Haible  <bruno@clisp.org>
64363
64364         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
64365         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
64366         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
64367         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
64368         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
64369         * modules/unistr/u16-mbtouc-unsafe: Renamed from
64370         modules/unistr/u16-mbtouc.
64371         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
64372         * lib/unistr.h: Update.
64373         * lib/linebreak.c: Update.
64374         * modules/linebreak: Update.
64375         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
64376         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
64377         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
64378         * modules/unistr/u16-mbtouc: Renamed from
64379         modules/unistr/u16-mbtouc-safe.
64380         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
64381         * lib/unistr.h: Update.
64382         * lib/unistr/u16-to-u8.c: Update.
64383         * modules/unistr/u16-to-u8: Update.
64384         * lib/unistr/u16-to-u32.c: Update.
64385         * modules/unistr/u16-to-u32: Update.
64386
64387 2007-01-27  Bruno Haible  <bruno@clisp.org>
64388
64389         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
64390         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
64391         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
64392         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
64393         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
64394         * modules/unistr/u8-mbtouc-unsafe: Renamed from
64395         modules/unistr/u8-mbtouc.
64396         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
64397         * lib/unistr.h: Update.
64398         * lib/striconveh.c: Update.
64399         * modules/striconveh: Update.
64400         * lib/linebreak.c: Update.
64401         * modules/linebreak: Update.
64402         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
64403         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
64404         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
64405         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
64406         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
64407         * lib/unistr.h: Update.
64408         * lib/striconveh.c: Update.
64409         * modules/striconveh: Update.
64410         * lib/unistr/u8-to-u16.c: Update.
64411         * modules/unistr/u8-to-u16: Update.
64412         * lib/unistr/u8-to-u32.c: Update.
64413         * modules/unistr/u8-to-u32: Update.
64414
64415 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64416
64417         Sync from Libtool.
64418         * lib/argz.c: Do not include strings.h nor memory.h, include
64419         string.h unconditionally.  Patch by Simon Josefsson.
64420
64421 2007-01-27  Bruno Haible  <bruno@clisp.org>
64422
64423         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
64424         from gl_HEADER_STRING_H_BODY.
64425         (gl_HEADER_STRING_H_BODY): Require it.
64426         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
64427         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
64428         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
64429         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
64430         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64431         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
64432         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
64433         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
64434         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
64435         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
64436         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
64437         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
64438         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
64439         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
64440         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64441
64442 2007-01-27  Bruno Haible  <bruno@clisp.org>
64443
64444         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
64445         check_PROGRAMS into noinst_PROGRAMS.
64446         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
64447         check_PROGRAMS in this case.
64448         (func_import): Set for_test to false.
64449         (func_create_testdir): Set for_test to true.
64450
64451 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
64452             Bruno Haible  <bruno@clisp.org>
64453
64454         * modules/strcasestr (Files): Remove lib/strcasestr.h.
64455         (Depends-on): Add string.
64456         (Includes): Use <string.h> instead of strcasestr.h.
64457         * modules/string (Makefile.am): Also substitute the value of
64458         REPLACE_STRCASESTR.
64459         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
64460         assume strcasestr is declared in <string.h> not <strings.h>. Also
64461         set REPLACE_STRCASESTR.
64462         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
64463         REPLACE_STRCASESTR.
64464         * lib/strcasestr.h: Remove file.
64465         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
64466         * lib/string_.h (strcasestr): New declaration.
64467
64468 2007-01-27  Bruno Haible  <bruno@clisp.org>
64469
64470         * lib/string_.h: Use 'extern'.
64471
64472 2007-01-27  Jim Meyering  <jim@meyering.net>
64473
64474         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
64475         of set-but-not-used local, "q".
64476
64477         * lib/mempcpy.c: Include <config.h> before <string.h>.
64478         This fixes a compilation error on HP-UX, due to the system's
64479         "restrict"-using mempcpy prototype.
64480
64481 2007-01-26  Bruno Haible  <bruno@clisp.org>
64482
64483         Small optimization.
64484         * lib/javacomp.c: Include c-strstr.h.
64485          (is_envjavac_gcj): Use c_strstr instead of strstr.
64486         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
64487
64488 2007-01-26  Bruno Haible  <bruno@clisp.org>
64489
64490         * MODULES.html.sh (Unicode string functions): Add the new modules.
64491
64492         * modules/uniconv/u32-strconv-to-locale: New file.
64493         * lib/uniconv/u32-strconv-to-locale.c: New file.
64494
64495         * modules/uniconv/u16-strconv-to-locale: New file.
64496         * lib/uniconv/u16-strconv-to-locale.c: New file.
64497
64498         * modules/uniconv/u8-strconv-to-locale: New file.
64499         * lib/uniconv/u8-strconv-to-locale.c: New file.
64500
64501         * modules/uniconv/u32-strconv-from-locale: New file.
64502         * lib/uniconv/u32-strconv-from-locale.c: New file.
64503
64504         * modules/uniconv/u16-strconv-from-locale: New file.
64505         * lib/uniconv/u16-strconv-from-locale.c: New file.
64506
64507         * modules/uniconv/u8-strconv-from-locale: New file.
64508         * lib/uniconv/u8-strconv-from-locale.c: New file.
64509
64510         * modules/uniconv/u32-strconv-to-enc: New file.
64511         * lib/uniconv/u32-strconv-to-enc.c: New file.
64512         * modules/uniconv/u32-strconv-to-enc-tests: New file.
64513         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
64514
64515         * modules/uniconv/u16-strconv-to-enc: New file.
64516         * lib/uniconv/u16-strconv-to-enc.c: New file.
64517         * lib/uniconv/u-strconv-to-enc.h: New file.
64518         * modules/uniconv/u16-strconv-to-enc-tests: New file.
64519         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
64520
64521         * modules/uniconv/u8-strconv-to-enc: New file.
64522         * lib/uniconv/u8-strconv-to-enc.c: New file.
64523         * modules/uniconv/u8-strconv-to-enc-tests: New file.
64524         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
64525
64526         * modules/uniconv/u32-strconv-from-enc: New file.
64527         * lib/uniconv/u32-strconv-from-enc.c: New file.
64528         * modules/uniconv/u32-strconv-from-enc-tests: New file.
64529         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
64530
64531         * modules/uniconv/u16-strconv-from-enc: New file.
64532         * lib/uniconv/u16-strconv-from-enc.c: New file.
64533         * modules/uniconv/u16-strconv-from-enc-tests: New file.
64534         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
64535
64536         * modules/uniconv/u8-strconv-from-enc: New file.
64537         * lib/uniconv/u8-strconv-from-enc.c: New file.
64538         * lib/uniconv/u-strconv-from-enc.h: New file.
64539         * modules/uniconv/u8-strconv-from-enc-tests: New file.
64540         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
64541
64542         * modules/uniconv/u32-conv-from-enc: New file.
64543         * lib/uniconv/u32-conv-from-enc.c: New file.
64544         * modules/uniconv/u32-conv-from-enc-tests: New file.
64545         * tests/uniconv/test-u32-conv-from-enc.c: New file.
64546
64547         * modules/uniconv/u16-conv-from-enc: New file.
64548         * lib/uniconv/u16-conv-from-enc.c: New file.
64549         * lib/uniconv/u-conv-from-enc.h: New file.
64550         * modules/uniconv/u16-conv-from-enc-tests: New file.
64551         * tests/uniconv/test-u16-conv-from-enc.c: New file.
64552
64553         * modules/uniconv/u8-conv-from-enc: New file.
64554         * lib/uniconv/u8-conv-from-enc.c: New file.
64555         * modules/uniconv/u8-conv-from-enc-tests: New file.
64556         * tests/uniconv/test-u8-conv-from-enc.c: New file.
64557
64558         * modules/uniconv/base: New file.
64559         * lib/uniconv.h: New file.
64560
64561 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
64562
64563         * doc/gnulib-tool.texi (Initial import): Update to match current
64564         behavior with strdup module.
64565         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
64566         * lib/memmem.h: Remove; all uses removed.  This is now done
64567         by <string.h>.
64568         * lib/mempcpy.h: Likewise.
64569         * lib/memrchr.h: Likewise.
64570         * lib/stpcpy.h: Likewise.
64571         * lib/stpncpy.h: Likewise.
64572         * lib/strcase.h: Likewise.
64573         * lib/strchrnul.h: Likewise.
64574         * lib/strdup.h: Likewise.
64575         * lib/strndup.h: Likewise.
64576         * lib/strnlen.h: Likewise.
64577         * lib/strpbrk.h: Likewise.
64578         * lib/strsep.h: Likewise.
64579         * lib/strstr.h: Likewise.
64580         * lib/strtok_r.h: Likewise.
64581         * lib/string_.h: New file.
64582         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
64583         Rely on <string.h> instead.
64584         * lib/canon-host.c: Likewise.
64585         * lib/chdir-long.c: Likewise.
64586         * lib/concatpath.c: Likewise.
64587         * lib/exclude.c: Likewise.
64588         * lib/fchdir.c: Likewise.
64589         * lib/getaddrinfo.c: Likewise.
64590         * lib/getcwd.c: Likewise.
64591         * lib/getsubopt.c: Likewise.
64592         * lib/glob.c: Likewise.
64593         * lib/hard-locale.c: Likewise.
64594         * lib/iconvme.c: Likewise.
64595         * lib/javacomp.c: Likewise.
64596         * lib/mempcpy.c: Likewise.
64597         * lib/memrchr.c: Likewise.
64598         * lib/regex_internal.h: Likewise.
64599         * lib/stpncpy.c: Likewise.
64600         * lib/strcasecmp.c: Likewise.
64601         * lib/strchrnul.c: Likewise.
64602         * lib/strdup.c: Likewise.
64603         * lib/striconv.c: Likewise.
64604         * lib/striconveh.c: Likewise.
64605         * lib/striconveha.c: Likewise.
64606         * lib/strncasecmp.c: Likewise.
64607         * lib/strndup.c: Likewise.
64608         * lib/strnlen.c: Likewise.
64609         * lib/strsep.c: Likewise.
64610         * lib/strstr.c: Likewise.
64611         * lib/strtok_r.c: Likewise.
64612         * lib/userspec.c: Likewise.
64613         * lib/w32spawn.h: Likewise.
64614         * lib/xstrndup.c: Likewise.
64615         * lib/mountlist.c (strstr): Remove decl.
64616         * m4/string_h.m4: New file.
64617         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
64618         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
64619         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
64620         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
64621         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
64622         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
64623         Set REPLACE_STRCASECMP if necessary.
64624         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
64625         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
64626         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
64627         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
64628         HAVE_DECL_STRDUP if necessary.
64629         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
64630         since gl_FUNC_STRNDUP does that now.
64631         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
64632         Check for decl here...
64633         (gl_PREREQ_STRNLEN): ... not here.
64634         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
64635         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
64636         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
64637         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
64638         necessary.
64639         * modules/string: New file.
64640         * modules/memmem (Files): Remove special-purpose include file.
64641         (Depends-on): Add string.
64642         (Include): Include <string.h>, not the removed file.
64643         * modules/mempcpy: Likewise.
64644         * modules/memrchr: Likewise.
64645         * modules/stpcpy: Likewise.
64646         * modules/stpncpy: Likewise.
64647         * modules/strcase: Likewise.
64648         * modules/strchrnul: Likewise.
64649         * modules/strdup: Likewise.
64650         * modules/strndup: Likewise.
64651         * modules/strnlen: Likewise.
64652         * modules/strpbrk: Likewise.
64653         * modules/strsep: Likewise.
64654         * modules/strstr: Likewise.
64655         * modules/strtok_r: Likewise.
64656         * tests/test-dirname.c: Don't include "strdup.h", since
64657         <string.h> now suffices.
64658         * tests/test-memmem.c: Don't include "memmem.h", since
64659         <string.h> now suffices.
64660
64661 2007-01-25  Bruno Haible  <bruno@clisp.org>
64662
64663         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
64664         *resultp is 0.
64665
64666         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
64667         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
64668         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
64669         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
64670
64671         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
64672         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
64673         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
64674         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
64675         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
64676         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
64677
64678 2007-01-24  Bruno Haible  <bruno@clisp.org>
64679
64680         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
64681         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
64682         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
64683         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
64684         gl_FUNC_FTS_CORE.
64685         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
64686         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
64687         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64688         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
64689         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
64690         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
64691         gl_FUNC_FCHOWNAT.
64692         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
64693         gl_FUNC_STRFTIME.
64694         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
64695         Reported by Ralf Wildenhues.
64696
64697 2007-01-24  Bruno Haible  <bruno@clisp.org>
64698
64699         Drop AC_REQUIRE calls that are redundant with the module dependencies.
64700         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
64701         gl_GETADDRINFO.
64702         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
64703         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
64704         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
64705
64706 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
64707
64708         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
64709         Don't use 'exit'; just return from 'main'.
64710         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
64711
64712         * lib/fnmatch_.h: Readjust white space and comments to match
64713         glibc, to avoid spurious diffs.
64714
64715 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64716
64717         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
64718         2004-12-01 change by Jakub Jelinek, since this code won't compile
64719         if !LIBC.  Problem reported by Bob Proulx.
64720
64721 2007-01-23  Bruno Haible  <bruno@clisp.org>
64722
64723         * lib/striconveh.c: Include c-strcaseeq.h.
64724         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
64725         * modules/striconveh (Depends-on): Add c-strcaseeq.
64726
64727 2007-01-23  Bruno Haible  <bruno@clisp.org>
64728
64729         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
64730
64731         * modules/c-strcaseeq: New file.
64732         * lib/c-strcaseeq.h: New file.
64733
64734         * modules/streq: New file.
64735         * lib/streq.h: New file.
64736
64737 2007-01-23  Bruno Haible  <bruno@clisp.org>
64738
64739         * modules/striconveha-tests: New file.
64740         * tests/test-striconveha.c: New file.
64741
64742         * lib/striconveha.h: Include <stdbool.h>.
64743         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
64744         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
64745         (mem_iconveha_notranslit): Renamed from mem_iconveha.
64746         (mem_iconveha): New function.
64747         (str_iconveha_notranslit): Renamed from str_iconveha.
64748         (str_iconveha): New function.
64749         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
64750         c-strcase.
64751
64752 2007-01-23  Bruno Haible  <bruno@clisp.org>
64753
64754         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
64755         encodings without forgiving before trying any encoding with handler.
64756         (str_iconveha): Try all encodings without forgiving before trying any
64757         encoding with handler.
64758
64759 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64760
64761         Import the following changes from libc.
64762
64763         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
64764
64765         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
64766
64767         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
64768
64769         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
64770         normal_bracket label.
64771
64772         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
64773
64774         [BZ #361]
64775         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
64776         to normal_bracket after fetching the next character.
64777
64778 2007-01-22  Bruno Haible  <bruno@clisp.org>
64779
64780         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
64781         argument.
64782         * lib/striconveh.c (iconv_carefully_1): New function.
64783         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
64784         argument.
64785         (str_cd_iconveh): Update.
64786         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
64787         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
64788         * tests/test-striconveh.c (MAGIC): New macro.
64789         (new_offsets): New function.
64790         (main): Test call with and without offsets.
64791
64792 2007-01-22  Bruno Haible  <bruno@clisp.org>
64793
64794         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
64795         * modules/sys_select (Makefile.am): Likewise.
64796         * modules/sys_socket (Makefile.am): Likewise.
64797         * modules/sys_time (Makefile.am): Likewise.
64798
64799 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
64800
64801         * modules/gettimeofday (License): Change from GPL to LGPL, since
64802         gettimeofday is a library function.
64803
64804 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64805
64806         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
64807
64808 2007-01-21  Bruno Haible  <bruno@clisp.org>
64809
64810         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
64811
64812 2007-01-21  Bruno Haible  <bruno@clisp.org>
64813
64814         * modules/striconveha: New file.
64815         * lib/striconveha.h: New file.
64816         * lib/striconveha.c: New file.
64817         * MODULES.html.sh (Internationalization functions): Add striconveha.
64818         * lib/striconv.c (str_iconv): Optimize the case of an empty input
64819         string.
64820         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
64821
64822 2007-01-21  Bruno Haible  <bruno@clisp.org>
64823
64824         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
64825         * lib/striconveh.c (str_iconveh): Likewise.
64826
64827 2007-01-21  Bruno Haible  <bruno@clisp.org>
64828
64829         * lib/striconveh.h (mem_iconveh): New declaration.
64830         * lib/striconveh.c (mem_iconveh): New function.
64831         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
64832
64833 2007-01-21  Bruno Haible  <bruno@clisp.org>
64834
64835         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
64836
64837         * lib/striconveh.h (mem_cd_iconveh): Change specification.
64838         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
64839         original result buffer.
64840         (str_cd_iconveh): Update.
64841         * tests/test-striconveh.c (main): Update.
64842
64843         * lib/striconv.h (mem_cd_iconv): Change specification.
64844         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
64845         result buffer.
64846         (str_cd_iconv): Update.
64847         * tests/test-striconv.c (main): Update.
64848
64849 2007-01-21  Bruno Haible  <bruno@clisp.org>
64850
64851         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
64852
64853 2007-01-20  Jim Meyering  <jim@meyering.net>
64854
64855         * lib/userspec.c (parse_with_separator): If a user or group string
64856         starts with "+", skip the corresponding name-to-ID look-up, since
64857         such a look-up must fail: user and group names may not include "+".
64858
64859 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
64860
64861         * lib/poll.c: Include sys/time.h and time.h unconditionally,
64862         since we now assume the sys_time module.
64863         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
64864         check for sys/time.h; no longer needed.
64865         * modules/poll (Depends-on): Depend on sys_time.
64866
64867 2007-01-18  Bruno Haible  <bruno@clisp.org>
64868
64869         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
64870         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64871
64872         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
64873         gettimeofday.
64874
64875         * tests/test-gettimeofday.c: Include <time.h>.
64876         (dummy): Remove variable.
64877
64878         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
64879         gl_HEADER_SYS_TIME_H.
64880         (gl_HEADER_SYS_TIME_H): New macro.
64881
64882         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
64883         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64884         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
64885         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
64886         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64887         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
64888         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
64889         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64890         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
64891         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
64892         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64893
64894         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
64895         last change; it caused a compilation error when cross-compiling to
64896         Cygwin.
64897
64898 2007-01-18  Jim Meyering  <jim@meyering.net>
64899
64900         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
64901         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
64902         than the race-prone "test -d sys || mkdir sys".
64903         (configure.ac): Use AC_PROG_MKDIR_P.
64904         * modules/sys_select: Likewise.
64905         * modules/sys_socket: Likewise.
64906         * modules/sys_time: Likewise.
64907
64908 2007-01-18  Eric Blake  <ebb9@byu.net>
64909
64910         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
64911         replace gettimeofday.
64912         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
64913         name, to avoid infinite recursion.
64914
64915 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
64916
64917         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
64918         module sys_time.
64919         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
64920         assume timespec.h defines struct timeval.
64921         * lib/settime.c: Likewise.
64922         * lib/utimens.c: Likewise.
64923         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
64924         since we now assume the gettimeofday module.
64925         * lib/tempname.c (__gen_tempname): Likewise.
64926         * lib/gettimeofday.h: Remove.
64927         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
64928         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
64929         Include <time.h>, for 'time()'.
64930         (localtime_buffer_addr): Also use this workaround if
64931         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
64932         to simplify the uses.  All uses changed.
64933         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
64934         that #undef is inside {}, and 'const' follows type name consistently.
64935         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
64936         (gettimeofday): Do not use the maximum possible value for
64937         tv->tv_usec, since that might break usages other than ls.c.
64938         Instead, we'll leave ls.c alone.  This undoes today's patch
64939         by Bruno.  Add a compile-time warning for 1s-clock resolution;
64940         we've never observed the problem but might as well keep the
64941         canary.
64942         * lib/nanosleep.c: Include timespec.h first, for interface check.
64943         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
64944         now assume the sys_time module.
64945         * lib/tempname.c: Likewise.
64946         * lib/timespec.h: Likewise.
64947         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
64948         needed.
64949         * lib/strftime.c: Likewise.
64950         * lib/timespec.h: Likewise.
64951         * lib/posixtm.c: Include posixtm.h first, for interface check.
64952         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
64953         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
64954         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
64955         * lib/sys_time_.h: New file.
64956         * lib/timespec.h (struct timespec): Use long int, not long.
64957         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
64958         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
64959         Remove obsolescent call to AC_HEADER_TIME.
64960         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
64961         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64962         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64963         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
64964         Likewise.
64965         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
64966         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
64967         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
64968         into the sys_time module.  Check for gettimeofday just once.
64969         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
64970         for gettimeofday signature to just check the signature.  Merely
64971         compile it, since linking doesn't test signature.  Improve test for
64972         whether gettimeofday.o is actually needed.
64973         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
64974         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
64975         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
64976         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64977         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
64978         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
64979         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
64980         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
64981         than worrying about sys/time.h.
64982         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
64983         Don't bother worrying about TIME_WITH_SYS_TIME.
64984         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
64985         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
64986         * m4/sys_time_h.m4: New file.
64987         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
64988         Don't include sys/time.h.  Return from main rather than exiting.
64989         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
64990         all uses changed.
64991         * modules/gethrxtime (Depends-on): Add sys_time.
64992         * modules/gettime (Depends-on): Likewise.
64993         * modules/gettimeofday (Depends-on): Likewise.
64994         * modules/nanosleep (Depends-on): Likewise.
64995         * modules/settime (Depends-on): Likewise.
64996         * modules/tempname (Depends-on): Likewise.
64997         * modules/utimens (Depends-on): Likewise.
64998         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
64999         (Include): Change back to <sys/time.h>.
65000         (Maintainer): Add self.
65001         * modules/sys_time: New file.
65002         * modules/tempname (Depends-on): Add gettimeofday.
65003         * tests/test-gettimeofday.c: Include <sys/time.h>
65004         rather than gettimeofday.h.
65005
65006 2007-01-17  Bruno Haible  <bruno@clisp.org>
65007
65008         * gnulib-tool (func_get_license): Revert last patch. Instead, let
65009         the license default to GPL.
65010         (func_create_testdir): Don't complain if a module is LGPL and its
65011         tests module depends on GPLed modules.
65012
65013 2007-01-17  Bruno Haible  <bruno@clisp.org>
65014
65015         * lib/gettimeofday.c (gettimeofday): Add code for the case
65016         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
65017         maximum possible value for tv->tv_usec, rather than the minimum one.
65018
65019 2005-10-08  Martin Lambers  <marlam@marlam.de>
65020 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
65021 2007-01-16  Bruno Haible  <bruno@clisp.org>
65022
65023         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
65024         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
65025         gl_FUNC_GETTIMEOFDAY.
65026         (Include): Add gettimeofday.h.
65027         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
65028         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
65029         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
65030         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
65031         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
65032         * lib/gettimeofday.h: New file.
65033         * lib/gettimeofday.c: Include <sys/timeb.h>.
65034         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
65035         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65036         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
65037         fall back on time().
65038
65039         * tests/test-gettimeofday.c: New file.
65040         * modules/gettimeofday-tests: New file.
65041
65042 2007-01-16  Eric Blake  <ebb9@byu.net>
65043
65044         * modules/fnmatch (Depends-on): Depend on wchar.
65045         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
65046         * m4/fnmatch.m4: Likewise.
65047         * modules/mbchar (Makefile.am): Assume <wchar.h>.
65048         * m4/mbchar.m4: Likewise.
65049         * modules/mbswidth (Depends-on): Depend on wchar.
65050         * lib/mbswidth.c: Assume <wchar.h>.
65051         * m4/mbswidth.m4: Likewise.
65052         * modules/quotearg (Depends-on): Depend on wchar.
65053         * lib/quotearg.c: Assume <wchar.h>.
65054         * m4/quotearg.m4: Likewise.
65055         * modules/regex (Depends-on): Depend on wchar.
65056         * lib/regex_internal.h: Assume <wchar.h>.
65057         * m4/regex.m4: Likewise.
65058         * modules/stdint (Depends-on): Depend on wchar.
65059         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
65060         * m4/stdint.m4: Likewise.
65061         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
65062         * modules/strftime (Depends-on): Depend on wchar.
65063         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
65064         * modules/strtol (Depends-on): Depend on wchar.
65065         * lib/strtol.c: Assume <wchar.h>.
65066         * modules/wcwidth (Depends-on): Depend on wchar.
65067         * lib/wcwidth.h: Assume <wchar.h>.
65068         * m4/wcwidth.m4: Likewise.
65069
65070 2007-01-16  Bruno Haible  <bruno@clisp.org>
65071
65072         * modules/csharpexec-script: New, created from...
65073         * modules/csharpexec: ... this.
65074
65075 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
65076
65077         * modules/javaexec-script: New, created from...
65078         * modules/javaexec: ... this.
65079
65080 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65081
65082         * modules/poll (Dependencies): Add sys_select.
65083
65084 2007-01-15  Jim Meyering  <jim@meyering.net>
65085
65086         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
65087         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
65088         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
65089         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
65090
65091 2007-01-15  Bruno Haible  <bruno@clisp.org>
65092
65093         * modules/striconveh: New file.
65094         * lib/striconveh.h: New file.
65095         * lib/striconveh.c: New file.
65096         * MODULES.html.sh (Internationalization functions): Add striconveh.
65097
65098         * modules/striconveh-tests: New file.
65099         * tests/test-striconveh.c: New file.
65100
65101 2007-01-15  Bruno Haible  <bruno@clisp.org>
65102
65103         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
65104         not from GNU libiconv or GNU libc.
65105
65106 2007-01-15  Bruno Haible  <bruno@clisp.org>
65107
65108         * doc/gnulib-intro.texi (Copyright): Explain the different license
65109         terms for module descriptions, autoconf macros, tests, documentation.
65110
65111 2007-01-14  Bruno Haible  <bruno@clisp.org>
65112
65113         * modules/striconv-tests: New file.
65114         * tests/test-striconv.c: New file.
65115
65116 2007-01-14  Bruno Haible  <bruno@clisp.org>
65117
65118         * modules/iconv-tests: New file.
65119         * tests/test-iconv.c: New file.
65120
65121 2007-01-14  Bruno Haible  <bruno@clisp.org>
65122
65123         * gnulib-tool (func_get_license): For test modules, use the license of
65124         the main module.
65125
65126 2007-01-14  Bruno Haible  <bruno@clisp.org>
65127
65128         * modules/iconv (Include): Clarify that <iconv.h> can only be included
65129         if iconv is found to exist.
65130
65131 2007-01-14  Bruno Haible  <bruno@clisp.org>
65132
65133         * modules/c-ctype-tests: New file.
65134         * tests/test-c-ctype.c: New file.
65135
65136 2007-01-14  Bruno Haible  <bruno@clisp.org>
65137
65138         * modules/binary-io-tests: New file.
65139         * tests/test-binary-io.sh: New file.
65140         * tests/test-binary-io.c: New file.
65141
65142 2007-01-14  Bruno Haible  <bruno@clisp.org>
65143
65144         * modules/array-oset-tests: New file.
65145         * tests/test-array_oset.c: New file.
65146
65147 2007-01-14  Bruno Haible  <bruno@clisp.org>
65148
65149         * modules/array-list-tests: New file.
65150         * tests/test-array_list.c: New file.
65151
65152 2007-01-14  Bruno Haible  <bruno@clisp.org>
65153
65154         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
65155         and make.
65156         Reported by Simon Josefsson in
65157         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
65158
65159 2007-01-14  Bruno Haible  <bruno@clisp.org>
65160
65161         * modules/allocsa-tests: New file.
65162         * tests/test-allocsa.c: New file.
65163
65164 2007-01-14  Bruno Haible  <bruno@clisp.org>
65165
65166         * modules/fchdir (Depends-on): Add absolute-header.
65167         * modules/unistd (Depends-on): Likewise.
65168
65169 2006-12-30  Bruno Haible  <bruno@clisp.org>
65170
65171         * modules/fchdir: New file.
65172         * modules/unistd (Files): Add lib/unistd_.h.
65173         (Makefile.am): Generate unistd.h from unistd_.h.
65174         * lib/fchdir.c: New file.
65175         * lib/dirent_.h: New file.
65176         * lib/unistd_.h: New file.
65177         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
65178         * m4/fchdir.m4: New file.
65179         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
65180         (gl_HEADER_UNISTD): Invoke it.
65181         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
65182         function.
65183         * lib/backupfile.c (opendir, closedir): Undefine.
65184         * lib/chown.c (open, close): Undefine.
65185         * lib/clean-temp.c (open, close): Undefine.
65186         * lib/copy-file.c (open, close): Undefine.
65187         * lib/execute.c (open, close): Undefine.
65188         * lib/fsusage.c (open, close): Undefine.
65189         * lib/gc-gnulib.c (open, close): Undefine.
65190         * lib/getcwd.c (opendir, closedir): Undefine.
65191         * lib/glob.c (opendir, closedir): Undefine.
65192         * lib/javacomp.c (open, close): Undefine.
65193         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
65194         * lib/openat-proc.c (open, close): Undefine.
65195         * lib/pagealign_alloc.c (open, close): Undefine.
65196         * lib/pipe.c (open, close): Undefine.
65197         * lib/progreloc.c (open, close): Undefine.
65198         * lib/savedir.c (opendir, closedir): Undefine.
65199         * lib/utime.c (open, close): Undefine.
65200         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
65201
65202 2007-01-10  Bruno Haible  <bruno@clisp.org>
65203
65204         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
65205
65206 2007-01-12  Eric Blake  <ebb9@byu.net>
65207
65208         Provide a robust <wchar.h>.  Further simplifications are now
65209         possible in other modules, but not included here.
65210         * modules/wchar: New module.
65211         * m4/wchar.m4: New file.
65212         * lib/wchar_.h: Likewise.
65213         * modules/mbchar (Depends-on): Depend on wchar, as the first use
65214         of the new module.
65215         * MODULES.html.sh (Extended multibyte and wide character utilities):
65216         New section.
65217
65218 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
65219
65220         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
65221         to a reasonable default for memory allocation.
65222         (xreadlink): Don't allocate a huge buffer, to work around a buggy
65223         file system that reports garbage st_size values for symlinks.
65224         Problem reported by Liyang Hu.
65225
65226 2007-01-11  Simon Josefsson  <simon@josefsson.org>
65227
65228         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
65229         Emacs .#* auto-save files).
65230
65231 2007-01-11  Bruno Haible  <bruno@clisp.org>
65232
65233         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
65234         directory.
65235
65236 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65237
65238         Use @...@ consistently in lib/wctype_.h.
65239         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
65240         on it being set to 1 or 0.
65241         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
65242         go back to AC_SUBSTing it.
65243         * modules/wctype (Makefile.am): Undo previous change.
65244
65245 2007-01-10  Eric Blake  <ebb9@byu.net>
65246
65247         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
65248         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
65249         * modules/wctype (Makefile.am): Likewise.
65250         Reported by Chris McGuire.
65251
65252 2007-01-10  Jim Meyering  <jim@meyering.net>
65253
65254         fts.c: a small readability/maintainability improvement
65255         * lib/fts.c (fts_read): Make this code slightly more readable and
65256         maintainable by hoisting the "sp->fts_cur = p" assignments to
65257         immediately follow the statements that set P.  Derived from
65258         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
65259
65260 2007-01-10  Eric Blake  <ebb9@byu.net>
65261
65262         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
65263         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
65264         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65265         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
65266         Reported by Chris McGuire.
65267
65268 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65269
65270         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
65271         in sed script.
65272
65273 2007-01-09  Bruno Haible  <bruno@clisp.org>
65274
65275         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
65276         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
65277         variables.
65278         (func_module): Use them.
65279
65280 2007-01-09  Bruno Haible  <bruno@clisp.org>
65281
65282         * modules/unistr/base: New file.
65283         * lib/unistr.h: New file.
65284
65285         * modules/unistr/u8-to-u16: New file.
65286         * lib/unistr/u8-to-u16.c: New file.
65287
65288         * modules/unistr/u8-to-u32: New file.
65289         * lib/unistr/u8-to-u32.c: New file.
65290
65291         * modules/unistr/u16-to-u8: New file.
65292         * lib/unistr/u16-to-u8.c: New file.
65293
65294         * modules/unistr/u16-to-u32: New file.
65295         * lib/unistr/u16-to-u32.c: New file.
65296
65297         * modules/unistr/u32-to-u8: New file.
65298         * lib/unistr/u32-to-u8.c: New file.
65299
65300         * modules/unistr/u32-to-u16: New file.
65301         * lib/unistr/u32-to-u16.c: New file.
65302
65303         * modules/unistr/u8-check: New file.
65304         * modules/unistr/u16-check: New file.
65305         * modules/unistr/u32-check: New file.
65306         * lib/unistr/u8-check.c: New file.
65307         * lib/unistr/u16-check.c: New file.
65308         * lib/unistr/u32-check.c: New file.
65309
65310         * modules/unistr/u8-chr: New file.
65311         * modules/unistr/u16-chr: New file.
65312         * modules/unistr/u32-chr: New file.
65313         * lib/unistr/u8-chr.c: New file.
65314         * lib/unistr/u16-chr.c: New file.
65315         * lib/unistr/u32-chr.c: New file.
65316
65317         * modules/unistr/u8-cmp: New file.
65318         * modules/unistr/u16-cmp: New file.
65319         * modules/unistr/u32-cmp: New file.
65320         * lib/unistr/u8-cmp.c: New file.
65321         * lib/unistr/u16-cmp.c: New file.
65322         * lib/unistr/u32-cmp.c: New file.
65323
65324         * modules/unistr/u8-cpy: New file.
65325         * modules/unistr/u16-cpy: New file.
65326         * modules/unistr/u32-cpy: New file.
65327         * lib/unistr/u8-cpy.c: New file.
65328         * lib/unistr/u16-cpy.c: New file.
65329         * lib/unistr/u32-cpy.c: New file.
65330         * lib/unistr/u-cpy.h: New file.
65331
65332         * modules/unistr/u8-cpy-alloc: New file.
65333         * modules/unistr/u16-cpy-alloc: New file.
65334         * modules/unistr/u32-cpy-alloc: New file.
65335         * lib/unistr/u8-cpy-alloc.c: New file.
65336         * lib/unistr/u16-cpy-alloc.c: New file.
65337         * lib/unistr/u32-cpy-alloc.c: New file.
65338         * lib/unistr/u-cpy-alloc.h: New file.
65339
65340         * modules/unistr/u8-endswith: New file.
65341         * modules/unistr/u16-endswith: New file.
65342         * modules/unistr/u32-endswith: New file.
65343         * lib/unistr/u8-endswith.c: New file.
65344         * lib/unistr/u16-endswith.c: New file.
65345         * lib/unistr/u32-endswith.c: New file.
65346         * lib/unistr/u-endswith.h: New file.
65347
65348         * modules/unistr/u8-mblen: New file.
65349         * modules/unistr/u16-mblen: New file.
65350         * modules/unistr/u32-mblen: New file.
65351         * lib/unistr/u8-mblen.c: New file.
65352         * lib/unistr/u16-mblen.c: New file.
65353         * lib/unistr/u32-mblen.c: New file.
65354
65355         * modules/unistr/u8-mbtouc: New file.
65356         * modules/unistr/u16-mbtouc: New file.
65357         * modules/unistr/u32-mbtouc: New file.
65358         * lib/unistr/u8-mbtouc.c: New file.
65359         * lib/unistr/u16-mbtouc.c: New file.
65360         * lib/unistr/u32-mbtouc.c: New file.
65361
65362         * modules/unistr/u8-mbtouc-safe: New file.
65363         * modules/unistr/u16-mbtouc-safe: New file.
65364         * modules/unistr/u32-mbtouc-safe: New file.
65365         * lib/unistr/u8-mbtouc-safe.c: New file.
65366         * lib/unistr/u16-mbtouc-safe.c: New file.
65367         * lib/unistr/u32-mbtouc-safe.c: New file.
65368
65369         * modules/unistr/u8-move: New file.
65370         * modules/unistr/u16-move: New file.
65371         * modules/unistr/u32-move: New file.
65372         * lib/unistr/u8-move.c: New file.
65373         * lib/unistr/u16-move.c: New file.
65374         * lib/unistr/u32-move.c: New file.
65375         * lib/unistr/u-move.h: New file.
65376
65377         * modules/unistr/u8-next: New file.
65378         * modules/unistr/u16-next: New file.
65379         * modules/unistr/u32-next: New file.
65380         * lib/unistr/u8-next.c: New file.
65381         * lib/unistr/u16-next.c: New file.
65382         * lib/unistr/u32-next.c: New file.
65383
65384         * modules/unistr/u8-prev: New file.
65385         * modules/unistr/u16-prev: New file.
65386         * modules/unistr/u32-prev: New file.
65387         * lib/unistr/u8-prev.c: New file.
65388         * lib/unistr/u16-prev.c: New file.
65389         * lib/unistr/u32-prev.c: New file.
65390
65391         * modules/unistr/u8-set: New file.
65392         * modules/unistr/u16-set: New file.
65393         * modules/unistr/u32-set: New file.
65394         * lib/unistr/u8-set.c: New file.
65395         * lib/unistr/u16-set.c: New file.
65396         * lib/unistr/u32-set.c: New file.
65397         * lib/unistr/u-set.h: New file.
65398
65399         * modules/unistr/u8-startswith: New file.
65400         * modules/unistr/u16-startswith: New file.
65401         * modules/unistr/u32-startswith: New file.
65402         * lib/unistr/u8-startswith.c: New file.
65403         * lib/unistr/u16-startswith.c: New file.
65404         * lib/unistr/u32-startswith.c: New file.
65405         * lib/unistr/u-startswith.h: New file.
65406
65407         * modules/unistr/u8-stpcpy: New file.
65408         * modules/unistr/u16-stpcpy: New file.
65409         * modules/unistr/u32-stpcpy: New file.
65410         * lib/unistr/u8-stpcpy.c: New file.
65411         * lib/unistr/u16-stpcpy.c: New file.
65412         * lib/unistr/u32-stpcpy.c: New file.
65413         * lib/unistr/u-stpcpy.h: New file.
65414
65415         * modules/unistr/u8-stpncpy: New file.
65416         * modules/unistr/u16-stpncpy: New file.
65417         * modules/unistr/u32-stpncpy: New file.
65418         * lib/unistr/u8-stpncpy.c: New file.
65419         * lib/unistr/u16-stpncpy.c: New file.
65420         * lib/unistr/u32-stpncpy.c: New file.
65421         * lib/unistr/u-stpncpy.h: New file.
65422
65423         * modules/unistr/u8-strcat: New file.
65424         * modules/unistr/u16-strcat: New file.
65425         * modules/unistr/u32-strcat: New file.
65426         * lib/unistr/u8-strcat.c: New file.
65427         * lib/unistr/u16-strcat.c: New file.
65428         * lib/unistr/u32-strcat.c: New file.
65429         * lib/unistr/u-strcat.h: New file.
65430
65431         * modules/unistr/u8-strchr: New file.
65432         * modules/unistr/u16-strchr: New file.
65433         * modules/unistr/u32-strchr: New file.
65434         * lib/unistr/u8-strchr.c: New file.
65435         * lib/unistr/u16-strchr.c: New file.
65436         * lib/unistr/u32-strchr.c: New file.
65437
65438         * modules/unistr/u8-strcmp: New file.
65439         * modules/unistr/u16-strcmp: New file.
65440         * modules/unistr/u32-strcmp: New file.
65441         * lib/unistr/u8-strcmp.c: New file.
65442         * lib/unistr/u16-strcmp.c: New file.
65443         * lib/unistr/u32-strcmp.c: New file.
65444
65445         * modules/unistr/u8-strcpy: New file.
65446         * modules/unistr/u16-strcpy: New file.
65447         * modules/unistr/u32-strcpy: New file.
65448         * lib/unistr/u8-strcpy.c: New file.
65449         * lib/unistr/u16-strcpy.c: New file.
65450         * lib/unistr/u32-strcpy.c: New file.
65451         * lib/unistr/u-strcpy.h: New file.
65452
65453         * modules/unistr/u8-strcspn: New file.
65454         * modules/unistr/u16-strcspn: New file.
65455         * modules/unistr/u32-strcspn: New file.
65456         * lib/unistr/u8-strcspn.c: New file.
65457         * lib/unistr/u16-strcspn.c: New file.
65458         * lib/unistr/u32-strcspn.c: New file.
65459         * lib/unistr/u-strcspn.h: New file.
65460
65461         * modules/unistr/u8-strdup: New file.
65462         * modules/unistr/u16-strdup: New file.
65463         * modules/unistr/u32-strdup: New file.
65464         * lib/unistr/u8-strdup.c: New file.
65465         * lib/unistr/u16-strdup.c: New file.
65466         * lib/unistr/u32-strdup.c: New file.
65467         * lib/unistr/u-strdup.h: New file.
65468
65469         * modules/unistr/u8-strlen: New file.
65470         * modules/unistr/u16-strlen: New file.
65471         * modules/unistr/u32-strlen: New file.
65472         * lib/unistr/u8-strlen.c: New file.
65473         * lib/unistr/u16-strlen.c: New file.
65474         * lib/unistr/u32-strlen.c: New file.
65475         * lib/unistr/u-strlen.h: New file.
65476
65477         * modules/unistr/u8-strmblen: New file.
65478         * modules/unistr/u16-strmblen: New file.
65479         * modules/unistr/u32-strmblen: New file.
65480         * lib/unistr/u8-strmblen.c: New file.
65481         * lib/unistr/u16-strmblen.c: New file.
65482         * lib/unistr/u32-strmblen.c: New file.
65483
65484         * modules/unistr/u8-strmbtouc: New file.
65485         * modules/unistr/u16-strmbtouc: New file.
65486         * modules/unistr/u32-strmbtouc: New file.
65487         * lib/unistr/u8-strmbtouc.c: New file.
65488         * lib/unistr/u16-strmbtouc.c: New file.
65489         * lib/unistr/u32-strmbtouc.c: New file.
65490
65491         * modules/unistr/u8-strncat: New file.
65492         * modules/unistr/u16-strncat: New file.
65493         * modules/unistr/u32-strncat: New file.
65494         * lib/unistr/u8-strncat.c: New file.
65495         * lib/unistr/u16-strncat.c: New file.
65496         * lib/unistr/u32-strncat.c: New file.
65497         * lib/unistr/u-strncat.h: New file.
65498
65499         * modules/unistr/u8-strncmp: New file.
65500         * modules/unistr/u16-strncmp: New file.
65501         * modules/unistr/u32-strncmp: New file.
65502         * lib/unistr/u8-strncmp.c: New file.
65503         * lib/unistr/u16-strncmp.c: New file.
65504         * lib/unistr/u32-strncmp.c: New file.
65505
65506         * modules/unistr/u8-strncpy: New file.
65507         * modules/unistr/u16-strncpy: New file.
65508         * modules/unistr/u32-strncpy: New file.
65509         * lib/unistr/u8-strncpy.c: New file.
65510         * lib/unistr/u16-strncpy.c: New file.
65511         * lib/unistr/u32-strncpy.c: New file.
65512         * lib/unistr/u-strncpy.h: New file.
65513
65514         * modules/unistr/u8-strnlen: New file.
65515         * modules/unistr/u16-strnlen: New file.
65516         * modules/unistr/u32-strnlen: New file.
65517         * lib/unistr/u8-strnlen.c: New file.
65518         * lib/unistr/u16-strnlen.c: New file.
65519         * lib/unistr/u32-strnlen.c: New file.
65520         * lib/unistr/u-strnlen.h: New file.
65521
65522         * modules/unistr/u8-strpbrk: New file.
65523         * modules/unistr/u16-strpbrk: New file.
65524         * modules/unistr/u32-strpbrk: New file.
65525         * lib/unistr/u8-strpbrk.c: New file.
65526         * lib/unistr/u16-strpbrk.c: New file.
65527         * lib/unistr/u32-strpbrk.c: New file.
65528         * lib/unistr/u-strpbrk.h: New file.
65529
65530         * modules/unistr/u8-strrchr: New file.
65531         * modules/unistr/u16-strrchr: New file.
65532         * modules/unistr/u32-strrchr: New file.
65533         * lib/unistr/u8-strrchr.c: New file.
65534         * lib/unistr/u16-strrchr.c: New file.
65535         * lib/unistr/u32-strrchr.c: New file.
65536
65537         * modules/unistr/u8-strspn: New file.
65538         * modules/unistr/u16-strspn: New file.
65539         * modules/unistr/u32-strspn: New file.
65540         * lib/unistr/u8-strspn.c: New file.
65541         * lib/unistr/u16-strspn.c: New file.
65542         * lib/unistr/u32-strspn.c: New file.
65543         * lib/unistr/u-strspn.h: New file.
65544
65545         * modules/unistr/u8-strstr: New file.
65546         * modules/unistr/u16-strstr: New file.
65547         * modules/unistr/u32-strstr: New file.
65548         * lib/unistr/u8-strstr.c: New file.
65549         * lib/unistr/u16-strstr.c: New file.
65550         * lib/unistr/u32-strstr.c: New file.
65551         * lib/unistr/u-strstr.h: New file.
65552
65553         * modules/unistr/u8-strtok: New file.
65554         * modules/unistr/u16-strtok: New file.
65555         * modules/unistr/u32-strtok: New file.
65556         * lib/unistr/u8-strtok.c: New file.
65557         * lib/unistr/u16-strtok.c: New file.
65558         * lib/unistr/u32-strtok.c: New file.
65559         * lib/unistr/u-strtok.h: New file.
65560
65561         * modules/unistr/u8-uctomb: New file.
65562         * modules/unistr/u16-uctomb: New file.
65563         * modules/unistr/u32-uctomb: New file.
65564         * lib/unistr/u8-uctomb.c: New file.
65565         * lib/unistr/u16-uctomb.c: New file.
65566         * lib/unistr/u32-uctomb.c: New file.
65567
65568         * MODULES.html.sh (Unicode string functions): Add the new modules.
65569
65570 2007-01-08  Bruno Haible  <bruno@clisp.org>
65571
65572         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
65573         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
65574         subdirectories.
65575
65576 2007-01-08  Karl Berry  <karl@gnu.org>
65577
65578         * doc/error.texi: mention that main() fns must set program_name
65579         when progname is used.
65580
65581 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
65582
65583         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
65584         WCTYPE_H is empty, for the benefit of builds from non-distclean
65585         directories.  Problem reported by Eric Blake in
65586         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
65587
65588 2007-01-08  Bruno Haible  <bruno@clisp.org>
65589
65590         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
65591         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
65592         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
65593         PROVIDE_CANONICALIZE_FILENAME_MODE.
65594         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
65595
65596 2007-01-08  Bruno Haible  <bruno@clisp.org>
65597
65598         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
65599         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
65600         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
65601         * lib/fts.c: Likewise.
65602         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
65603
65604 2006-12-25  Bruno Haible  <bruno@clisp.org>
65605
65606         * modules/utf8-ucs4-safe: New file.
65607         * lib/utf8-ucs4-safe.h: New file.
65608         * lib/unistr/utf8-ucs4-safe.c: New file.
65609
65610         * modules/utf16-ucs4-safe: New file.
65611         * lib/utf16-ucs4-safe.h: New file.
65612         * lib/unistr/utf16-ucs4-safe.c: New file.
65613
65614         * MODULES.html.sh (Unicode string functions): Add the new modules.
65615
65616 2007-01-08  Bruno Haible  <bruno@clisp.org>
65617
65618         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
65619         (Depends-on): Add unitypes.
65620         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65621         (u8_mbtouc_aux): Move out to separate file.
65622         (u8_mbtouc): Use ucs4_t, uint8_t types.
65623         * lib/unistr/utf8-ucs4.c: New file.
65624
65625         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
65626         (Depends-on): Add unitypes.
65627         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65628         (u16_mbtouc_aux): Move out to separate file.
65629         (u16_mbtouc): Use ucs4_t, uint16_t types.
65630         * lib/unistr/utf16-ucs4.c: New file.
65631
65632         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
65633         (Depends-on): Add unitypes.
65634         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
65635         (u8_uctomb_aux): Move out to separate file.
65636         (u8_uctomb): Use ucs4_t, uint8_t types.
65637         * lib/unistr/ucs4-utf8.c: New file.
65638
65639         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
65640         (Depends-on): Add unitypes.
65641         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
65642         (u16_uctomb_aux): Move out to separate file.
65643         (u16_uctomb): Use ucs4_t, uint16_t types.
65644         * lib/unistr/ucs4-utf16.c: New file.
65645
65646 2006-12-25  Bruno Haible  <bruno@clisp.org>
65647
65648         * modules/unitypes: New file.
65649         * lib/unitypes.h: New file.
65650         * MODULES.html.sh (func_all_modules): New section "Unicode string
65651         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
65652         this section. Add unitypes.
65653
65654 2007-01-08  Bruno Haible  <bruno@clisp.org>
65655
65656         Avoid variable names that conflict with those from libtool.
65657         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
65658         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
65659         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
65660         library_names_spec to acl_library_names_spec, hardcode_* to
65661         acl_hardcode_*.
65662         Reported by Ralf Wildenhues.
65663
65664 2007-01-08  Bruno Haible  <bruno@clisp.org>
65665
65666         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
65667         definition.
65668         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
65669         definition.
65670         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
65671         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
65672         definition.
65673         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
65674         definition.
65675         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
65676         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
65677         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
65678         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
65679         definition.
65680         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
65681         definition.
65682         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
65683         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
65684         GC_USE_<algorithm>.
65685         * lib/gc-libgcrypt.c: Likewise.
65686         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
65687         * modules/gc-arctwo (configure.ac): Likewise.
65688         * modules/gc-des (configure.ac): Likewise.
65689         * modules/gc-hmac-md5 (configure.ac): Likewise.
65690         * modules/gc-hmac-sha1 (configure.ac): Likewise.
65691         * modules/gc-md2 (configure.ac): Likewise.
65692         * modules/gc-md4 (configure.ac): Likewise.
65693         * modules/gc-md5 (configure.ac): Likewise.
65694         * modules/gc-random (configure.ac): Likewise.
65695         * modules/gc-rijndael (configure.ac): Likewise.
65696         * modules/gc-sha1 (configure.ac): Likewise.
65697
65698 2007-01-08  Bruno Haible  <bruno@clisp.org>
65699
65700         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
65701         macro definition.
65702         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
65703         definition.
65704         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
65705         definition.
65706         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
65707         * modules/fcntl-safer (configure.ac): Likewise.
65708         * modules/fopen-safer (configure.ac): Likewise.
65709         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
65710         GNULIB_FWRITEERROR macro definition.
65711
65712 2007-01-08  Bruno Haible  <bruno@clisp.org>
65713
65714         * m4/gnulib-common.m4: New file.
65715         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
65716         (func_get_filelist): Add m4/gnulib-common.m4.
65717
65718 2007-01-08  Bruno Haible  <bruno@clisp.org>
65719
65720         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
65721         command.
65722
65723 2007-01-08  Jim Meyering  <jim@meyering.net>
65724
65725         Use a more robust test for a "can't happen" condition.
65726         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
65727         narrowed the st_size value.  Presuming the "can't happen" condition
65728         is true, that narrowing could conceivably convert an invalid st_size
65729         value into a valid one.  Instead, use a change based on Matthew
65730         Woehlke's original patch.
65731
65732         Slight readability improvement: use an assert-like macro
65733         in place of literal "abort ()" uses.
65734         * lib/fts.c (fts_assert): Define.
65735         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
65736         Use this macro instead of a bare 'abort'.
65737
65738 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
65739
65740         Don't worry about using IRIX 5.3's wctype.h broken definitions;
65741         simply work around them.
65742         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
65743         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
65744         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
65745         declaring.
65746         Don't bother to define as macros, since the standard doesn't require it.
65747         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
65748         longer worry about IRIX 5.3.
65749         (HAVE_WCTYPE_CTMP_BUG): Remove.
65750
65751 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65752
65753         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
65754         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
65755         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
65756         Problems reported by Georg Schwarz for IRIX 5.3.
65757
65758         * gnulib-tool (autoconf_minversion): Take the maximum version number
65759         found, not the minimum.  Problem reported by James Youngman.
65760
65761 2007-01-03  Karl Berry  <karl@gnu.org>
65762
65763         * doc/error.texi: new file, explaining interaction with progname.
65764         * doc/gnulib.texi: include it.  Update copyright.
65765
65766 2007-01-03  Simon Josefsson  <simon@josefsson.org>
65767
65768         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
65769         AC_CANONICAL_HOST, to improve autobuild outputs.
65770
65771 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
65772             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
65773
65774         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
65775         sockets, server sockets, and other file descriptors.  Count errors
65776         to compute the return value.  Reorder the code a bit to be easier
65777         to follow.  Don't set event bits that were not requested (except
65778         POLLERR and POLLHUP).
65779
65780 2007-01-01  Bruno Haible  <bruno@clisp.org>
65781
65782         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
65783
65784 2007-01-03  Jim Meyering  <jim@meyering.net>
65785
65786         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
65787
65788 2007-01-02  Bruno Haible  <bruno@clisp.org>
65789
65790         * modules/settime (Include): Require timespec.h.
65791         * modules/nanosleep (Include): Likewise.
65792
65793 2007-01-01  Bruno Haible  <bruno@clisp.org>
65794
65795         * gnulib-tool (func_emit_copyright_notice): Bump year.
65796         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
65797
65798 2007-01-01  Bruno Haible  <bruno@clisp.org>
65799
65800         Improve support for OpenBSD.
65801         * build-aux/config.rpath (libname_spec): Export.
65802         (library_names_spec): New variable. Export.
65803         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
65804         library_names_spec from the config.rpath output. Locate shared library
65805         through the name pattern in library_names_spec.
65806
65807 2007-01-01  Eric Blake  <ebb9@byu.net>
65808
65809         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
65810
65811 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
65812
65813         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
65814         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
65815         assume the C locale, and avoid an "eval" that could cause trouble.
65816         Problem with SORT reported by Bob Proulx.
65817
65818         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
65819         Define.  Trivial patch from Henning Nielsen Lund, originally
65820         sent to bug-grep@gnu.org today.
65821
65822 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
65823
65824         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
65825         struct stat.  Problem reported by Henning Nielsen Lund.
65826         * lib/acl.c: Include acl.h first, to check interface.  Don't
65827         bother to include sys/types.h and sys/stat.h again.
65828
65829 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
65830
65831         Import the following change from libc; problem reported by
65832         Sven Verdoolaege.
65833
65834         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
65835
65836         [BZ #1373]
65837         * lib/argp.h: Remove __NTH for __argp_usage inline function.
65838
65839 2006-12-28  Jim Meyering  <jim@meyering.net>
65840
65841         * build-aux/announce-gen: Do not assume that the package
65842         builds any of tar.gz, tar.bz2, and .xdelta files.
65843         Suggestion from Simon Josefsson.
65844
65845 2006-12-28  Simon Josefsson  <simon@josefsson.org>
65846
65847         * modules/announce-gen: New file.
65848
65849 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
65850
65851         * lib/mbchar.h: Just include <wctype.h>; the wctype module
65852         handles its gotchas now.
65853         * lib/mbswidth.c: Likewise.
65854         * lib/wcwidth.h: Likewise.
65855         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
65856         and iswcntrl; the wctype module does this stuff now.
65857         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
65858         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65859         * modules/mbchar (Depends-on): Add wctype.
65860         * modules/mbswidth (Depends-on): Likewise.
65861         * modules/wcwidth (Depends-on): Likewise.
65862
65863 2006-12-27  Eric Blake  <ebb9@byu.net>
65864
65865         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
65866         module uses more than what <wctype.h> is required to provide.
65867
65868 2006-12-26  Eric Blake  <ebb9@byu.net>
65869
65870         * gnulib-tool (sed_extract_prog): Avoid space-tab.
65871
65872 2006-12-26  Eric Blake  <ebb9@byu.net>
65873
65874         * modules/absolute-header: New module.
65875         * modules/fcntl (Depends-on): Depend on it.
65876         * modules/inttypes (Depends-on): Likewise.
65877         * modules/stdint (Depends-on): Likewise.
65878         * modules/sys_stat (Depends-on): Likewise.
65879         * modules/wctype (Depends-on): Likewise.
65880         * MODULES.html.sh (Support for building libraries and
65881         executables): Document it.
65882
65883 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
65884
65885         * gnulib-tool (SED): Remove, undoing previous change.
65886         The problem was that it broke coreutils on Solaris, because
65887         "sed --posix" leaked into a makefile.
65888         (sed): New alias, if 'alias' and GNU sed.
65889
65890 2006-12-24  Jim Meyering  <jim@meyering.net>
65891
65892         Work around an fchownat bug in glibc-2.4:
65893         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
65894         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
65895         in spite of the -P option.
65896         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
65897         New macros.
65898         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
65899         * modules/openat (Files): Add lib/fchownat.c.
65900         * lib/openat.c (fchownat): Don't define here.  Move to...
65901         * lib/fchownat.c: ...this new file.
65902
65903 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
65904
65905         Fix bug reported by Bruno Haible in
65906         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
65907         where quotearg.c didn't compile on Mac OS X 10.2 because it
65908         lacks <wchar.h> and wint_t.
65909         * lib/wctype_.h (__wctype_wint_t): New type.
65910         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
65911         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
65912         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
65913         Arg is now of type __wctype_wint_t, not wint_t.
65914         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
65915         substitute HAVE_WINT_T.
65916         * modules/wctype (Files): Add m4/wint_t.m4.
65917         (wctype.h): Substitute HAVE_WINT_T.
65918
65919 2006-12-23  Bruno Haible  <bruno@clisp.org>
65920
65921         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
65922
65923 2006-12-23  Bruno Haible  <bruno@clisp.org>
65924
65925         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
65926         S_ISLNK.
65927         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
65928         mingw.
65929
65930 2006-12-22  Bruno Haible  <bruno@clisp.org>
65931
65932         * lib/copy-file.c: Include acl.h.
65933         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
65934         Close the file descriptors only after being done with copy_acl.
65935         * modules/copy-file (Depends-on): Add acl.
65936
65937 2006-12-22  Bruno Haible  <bruno@clisp.org>
65938
65939         * gnulib-tool (SED): New variable.
65940         Use $SED instead of sed everywhere.
65941
65942 2006-12-22  Bruno Haible  <bruno@clisp.org>
65943
65944         * modules/no-c++: New file.
65945         * m4/no-c++.m4: New file.
65946         * MODULES.html.sh (Support for building libraries and executables):
65947         Add no-c++.
65948
65949 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
65950
65951         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
65952         Include <limits.h>, and use its INT_MAX to rewrite the
65953         j loop so that it does not overflow 'int'.  Problem reported by
65954         Ralf Wildenhues in
65955         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
65956         Play it safe by shifting left by 1 rather than multiplying by 2,
65957         as GCC is less likely to optimize this away when the value
65958         is signed (when it assumes overflow leads to undefined behavior).
65959         Also, don't assume time_t uses two's complement.
65960
65961 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
65962
65963         * MODULES.html.sh: New module wctype.
65964         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
65965         * lib/fnmatch.c: Don't bother to include <wchar.h> before
65966         <wctype.h>, since the new wctype module should fix this.
65967         * lib/quotearg.c: Include <wctype.h> unconditionally, since
65968         the wctype module should arrange for it.
65969         * lib/regex_internal.h: Likewise.
65970         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
65971         since the wctype module should handle this now.
65972         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
65973         * modules/fnmatch (Depends-on): Add wctype.
65974         * modules/quotearg (Depends-on): Likewise.
65975         * modules/regex (Depends-on): Likewise.
65976
65977 2006-12-19  Bruno Haible  <bruno@clisp.org>
65978
65979         * lib/strdup.h [C++]: Wrap definitions in extern "C".
65980         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
65981
65982 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65983
65984         * modules/savewd (Depends-on): Fix dependency on fcntl.
65985
65986 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65987
65988         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
65989         conforms to C99, rather than relying on the user's environment
65990         setting of STDINT_H.
65991
65992 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65993         and Eric Blake  <ebb9@byu.net>
65994
65995         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
65996         This is more consistent with the other defines here.
65997         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
65998         Port to z/OS.  Problem reported by Paul Gilmartin.
65999         Change local vars to use gl_ prefix rather than ac_.
66000         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
66001         with other defines.
66002         * modules/double-slash-root: New module.
66003         * modules/dirname (Files): Remove m4/double-slash-root.m4.
66004         (Depends-on): Add double-slash-root.
66005         * MODULES.html.sh (File system functions): Mention new module.
66006
66007 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
66008
66009         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
66010         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
66011         This is for the benefit of gzip, which doesn't do i18n.
66012
66013 2006-12-12  Jim Meyering  <jim@meyering.net>
66014
66015         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
66016         Reported by Andreas Schwab <schwab@suse.de>.
66017
66018 2006-12-12  Bruno Haible  <bruno@clisp.org>
66019
66020         Merge these changes.
66021         2006-09-05  Bruno Haible  <bruno@clisp.org>
66022         * lib/iconvme.c (iconv_string): No need to save and restore errno when
66023         iconv_alloc succeeded.
66024         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
66025         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
66026         test for " && dest " at the end - dest is always != NULL there. Call
66027         iconv with 4xNULL arguments initially, to reset the state. Call iconv
66028         with 2xNULL arguments, also to flush the state storage. Handle the
66029         IRIX iconv behaviour. Realloc the final result, to throw away unused
66030         memory.
66031
66032 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
66033
66034         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
66035         and fchmodat unconditionally, since glibc 2.4 has them.
66036         Problem reported by Arkadiusz Miskiewicz.
66037
66038 2006-12-10  Bruno Haible  <bruno@clisp.org>
66039
66040         * gnulib-tool (func_import): Show the include files only for those
66041         modules that are copied and specified.
66042         Reported by Karl Berry.
66043
66044 2006-12-08  Jim Meyering  <jim@meyering.net>
66045
66046         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
66047         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
66048
66049         * build-aux/announce-gen: Add two new options, both optional:
66050         --bootstrap-tools=TOOL_LIST
66051               a comma-separated list of tools, e.g.,
66052               autoconf,automake,bison,gnulib
66053         --gnulib-snapshot-date=DATE
66054               if gnulib is in the bootstrap tool list,
66055               then report this as the snapshot date.
66056               If not specified, use the current date/time.
66057               If you specify a date here, be sure it's UTC.
66058
66059 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66060
66061         * tests/test-argp-2.sh: Fix test to match actual output.
66062         (func_compare): Fix sed script to be portable.
66063
66064 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
66065
66066         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
66067         workaround for this case.  It is not autoconfigured now; offhand
66068         it's hard to see how to autoconfigure it.
66069
66070 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
66071
66072         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
66073         a directory that is about to be chowned.  Such a directory's
66074         initial file permissions should permit the owner only and this
66075         should not be changed until after the chown, since the group and
66076         other bits would be incorrect if they granted permission before
66077         the chown.
66078
66079         Fix porting problem for iswctype reported by Georg Schwarz in:
66080         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
66081         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
66082         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
66083         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
66084         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
66085
66086 2006-12-03  Jim Meyering  <jim@meyering.net>
66087
66088         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
66089         p->fts_statp may not yet be defined.
66090         (fts_read): Instead, set it in the caller, once p->fts_statp is
66091         sure to be defined, and corresponds to a top-level directory.
66092         This bug made du -x fail.  Here's the coreutils test case:
66093         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
66094         Reported by Mike Frysinger.
66095
66096 2006-12-01  Jim Meyering  <jim@meyering.net>
66097
66098         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
66099         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
66100         Reported by Simon Josefsson.
66101
66102 2006-11-30  Jim Meyering  <jim@meyering.net>
66103
66104         * m4/warning.m4: Use the all-permissive copyright notice
66105         recommended by RMS (rather than LGPL).
66106         * m4/vararrays.m4: Likewise.
66107         * m4/flexmember.m4: Likewise.
66108
66109 2006-11-29  Bruno Haible  <bruno@clisp.org>
66110
66111         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
66112         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
66113         using +=.
66114         Reported by Simon Josefsson <simon@josefsson.org>.
66115
66116 2006-11-28  James Youngman <jay@gnu.org>
66117
66118         * README: Advise users that they might find the bug-gnulib@gnu.org
66119         and autotools-announce@gnu.org mailing lists useful.
66120
66121 2006-11-28  Bruno Haible  <bruno@clisp.org>
66122
66123         * m4/ptrdiff_max.m4: Remove file.
66124
66125 2006-11-21  Bruno Haible  <bruno@clisp.org>
66126
66127         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
66128         _AC_COMPUTE_INT.
66129         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66130         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
66131         _AC_COMPUTE_INT.
66132         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66133         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
66134         _AC_COMPUTE_INT.
66135         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66136
66137 2006-11-28  Jim Meyering  <jim@meyering.net>
66138
66139         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
66140         warning from "gcc -Wshadow" about shadowing the builtin.
66141
66142 2006-11-27  Bruno Haible  <bruno@clisp.org>
66143
66144         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
66145         _AC_COMPUTE_INT.
66146         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66147
66148 2006-11-27  Bruno Haible  <bruno@clisp.org>
66149             Paul Eggert  <eggert@cs.ucla.edu>
66150
66151         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
66152
66153 2006-11-26  Bruno Haible  <bruno@clisp.org>
66154
66155         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
66156         noinst_LTLIBRARIES.
66157
66158 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
66159             Bruno Haible  <bruno@clisp.org>
66160
66161         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
66162         if compiling with "gcc -ansi".
66163
66164 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
66165
66166         Fix some incompatibilities with gcc -ansi -pedantic.
66167         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
66168         if compiling pedantically with GCC, unless it's C99 or later.
66169         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
66170         it mishandles gcc -ansi -pedantic as well.
66171         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
66172         if gcc -pedantic.
66173         * lib/regexec.c (check_node_accept_bytes): Don't use auto
66174         initializers for struct if -pedantic, unless it's C99 or later.
66175
66176 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
66177
66178         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
66179         Don't close an fd more than once. Identical atimes indicate
66180         success, not failure.
66181
66182 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
66183
66184         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
66185
66186 2006-11-23  Jim Meyering  <jim@meyering.net>
66187
66188         * build-aux/announce-gen: New file.  From coreutils.
66189
66190 2006-11-22  Jim Meyering  <jim@meyering.net>
66191
66192         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
66193         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
66194         (fts_read): Use a temporary to narrow the overused st_size member
66195         before using it in a switch statement.  Reported by Matthew Woehlke.
66196
66197         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
66198         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
66199
66200 2006-11-20  Bruno Haible  <bruno@clisp.org>
66201
66202         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
66203         changequote instead of pairs of brackets.
66204         Reported by Andreas Schwab <schwab@suse.de>.
66205
66206 2006-11-21  Jim Meyering  <jim@meyering.net>
66207
66208         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
66209         so as to remain compatible with older compilers.
66210         Patch from Michael Deutschmann.
66211
66212 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
66213
66214         * MODULES.html.sh (File system functions): Add openat.
66215
66216         * lib/openat.h (rpl_fstatat): New macro, if
66217         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
66218         (fstatat): Define to rpl_fstatat under the same conditions,
66219         unless COMPILING_FSTATAT.
66220         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
66221         seems to have the bug.
66222         * lib/fstatat.c: New file.
66223         * modules/openat (Files): Add it.
66224
66225 2006-11-20  Bruno Haible  <bruno@clisp.org>
66226
66227         * Makefile: New file.
66228
66229 2006-11-20  Jim Meyering  <jim@meyering.net>
66230
66231         The beginnings of syntax-related checks for gnulib.
66232         * lib/Makefile: New file.
66233         * lib/t-idcache: New script.  Ensure that the two halves of
66234         idcache.c stay in sync.
66235
66236         * lib/idcache.c: Adjust comments in user- and group- portions to
66237         be more accurate, and to be consistent with one another.
66238
66239 2006-11-20  Jim Meyering  <jim@meyering.net>
66240
66241         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
66242         continue using the flexible array member (thus, this module performs
66243         half as many malloc calls), with the addition that...
66244         (getgroup, getuser): Consistently record a non-match via an empty
66245         "name" string, and map an empty string match to a NULL return value.
66246         * modules/idcache (Depends-on): Re-add flexmember.
66247
66248         * lib/idcache.c (getuser): Remove all uses of the register keyword.
66249         (getuidbyname, getgroup, getgidbyname): Likewise.
66250
66251         Use cleaner syntax: NULL rather than 0.
66252         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
66253
66254 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
66255
66256         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
66257         It mishandled the case where the group was missing.
66258         Problem reported by Greg Schafer.
66259         * modules/idcache: Likewise.
66260
66261 2006-11-18  Jim Meyering  <jim@meyering.net>
66262
66263         * check-module (%exempt_header): Add exception for some
66264         conditionally-included headers.
66265
66266         * modules/i-ring (Depends-on): Add verify.
66267         (License): Change to LGPL.
66268
66269 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
66270
66271         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
66272         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
66273         and inttostr.h.  Use snprintf rather than uinttostr, so that
66274         LGPLed code doesn't depend on GPLed.
66275
66276 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
66277
66278         * modules/inline (License): Change from GPL to LGPL.
66279
66280 2006-11-17  Jim Meyering  <jim@meyering.net>
66281
66282         * modules/d-type (License): Switch to LGPL.
66283
66284 2006-11-15  Bruno Haible  <bruno@clisp.org>
66285
66286         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
66287
66288 2006-11-15  Eric Blake  <ebb9@byu.net>
66289
66290         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
66291         the module dependency.
66292
66293 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66294             Bruno Haible  <bruno@clisp.org>
66295
66296         * gnulib-tool (func_create_testdir): Add license consistency check.
66297
66298 2006-11-15  Eric Blake  <ebb9@byu.net>
66299
66300         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
66301         random "(cached)" in configure output.
66302
66303 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66304
66305         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
66306         test for conforming inttypes.h is both announced and cached.
66307
66308         * MODULES.html.sh (seen_modules, seen_files): New variables.
66309         (func_module): Rewrite to use a few less gnulib-tool and sed
66310         invocations.  Avoid a couple of quadratic algorithms for ...
66311         (missed_modules, missed_files): ... these, with ...
66312         (func_append, func_tmpdir): ... these new functions, from
66313         gnulib-tool.  Analogously, install traps for cleanup.
66314
66315         * tests/test-gc.c (main): Remove unused variables.
66316         * tests/test-read-file.c: Include stdlib.h, for 'free'.
66317
66318 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
66319
66320         * modules/inttostr (License): Change to LGPL.
66321
66322 2006-11-14  Eric Blake  <ebb9@byu.net>
66323
66324         * modules/tempname (License): Change to LGPL.
66325
66326 2006-11-14  Eric Blake  <ebb9@byu.net>
66327
66328         * doc/functions.texi (Function Portability): *printf functions on
66329         Cygwin now understand all POSIX size specifiers.
66330
66331 2006-11-14  Bruno Haible  <bruno@clisp.org>
66332
66333         * modules/c-ctype (License): Change to LGPL.
66334
66335 2006-11-12  Bruno Haible  <bruno@clisp.org>
66336
66337         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
66338         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
66339         for GNOME libraries, for which the include files are installed in
66340         subdirectories of $prefix/include.
66341
66342 2006-11-12  Bruno Haible  <bruno@clisp.org>
66343
66344         * m4/lib-link.m4: Require at least autoconf-2.54.
66345         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
66346         name to underscores for the --with option.
66347
66348 2006-11-13  Bruno Haible  <bruno@clisp.org>
66349
66350         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
66351         the tests directory.
66352         Reported by Ralf Wildenhues.
66353
66354 2006-11-13  Bruno Haible  <bruno@clisp.org>
66355
66356         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
66357         (func_emit_initmacro_end): Undo the override here.
66358         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
66359         Works around the famous automake error in coreutils.
66360
66361 2006-11-13  Eric Blake  <ebb9@byu.net>
66362
66363         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
66364         element, not its node.
66365
66366 2006-11-12  Bruno Haible  <bruno@clisp.org>
66367
66368         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
66369         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
66370
66371 2006-11-12  Bruno Haible  <bruno@clisp.org>
66372
66373         * gnulib-tool: New option --local-symlink.
66374         (func_usage): Document it.
66375         (lsymbolic): New variable.
66376         (func_import, func_create_testdir): If --symlink was not specified,
66377         test whether --local-symlink was specified and the file comes from
66378         the local_gnulib_dir.
66379
66380 2006-11-12  Bruno Haible  <bruno@clisp.org>
66381
66382         * gnulib-tool (func_ln): New function.
66383         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
66384
66385 2006-11-12  Bruno Haible  <bruno@clisp.org>
66386
66387         Finish support for source files in subdirectories.
66388         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
66389         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
66390         AUTOMAKE_OPTIONS.
66391         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
66392
66393 2006-11-12  Bruno Haible  <bruno@clisp.org>
66394
66395         * gnulib-tool (func_get_automake_snippet): Synthesize also an
66396         EXTRA_lib_SOURCES augmentation.
66397         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
66398
66399 2006-11-12  Jim Meyering  <jim@meyering.net>
66400
66401         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
66402         file descriptors.  This also averts a failure on systems with
66403         native openat support when a traversed directory lacks "x" access.
66404         * lib/fts_.h: Include "i-ring.h"
66405         (struct FTS) [fts_fd_ring]: New member.
66406         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
66407         (FCHDIR): Add parentheses.
66408         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
66409         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
66410         When descending, rather than simply closing the previous
66411         fts_cwd_fd value, push that file descriptor onto the ring.
66412         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
66413         (fts_open): Initialize the new fd_ring member.
66414         (fts_close): Clear the ring.
66415         (fts_safe_changedir): When possible, use our new fd_ring to skip
66416         the diropen and fstat and dev/ino comparison that would normally
66417         accompany a virtual `chdir ("..")'.
66418
66419         * modules/fts (Depends-on): Add i-ring.
66420         * modules/i-ring: New module.
66421         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
66422         * m4/i-ring.m4: New file.
66423
66424 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66425
66426         * gnulib-tool (func_create_testdir): Fix replacement of
66427         `build-aux' in configure.ac.  Run autotools in gltests
66428         subdirectory.
66429         (func_create_testdir, func_create_megatestdir, test): There is
66430         no need for '--force' in most autotool invocations in a new
66431         tree.  Actually fail the whole test if any of the tools, or the
66432         configure or make stages fail.
66433
66434         Sync from Automake.
66435         * build-aux/gnupload: Revert last change.  Add pointer to upload
66436         instructions of the GNU Maintenance Instructions.
66437         Suggestion by Karl Berry.
66438
66439 2006-11-10  Jim Meyering  <jim@meyering.net>
66440
66441         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
66442
66443 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66444
66445         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
66446         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
66447         (bind_textdomain_codeset) [! ENABLE_NLS]:
66448         Evaluate all the arguments.  That way, callers get compatible behavior
66449         if the arguments have side effects.  Also, it avoids some GCC
66450         diagnostics in some cases; Joel E. Denny reported problems when Bison
66451         was configured with --enable-gcc-warnigs.
66452
66453 2006-11-10  Jim Meyering  <jim@meyering.net>
66454
66455         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
66456         relevant options in CFLAGS (like -O, -fno-inline) are taken into
66457         account.
66458
66459 2006-11-10  Jim Meyering  <jim@meyering.net>
66460
66461         * modules/inline: New file/module.
66462         * modules/xalloc (Files): Remove m4/inline.m4.
66463         (Depends-on): Add inline, instead.
66464         * modules/oset: Likewise.
66465         * modules/list: Likewise.
66466
66467 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66468
66469         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
66470         Problem reported by Matthew Woehlke.
66471
66472 2006-11-09  Bruno Haible  <bruno@clisp.org>
66473
66474         * lib/tempname.c (gen_tempname): Remove variant that invokes
66475         __gen_tempname.
66476         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
66477         __gen_tempname.
66478
66479 2006-11-08  Bruno Haible  <bruno@clisp.org>
66480
66481         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
66482         to 'yes' instead of 'cross-compiling'.
66483
66484 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
66485
66486         * lib/quotearg.h (quotearg_free): New decl.
66487         * lib/quotearg.c (quotearg_free): New function.
66488         (slot0, nslots, slotvec0, slotvec):
66489         Now file-scope so that quotearg_free can get at them.
66490
66491 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66492
66493         Sync from Automake.
66494         * build-aux/gnupload: Add missing 'gnu' to example URL.
66495         Report by Karl Berry.
66496
66497 2006-11-08  Bruno Haible  <bruno@clisp.org>
66498
66499         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
66500         Suggested by Paul Eggert.
66501
66502 2006-11-08  Jim Meyering  <jim@meyering.net>
66503
66504         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
66505         It's already included if !_LIBC.
66506         (fts_safe_changedir): Add a comment.
66507
66508 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
66509
66510         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
66511         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
66512         Matthew Woehlke.
66513
66514         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
66515         definitions up, to avoid colliding with change below.
66516         (static_inline) [HAVE_INLINE]: New macro.
66517         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
66518         Provide extern decls when !HAVE_INLINE.  Do not define unless
66519         static_inline is defined, either by us or by xmalloc.c.  Use
66520         static_inline rather than static inline.
66521         (XCALLOC): Optimize sizeof(T) = 1 case.
66522         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
66523
66524 2006-11-07  Bruno Haible  <bruno@clisp.org>
66525
66526         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
66527         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
66528         AC_C_INLINE.
66529         * modules/xalloc (Files): Add m4/inline.m4.
66530
66531 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66532
66533         * README: Fix typo.
66534         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
66535         (Miscellanous Notes): ...from this.
66536
66537 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
66538
66539         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
66540         Mention that offsetof should be used instead of sizeof.
66541         From Bruno Haible.
66542
66543 2006-11-07  Bruno Haible  <bruno@clisp.org>
66544
66545         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
66546
66547 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
66548
66549         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66550         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
66551         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
66552         (gl_tree_add_before, gl_tree_add_after):
66553         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
66554         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
66555         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
66556         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
66557         (gl_linked_add_after, gl_linked_add_at): Likewise.
66558         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
66559         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
66560         (gl_tree_add_before, gl_tree_add_after): Likewise.
66561         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
66562         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
66563         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
66564
66565 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66566
66567         * lib/gl_oset.h: Use C comment style, not C++ comment style.
66568
66569 2006-11-06  Bruno Haible  <bruno@clisp.org>
66570
66571         * m4/inline.m4: New file.
66572         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
66573         * modules/list (Files): Add m4/inline.m4.
66574         * modules/oset (Files): Likewise.
66575
66576 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
66577
66578         * lib/idcache.c: Include <stddef.h>, for offsetof.
66579         (struct userid.name): Change from char * to a flexible array member.
66580         All uses changed.
66581         * modules/idcache (Depends-on): Add flexmember.
66582
66583         * MODULES.html.sh (Core language properties): New module flexmember.
66584         * modules/flexmember, m4/flexmember.m4: New files.
66585
66586         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
66587         inline functions that are identical with the old xnmalloc_inline,
66588         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
66589         that we can avoid some unnecessary integer multiplications and
66590         divisions in the common case where the element size is known at
66591         compile time.
66592         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
66593         needed.
66594         (xnboundedmalloc): Remove.
66595         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
66596         arguments, for consistency with rest of this header.
66597         (xcharalloc): Rewrite using XNMALLOC.
66598         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
66599         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
66600         versions have been moved to lib/xalloc.h and renamed to be the
66601         non-*_inline versions.
66602         (xmalloc, xrealloc): Implement without reference to the xnmalloc
66603         and xnrealloc functions, since those functions are now inline and
66604         now call us.
66605         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
66606         renaming described above.
66607         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
66608         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
66609         captures the dependency in AC_C_INLINE.
66610
66611         New module canonicalize-lgpl, proposed by Charles Wilson in
66612         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
66613         with a few small changes afterwards.
66614         * MODULES.html.sh (File system functions): New module
66615         canonicalize-lgpl.
66616         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
66617         and canonicalize_file_name.
66618         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
66619         * modules/canonicalize-lgpl: New files.
66620
66621 2006-11-05  Bruno Haible  <bruno@clisp.org>
66622
66623         * gnulib-tool (func_import, func_create_testdir): Create directories
66624         also for files in subdirectories of lib/.
66625
66626 2006-11-05  Bruno Haible  <bruno@clisp.org>
66627
66628         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
66629         ANSI C compliant.
66630
66631 2006-11-03  Bruno Haible  <bruno@clisp.org>
66632
66633         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66634         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
66635         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
66636         (xnboundedmalloc): New inline function.
66637         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
66638         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
66639         xmalloc.
66640         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
66641         xmalloc.
66642         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
66643         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
66644         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
66645         xmalloc.
66646         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66647         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
66648         xmalloc.
66649         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
66650         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66651         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
66652         xmalloc.
66653         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66654         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
66655         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66656         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
66657         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
66658         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
66659         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
66660
66661 2006-11-03  Bruno Haible  <bruno@clisp.org>
66662
66663         * lib/c-ctype.h [C++]: Define functions without name mangling.
66664         * lib/fwriteerror.h [C++]: Likewise.
66665         * lib/gcd.h [C++]: Likewise.
66666         * lib/linebreak.h [C++]: Likewise.
66667
66668 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
66669
66670         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
66671         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
66672         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
66673         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
66674         Check for functions and headers just once.
66675         Check for declaration of canonicalize_file_name.
66676         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
66677
66678 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66679
66680         * gnulib-tool (func_import): Fix typo in actioncmd.
66681
66682 2006-11-02  Bruno Haible  <bruno@clisp.org>
66683
66684         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
66685         newline sequence in the Makefile.am snippet as a space, like "make"
66686         does.
66687         Reported by Roger Persson <perrog@gmail.com>.
66688
66689 2006-11-01  Bruno Haible  <bruno@clisp.org>
66690
66691         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
66692         already declared in <string.h>.
66693         * lib/strcase.h (strncasecmp): Don't declare it if yes.
66694
66695 2006-11-01  Bruno Haible  <bruno@clisp.org>
66696
66697         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
66698         * lib/strcase.h: Include <string.h>.
66699         (strcasecmp): Define to rpl_strcasecmp here.
66700
66701 2006-11-01  Bruno Haible  <bruno@clisp.org>
66702
66703         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
66704
66705 2006-11-01  Eric Blake  <ebb9@byu.net>
66706
66707         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
66708
66709         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
66710
66711 2006-10-29  Bruno Haible  <bruno@clisp.org>
66712
66713         Make it compile in C++ mode.
66714         * lib/full-write.c (full_rw): Add a cast.
66715
66716 2006-11-01  Bruno Haible  <bruno@clisp.org>
66717
66718         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
66719         be POSIX compliant.
66720         Reported by Roger Persson <perrog@gmail.com>.
66721
66722 2006-11-01  Eric Blake  <ebb9@byu.net>
66723
66724         * lib/getopt_.h: Fix comments.
66725
66726 2006-10-31  Eric Blake  <ebb9@byu.net>
66727
66728         * modules/tmpdir (Depends-on): Add sys_stat.
66729         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
66730         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
66731         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
66732         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
66733         tempname.
66734
66735 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
66736
66737         Avoid some C++ diagnostics reported by Bruno Haible.
66738         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
66739         xmalloc.
66740         (quotearg_alloc): Use xcharalloc rather than xmalloc.
66741         (struct slotvec): Move to top level.
66742         (quotearg_n_options): Rewrite to avoid xmalloc.
66743         * lib/xalloc.h (xcharalloc): New function.
66744         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
66745         [defined __cplusplus]: Add function template that provides result
66746         type propagation.  This part of the change is from Bruno Haible.
66747
66748 2006-10-29  Bruno Haible  <bruno@clisp.org>
66749
66750         Make it compile in C++ mode.
66751         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
66752         * lib/strnlen1.c (strnlen1): Cast memchr result.
66753         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
66754         * lib/clean-temp.c (string_equals, string_hash): Add casts.
66755         (create_temp_dir): Rename local variable 'template'.
66756         (compile_csharp_using_sscli): Add cast.
66757         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
66758         * lib/findprog.c (find_in_path): Likewise.
66759         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
66760         * lib/wait-process.c (register_slave_subprocess): Likewise.
66761
66762 2006-10-22  Bruno Haible  <bruno@clisp.org>
66763
66764         * modules/tsearch: New file.
66765         * lib/tsearch.h: New file.
66766         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
66767         * m4/tsearch.m4: New file.
66768         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
66769
66770 2006-10-29  Eric Blake  <ebb9@byu.net>
66771
66772         * lib/arcfour.c: Assume config.h.
66773         * lib/arctwo.c: Likewise.
66774         * lib/base64.c: Likewise.
66775         * lib/check-version.c: Likewise.
66776         * lib/crc.c: Likewise.
66777         * lib/des.c: Likewise.
66778         * lib/gc-gnulib.c: Likewise.
66779         * lib/gc-libgcrypt.c: Likewise.
66780         * lib/gc-pbkdf2-sha1.c: Likewise.
66781         * lib/getaddrinfo.c: Likewise.
66782         * lib/getdelim.c: Likewise.
66783         * lib/getline.c: Likewise.
66784         * lib/hmac-md5.c: Likewise.
66785         * lib/hmac-sha1.c: Likewise.
66786         * lib/iconvme.c: Likewise.
66787         * lib/md2.c: Likewise.
66788         * lib/md4.c: Likewise.
66789         * lib/memxor.c: Likewise.
66790         * lib/read-file.c: Likewise.
66791         * lib/readline.c: Likewise.
66792         * lib/rijndael-alg-fst.c: Likewise.
66793         * lib/rijndael-api-fst.c: Likewise.
66794         * lib/xgetdomainname.c: Likewise.
66795
66796 2006-10-28  Eric Blake  <ebb9@byu.net>
66797
66798         * lib/xstrndup.c: Assume config.h.
66799
66800 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
66801
66802         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
66803         stat-macros.h is now for our own macros, whereas stat_h is for
66804         macros in the <sys/stat.h> name space.
66805         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
66806         (STAT_MACROS_H): Remove.
66807         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
66808         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
66809         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
66810         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
66811         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
66812         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
66813         Move these macros to ...
66814         * lib/stat_.h: here.  Don't include stat-macros.h.
66815         * lib/canonicalize.c: Don't include stat-macros.h.
66816         * lib/chown.c: Likewise.
66817         * lib/euidaccess.c: Likewise.
66818         * lib/file-type.c: Likewise.
66819         * lib/filemode.c: Likewise.
66820         * lib/glob.c: Likewise.
66821         * lib/isapipe.c: Likewise.
66822         * lib/lchown.c: Likewise.
66823         * lib/lstat.c: Likewise.
66824         * lib/mkdir-p.c: Likewise.
66825         * lib/rmdir.c: Likewise.
66826         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
66827         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
66828         unless mkdir isn't declared, to speed up 'configure'.
66829         Always create sys/stat.h, since it's unlikely any real sys/stat.h
66830         would define all the S_* symbols.
66831         * modules/canonicalize (Depends-on):
66832         Depend on sys_stat, not stat-macros.
66833         * modules/chown: Likewise.
66834         * modules/euidaccess: Likewise.
66835         * modules/filemode: Likewise.
66836         * modules/file-type: Likewise.
66837         * modules/glob: Likewise.
66838         * modules/isapipe: Likewise.
66839         * modules/lchown: Likewise.
66840         * modules/lstat: Likewise.
66841         * modules/mkancesdirs: Likewise.
66842         * modules/rmdir: Likewise.
66843         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
66844         * modules/modechange: Likewise.
66845         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
66846         (configure.ac): Remove gl_STAT_MACROS.
66847         * modules/sys_stat (Depends-on): Remove stat-macros.
66848
66849 2006-10-27  Bruno Haible  <bruno@clisp.org>
66850
66851         * m4/signed.m4: Remove file.
66852         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
66853         invocation.
66854         * modules/vasnprintf (Files): Remove m4/signed.m4.
66855
66856 2006-10-27  Bruno Haible  <bruno@clisp.org>
66857
66858         Update to GNU gettext 0.16.
66859         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
66860         m4/inttypes-h.m4, m4/signed.m4.
66861         * m4/gettext.m4: Update to GNU gettext 0.16.
66862         * m4/intl.m4: New file, from GNU gettext.
66863         * m4/intldir.m4: New file, from GNU gettext.
66864         * config/srclist.txt: Update
66865
66866 2006-10-27  Eric Blake  <ebb9@byu.net>
66867
66868         * MODULES.html.sh: Document tempname.
66869         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
66870         dependencies.
66871         (Files): Move lib/tempname.c...
66872         * modules/tempname: ...to this new module.
66873         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
66874         (gl_PREREQ_TEMPNAME): Move...
66875         * m4/tempname.m4: ...to this new file.
66876         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
66877         * modules/sys_stat (Depends-on): Add stat-macros.
66878         * lib/stat_.h (includes): Pick up stat macros.
66879         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
66880         if stat macros are broken.
66881         * lib/tempname.c (includes): No need to include "stat-macros.h".
66882         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
66883         (direxists, __path_search) [!_LIBC]: Don't compile these in
66884         gnulib; the tmpdir module covers that.
66885         * lib/tempname.h: New file.
66886
66887 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
66888
66889         * COPYING: Explain how gnulib-tool converts licence headers.
66890         Almost all wording by Eric Blake.
66891
66892 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
66893
66894         * lib/mbchar.h (is_basic_table): Make read-only.
66895         * lib/mbchar.c (is_basic_table): Likewise.
66896         Reported by John Darrington.
66897
66898 2006-10-25  Bruno Haible  <bruno@clisp.org>
66899
66900         * lib/progname.h (set_program_name): Undefine before defining.
66901
66902 2006-10-25  Bruno Haible  <bruno@clisp.org>
66903
66904         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
66905         false for non-gcc C++ compilers.
66906         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
66907
66908 2006-10-24  Bruno Haible  <bruno@clisp.org>
66909
66910         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
66911         iconv implementations like Irix iconv.
66912
66913 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66914
66915         * modules/vararrays: New file.
66916         * m4/vararrays.m4: New file, taken from diffutils.
66917         * MODULES.html.sh: New module vararrays.
66918
66919 2006-10-24  Karl Berry  <karl@gnu.org>
66920
66921         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
66922         Don't call GNU Unix.
66923
66924 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66925
66926         * users.txt: Add Libtool.
66927
66928         Sync from Libtool:
66929
66930         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66931
66932         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
66933         to gnulib's policy of including config.h unconditionally.
66934
66935 2006-10-24  Bruno Haible  <bruno@clisp.org>
66936
66937         * modules/wcwidth (Files): Add m4/wint_t.m4.
66938         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
66939         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
66940
66941 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66942
66943         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
66944         to pacify GCC with some -W flags enabled.  Problem reported by
66945         Bruno Haible.
66946
66947 2006-10-24  Jim Meyering  <jim@meyering.net>
66948
66949         * MODULES.html.sh: Remove uinttostr.  It's not a module.
66950         Reported by Karl Berry.
66951
66952 2006-10-23  Bruno Haible  <bruno@clisp.org>
66953
66954         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
66955
66956 2006-10-24  Bruno Haible  <bruno@clisp.org>
66957
66958         * lib/gl_list.h: Use C comment style, not C++ comment style.
66959
66960 2006-10-23  Eric Blake  <ebb9@byu.net>
66961
66962         * lib/getaddrinfo.c (includes): Add missing include.
66963
66964 2006-10-23  Bruno Haible  <bruno@clisp.org>
66965             Paul Eggert  <eggert@cs.ucla.edu>
66966
66967         Ability to rename obstack_free.
66968         * lib/obstack.h (__obstack_free): New macro. Declare instead of
66969         obstack_free.
66970         (obstack_free): Invoke the __obstack_free macro.
66971         * lib/obstack.c (obstack_free): Use __obstack_free macro.
66972
66973 2006-10-23  Bruno Haible  <bruno@clisp.org>
66974             Paul Eggert  <eggert@cs.ucla.edu>
66975
66976         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
66977         __argc, __argv from the declaration. (They are defined as macros on
66978         mingw.)
66979
66980 2006-10-22  Bruno Haible  <bruno@clisp.org>
66981
66982         * doc/gnulib-intro.texi: New file.
66983         * doc/gnulib.texi: Include it.
66984
66985 2006-10-21  Bruno Haible  <bruno@clisp.org>
66986
66987         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
66988         "Introduction", "Miscellanous Notes", "Particular Modules".
66989
66990 2006-10-21  Bruno Haible  <bruno@clisp.org>
66991
66992         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66993         Change mostlyclean-local rule to avoid sh syntax error from bash
66994         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
66995
66996 2006-10-23  Jim Meyering  <jim@meyering.net>
66997
66998         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
66999         in place of snprintf.
67000
67001         * modules/inttostr (Files): Add lib/uinttostr.c.
67002         * lib/uinttostr.c (inttostr): New file/function.
67003         * lib/inttostr.h (uinttostr): Declare.
67004         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
67005         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
67006         Add uinttostr.
67007         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
67008
67009 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
67010
67011         * lib/canonicalize.c (ELOOP): Define if not already defined.
67012         Problem reported by Bruno Haible in
67013         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
67014
67015 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
67016
67017         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
67018         Problem reported by Perry Smith and Ville Laurikari.
67019
67020         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
67021         uses.
67022
67023 2006-10-19  Bruno Haible  <bruno@clisp.org>
67024
67025         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
67026         for mingw.
67027
67028 2006-10-19  Bruno Haible  <bruno@clisp.org>
67029
67030         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
67031         Needed for mingw.
67032
67033 2006-10-19  Bruno Haible  <bruno@clisp.org>
67034
67035         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
67036
67037 2006-10-19  Bruno Haible  <bruno@clisp.org>
67038
67039         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
67040         it.
67041
67042 2006-10-19  Bruno Haible  <bruno@clisp.org>
67043
67044         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
67045         invocation.
67046
67047 2006-10-19  Bruno Haible  <bruno@clisp.org>
67048
67049         * gnulib-tool (func_create_testdir): Don't include ftruncate and
67050         mountlist by default.
67051
67052 2006-10-16  Bruno Haible  <bruno@clisp.org>
67053
67054         * lib/c-strstr.c: Include c-strstr.h.
67055
67056 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
67057
67058         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
67059         in a slash.
67060
67061 2006-10-18  Bruno Haible  <bruno@clisp.org>
67062
67063         * lib/lock.h [C++]: Wrap definitions in extern "C".
67064
67065 2006-10-18  Bruno Haible  <bruno@clisp.org>
67066
67067         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
67068         gl_LIBOBJS list.
67069
67070 2006-10-18  Bruno Haible  <bruno@clisp.org>
67071
67072         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
67073
67074 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
67075
67076         * lib/xstrtol.h: Include gettext.h.
67077         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
67078         Problem reported by Eric Blake.
67079         * modules/xstrtol (Depends-on): Add gettext-h.
67080
67081 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
67082
67083         * lib/strftime.c (advance): New macro.
67084         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
67085         incomplete type, so you can't add 0 to it.  Problem and patch
67086         reported by Eelco Dolstra for dietlibc.
67087
67088 2006-10-18  Jim Meyering  <jim@meyering.net>
67089
67090         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
67091         type for a local, and rename it: s/up/user_proc/.
67092
67093 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
67094
67095         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
67096         READ_UTMP_USER_PROCESS.
67097         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
67098
67099 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
67100
67101         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
67102         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
67103
67104 2006-10-17  Eric Blake  <ebb9@byu.net>
67105
67106         * lib/sigprocmask.c (sigprocmask): Fix typo.
67107
67108         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
67109
67110         * modules/clean-temp (Makefile.am): Don't add to make output...
67111         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
67112         config.h.
67113
67114 2006-10-17  Bruno Haible  <bruno@clisp.org>
67115
67116         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
67117         differently if DEFAULT_TEXT_DOMAIN is set.
67118
67119 2006-10-16  Bruno Haible  <bruno@clisp.org>
67120
67121         * lib/clean-temp.c: Include fwriteerror.h.
67122
67123 2006-10-16  Bruno Haible  <bruno@clisp.org>
67124
67125         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
67126
67127 2006-10-16  Bruno Haible  <bruno@clisp.org>
67128
67129         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
67130         * lib/sigprocmask.h: Include <sys/types.h>.
67131         (sigset_t): Use the system's definition if present.
67132
67133 2006-10-17  Eric Blake  <ebb9@byu.net>
67134
67135         * lib/xvasprintf.c (includes): Assume config.h.
67136         * lib/xasprintf.c (includes): Likewise.
67137
67138 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
67139
67140         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
67141         at least as wide as intmax_t.
67142
67143 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
67144
67145         (Imported from Automake.)
67146         * build-aux/gnupload: Update to version 1.1 of directive file.
67147
67148 2006-10-16  Eric Blake  <ebb9@byu.net>
67149
67150         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
67151         match Automake 1.10a.
67152
67153 2006-10-14  Bruno Haible  <bruno@clisp.org>
67154
67155         * modules/sigprocmask: New file.
67156         * lib/sigprocmask.h: New file.
67157         * lib/sigprocmask.c: New file.
67158         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
67159         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
67160         request sigprocmask.o.
67161         (gl_PREREQ_SIGPROCMASK): New macro.
67162         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
67163         (Depends-on): Add sigprocmask.
67164         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
67165         gt_SIGNALBLOCKING. Test for 'raise' only once.
67166         * lib/fatal-signal.c: Include sigprocmask.h.
67167         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
67168         unblock_fatal_signals): Define always.
67169         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67170         sigprocmask.
67171
67172 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
67173
67174         Sync from Automake.
67175         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
67176         which incorrectly sets the mode of an existing destination
67177         directory.  In some cases the unpatched install-sh could do the
67178         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
67179         system.  We hope this is rare in practice, but it's clearly worth
67180         fixing.  Problem reported by Alex Unleashed in
67181         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
67182         Also, don't bother to check for -m bugs unless we're using -m;
67183         suggested by Stepan Kasal.
67184
67185 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67186
67187         Sync from Automake.
67188         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
67189         `-c' flag, so they appear at the same position as in %FASTDEP%
67190         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
67191         which ignores unknown options only after the first non-option.
67192         Bug report against M4 by Nelson H. F. Beebe.
67193
67194 2006-10-13  Jim Meyering  <jim@meyering.net>
67195
67196         Fix a bug in yesterday's change.
67197         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
67198         p->fts_statp->st_dev would be used uninitialized.
67199         Ensures that we always call fts_stat on the very first entry.
67200         Miklos Szeredi reported that find -xdev stopped working.
67201
67202 2006-10-12  Bruno Haible  <bruno@clisp.org>
67203
67204         * gnulib-tool (func_get_automake_snippet): Append an automatically
67205         computed EXTRA_DIST augmentation.
67206         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
67207         * modules/alloca-opt (Makefile.am): Likewise.
67208         * modules/allocsa (Makefile.am): Likewise.
67209         * modules/arcfour (Makefile.am): Likewise.
67210         * modules/arctwo (Makefile.am): Likewise.
67211         * modules/argmatch (Makefile.am): Likewise.
67212         * modules/argz (Makefile.am): Likewise.
67213         * modules/atexit (Makefile.am): Likewise.
67214         * modules/backupfile (Makefile.am): Likewise.
67215         * modules/byteswap (Makefile.am): Likewise.
67216         * modules/c-strtod (Makefile.am): Likewise.
67217         * modules/c-strtold (Makefile.am): Likewise.
67218         * modules/calloc (Makefile.am): Likewise.
67219         * modules/canon-host (Makefile.am): Likewise.
67220         * modules/canonicalize (Makefile.am): Likewise.
67221         * modules/chdir-long (Makefile.am): Likewise.
67222         * modules/chdir-safer (Makefile.am): Likewise.
67223         * modules/check-version (Makefile.am): Likewise.
67224         * modules/chown (Makefile.am): Likewise.
67225         * modules/cloexec (Makefile.am): Likewise.
67226         * modules/close-stream (Makefile.am): Likewise.
67227         * modules/closeout (Makefile.am): Likewise.
67228         * modules/crc (Makefile.am): Likewise.
67229         * modules/csharpexec (Makefile.am): Likewise.
67230         * modules/cycle-check (Makefile.am): Likewise.
67231         * modules/des (Makefile.am): Likewise.
67232         * modules/dev-ino (Makefile.am): Likewise.
67233         * modules/dirfd (Makefile.am): Likewise.
67234         * modules/dirname (Makefile.am): Likewise.
67235         * modules/dup2 (Makefile.am): Likewise.
67236         * modules/eealloc (Makefile.am): Likewise.
67237         * modules/error (Makefile.am): Likewise.
67238         * modules/euidaccess (Makefile.am): Likewise.
67239         * modules/exclude (Makefile.am): Likewise.
67240         * modules/exitfail (Makefile.am): Likewise.
67241         * modules/fcntl-safer (Makefile.am): Likewise.
67242         * modules/fcntl (Makefile.am): Likewise.
67243         * modules/file-type (Makefile.am): Likewise.
67244         * modules/fileblocks (Makefile.am): Likewise.
67245         * modules/filemode (Makefile.am): Likewise.
67246         * modules/filenamecat (Makefile.am): Likewise.
67247         * modules/fnmatch (Makefile.am): Likewise.
67248         * modules/fopen-safer (Makefile.am): Likewise.
67249         * modules/fpending (Makefile.am): Likewise.
67250         * modules/fprintftime (Makefile.am): Likewise.
67251         * modules/free (Makefile.am): Likewise.
67252         * modules/fsusage (Makefile.am): Likewise.
67253         * modules/ftruncate (Makefile.am): Likewise.
67254         * modules/fts (Makefile.am): Likewise.
67255         * modules/gc-arcfour (Makefile.am): Likewise.
67256         * modules/gc-des (Makefile.am): Likewise.
67257         * modules/gc-hmac-md5 (Makefile.am): Likewise.
67258         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
67259         * modules/gc-md4 (Makefile.am): Likewise.
67260         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
67261         * modules/gc-sha1 (Makefile.am): Likewise.
67262         * modules/gc (Makefile.am): Likewise.
67263         * modules/getaddrinfo (Makefile.am): Likewise.
67264         * modules/getcwd (Makefile.am): Likewise.
67265         * modules/getdelim (Makefile.am): Likewise.
67266         * modules/getdomainname (Makefile.am): Likewise.
67267         * modules/getgroups (Makefile.am): Likewise.
67268         * modules/gethostname (Makefile.am): Likewise.
67269         * modules/gethrxtime (Makefile.am): Likewise.
67270         * modules/getline (Makefile.am): Likewise.
67271         * modules/getloadavg (Makefile.am): Likewise.
67272         * modules/getlogin_r (Makefile.am): Likewise.
67273         * modules/getndelim2 (Makefile.am): Likewise.
67274         * modules/getopt (Makefile.am): Likewise.
67275         * modules/getpagesize (Makefile.am): Likewise.
67276         * modules/getpass-gnu (Makefile.am): Likewise.
67277         * modules/getpass (Makefile.am): Likewise.
67278         * modules/getsubopt (Makefile.am): Likewise.
67279         * modules/gettime (Makefile.am): Likewise.
67280         * modules/gettimeofday (Makefile.am): Likewise.
67281         * modules/getugroups (Makefile.am): Likewise.
67282         * modules/getusershell (Makefile.am): Likewise.
67283         * modules/glob (Makefile.am): Likewise.
67284         * modules/group-member (Makefile.am): Likewise.
67285         * modules/hard-locale (Makefile.am): Likewise.
67286         * modules/hash (Makefile.am): Likewise.
67287         * modules/hmac-md5 (Makefile.am): Likewise.
67288         * modules/hmac-sha1 (Makefile.am): Likewise.
67289         * modules/human (Makefile.am): Likewise.
67290         * modules/idcache (Makefile.am): Likewise.
67291         * modules/imaxabs (Makefile.am): Likewise.
67292         * modules/imaxdiv (Makefile.am): Likewise.
67293         * modules/inet_ntop (Makefile.am): Likewise.
67294         * modules/inet_pton (Makefile.am): Likewise.
67295         * modules/intprops (Makefile.am): Likewise.
67296         * modules/inttostr (Makefile.am): Likewise.
67297         * modules/inttypes (Makefile.am): Likewise.
67298         * modules/isapipe (Makefile.am): Likewise.
67299         * modules/javaversion (Makefile.am): Likewise.
67300         * modules/lchmod (Makefile.am): Likewise.
67301         * modules/lchown (Makefile.am): Likewise.
67302         * modules/localcharset (Makefile.am): Likewise.
67303         * modules/long-options (Makefile.am): Likewise.
67304         * modules/lstat (Makefile.am): Likewise.
67305         * modules/malloc (Makefile.am): Likewise.
67306         * modules/mathl (Makefile.am): Likewise.
67307         * modules/mbchar (Makefile.am): Likewise.
67308         * modules/md2 (Makefile.am): Likewise.
67309         * modules/md4 (Makefile.am): Likewise.
67310         * modules/md5 (Makefile.am): Likewise.
67311         * modules/memcasecmp (Makefile.am): Likewise.
67312         * modules/memchr (Makefile.am): Likewise.
67313         * modules/memcmp (Makefile.am): Likewise.
67314         * modules/memcoll (Makefile.am): Likewise.
67315         * modules/memcpy (Makefile.am): Likewise.
67316         * modules/memmem (Makefile.am): Likewise.
67317         * modules/memmove (Makefile.am): Likewise.
67318         * modules/mempcpy (Makefile.am): Likewise.
67319         * modules/memrchr (Makefile.am): Likewise.
67320         * modules/memset (Makefile.am): Likewise.
67321         * modules/memxor (Makefile.am): Likewise.
67322         * modules/mkancesdirs (Makefile.am): Likewise.
67323         * modules/mkdir-p (Makefile.am): Likewise.
67324         * modules/mkdir (Makefile.am): Likewise.
67325         * modules/mkdtemp (Makefile.am): Likewise.
67326         * modules/mkstemp (Makefile.am): Likewise.
67327         * modules/mktime (Makefile.am): Likewise.
67328         * modules/modechange (Makefile.am): Likewise.
67329         * modules/mountlist (Makefile.am): Likewise.
67330         * modules/nanosleep (Makefile.am): Likewise.
67331         * modules/obstack (Makefile.am): Likewise.
67332         * modules/openat (Makefile.am): Likewise.
67333         * modules/pagealign_alloc (Makefile.am): Likewise.
67334         * modules/pathmax (Makefile.am): Likewise.
67335         * modules/physmem (Makefile.am): Likewise.
67336         * modules/poll (Makefile.am): Likewise.
67337         * modules/posixtm (Makefile.am): Likewise.
67338         * modules/posixver (Makefile.am): Likewise.
67339         * modules/putenv (Makefile.am): Likewise.
67340         * modules/quote (Makefile.am): Likewise.
67341         * modules/quotearg (Makefile.am): Likewise.
67342         * modules/raise (Makefile.am): Likewise.
67343         * modules/read-file (Makefile.am): Likewise.
67344         * modules/readline (Makefile.am): Likewise.
67345         * modules/readlink (Makefile.am): Likewise.
67346         * modules/readtokens (Makefile.am): Likewise.
67347         * modules/readutmp (Makefile.am): Likewise.
67348         * modules/realloc (Makefile.am): Likewise.
67349         * modules/regex (Makefile.am): Likewise.
67350         * modules/rename-dest-slash (Makefile.am): Likewise.
67351         * modules/rename (Makefile.am): Likewise.
67352         * modules/rijndael (Makefile.am): Likewise.
67353         * modules/rmdir (Makefile.am): Likewise.
67354         * modules/rpmatch (Makefile.am): Likewise.
67355         * modules/safe-read (Makefile.am): Likewise.
67356         * modules/safe-write (Makefile.am): Likewise.
67357         * modules/same-inode (Makefile.am): Likewise.
67358         * modules/same (Makefile.am): Likewise.
67359         * modules/save-cwd (Makefile.am): Likewise.
67360         * modules/savedir (Makefile.am): Likewise.
67361         * modules/setenv (Makefile.am): Likewise.
67362         * modules/settime (Makefile.am): Likewise.
67363         * modules/sha1 (Makefile.am): Likewise.
67364         * modules/sig2str (Makefile.am): Likewise.
67365         * modules/snprintf (Makefile.am): Likewise.
67366         * modules/stat-macros (Makefile.am): Likewise.
67367         * modules/stat-time (Makefile.am): Likewise.
67368         * modules/stdbool (Makefile.am): Likewise.
67369         * modules/stdint (Makefile.am): Likewise.
67370         * modules/stdlib-safer (Makefile.am): Likewise.
67371         * modules/stpcpy (Makefile.am): Likewise.
67372         * modules/stpncpy (Makefile.am): Likewise.
67373         * modules/strcase (Makefile.am): Likewise.
67374         * modules/strcasestr (Makefile.am): Likewise.
67375         * modules/strchrnul (Makefile.am): Likewise.
67376         * modules/strcspn (Makefile.am): Likewise.
67377         * modules/strdup (Makefile.am): Likewise.
67378         * modules/strerror (Makefile.am): Likewise.
67379         * modules/strftime (Makefile.am): Likewise.
67380         * modules/strndup (Makefile.am): Likewise.
67381         * modules/strnlen (Makefile.am): Likewise.
67382         * modules/strpbrk (Makefile.am): Likewise.
67383         * modules/strsep (Makefile.am): Likewise.
67384         * modules/strstr (Makefile.am): Likewise.
67385         * modules/strtod (Makefile.am): Likewise.
67386         * modules/strtoimax (Makefile.am): Likewise.
67387         * modules/strtok_r (Makefile.am): Likewise.
67388         * modules/strtol (Makefile.am): Likewise.
67389         * modules/strtoll (Makefile.am): Likewise.
67390         * modules/strtoul (Makefile.am): Likewise.
67391         * modules/strtoull (Makefile.am): Likewise.
67392         * modules/strtoumax (Makefile.am): Likewise.
67393         * modules/strverscmp (Makefile.am): Likewise.
67394         * modules/sys_socket (Makefile.am): Likewise.
67395         * modules/sys_stat (Makefile.am): Likewise.
67396         * modules/sysexits (Makefile.am): Likewise.
67397         * modules/time_r (Makefile.am): Likewise.
67398         * modules/timegm (Makefile.am): Likewise.
67399         * modules/timespec (Makefile.am): Likewise.
67400         * modules/tmpfile-safer (Makefile.am): Likewise.
67401         * modules/trim (Makefile.am): Likewise.
67402         * modules/unistd-safer (Makefile.am): Likewise.
67403         * modules/unlinkdir (Makefile.am): Likewise.
67404         * modules/unlocked-io (Makefile.am): Likewise.
67405         * modules/userspec (Makefile.am): Likewise.
67406         * modules/utime (Makefile.am): Likewise.
67407         * modules/utimecmp (Makefile.am): Likewise.
67408         * modules/utimens (Makefile.am): Likewise.
67409         * modules/vasnprintf (Makefile.am): Likewise.
67410         * modules/vasprintf (Makefile.am): Likewise.
67411         * modules/vsnprintf (Makefile.am): Likewise.
67412         * modules/xalloc (Makefile.am): Likewise.
67413         * modules/xgetcwd (Makefile.am): Likewise.
67414         * modules/xnanosleep (Makefile.am): Likewise.
67415         * modules/xreadlink (Makefile.am): Likewise.
67416         * modules/xstrtod (Makefile.am): Likewise.
67417         * modules/xstrtol (Makefile.am): Likewise.
67418         * modules/xstrtold (Makefile.am): Likewise.
67419         * modules/yesno (Makefile.am): Likewise.
67420         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
67421
67422 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
67423
67424         * modules/error (Makefile.am): Distribute files through
67425         EXTRA_DIST, not lib_SOURCES.
67426
67427 2006-10-12  Eric Blake  <ebb9@byu.net>
67428
67429         * modules/error (Makefile.am): Distribute files in /lib.
67430         * modules/obstack (Makefile.am): Likewise.
67431
67432 2006-10-12  Bruno Haible  <bruno@clisp.org>
67433
67434         * modules/acl (Makefile.am): Distribute all files in lib/ through
67435         EXTRA_DIST.
67436         * modules/arcfour (Makefile.am): Likewise.
67437         * modules/arctwo (Makefile.am): Likewise.
67438         * modules/argmatch (Makefile.am): Likewise.
67439         * modules/argz (Makefile.am): Likewise.
67440         * modules/atexit (Makefile.am): Likewise.
67441         * modules/backupfile (Makefile.am): Likewise.
67442         * modules/c-strtod (Makefile.am): Likewise.
67443         * modules/c-strtold (Makefile.am): Likewise.
67444         * modules/calloc (Makefile.am): Likewise.
67445         * modules/canon-host (Makefile.am): Likewise.
67446         * modules/canonicalize (Makefile.am): Likewise.
67447         * modules/chdir-long (Makefile.am): Likewise.
67448         * modules/chdir-safer (Makefile.am): Likewise.
67449         * modules/check-version (Makefile.am): Likewise.
67450         * modules/chown (Makefile.am): Likewise.
67451         * modules/cloexec (Makefile.am): Likewise.
67452         * modules/close-stream (Makefile.am): Likewise.
67453         * modules/closeout (Makefile.am): Likewise.
67454         * modules/crc (Makefile.am): Likewise.
67455         * modules/cycle-check (Makefile.am): Likewise.
67456         * modules/des (Makefile.am): Likewise.
67457         * modules/dirfd (Makefile.am): Likewise.
67458         * modules/dirname (Makefile.am): Likewise.
67459         * modules/dup2 (Makefile.am): Likewise.
67460         * modules/euidaccess (Makefile.am): Likewise.
67461         * modules/exclude (Makefile.am): Likewise.
67462         * modules/exitfail (Makefile.am): Likewise.
67463         * modules/fcntl-safer (Makefile.am): Likewise.
67464         * modules/file-type (Makefile.am): Likewise.
67465         * modules/fileblocks (Makefile.am): Likewise.
67466         * modules/filemode (Makefile.am): Likewise.
67467         * modules/filenamecat (Makefile.am): Likewise.
67468         * modules/fnmatch (Makefile.am): Likewise.
67469         * modules/fopen-safer (Makefile.am): Likewise.
67470         * modules/fpending (Makefile.am): Likewise.
67471         * modules/fprintftime (Makefile.am): Likewise.
67472         * modules/free (Makefile.am): Likewise.
67473         * modules/fsusage (Makefile.am): Likewise.
67474         * modules/ftruncate (Makefile.am): Likewise.
67475         * modules/fts (Makefile.am): Likewise.
67476         * modules/gc (Makefile.am): Likewise.
67477         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
67478         * modules/getaddrinfo (Makefile.am): Likewise.
67479         * modules/getcwd (Makefile.am): Likewise.
67480         * modules/getdelim (Makefile.am): Likewise.
67481         * modules/getdomainname (Makefile.am): Likewise.
67482         * modules/getgroups (Makefile.am): Likewise.
67483         * modules/gethostname (Makefile.am): Likewise.
67484         * modules/gethrxtime (Makefile.am): Likewise.
67485         * modules/getline (Makefile.am): Likewise.
67486         * modules/getloadavg (Makefile.am): Likewise.
67487         * modules/getlogin_r (Makefile.am): Likewise.
67488         * modules/getopt (Makefile.am): Likewise.
67489         * modules/getpass (Makefile.am): Likewise.
67490         * modules/getpass-gnu (Makefile.am): Likewise.
67491         * modules/getsubopt (Makefile.am): Likewise.
67492         * modules/gettime (Makefile.am): Likewise.
67493         * modules/gettimeofday (Makefile.am): Likewise.
67494         * modules/getugroups (Makefile.am): Likewise.
67495         * modules/getusershell (Makefile.am): Likewise.
67496         * modules/glob (Makefile.am): Likewise.
67497         * modules/group-member (Makefile.am): Likewise.
67498         * modules/hard-locale (Makefile.am): Likewise.
67499         * modules/hash (Makefile.am): Likewise.
67500         * modules/hmac-md5 (Makefile.am): Likewise.
67501         * modules/hmac-sha1 (Makefile.am): Likewise.
67502         * modules/human (Makefile.am): Likewise.
67503         * modules/idcache (Makefile.am): Likewise.
67504         * modules/imaxabs (Makefile.am): Likewise.
67505         * modules/imaxdiv (Makefile.am): Likewise.
67506         * modules/inet_ntop (Makefile.am): Likewise.
67507         * modules/inet_pton (Makefile.am): Likewise.
67508         * modules/inttostr (Makefile.am): Likewise.
67509         * modules/isapipe (Makefile.am): Likewise.
67510         * modules/lchown (Makefile.am): Likewise.
67511         * modules/long-options (Makefile.am): Likewise.
67512         * modules/lstat (Makefile.am): Likewise.
67513         * modules/malloc (Makefile.am): Likewise.
67514         * modules/mathl (Makefile.am): Likewise.
67515         * modules/mbchar (Makefile.am): Likewise.
67516         * modules/md2 (Makefile.am): Likewise.
67517         * modules/md4 (Makefile.am): Likewise.
67518         * modules/md5 (Makefile.am): Likewise.
67519         * modules/memcasecmp (Makefile.am): Likewise.
67520         * modules/memchr (Makefile.am): Likewise.
67521         * modules/memcmp (Makefile.am): Likewise.
67522         * modules/memcoll (Makefile.am): Likewise.
67523         * modules/memcpy (Makefile.am): Likewise.
67524         * modules/memmem (Makefile.am): Likewise.
67525         * modules/memmove (Makefile.am): Likewise.
67526         * modules/mempcpy (Makefile.am): Likewise.
67527         * modules/memrchr (Makefile.am): Likewise.
67528         * modules/memset (Makefile.am): Likewise.
67529         * modules/memxor (Makefile.am): Likewise.
67530         * modules/mkancesdirs (Makefile.am): Likewise.
67531         * modules/mkdir (Makefile.am): Likewise.
67532         * modules/mkdir-p (Makefile.am): Likewise.
67533         * modules/mkdtemp (Makefile.am): Likewise.
67534         * modules/mkstemp (Makefile.am): Likewise.
67535         * modules/mktime (Makefile.am): Likewise.
67536         * modules/modechange (Makefile.am): Likewise.
67537         * modules/mountlist (Makefile.am): Likewise.
67538         * modules/nanosleep (Makefile.am): Likewise.
67539         * modules/openat (Makefile.am): Likewise.
67540         * modules/pagealign_alloc (Makefile.am): Likewise.
67541         * modules/physmem (Makefile.am): Likewise.
67542         * modules/poll (Makefile.am): Likewise.
67543         * modules/posixtm (Makefile.am): Likewise.
67544         * modules/posixver (Makefile.am): Likewise.
67545         * modules/putenv (Makefile.am): Likewise.
67546         * modules/quote (Makefile.am): Likewise.
67547         * modules/quotearg (Makefile.am): Likewise.
67548         * modules/raise (Makefile.am): Likewise.
67549         * modules/read-file (Makefile.am): Likewise.
67550         * modules/readline (Makefile.am): Likewise.
67551         * modules/readlink (Makefile.am): Likewise.
67552         * modules/readtokens (Makefile.am): Likewise.
67553         * modules/readutmp (Makefile.am): Likewise.
67554         * modules/realloc (Makefile.am): Likewise.
67555         * modules/regex (Makefile.am): Likewise.
67556         * modules/rename (Makefile.am): Likewise.
67557         * modules/rename-dest-slash (Makefile.am): Likewise.
67558         * modules/rijndael (Makefile.am): Likewise.
67559         * modules/rmdir (Makefile.am): Likewise.
67560         * modules/rpmatch (Makefile.am): Likewise.
67561         * modules/safe-read (Makefile.am): Likewise.
67562         * modules/safe-write (Makefile.am): Likewise.
67563         * modules/same (Makefile.am): Likewise.
67564         * modules/save-cwd (Makefile.am): Likewise.
67565         * modules/savedir (Makefile.am): Likewise.
67566         * modules/setenv (Makefile.am): Likewise.
67567         * modules/settime (Makefile.am): Likewise.
67568         * modules/sha1 (Makefile.am): Likewise.
67569         * modules/sig2str (Makefile.am): Likewise.
67570         * modules/snprintf (Makefile.am): Likewise.
67571         * modules/stdlib-safer (Makefile.am): Likewise.
67572         * modules/stpcpy (Makefile.am): Likewise.
67573         * modules/stpncpy (Makefile.am): Likewise.
67574         * modules/strcase (Makefile.am): Likewise.
67575         * modules/strcasestr (Makefile.am): Likewise.
67576         * modules/strchrnul (Makefile.am): Likewise.
67577         * modules/strcspn (Makefile.am): Likewise.
67578         * modules/strdup (Makefile.am): Likewise.
67579         * modules/strerror (Makefile.am): Likewise.
67580         * modules/strftime (Makefile.am): Likewise.
67581         * modules/strndup (Makefile.am): Likewise.
67582         * modules/strnlen (Makefile.am): Likewise.
67583         * modules/strpbrk (Makefile.am): Likewise.
67584         * modules/strsep (Makefile.am): Likewise.
67585         * modules/strstr (Makefile.am): Likewise.
67586         * modules/strtod (Makefile.am): Likewise.
67587         * modules/strtoimax (Makefile.am): Likewise.
67588         * modules/strtok_r (Makefile.am): Likewise.
67589         * modules/strtol (Makefile.am): Likewise.
67590         * modules/strtoll (Makefile.am): Likewise.
67591         * modules/strtoul (Makefile.am): Likewise.
67592         * modules/strtoull (Makefile.am): Likewise.
67593         * modules/strtoumax (Makefile.am): Likewise.
67594         * modules/strverscmp (Makefile.am): Likewise.
67595         * modules/time_r (Makefile.am): Likewise.
67596         * modules/timegm (Makefile.am): Likewise.
67597         * modules/tmpfile-safer (Makefile.am): Likewise.
67598         * modules/unistd-safer (Makefile.am): Likewise.
67599         * modules/unlinkdir (Makefile.am): Likewise.
67600         * modules/userspec (Makefile.am): Likewise.
67601         * modules/utime (Makefile.am): Likewise.
67602         * modules/utimecmp (Makefile.am): Likewise.
67603         * modules/utimens (Makefile.am): Likewise.
67604         * modules/vasnprintf (Makefile.am): Likewise.
67605         * modules/vasprintf (Makefile.am): Likewise.
67606         * modules/vsnprintf (Makefile.am): Likewise.
67607         * modules/xalloc (Makefile.am): Likewise.
67608         * modules/xgetcwd (Makefile.am): Likewise.
67609         * modules/xnanosleep (Makefile.am): Likewise.
67610         * modules/xreadlink (Makefile.am): Likewise.
67611         * modules/xstrtod (Makefile.am): Likewise.
67612         * modules/xstrtol (Makefile.am): Likewise.
67613         * modules/xstrtold (Makefile.am): Likewise.
67614         * modules/yesno (Makefile.am): Likewise.
67615
67616 2006-10-12  Jim Meyering  <jim@meyering.net>
67617
67618         * m4/getloadavg.m4: Revert the change below.
67619
67620         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
67621         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
67622         fail with a symlink, which is what coreutils' ./bootstrap now
67623         creates by default.
67624
67625 2006-10-12  Bruno Haible  <bruno@clisp.org>
67626
67627         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
67628         mingw.
67629         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
67630         MSVC and mingw explicitly.
67631
67632 2006-10-11  Simon Josefsson  <jas@extundo.com>
67633             Bruno Haible  <bruno@clisp.org>
67634
67635         Add support for multiple gnulib-tool invocations in the scope of a
67636         single configure.ac file.
67637         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
67638         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
67639         with the same contents as the _LIBADD variable.
67640         (func_emit_initmacro_start, func_emit_initmacro_end,
67641         func_emit_initmacro_done): New functions.
67642         (func_import, func_create_testdir): Invoke them. Allow the identifiers
67643         gl_LIBOBJS and gl_LTLIBOBJS.
67644
67645 2006-10-11  Bruno Haible  <bruno@clisp.org>
67646
67647         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
67648         (func_create_testdir): Don't create po/Makefile.am, don't invoke
67649         autoreconf. Instead, invoke autopoint explicitly but move back the
67650         *.m4 files from gnulib.
67651
67652 2006-10-11  Bruno Haible  <bruno@clisp.org>
67653
67654         * gnulib-tool (func_usage): Make module names after --create-testdir
67655         optional.
67656         (func_create_testdir): If no module was specified, use nearly all
67657         modules.
67658
67659 2006-10-12  Jim Meyering  <jim@meyering.net>
67660
67661         Big performance improvement for fts-based tools that use FTS_NOSTAT.
67662         Avoid spurious inode-mismatch problems on non-POSIX file systems.
67663         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
67664         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
67665         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
67666         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
67667         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
67668         (fts_set_stat_required): New function.
67669         (fts_open): Defer the calls to fts_stat, if possible or requested.
67670         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
67671         into fts_stat itself.
67672         (fts_read): Perform any required (deferred) fts_stat call.
67673         (fts_build): Likewise, for the directory we're about to open and read.
67674         In the readdir loop, carefully decide whether each entry will require
67675         an eventual call to fts_stat, using dirent.d_type info if available.
67676         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
67677         a command line argument into this function.  Update all callers.
67678         Map a return value of FTS_DOT to FTS_D for a command line argument.
67679         * modules/fts (Depends-on): Add d-type.  Alphabetize.
67680         Thanks to Miklos Szeredi for his tenacity and for the initial
67681         bug report about "find" failing on a FUSE-based file system.
67682
67683         * lib/fts.c (fts_open): Use consistent indentation.
67684
67685 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
67686
67687         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
67688         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
67689         reported by Jim Meyering.  All uses of cache variables renamed
67690         to match Autoconf's.
67691         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
67692         the other one.
67693
67694         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
67695         Fix misspelling in diagnostic.
67696
67697 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67698
67699         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
67700         defined.  Problem reported by Matthew Woehlke.
67701
67702         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
67703         Add support for Tandem NonStop R series.
67704         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
67705         Use new macro.
67706
67707         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
67708         (has_trailing_slash): Omit size arg; all callers changed.
67709         Omit 'inline', since it doesn't help performance and we'd
67710         need to configure it.
67711         Don't count //, ///, etc. as having a trailing slash.
67712         As a side effect, this removes a C99ism reported by Matthew Woehlke.
67713         (rpl_rename_dest_slash): On failure, use rename's errno rather
67714         than (in some cases) an incorrect or junk errno.
67715         Simplify code by removing need to compute length; this does
67716         cause it to make two passes instead of one over the file name,
67717         but it's worth it.
67718
67719         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
67720         change, since Autoconf's version may no longer be appropriate now
67721         that we are using CVS Autoconf's version.  Add support for Tandem.
67722
67723 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67724             Bruno Haible  <bruno@clisp.org>
67725
67726         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
67727         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
67728         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
67729         gl_AC_TYPE_LONG_LONG.
67730
67731         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
67732         instead of HAVE_LONG_LONG.
67733         * lib/printf-args.c (printf_fetchargs): Likewise.
67734         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
67735         * lib/vasnprintf.c (VASNPRINTF): Likewise.
67736         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
67737         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
67738         gl_AC_TYPE_LONG_LONG.
67739
67740 2006-10-11  Bruno Haible  <bruno@clisp.org>
67741
67742         * m4/longlong.m4: Add comments.
67743         * m4/ulonglong.m4: Likewise.
67744
67745 2006-10-10  Bruno Haible  <bruno@clisp.org>
67746
67747         Make it possible to #define stpcpy, strdup to aliases.
67748         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
67749         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
67750
67751 2006-10-10  Bruno Haible  <bruno@clisp.org>
67752
67753         Make it possible to #define gcd to an alias.
67754         * lib/gcd.c: Include config.h.
67755
67756 2006-10-10  Bruno Haible  <bruno@clisp.org>
67757
67758         Make it possible to #define c_isascii to an alias.
67759         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
67760         defined. Undefine the macros before defining them, to avoid gcc
67761         warnings.
67762         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
67763         define NO_C_CTYPE_MACROS early.
67764
67765 2006-10-10  Bruno Haible  <bruno@clisp.org>
67766
67767         Make it possible to #define set_program_name to an alias.
67768         * lib/progname.c: Don't undefine set_program_name; instead, undefine
67769         ENABLE_RELOCATABLE early.
67770
67771 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
67772
67773         Port to Tandem NSK OSS, which has 64-bit signed int but at most
67774         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
67775         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
67776         More generally, don't assume that 64-bit signed int is available
67777         if unsigned int is, and vice versa.
67778         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
67779         unsigned symbols, not on their signed counterparts.
67780         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
67781         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
67782         (UINT64_C, UINTMAX_C):
67783         Likewise.
67784         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
67785         unsigned counterparts.
67786         (Have_long_long, Unsigned): New macros.
67787         (Int): Renamed from INT.
67788         (strtoimax): Use the new macros.
67789         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
67790         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
67791         * modules/inttypes (inttypes.h): Substitute
67792         HAVE_UNSIGNED_LONG_LONG_INT.
67793         * modules/stdint (stdint.h): Likewise.
67794         (Files): Add m4/ulonglong.m4.
67795
67796 2006-10-10  Bruno Haible  <bruno@clisp.org>
67797
67798         Fix a gcc -Wshadow warning.
67799         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
67800         to 'bucket'.
67801         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
67802         gl_linked_indexof_from_to): Likewise.
67803         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
67804         Likewise.
67805         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
67806         Likewise.
67807         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
67808         Reported by Eric Blake.
67809
67810 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
67811
67812         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
67813         for NetBSD.  Problem reported by Bruno Haible.
67814
67815 2006-10-09  Jim Meyering  <jim@meyering.net>
67816
67817         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
67818         Patch from Bruno Haible.
67819
67820 2006-10-09  Jim Meyering  <jim@meyering.net>
67821
67822         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
67823         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
67824         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
67825
67826 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
67827
67828         Don't include <config.h> twice; this doesn't work in some cases,
67829         e.g., when config.h has "#define intmax_t long long int" and
67830         we include <config.h>, <inttypes.h>, <config.h> in that order.
67831         Problem reported by Matthew Woehlke in:
67832         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
67833         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
67834         * lib/fts-cycle.c: Don't include config.h.
67835         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
67836         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
67837         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
67838         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
67839         inttypes.h.
67840         * lib/xstrtoumax.c: Likewise.
67841         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
67842         __strtol and the like, so that this module is more like its siblings.
67843         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
67844         Remove; no longer needed now that we assume gnulib inttypes.h.
67845
67846 2006-10-08  Bruno Haible  <bruno@clisp.org>
67847
67848         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
67849         option.
67850
67851 2006-10-07  Jim Meyering  <jim@meyering.net>
67852
67853         * modules/inttypes (inttypes.h): Revert what seems to have been
67854         an inadvertent part of today's change: use "|", not "/" in the
67855         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
67856
67857 2006-10-07  Bruno Haible  <bruno@clisp.org>
67858
67859         * modules/sublist: New file.
67860
67861 2006-10-07  Bruno Haible  <bruno@clisp.org>
67862
67863         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
67864         * modules/argz (argz.h): Likewise.
67865         * modules/arpa_inet (arpa/inet.h): Likewise.
67866         * modules/byteswap (byteswap.h): Likewise.
67867         * modules/configmake (configmake.h): Likewise.
67868         * modules/fcntl (fcntl.h): Likewise.
67869         * modules/fnmatch (fnmatch.h): Likewise.
67870         * modules/getopt (getopt.h): Likewise.
67871         * modules/glob (glob.h): Likewise.
67872         * modules/inttypes (inttypes.h): Likewise.
67873         * modules/netinet_in (netinet/in.h): Likewise.
67874         * modules/poll (poll.h): Likewise.
67875         * modules/stdbool (stdbool.h): Likewise.
67876         * modules/stdint (stdint.h): Likewise.
67877         * modules/sys_select (sys/select.h): Likewise.
67878         * modules/sys_socket (sys/socket.h): Likewise.
67879         * modules/sys_stat (sys/stat.h): Likewise.
67880         * modules/sysexits (sysexits.h): Likewise.
67881         * modules/unistd (unistd.h): Likewise.
67882         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67883         Add a "DO NOT EDIT" comment to the generated file.
67884         (func_import): Likewise for gnulib-comp.m4.
67885
67886 2006-10-07  Bruno Haible  <bruno@clisp.org>
67887
67888         * lib/gl_sublist.h: New file.
67889         * lib/gl_sublist.c: New file.
67890
67891 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
67892
67893         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
67894         name (relative to the original working directory) and the file
67895         name component (relative to the temporary working directory).  All
67896         callers changed.
67897         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
67898         * lib/mkdir-p.c (make_dir_parents): Likewise.
67899         * lib/mkdir-p.h (make_dir_parents): Likewise.
67900
67901 2006-10-06  Eric Blake  <ebb9@byu.net>
67902
67903         Define several macros for use by the clean-temp module.
67904         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
67905         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
67906         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
67907
67908         * lib/clean-temp.h (close_stream_temp): New declaration.
67909         * lib/clean-temp.c (includes): Pull in headers according to what
67910         other modules are in use.
67911         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
67912
67913 2006-10-06  Bruno Haible  <bruno@clisp.org>
67914
67915         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
67916         instead of fopen, fwriteerror.
67917
67918 2006-10-06  Bruno Haible  <bruno@clisp.org>
67919
67920         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
67921         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
67922         int.
67923         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
67924         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
67925         Return an error indicator.
67926         Suggested by Eric Blake.
67927
67928 2006-10-06  Bruno Haible  <bruno@clisp.org>
67929
67930         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
67931         Reported by Eric Blake.
67932
67933 2006-10-06  Bruno Haible  <bruno@clisp.org>
67934
67935         * modules/closeout (Description): Mention stderr too.
67936
67937 2006-10-06  Bruno Haible  <bruno@clisp.org>
67938         and Paul Eggert  <eggert@cs.ucla.edu>
67939
67940         * lib/closeout.c (close_stdout): Also close stderr.
67941         * lib/closeout.h: Update comment.
67942
67943 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
67944
67945         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
67946         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
67947         * lib/dirchownmod.c: Include lchown.h.
67948         * lib/lchown.c: Don't include files that lchown.h now includes.
67949         Don't declare chown, since lchown.h now does that.
67950         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
67951         (lchown): Define to rpl_chown if lchown is declared but
67952         does not exist.  Declare using a prototype if lchown is not
67953         declared.  Add a copyright notice.
67954         * lib/mkstemp.h: Include <unistd.h>.
67955         * lib/openat.c: Include lchown.h.
67956
67957         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
67958         we now test for that separately.
67959         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
67960         rather than O_NOFOLLOW, when testing whether it's possible to
67961         avoid a race condition reliably.
67962         * lib/savewd.c (savewd_chdir): Likewise.
67963
67964         Remove macros that are no longer needed now that stdint.h is
67965         reliable.
67966         * lib/fsusage.c (UINTMAX_MAX): Remove.
67967         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
67968         * lib/utimecmp.c (SIZE_MAX): Remove.
67969
67970         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
67971
67972         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
67973         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
67974         O_NOATIME works.
67975
67976 2006-10-05  Bruno Haible  <bruno@clisp.org>
67977
67978         * lib/gl_list.h (gl_sortedlist_search_from_to,
67979         gl_sortedlist_indexof_from_to): New declarations.
67980         (gl_list_implementation): New fields sortedlist_search_from_to,
67981         sortedlist_indexof_from_to.
67982         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
67983         inline functions.
67984         * lib/gl_list.c (gl_sortedlist_search_from_to,
67985         gl_sortedlist_indexof_from_to): New functions.
67986         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
67987         function.
67988         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
67989         (gl_array_sortedlist_search_from_to): New function.
67990         (gl_array_list_implementation): Update.
67991         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
67992         function.
67993         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
67994         (gl_carray_sortedlist_search_from_to): New function.
67995         (gl_carray_list_implementation): Update.
67996         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
67997         gl_linked_sortedlist_indexof_from_to): New functions.
67998         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67999         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
68000         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
68001         gl_tree_sortedlist_indexof_from_to): New functions.
68002         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
68003         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
68004         Update.
68005         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
68006         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
68007         Update.
68008
68009 2006-10-05  Bruno Haible  <bruno@clisp.org>
68010
68011         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
68012         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
68013         (struct gl_list_implementation): Add fields search_from_to,
68014         indexof_from_to. Remove fields search, indexof.
68015         (gl_list_search): Use the search_from_to method.
68016         (gl_list_search_from, gl_list_search_from_to): New functions.
68017         (gl_list_indexof): Use the indexof_from_to method.
68018         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
68019         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
68020         (gl_list_search_from, gl_list_search_from_to): New functions.
68021         (gl_list_indexof): Use the indexof_from_to method.
68022         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
68023         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
68024         gl_array_indexof. Add start_index, end_index arguments.
68025         (gl_array_search_from_to): Renamed from gl_array_search. Add
68026         start_index, end_index arguments.
68027         (gl_array_remove, gl_array_list_implementation): Update.
68028         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
68029         gl_carray_indexof. Add start_index, end_index arguments.
68030         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
68031         start_index, end_index arguments.
68032         (gl_carray_remove, gl_carray_list_implementation): Update.
68033         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
68034         gl_linked_search. Add start_index, end_index arguments.
68035         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
68036         start_index, end_index arguments.
68037         (gl_linked_remove): Update.
68038         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
68039         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
68040         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
68041         field to 'size_t'.
68042         * lib/gl_anytree_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         (gl_tree_remove): Update.
68047         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
68048         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
68049         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
68050         function.
68051         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
68052         gl_tree_search. Add start_index, end_index arguments.
68053         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
68054         start_index, end_index arguments.
68055         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
68056         Update.
68057         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
68058
68059 2006-10-05  Bruno Haible  <bruno@clisp.org>
68060
68061         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
68062
68063         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
68064         fwriteerror_temp): New declarations.
68065         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
68066         (descriptors): New variable.
68067         (cleanup): First, close the descriptors.
68068         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
68069         fclose_temp, fwriteerror_temp): New functions.
68070
68071 2006-10-04  Jim Meyering  <jim@meyering.net>
68072
68073         * lib/fts.c (fts_open): Tiny comment change.
68074
68075 2006-10-04  Bruno Haible  <bruno@clisp.org>
68076
68077         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
68078         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
68079         gl_LOCK_BODY.
68080         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
68081         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
68082         gl_LOCK_EARLY_BODY.
68083         (gl_LOCK): Require gl_LOCK_BODY.
68084
68085 2006-10-04  Bruno Haible  <bruno@clisp.org>
68086
68087         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
68088         (gl_oset_search_atleast): New declaration.
68089         (struct gl_oset_implementation): Add field 'search_atleast'.
68090         (gl_oset_search_atleast): New inline function.
68091         * lib/gl_oset.c (gl_oset_search_atleast): New function.
68092         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
68093         (gl_array_oset_implementation): Update.
68094         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
68095         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
68096         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
68097
68098 2006-10-04  Bruno Haible  <bruno@clisp.org>
68099
68100         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
68101
68102 2006-10-03  Bruno Haible  <bruno@clisp.org>
68103
68104         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
68105         from gl_avltreehash_list_implementation.
68106
68107 2006-10-03  Bruno Haible  <bruno@clisp.org>
68108
68109         * lib/gl_oset.c (gl_oset_add): Fix return type.
68110
68111 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
68112
68113         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
68114
68115 2006-10-02  Eric Blake  <ebb9@byu.net>
68116
68117         * modules/strnlen (Depends-on): Add extensions.
68118
68119 2006-10-02  Eric Blake  <ebb9@byu.net>
68120
68121         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
68122         definition in 2.60+.
68123
68124 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
68125
68126         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
68127         checks.
68128
68129 2006-10-02  Bruno Haible  <bruno@clisp.org>
68130
68131         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
68132         to the AUTOMAKE_OPTIONS.
68133         Reported by Jim Meyering.
68134
68135 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
68136
68137         Work around bug in Solaris 10 /proc file system:
68138         /proc/self/fd/NNN/.. isn't the parent directory of
68139         the directory whose file descriptor is NNN.  This needs to
68140         be worked around at run time, not compile time, since a
68141         program might be built on Solaris 8, where things work, and
68142         run on Solaris 10.
68143         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
68144         to use the following interface instead:
68145         (OPENAT_BUFFER_SIZE): New macro.
68146         (openat_proc_name): New function.
68147         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
68148         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
68149         Likewise.
68150         * lib/openat-proc.c: New file.
68151         * modules/openat (Files): Add lib/openat-proc.c.
68152         (Depends-on): Add same-inode, stdbool.
68153         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
68154
68155 2006-09-29  Bruno Haible  <bruno@clisp.org>
68156
68157         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
68158         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
68159         argument. Set stdout_closed before testing for ferror, not after.
68160         (fwriteerror, fwriteerror_no_ebadf): New functions.
68161
68162 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68163
68164         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
68165
68166 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
68167
68168         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
68169         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
68170
68171 2006-09-28  Jim Meyering  <jim@meyering.net>
68172
68173         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
68174         Include <unistd.h>.
68175
68176 2006-09-28  Bruno Haible  <bruno@clisp.org>
68177
68178         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
68179         * modules/linkedhash-list (Depends-on): Likewise.
68180         * modules/rbtreehash-list (Depends-on): Likewise.
68181
68182 2006-09-28  Bruno Haible  <bruno@clisp.org>
68183
68184         * lib/strndup.h: Simplify the redefinition of strndup.
68185         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
68186         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
68187
68188 2006-09-28  Bruno Haible  <bruno@clisp.org>
68189
68190         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
68191         * lib/gl_linkedhash_list.c: Likewise.
68192         * lib/gl_rbtreehash_list.c: Likewise.
68193
68194 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
68195
68196         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
68197         getaddrinfo.
68198
68199         * lib/__fpending.h: Don't include <stdio_ext.h> unless
68200         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
68201         it causes <stdio_ext.h> to cause a compile-time error.
68202         Problem reported by Nelson H. F. Beebe.
68203         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
68204         of HAVE_DECL___PENDING.
68205
68206         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
68207         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
68208         declaration.
68209
68210 2006-09-27  Jim Meyering  <jim@meyering.net>
68211
68212         This file could end up with a definition for a function
68213         named __strndup, rather than rpl_strndup on a system with
68214         incomplete weak_alias support.
68215         * lib/strndup.c (strndup): Rename from __strndup.
68216         Remove #defines that used to map __strndup to strndup.
68217         Don't use K&R prototypes.
68218         Remove LIBC-related code, since this file is not sync'd with glibc.
68219         * lib/strndup.h: Revamp, accordingly.
68220         * m4/strndup.m4: Modernize.
68221
68222 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
68223
68224         * modules/savewd (Depends-on): Add 'raise'.
68225         * lib/savewd.c: Include <signal.h>, for 'raise'.
68226
68227 2006-09-26  Jim Meyering  <jim@meyering.net>
68228
68229         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
68230         when we detect Darwin 8.7.0's acl_get_file bug.
68231         Rearrange to perform the new (below) run-test while $LIBS
68232         contains any acl-related library.  Set USE_ACL at the end.
68233         (gl_ACL_GET_FILE): New function.
68234
68235 2006-09-26  Eric Blake  <ebb9@byu.net>
68236
68237         * lib/verror.c: Include <config.h> unconditionally.
68238
68239 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
68240
68241         * modules/clock-time (Maintainer): Add self.
68242         * modules/getlogin_r (Depends-on): Add extensions.
68243
68244 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68245
68246         * modules/clock-time: New module.
68247         * modules/nanosleep (Depends-on): Add clock-time.
68248         * modules/gethrxtime (Depends-on): Likewise.
68249         * modules/gettime (Depends-on): Likewise.
68250         * modules/settime (Depends-on): Likewise.
68251
68252         * modules/fts-lgpl: Depend on openat.
68253         * modules/mkancesdirs: Depend on savewd.
68254         * modules/mkdir-p: Likewise.
68255
68256 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68257
68258         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
68259
68260         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
68261         `gl_have_arbitrary_file_name_length_limit' to
68262         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
68263         actually works between configure runs.
68264
68265 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68266             Bruno Haible  <bruno@clisp.org>
68267
68268         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
68269
68270 2006-09-25  Jim Meyering  <jim@meyering.net>
68271
68272         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
68273         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
68274
68275 2006-09-25  Eric Blake  <ebb9@byu.net>
68276
68277         * gnulib-tool (func_import, func_create_testdir): Fix typos in
68278         exec's in 2006-09-18 patch when shuffling fds.
68279
68280 2006-09-25  Bruno Haible  <bruno@clisp.org>
68281
68282         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
68283         Reported by Jim Meyering.
68284
68285 2006-09-24  Jim Meyering  <jim@meyering.net>
68286
68287         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
68288         compare a pointer against a literal "0".  That caused failures with
68289         at least HP-UX's hpcc.
68290
68291 2006-09-22  Simon Josefsson  <jas@extundo.com>
68292
68293         * modules/gc-sha1:
68294         * modules/gc-md4:
68295         * modules/gc-hmac-sha1:
68296         * modules/gc-hmac-md5:
68297         * modules/gc-des:
68298         * modules/gc-arcfour: Distribute more files.
68299
68300 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68301
68302         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
68303         (gl_linked_iterator_from_to): Initialize struct completely.
68304         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
68305         (gl_tree_iterator_from_to): Likewise
68306         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
68307         * lib/gl_array_list.c [lint] (gl_array_iterator)
68308         (gl_array_iterator_from_to): Likewise.
68309         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
68310         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
68311         (gl_carray_iterator_from_to): Likewise.
68312
68313         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
68314         * lib/md4.c (md4_process_block): Remove unused variable.
68315         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
68316         parentheses for clarity.
68317
68318 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68319
68320         * modules/bison-i18n (Depends-on): Add gettext.
68321
68322 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68323
68324         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
68325         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
68326         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
68327         also add missing comma that caused broken test.
68328         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
68329         stdlib.h, for `abort'.
68330         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
68331         variables.
68332         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
68333         include unistd.h if present, for `rmdir'.
68334         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
68335         variables.
68336         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
68337         in the process include standard headers for prototypes.
68338         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
68339         gets declared on GNU/Linux.
68340         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
68341         unistd.h, for `rmdir'.
68342         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
68343
68344         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
68345         always true.
68346         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
68347
68348         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
68349
68350 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68351
68352         * gnulib-tool (func_version): Create output all at once.  This
68353         may help avoid triggering unnecessary SIGPIPEs, and at any
68354         rate it doesn't hurt.
68355
68356 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68357             Bruno Haible  <bruno@clisp.org>
68358
68359         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
68360         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
68361         * m4/signed.m4 (bh_C_SIGNED): Likewise.
68362
68363         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
68364         (gl_FUNC_VASPRINTF): Invoke it.
68365
68366 2006-09-22  Bruno Haible  <bruno@clisp.org>
68367
68368         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
68369         getloadavg.c as first argument.
68370
68371 2006-09-22  Bruno Haible  <bruno@clisp.org>
68372
68373         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
68374         at the beginning of the gl_INIT macro.
68375         * modules/getloadavg (configure.ac): Pass $gl_source_base to
68376         gl_GETLOADAVG.
68377
68378 2006-09-22  Bruno Haible  <bruno@clisp.org>
68379
68380         * gnulib-tool (func_create_megatestdir): Don't include the config-h
68381         module.
68382         Suggested by Ralf Wildenhues.
68383
68384 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
68385
68386         Import this patch from libc:
68387
68388         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
68389
68390         * lib/regex_internal.c (re_string_reconstruct): Handle
68391         offset < pstr->valid_raw_len && pstr->offsets_needed case.
68392         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
68393         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
68394         re_string_context_at.
68395
68396         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
68397         now requires it.
68398         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
68399         gl_REGEX now does it for us.
68400         (gl_REGEX): Add test taken from
68401         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
68402
68403         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
68404         Check that large offsets work.  Modernize Autoconf usages.
68405         Prefer "yes" to mean a good thing rather than a bad.
68406         Don't put "#define mkstemp" in config.h, as this might interfere
68407         with standard system headers that "#define mkstemp mkstemp64".
68408
68409         * modules/mkstemp (Depends-on): Add extensions, so that
68410         mkstemp is visible on some platforms.
68411         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
68412         (Include): Change to "mkstemp.h" from <stdlib.h>.
68413         (Files): Add mkstemp.h.
68414
68415         * lib/mkstemp.h: New file, since some standard headers
68416         #define mkstemp.
68417         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
68418         Include "mkstemp.h".
68419         Make the _LIBC code resemble glibc original more,
68420         e.g., use K&R style.
68421         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
68422         (mkstemp): Remove, since mkstemp.h does this for us.
68423         * lib/stdlib--.h: Include mkstemp.h.
68424
68425         Import this patch from libc:
68426
68427         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
68428
68429         * lib/tempname.c (__gen_tempname): Change attempts_min
68430         into a macro.  Use preprocessor to decide how to initialize
68431         attempts [Coverity CID 67].
68432
68433 2006-09-20  Bruno Haible  <bruno@clisp.org>
68434
68435         * lib/mkdtemp.c: Import from libc.
68436         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
68437                 * sysdeps/posix/tempname.c (__gen_tempname): Change
68438                 attempts_min into a macro.  Use preprocessor to decide how to
68439                 initialize attempts [Coverity CID 67].
68440         2001-11-27  Paul Eggert  <eggert@twinsun.com>
68441                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
68442                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
68443
68444 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68445
68446         * gnulib-tool (func_exit): New function, to allow to pass the
68447         exit status portably through the trap.  Use everywhere.
68448         (--help, --version): Signal a write error.
68449         (trap): catch SIGPIPE, for write errors.
68450         Exit at the end of the trap, with the correct exit status.
68451
68452 2006-09-19  Karl Berry  <karl@gnu.org>
68453
68454         * doc/gnulib.texi: note about the license texinfo files.
68455
68456 2006-09-19  Eric Blake  <ebb9@byu.net>
68457
68458         * gnulib-tool: Avoid space-tab.
68459
68460 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
68461
68462         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
68463         that prevented coreutils 6.1 from building.  Problem reported
68464         by Petter Reinholdtsen.
68465
68466 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
68467
68468         * gnulib-tool (avoidlist): Fix typo that broke options like
68469         --avoid=lock that are used by coreutils bootstrap.
68470
68471 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
68472
68473         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
68474         more systematically.
68475
68476 2006-09-18  Jim Meyering  <jim@meyering.net>
68477
68478         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
68479
68480 2006-09-18  Bruno Haible  <bruno@clisp.org>
68481
68482         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
68483
68484 2006-09-18  Bruno Haible  <bruno@clisp.org>
68485
68486         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
68487         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
68488         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
68489         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
68490         * m4/gettext.m4: Require autoconf >= 2.52.
68491         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
68492         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
68493         of gl_cv_header_inttypes_h.
68494
68495 2006-09-18  Bruno Haible  <bruno@clisp.org>
68496
68497         * lib/javaversion.c: Include configmake.h.
68498
68499 2006-09-18  Bruno Haible  <bruno@clisp.org>
68500
68501         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
68502         avoid that the while loops be executed in a subshell.
68503
68504 2006-09-18  Bruno Haible  <bruno@clisp.org>
68505
68506         * MODULES.html.sh (func_module): Break long lines.
68507         Suggested by Bruce Korb <bkorb@gnu.org>.
68508
68509 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68510
68511         Speed up by a factor of 1.12.
68512         * gnulib-tool (nl): New variable.
68513         (func_import): Rewrite include directive extraction to only read each
68514         directive once.
68515
68516 2006-09-17  Bruno Haible  <bruno@clisp.org>
68517
68518         * modules/javaversion (Makefile.am): Remove DEFS setting.
68519         (Depends-on): Add configmake, for PKGDATADIR definition.
68520
68521 2006-09-17  Bruno Haible  <bruno@clisp.org>
68522
68523         * gnulib-tool (func_create_testdir): Rewrite all files at once.
68524
68525 2006-09-17  Bruno Haible  <bruno@clisp.org>
68526
68527         * gnulib-tool (func_append): New function, stolen from libtool.m4.
68528         (func_modules_transitive_closure, func_modules_add_dummy,
68529         func_modules_to_filelist, func_import, func_create_testdir,
68530         func_create_megatestdir, ...): Use it wherever possible.
68531         Suggested by Ralf Wildenhues.
68532
68533 2006-09-16  Karl Berry  <karl@gnu.org>
68534
68535         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
68536         to avoid sectioning errors.
68537         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
68538         [ifinfo]: blank line after @center-ed titles.
68539         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
68540         Spell FSF address consistently with others.
68541         (These changes approved by rms.)
68542
68543 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68544
68545         Speed up by a factor of 1.61.
68546         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
68547         already checked module names again.
68548
68549 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68550
68551         Speed up by a factor of 1.13.
68552         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
68553         for new_files, and the input to func_add_or_update.
68554
68555 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68556
68557         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
68558         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
68559
68560 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68561
68562         * modules/mkancesdirs (Depends-on): Add fcntl.
68563         * modules/savewd: New file.
68564         * MODULES.html.sh (File system functions): Add savewd.
68565
68566         * modules/configmake (Makefile.am): Add support for the
68567         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
68568
68569 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68570
68571         * m4/savewd.m4: New file.
68572
68573 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68574
68575         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
68576         (dirchownmod): New arg FD.  All callers changed.
68577         Use FD rather than opening the directory ourself, as opening is
68578         now the caller's responsibility.
68579         * lib/dirchownmod.h: Likewise.
68580         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
68581         hosts that require <sys/types.h> before <sys/stat.h>.  Include
68582         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
68583         (test_dir): Remove.
68584         (mkancesdirs): Return length of prefix of FILE that has already
68585         been made, or -2 if there is a child doing the work.  Redo
68586         algorithm so that it is O(N) rather than O(N**2).  Optimize away
68587         ".", and treat ".." specially since it might stray back into
68588         already-created areas.  Use a subprocess if necessary.  New arg
68589         WD; all users changed.  MAKE_DIR function should now return 1
68590         if it creates a directory that is not readable.  Return -2 if
68591         a child process is spun off.
68592         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
68593         Adjust signature to match code.
68594         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
68595         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
68596         all users changed.
68597         * lib/savewd.c, lib/savewd.h: New files.
68598
68599 2006-09-15  Jim Meyering  <jim@meyering.net>
68600
68601         * modules/rename-dest-slash: New module.
68602         * MODULES.html.sh (posix_compat): Add it here.
68603
68604         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
68605
68606 2006-09-15  Jim Meyering  <jim@meyering.net>
68607
68608         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
68609         file.
68610
68611         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
68612
68613 2006-09-15  Jim Meyering  <jim@meyering.net>
68614
68615         * lib/rename-dest-slash.c (has_trailing_slash): Use
68616         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
68617         (rpl_rename_dest_slash): Perform the cheaper trailing slash
68618         test before testing whether SRC is a directory.
68619         Suggestions from Bruno Haible.
68620
68621         Avoid a warning about an unused variable.
68622         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
68623         into the #ifdef block where it's used.
68624
68625         * lib/rename-dest-slash.c: New file.
68626
68627 2006-09-14  Bruno Haible  <bruno@clisp.org>
68628
68629         * lib/allocsa.c: Include <config.h> unconditionally.
68630         * lib/asnprintf.c: Likewise.
68631         * lib/asprintf.c: Likewise.
68632         * lib/c-strcasecmp.c: Likewise.
68633         * lib/c-strcasestr.c: Likewise.
68634         * lib/c-strncasecmp.c: Likewise.
68635         * lib/c-strstr.c: Likewise.
68636         * lib/classpath.c: Likewise.
68637         * lib/clean-temp.c: Likewise.
68638         * lib/concatpath.c: Likewise.
68639         * lib/copy-file.c: Likewise.
68640         * lib/csharpcomp.c: Likewise.
68641         * lib/csharpexec.c: Likewise.
68642         * lib/execute.c: Likewise.
68643         * lib/fatal-signal.c: Likewise.
68644         * lib/findprog.c: Likewise.
68645         * lib/fwriteerror.c: Likewise.
68646         * lib/gl_array_list.c: Likewise.
68647         * lib/gl_array_oset.c: Likewise.
68648         * lib/gl_avltree_list.c: Likewise.
68649         * lib/gl_avltree_oset.c: Likewise.
68650         * lib/gl_avltreehash_list.c: Likewise.
68651         * lib/gl_carray_list.c: Likewise.
68652         * lib/gl_linked_list.c: Likewise.
68653         * lib/gl_linkedhash_list.c: Likewise.
68654         * lib/gl_list.c: Likewise.
68655         * lib/gl_oset.c: Likewise.
68656         * lib/gl_rbtree_list.c: Likewise.
68657         * lib/gl_rbtree_oset.c: Likewise.
68658         * lib/gl_rbtreehash_list.c: Likewise.
68659         * lib/imaxabs.c: Likewise.
68660         * lib/imaxdiv.c: Likewise.
68661         * lib/javacomp.c: Likewise.
68662         * lib/javaexec.c: Likewise.
68663         * lib/javaversion.c: Likewise.
68664         * lib/linebreak.c: Likewise.
68665         * lib/localcharset.c: Likewise.
68666         * lib/lock.c: Likewise.
68667         * lib/mbchar.c: Likewise.
68668         * lib/mbswidth.c: Likewise.
68669         * lib/mkdtemp.c: Likewise.
68670         * lib/pipe.c: Likewise.
68671         * lib/printf-args.c: Likewise.
68672         * lib/printf-parse.c: Likewise.
68673         * lib/progname.c: Likewise.
68674         * lib/progreloc.c: Likewise.
68675         * lib/readlink.c: Likewise.
68676         * lib/sh-quote.c: Likewise.
68677         * lib/stpcpy.c: Likewise.
68678         * lib/stpncpy.c: Likewise.
68679         * lib/strcasecmp.c: Likewise.
68680         * lib/strcasestr.c: Likewise.
68681         * lib/strcspn.c: Likewise.
68682         * lib/striconv.c: Likewise.
68683         * lib/strncasecmp.c: Likewise.
68684         * lib/strnlen1.c: Likewise.
68685         * lib/strstr.c: Likewise.
68686         * lib/strtok_r.c: Likewise.
68687         * lib/tls.c: Likewise.
68688         * lib/tmpdir.c: Likewise.
68689         * lib/unicodeio.c: Likewise.
68690         * lib/unsetenv.c: Likewise.
68691         * lib/vasnprintf.c: Likewise.
68692         * lib/vasprintf.c: Likewise.
68693         * lib/wait-process.c: Likewise.
68694         * lib/xallocsa.c: Likewise.
68695         * lib/xsetenv.c: Likewise.
68696         * lib/xstriconv.c: Likewise.
68697
68698 2006-09-13  Simon Josefsson  <jas@extundo.com>
68699
68700         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
68701         that internally, suggested by Ralf Wildenhues
68702         <Ralf.Wildenhues@gmx.de>.
68703
68704 2006-09-13  Simon Josefsson  <jas@extundo.com>
68705
68706         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
68707         @LIBOBJS@.
68708         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68709
68710 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
68711
68712         * lib/_fpending.c: Include <config.h> unconditionally, since we no
68713         longer worry about uses that don't define HAVE_CONFIG_H.
68714         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
68715         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
68716         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
68717         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
68718         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
68719         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
68720         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
68721         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
68722         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
68723         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
68724         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
68725         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
68726         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
68727         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
68728         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
68729         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
68730         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
68731         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
68732         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
68733         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
68734         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
68735         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
68736         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
68737         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
68738         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
68739         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
68740         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
68741         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
68742         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
68743         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
68744         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
68745         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
68746         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
68747         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
68748         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
68749         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
68750         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
68751         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
68752         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
68753         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
68754         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
68755         Likewise.
68756
68757 2006-09-13  Eric Blake  <ebb9@byu.net>
68758
68759         * lib/getopt.c: Fix typo in last commit.
68760
68761 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
68762
68763         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
68764         dgettext.
68765
68766 2006-09-12  Jim Meyering  <jim@meyering.net>
68767
68768         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
68769         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
68770         Reported by Nelson H. F. Beebe.
68771
68772 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68773
68774         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
68775         program_invocation_name and program_invocation_short_name are
68776         initialized.
68777         * lib/argp-namefrob.h: Move declarations of program_invocation_name
68778         and program_invocation_short_name to argp.h, so they are visible
68779         to user programs.
68780         * lib/argp.h: Likewise
68781
68782 2006-09-10  Bruno Haible  <bruno@clisp.org>
68783
68784         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
68785         m4/inttypes_h.m4, m4/uintmax_t.m4.
68786
68787 2006-09-10  Bruno Haible  <bruno@clisp.org>
68788
68789         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
68790         gl_AC_TYPE_UINTMAX_T.
68791
68792 2006-09-10  Bruno Haible  <bruno@clisp.org>
68793
68794         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
68795
68796 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68797
68798         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
68799         convention.  Text proposed by Bruno Haible.
68800         (struct argp_option): Document the use of N_() wrappers.
68801
68802         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
68803         '\v', and translate the two parts separately, instead of feeding
68804         the whole string to gettext.  This allows to exclude
68805         '\v' from the strings visible to the translator by writing doc
68806         strings as N_("..") "\v" N_("..").
68807
68808 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
68809
68810         * config/srclist.txt: Undo latest change; the bug was fixed.
68811
68812 2006-09-09  Bruno Haible  <bruno@clisp.org>
68813
68814         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
68815         assignments if building a library without libtool.
68816         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
68817         in func_emit_lib_Makefile_am.
68818         (func_import): When building a static library libfoo.a, arrange to
68819         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
68820         (func_create_testdir): Likewise.
68821         * modules/gc (configure.ac, Makefile.am): If building statically,
68822         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
68823         * modules/iconvme (configure.ac, Makefile.am): Likewise.
68824         * modules/striconv (configure.ac, Makefile.am): Likewise.
68825         Based on a suggestion by Ralf Wildenhues.
68826
68827 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68828
68829         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
68830         Check for unistd.h too, since Autoconf doesn't assume POSIX.
68831         Also:
68832
68833         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68834         Add year_2050_test to catch glibc bug 2821
68835         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68836
68837         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68838         Prefer #ifdef to #if.
68839
68840         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
68841         Return from 'main' instead of calling 'exit'.
68842
68843 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68844
68845         * lib/mktime.c (guess_time_tm): Fix bug where mktime
68846         returned the maximum time_t value rather than (time_t) -1.
68847         Problem originally reported by William Bardwell
68848         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68849
68850         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68851         Moved to here ...
68852         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68853         ... from here.
68854
68855 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68856
68857         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
68858         2821 is fixed.
68859
68860 2006-09-08  Jim Meyering  <jim@meyering.net>
68861
68862         Don't make generated files read-only.  That would bother too many
68863         people.  However, do retain the ability to work when targets are
68864         read-only: remove the destination and temporary files before writing
68865         them (when generated via sed or echo), or by using the -f option for
68866         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
68867         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68868         * modules/byteswap, modules/configmake, modules/fcntl:
68869         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68870         * modules/localcharset, modules/netinet_in, modules/poll:
68871         * modules/stdbool, modules/stdint, modules/sys_select:
68872         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68873
68874 2006-09-08  Jim Meyering  <jim@meyering.net>
68875
68876         Avoid new build failure on FreeBSD 6.0.
68877         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
68878         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
68879         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
68880
68881 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68882
68883         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
68884
68885 2006-09-07  Jim Meyering  <jim@meyering.net>
68886
68887         Fix global typo in last change: use chmod u-w, not chmod u-x.
68888         Spotted by Paul Eggert and Bruce Korb.
68889         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68890         * modules/byteswap, modules/configmake, modules/fcntl:
68891         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68892         * modules/localcharset, modules/netinet_in, modules/poll:
68893         * modules/stdbool, modules/stdint, modules/sys_select:
68894         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68895
68896 2006-09-06  Jim Meyering  <jim@meyering.net>
68897
68898         Make generated files be read-only.
68899         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
68900         Ensure that each generated file is now read-only.
68901         * modules/argz: Likewise.
68902         * modules/arpa_inet: Likewise.
68903         * modules/byteswap: Likewise.
68904         * modules/configmake: Likewise.
68905         * modules/fcntl: Likewise.
68906         * modules/fnmatch: Likewise.
68907         * modules/getopt: Likewise.
68908         * modules/glob: Likewise.
68909         * modules/inttypes: Likewise.
68910         * modules/netinet_in: Likewise.
68911         * modules/poll: Likewise.
68912         * modules/stdbool: Likewise.
68913         * modules/stdint: Likewise.
68914         * modules/sys_select: Likewise.
68915         * modules/sys_socket: Likewise.
68916         * modules/sys_stat: Likewise.
68917         * modules/sysexits: Likewise.
68918         * modules/localcharset: Same as above, but continue using temporary
68919         file named "t-$@" (why different?) rather than the "$@-t" used
68920         everywhere else.
68921
68922         * modules/sysexits (Makefile.am): Replace literal occurrences
68923         of "sysexit.h" more readable, and more consistent, "$@".
68924
68925 2006-09-06  Bruno Haible  <bruno@clisp.org>
68926
68927         * modules/striconv: New file.
68928         * modules/xstriconv: New file.
68929         * MODULES.html.sh (Internationalization functions): Add striconv,
68930         xstriconv.
68931
68932 2006-09-06  Bruno Haible  <bruno@clisp.org>
68933
68934         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
68935         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
68936         not using libtool correctly.
68937
68938 2006-09-06  Bruno Haible  <bruno@clisp.org>
68939
68940         * lib/striconv.h: New file.
68941         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
68942         iconvstring.c.
68943         * lib/xstriconv.h: New file.
68944         * lib/xstriconv.c: New file.
68945
68946 2006-09-06  Bruno Haible  <bruno@clisp.org>
68947
68948         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
68949         lib_..._LDFLAGS.
68950
68951 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68952
68953         * lib/argz_.h: Sync from Libtool.
68954
68955         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
68956                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
68957
68958         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
68959
68960 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68961
68962         * modules/trim: New file.
68963
68964 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68965
68966         * lib/trim.h: New file.
68967         * lib/trim.c: New file.
68968
68969 2006-09-05  Bruno Haible  <bruno@clisp.org>
68970
68971         * MODULES.html.sh (String handling): Add trim.
68972
68973 2006-09-04  Karl Berry  <karl@gnu.org>
68974
68975         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
68976         until next release.
68977
68978 2006-09-03  Bruno Haible  <bruno@clisp.org>
68979
68980         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
68981         correctly.
68982
68983 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68984
68985         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
68986         not gl_GETLOADAVG.  Omit unneeded semicolons.
68987         Problems reported by Ralf Wildenhues in
68988         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68989         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
68990         at the end, which is the usual gnulib style.
68991
68992         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
68993         of doing all the work ourselves.
68994         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
68995         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
68996
68997 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68998
68999         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
69000         Problem reported by Ralf Wildenhues in
69001         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
69002
69003         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
69004         HAVE_STRUCT_STATFS_F_FSTYPENAME.
69005
69006 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69007
69008         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
69009         yesterday's patch by changing test -n to test -z.
69010
69011 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69012
69013         * modules/getloadavg (Files): Add m4/getloadavg.m4.
69014         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
69015         the former is now obsolescent.
69016
69017         * modules/chdir-long (Depends-on): Add fcntl.
69018
69019 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69020
69021         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
69022         obsolescent, and programs should use gnulib instead.
69023         * m4/getloadavg.m4: New file, with contents taken from Autoconf
69024         but with prefixes changed.
69025
69026 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69027
69028         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
69029         or stdbool.h, because they might not exist while configuring.
69030
69031         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
69032         Don't include unistd.h or limits.h; not needed, since chdir-long.h
69033         does that for us.
69034         (O_DIRECTORY): Remove.
69035
69036 2006-08-31  Eric Blake  <ebb9@byu.net>
69037
69038         * gnulib-tool: Don't let emacs change spaces to TAB.
69039
69040 2006-08-31  Bruno Haible  <bruno@clisp.org>
69041
69042         * gnulib-tool: When calling func_import more than once, do it in a
69043         subshell.
69044         Reported by Eric Blake <ebb9@byu.net>.
69045
69046 2006-08-31  Bruno Haible  <bruno@clisp.org>
69047
69048         * gnulib-tool (nl): Remove variable.
69049         (sed_transform_lib_file): Use more robust test for config-h module.
69050         (func_import): Fix typo in 2006-08-25 patch.
69051
69052 2006-08-31  Bruno Haible  <bruno@clisp.org>
69053
69054         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
69055         specified, augment Makefile.am variables instead of assigning them.
69056
69057 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69058
69059         Work around a bug in both the Linux and SunOS 64-bit kernels:
69060         nanosleep mishandles sleeps for longer than 2**31 seconds.
69061         Problem reported by Frank v Waveren in
69062         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
69063         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
69064         Check for nanosleep bug.
69065         (LIB_NANOSLEEP): Append clock_gettime library if needed.
69066
69067 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69068
69069         Work around a bug in both the Linux and SunOS 64-bit kernels:
69070         nanosleep mishandles sleeps for longer than 2**31 seconds.
69071         Problem reported by Frank v Waveren in
69072         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
69073         * lib/nanosleep.c (BILLION): New constant.
69074         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
69075         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
69076         implementation.
69077
69078 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69079
69080         * modules/nanosleep (Depends-on): Add gettime.
69081
69082 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69083         and Simon Josefsson  <jas@extundo.com>
69084         and Oskar Liljeblad  <oskar@osk.mine.nu>
69085
69086         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
69087         * gnulib-tool (func_import): New license type 'unmodifiable license
69088         text'.
69089         * modules/fdl: Use it.  Longer description.
69090         * module/gpl, module/lgpl: New files.
69091
69092 2006-08-30  Jim Meyering  <jim@meyering.net>
69093
69094         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
69095         shadowing the parameter.
69096
69097 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69098
69099         Sync from Libtool:
69100
69101         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69102
69103         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
69104         sharing with gnulib.  Report by Eric Blake.
69105
69106 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69107
69108         * modules/isapipe: New file.
69109         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
69110
69111 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69112
69113         * modules/configmake (Makefile.am): Add a comment, and omit
69114         the CONFIGMAKE_ prefix from generated macro names.  Suggested
69115         by Bruno Haible.
69116
69117 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69118
69119         * m4/isapipe.m4: New file.
69120
69121 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69122
69123         * lib/isapipe.c, lib/isapipe.h: New files.
69124
69125 2006-08-29  Jim Meyering  <jim@meyering.net>
69126
69127         * modules/configmake (Makefile.am): Make configmake.h depend on
69128         Makefile.  Otherwise, a stale configmake.h could hang around.
69129
69130 2006-08-29  Eric Blake  <ebb9@byu.net>
69131
69132         * lib/error.c (error_at_line, print_errno_message): Match libc, after
69133         resolution of upstream bug 3044.
69134
69135 2006-08-29  Bruno Haible  <bruno@clisp.org>
69136
69137         * modules/localcharset (Depends-on): Add configmake.
69138         (Makefile.am): Remove setting of LIBDIR through DEFS.
69139
69140 2006-08-29  Bruno Haible  <bruno@clisp.org>
69141
69142         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
69143         defined.
69144
69145 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69146
69147         * modules/fcntl: New file.
69148         * modules/chdir-safer (Depends-on): Add fcntl.
69149         * modules/fts: Likewise.
69150         * modules/mkdir-p: Likewise.
69151
69152         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
69153         This undoes the most recent change, since we're now addressing the
69154         problem in a different way.
69155
69156         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
69157         into output, since the output might be called Makefile.am even
69158         if $makefile_name is something different.
69159         (func_import): Use $makefile_am rather than
69160         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
69161         empty.
69162
69163         * modules/inttypes (Files): Add m4/inttypes-h.m4.
69164
69165 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69166
69167         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
69168         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
69169         recent change to stdint.m4, since we're now addressing the problem in a
69170         different way.
69171
69172 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69173
69174         * m4/fcntl_h.m4: New file.
69175
69176 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69177
69178         * lib/fcntl_.h: New file.
69179         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
69180         the fcntl module.
69181         * lib/dirchownmod.c: Likewise.
69182         * lib/fts.c: Likewise.
69183
69184         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
69185         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
69186         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
69187         just before including <inttypes.h>, to avoid circular inclusion.
69188
69189 2006-08-28  Jim Meyering  <jim@meyering.net>
69190
69191         * doc/visibility.texi: Actually read and correct the grammar of the
69192         sentence affected by yesterday's change.
69193
69194 2006-08-28  Eric Blake  <ebb9@byu.net>
69195
69196         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
69197         needs wrapper.
69198
69199 2006-08-28  Eric Blake  <ebb9@byu.net>
69200
69201         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
69202
69203 2006-08-28  Eric Blake  <ebb9@byu.net>
69204
69205         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
69206
69207 2006-08-28  Bruno Haible  <bruno@clisp.org>
69208
69209         * modules/c-strstr: New file, from GNU gettext.
69210         * MODULES.html.sh (String handling): Add c-strstr.
69211
69212 2006-08-28  Bruno Haible  <bruno@clisp.org>
69213
69214         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
69215         macros.
69216         Reported by Eric Blake.
69217
69218 2006-08-28  Bruno Haible  <bruno@clisp.org>
69219
69220         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
69221         (VASNPRINTF): Return a string of length > INT_MAX without failing.
69222         * lib/vasprintf.c: Include errno.h, limits.h.
69223         (EOVERFLOW): New fallback definition.
69224         (vasprintf): Test here whether the string length is > INT_MAX.
69225         * lib/vsnprintf.c: Include errno.h, limits.h.
69226         (EOVERFLOW): New fallback definition.
69227         (vsnprintf): Fix bug when generated string was too long for the buffer.
69228         Test here whether the string length is > INT_MAX.
69229
69230 2006-08-28  Bruno Haible  <bruno@clisp.org>
69231
69232         * lib/inttypes_.h (SCNX*): Remove definitions.
69233         Reported by Eric Blake.
69234
69235 2006-08-28  Bruno Haible  <bruno@clisp.org>
69236
69237         * lib/c-strstr.h: New file, from GNU gettext.
69238         * lib/c-strstr.c: New file, from GNU gettext.
69239
69240 2006-08-28  Bruno Haible  <bruno@clisp.org>
69241
69242         * gnulib-tool: Reorder some statements.
69243
69244 2006-08-28  Bruno Haible  <bruno@clisp.org>
69245
69246         * gnulib-tool: New option --makefile-name.
69247         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
69248         $makefile_name.
69249         (func_import): Write $makefile_name to the cache file, and read it from
69250         there unless explicitly specified. Use $makefile_name as file name
69251         instead of Makefile.am. Adjust the recommendations accordingly.
69252
69253 2006-08-28  Bruno Haible  <bruno@clisp.org>
69254
69255         * gnulib-tool (func_verify_module): Check against misapplying patch.
69256
69257 2006-08-28  Bruno Haible  <bruno@clisp.org>
69258
69259         * gnulib-tool (func_relativize, func_relconcat): New functions.
69260         Give an error if --local-dir is given with --update.
69261         Remove trailing slashes from $local_gnulib_dir.
69262         (func_import): Store the relativized $local_gnulib_dir in
69263         gnulib-cache.m4, and read it from there if not specified explicitly.
69264
69265 2006-08-28  Bruno Haible  <bruno@clisp.org>
69266
69267         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
69268         is the current directory. Respect also $local_gnulib_dir.
69269
69270 2006-08-28  Bruno Haible  <bruno@clisp.org>
69271             Simon Josefsson  <jas@extundo.com>
69272
69273         BeOS portability.
69274         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
69275
69276 2006-08-27  Jim Meyering  <jim@meyering.net>
69277
69278         * doc/visibility.texi: Remove duplicate word: "pointer".
69279
69280 2006-08-26  Bruno Haible  <bruno@clisp.org>
69281
69282         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
69283         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
69284         (Makefile.am): Create inttypes.h from inttypes_.h.
69285         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
69286
69287         * modules/imaxabs: New file.
69288
69289         * modules/imaxdiv: New file.
69290
69291 2006-08-26  Bruno Haible  <bruno@clisp.org>
69292
69293         * m4/inttypes.m4: New file.
69294         * m4/_inttypes_h.m4: Remove file.
69295         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
69296         PRI_MACROS_BROKEN.
69297         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
69298
69299         * m4/imaxabs.m4: New file.
69300
69301         * m4/imaxdiv.m4: New file.
69302
69303 2006-08-26  Bruno Haible  <bruno@clisp.org>
69304
69305         * lib/inttypes_.h: New file.
69306         * lib/inttypes.h: Remove file.
69307         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
69308
69309         * lib/imaxabs.c: New file.
69310
69311         * lib/imaxdiv.c: New file.
69312
69313 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69314
69315         New config-h module, so that "make" output needn't be cluttered
69316         by -DHAVE_CONFIG_H.
69317         * MODULES.html.sh (Support for building libraries and executables):
69318         Add config-h.
69319         * modules/config-h: New file.
69320         * gnulib-tool (nl, sed_transform_lib_file): New vars.
69321         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
69322         the config-h module is used.
69323
69324         New configmake module, so that "make" output needn't be cluttered
69325         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
69326         * MODULES.html.sh (Support for building libraries and executables):
69327         Add configmake.
69328         * modules/configmake: New file.
69329
69330 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69331
69332         * m4/config-h.m4: New file.
69333
69334 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69335
69336         * config/srclist.txt: Add elisp-comp.
69337
69338 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69339
69340         * MODULES.html.sh (Support for building libraries and executables):
69341         Add elisp-comp.
69342         * build-aux/elisp-comp: New file.
69343         * modules/elisp-comp: New file.
69344
69345 2006-08-24  Bruno Haible  <bruno@clisp.org>
69346
69347         * gnulib-tool (func_create_testdir): Use non-default values of
69348         sourcebase and m4base.
69349
69350 2006-08-24  Bruno Haible  <bruno@clisp.org>
69351
69352         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
69353         HTML structure.
69354
69355 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
69356
69357         * modules/openat (Depends-on): Add lchown.
69358
69359 2006-08-23  Bruno Haible  <bruno@clisp.org>
69360
69361         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
69362         of gl_LOCK_EARLY instead of gl_LOCK.
69363
69364 2006-08-23  Bruno Haible  <bruno@clisp.org>
69365
69366         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
69367         on OSF/1 to no.
69368         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
69369
69370 2006-08-23  Bruno Haible  <bruno@clisp.org>
69371
69372         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
69373         as unusable.
69374
69375         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
69376         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
69377         (gl_LOCK): New macro.
69378
69379 2006-08-22  Simon Josefsson  <jas@extundo.com>
69380
69381         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
69382         to md5 module.
69383
69384 2006-08-22  Simon Josefsson  <jas@extundo.com>
69385
69386         * MODULES.html.sh: Add "Support for maintaining and release
69387         projects".
69388
69389         * build-aux/gnupload: New file, from coreutils.
69390
69391 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69392
69393         Avoid the need for AC_LIBSOURCES in m4 macros.
69394         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
69395         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
69396         * modules/check-version (EXTRA_DIST): Add check-version.h.
69397         * modules/crc (EXTRA_DIST): Add crc.h.
69398         * modules/des (EXTRA_DIST): Add des.h.
69399         * modules/gc (EXTRA_DIST): Add gc.h.
69400         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
69401         * modules/getline (EXTRA_DIST): Add getline.h.
69402         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
69403         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
69404         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
69405         * modules/md2 (EXTRA_DIST): Add md2.h.
69406         * modules/md4 (EXTRA_DIST): Add md4.h.
69407         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
69408         * modules/read-file (EXTRA_DIST): Add read-file.h.
69409         * modules/readline (EXTRA_DIST): Add readline.h.
69410         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
69411         rijndael-api-fst.h.
69412
69413 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69414
69415         * m4/rijndael.m4 (gl_ARCFOUR):
69416         * m4/arctwo.m4 (gl_ARCTWO):
69417         * m4/check-version.m4 (gl_CHECK_VERSION):
69418         * m4/crc.m4 (gl_CRC):
69419         * m4/des.m4 (gl_DES):
69420         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
69421         * m4/gc.m4 (gl_GC):
69422         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
69423         * m4/getline.m4 (gl_FUNC_GETLINE):
69424         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
69425         * m4/hmac-md5.m4 (gl_HMAC_MD5):
69426         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
69427         * m4/md2.m4 (gl_MD2):
69428         * m4/md4.m4 (gl_MD4):
69429         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
69430         * m4/read-file.m4 (gl_FUNC_READ_FILE):
69431         * m4/readline.m4 (gl_FUNC_READLINE):
69432         * m4/rijndael.m4 (gl_RIJNDAEL):
69433         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
69434         to get the necessary .h files and whatnot.
69435
69436 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69437
69438         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
69439         gnulib rather than the other way around.
69440         * config/srclistvars.sh (COREUTILS): Remove.
69441
69442 2006-08-22  Jim Meyering  <jim@meyering.net>
69443
69444         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
69445
69446         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
69447
69448 2006-08-22  Eric Blake  <ebb9@byu.net>
69449
69450         * modules/regexprops-generic: New file.
69451         * MODULES.html.sh (Support for building documentation): List it.
69452
69453 2006-08-22  Eric Blake  <ebb9@byu.net>
69454
69455         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
69456         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
69457         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
69458         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
69459
69460 2006-08-22  Bruno Haible  <bruno@clisp.org>
69461
69462         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
69463         and lib_LTLIBRARIES like the other lib_* variables.
69464
69465 2006-08-22  Bruno Haible  <bruno@clisp.org>
69466
69467         * build-aux/x-to-1.in: New file, from GNU gettext.
69468
69469 2006-08-22  Bruno Haible  <bruno@clisp.org>
69470
69471         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
69472         <utmpx.h> exists.
69473
69474 2006-08-22  Bruno Haible  <bruno@clisp.org>
69475
69476         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
69477         <utmpx.h> exists.
69478
69479 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69480
69481         BeOS portability.
69482         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
69483         exist.
69484         Problem reported by Bruno Haible.
69485
69486 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69487
69488         Avoid the need for AC_LIBSOURCES in m4 macros.
69489         * modules/acl (EXTRA_DIST): Add acl.h.
69490         * modules/argmatch (Files): Add m4/argmatch.m4.
69491         (configure.ac): Add gl_ARGMATCH.
69492         (EXTRA_DIST): Renamed from lib_SOURCES, for
69493         consistency with the other modules.  Remove argmatch.c.
69494         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
69495         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
69496         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
69497         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
69498         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
69499         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
69500         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
69501         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
69502         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
69503         * modules/closeout (EXTRA_DIST): Add closeout.h.
69504         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
69505         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
69506         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
69507         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
69508         dirname.h; remove basename.c and stripslash.c.
69509         * modules/exclude (EXTRA_DIST): Add exclude.h.
69510         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
69511         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
69512         * modules/file-type (EXTRA_DIST): Add file-type.h.
69513         * modules/filemode (EXTRA_DIST): Add filemode.h.
69514         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
69515         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
69516         * modules/fpending (EXTRA_DIST): Add __fpending.h.
69517         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
69518         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
69519         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
69520         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
69521         * modules/getdate (EXTRA_DIST): Add getdate.c.
69522         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
69523         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
69524         * modules/getpass (EXTRA_DIST): Add getpass.h.
69525         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
69526         * modules/group-member (EXTRA_DIST): Add group-member.h.
69527         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
69528         * modules/hash (EXTRA_DIST): Add hash.h.
69529         * modules/human (EXTRA_DIST): Add human.h.
69530         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
69531         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
69532         * modules/lchown (EXTRA_DIST): Add lchown.h.
69533         * modules/long-options (EXTRA_DIST): Add long-options.h.
69534         * modules/lstat (EXTRA_DIST): Add lstat.h.
69535         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
69536         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
69537         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
69538         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
69539         * modules/memxor (EXTRA_DIST): Add memxor.h.
69540         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
69541         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
69542         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
69543         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
69544         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
69545         * modules/physmem (EXTRA_DIST): Add physmem.h.
69546         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
69547         * modules/posixver (EXTRA_DIST): Add posixver.h.
69548         * modules/quote (EXTRA_DIST): Add quote.h.
69549         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
69550         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
69551         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
69552         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
69553         regex_internal.h regexec.c.
69554         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
69555         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
69556         * modules/same (EXTRA_DIST): Add same.h.
69557         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
69558         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
69559         * modules/savedir (EXTRA_DIST): Add savedir.h.
69560         * modules/sha1 (EXTRA_DIST): Add sha1.h.
69561         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
69562         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
69563         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
69564         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
69565         * modules/strdup (EXTRA_DIST): Add strdup.h.
69566         * modules/strftime (EXTRA_DIST): Add strftime.h.
69567         * modules/strndup (EXTRA_DIST): Add strndup.h.
69568         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
69569         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
69570         * modules/time_r (EXTRA_DIST): Add time_r.h.
69571         * modules/timespec (EXTRA_DIST): Add timespec.h.
69572         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
69573         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
69574         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
69575         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
69576         * modules/userspec (EXTRA_DIST): Add userspec.h.
69577         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
69578         * modules/utimens (EXTRA_DIST): Add utimens.h.
69579         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
69580         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
69581         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
69582         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
69583         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
69584         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
69585         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
69586         * modules/yesno (EXTRA_DIST): Add yesno.h.
69587
69588 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69589
69590         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
69591
69592         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
69593         * m4/dev-ino.m4, same-inode.m4: Remove.
69594
69595         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
69596         * m4/acl.m4 (AC_FUNC_ACL):
69597         * m4/backupfile.m4 (gl_BACKUPFILE):
69598         * m4/c-strtod.m4 (gl_C99_STRTOLD):
69599         * m4/canon-host.m4 (gl_CANON_HOST):
69600         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
69601         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
69602         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
69603         * m4/cloexec.m4 (gl_CLOEXEC):
69604         * m4/close-stream.m4 (gl_CLOSE_STREAM):
69605         * m4/closeout.m4 (gl_CLOSEOUT):
69606         * m4/dirfd.m4 (gl_FUNC_DIRFD):
69607         * m4/dirname.m4 (gl_DIRNAME):
69608         * m4/exclude.m4 (gl_EXCLUDE):
69609         * m4/exitfail.m4 (gl_EXITFAIL):
69610         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
69611         * m4/file-type.m4 (gl_FILE_TYPE):
69612         * m4/filemode.m4 (gl_FILEMODE):
69613         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
69614         * m4/fpending.m4 (gl_FUNC_FPENDING):
69615         * m4/fprintftime.m4 (gl_FPRINTFTIME):
69616         * m4/fts.m4 (gl_FUNC_FTS):
69617         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
69618         * m4/getdate.m4 (gl_GETDATE):
69619         * m4/gethrxtime.m4 (gl_GETHRXTIME):
69620         * m4/getpagesize.m4 (gl_GETPAGESIZE):
69621         * m4/getpass.m4 (gl_FUNC_GETPASS):
69622         * m4/gettime.m4 (gl_GETTIME):
69623         * m4/getugroups.m4 (gl_GETUGROUPS):
69624         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
69625         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
69626         * m4/hard-locale.m4 (gl_HARD_LOCALE):
69627         * m4/hash.m4 (gl_HASH):
69628         * m4/idcache.m4 (gl_IDCACHE):
69629         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
69630         * m4/lchown.m4 (gl_FUNC_LCHOWN):
69631         * m4/long-options.m4 (gl_LONG_OPTIONS):
69632         * m4/lstat.m4 (gl_FUNC_LSTAT):
69633         * m4/md5.m4 (gl_MD5):
69634         * m4/memcasecmp.m4 (gl_MEMCASECMP):
69635         * m4/memcoll.m4 (gl_MEMCOLL):
69636         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
69637         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
69638         * m4/memxor.m4 (gl_MEMXOR):
69639         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
69640         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
69641         * m4/modechange.m4 (gl_MODECHANGE):
69642         * m4/mountlist.m4 (gl_MOUNTLIST):
69643         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69644         * m4/openat.m4 (gl_FUNC_OPENAT):
69645         * m4/pathmax.m4 (gl_PATHMAX):
69646         * m4/physmem.m4 (gl_PHYSMEM):
69647         * m4/posixtm.m4 (gl_POSIXTM):
69648         * m4/posixver.m4 (gl_POSIXVER):
69649         * m4/quote.m4 (gl_QUOTE):
69650         * m4/quotearg.m4 (gl_QUOTEARG):
69651         * m4/readtokens.m4 (gl_READTOKENS):
69652         * m4/readutmp.m4 (gl_READUTMP):
69653         * m4/regex.m4 (gl_REGEX):
69654         * m4/safe-read.m4 (gl_SAFE_READ):
69655         * m4/safe-write.m4 (gl_SAFE_WRITE):
69656         * m4/same.m4 (gl_SAME):
69657         * m4/save-cwd.m4 (gl_SAVE_CWD):
69658         * m4/savedir.m4 (gl_SAVEDIR):
69659         * m4/settime.m4 (gl_SETTIME):
69660         * m4/sha1.m4 (gl_SHA1):
69661         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
69662         * m4/stat-macros.m4 (gl_STAT_MACROS):
69663         * m4/stat-time.m4 (gl_STAT_TIME):
69664         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
69665         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
69666         * m4/strdup.m4 (gl_FUNC_STRDUP):
69667         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
69668         * m4/strndup.m4 (gl_FUNC_STRNDUP):
69669         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
69670         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
69671         * m4/time_r.m4 (gl_TIME_R):
69672         * m4/timespec.m4 (gl_TIMESPEC):
69673         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
69674         * m4/unlinkdir.m4 (gl_UNLINKDIR):
69675         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
69676         * m4/userspec.m4 (gl_USERSPEC):
69677         * m4/utimecmp.m4 (gl_UTIMECMP):
69678         * m4/utimens.m4 (gl_UTIMENS):
69679         * m4/xalloc.m4 (gl_XALLOC):
69680         * m4/xgetcwd.m4 (gl_XGETCWD):
69681         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
69682         * m4/xreadlink.m4 (gl_XREADLINK):
69683         * m4/xstrtod.m4 (gl_XSTRTOD):
69684         * m4/yesno.m4 (gl_YESNO):
69685         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
69686         to get the necessary .h files and whatnot.
69687
69688 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
69689             Bruno Haible  <bruno@clisp.org>
69690
69691         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
69692         /bin/sh understanding of '!' conditional negation.
69693
69694 2006-08-21  Jim Meyering  <jim@meyering.net>
69695
69696         * modules/openat (Depends-on): Really alphabetize.
69697
69698         * modules/acl (Depends-on): Add error and quote.
69699
69700         * check-module (find_included_lib_files): Add at-func.c to the
69701         ok-to-include-more-than-once white list.
69702
69703         * modules/openat (Depends-on): Add lstat.  Alphabetize.
69704
69705 2006-08-21  Bruno Haible  <bruno@clisp.org>
69706
69707         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69708         Emit a pkgdata_DATA variable only if some snippets add contents to it.
69709         Reported by Martin Lambers <marlam@marlam.de>.
69710
69711 2006-08-21  Bruno Haible  <bruno@clisp.org>
69712
69713         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
69714         specify an installation location, don't emit a noinst_LIBRARIES or
69715         noinst_LTLIBRARIES assignment.
69716
69717 2006-08-21  Bruno Haible  <bruno@clisp.org>
69718
69719         BeOS portability.
69720         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
69721         BeOS has mbrtowc() but no <wctype.h>.
69722
69723 2006-08-21  Bruno Haible  <bruno@clisp.org>
69724
69725         BeOS portability.
69726         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
69727         exist.
69728
69729 2006-08-21  Bruno Haible  <bruno@clisp.org>
69730
69731         BeOS portability.
69732         * lib/mbchar.h: Include <wctype.h> only if it exists.
69733
69734 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69735
69736         Remove files that are no longer needed by their respective modules.
69737         * m4/obstack.m4: Remove.
69738         * m4/strerror_r.m4: Remove.
69739         * m4/uint32_t.m4: Remove.
69740         * m4/uintptr_t.m4: Remove.
69741         * m4/ullong_max.m4: Remove.
69742         * m4/xstrtoimax.m4: Remove.
69743         * m4/xstrtoumax.m4: Remove.
69744
69745         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
69746         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
69747         dependencies now capture this.
69748
69749         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
69750         Do not use AC_LIBSOURCES, since gnulib modules now do this.
69751         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
69752         * m4/human.m4 (gl_HUMAN): Likewise.
69753         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
69754         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
69755
69756         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
69757
69758         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
69759         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
69760         stdint.
69761         * m4/human.m4 (gl_HUMAN): Likewise.
69762         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
69763         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
69764         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69765         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69766         * m4/xstrtol (gl_XSTRTOL): Likewise.
69767
69768         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
69769         AC_TYPE_LONG_LONG_INT.
69770         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69771         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
69772         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
69773         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69774
69775         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
69776         on stdbool.
69777
69778         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
69779         (gl_PREREQ_XSTRTOUL): Remove.
69780
69781         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
69782
69783         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
69784         mode.
69785
69786 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69787
69788         Add and change modules to make it easier for coreutils to use
69789         gnulib-tool.
69790         * modules/backupfile (Files): Remove m4/d-ino.m4.
69791         (Depends-on): Add d-ino.
69792         * modules/cycle-check (Depends-on): Add stdint.
69793         (lib_SOURCES): Add cycle-check.h.
69794         * modules/d-ino: New module.
69795         * modules/d-type: New module.
69796         * modules/error (Files): Remove m4/strerror_r.m4.
69797         * modules/filemode (Files): Add m4/st_dm_mode.m4.
69798         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
69799         m4/inttypes_h.m4, m4/uintmax_t.m4.
69800         (Depends-on): Add stdint.
69801         (lib_SOURCES): Add fsusage.h.
69802         * modules/getcwd (Files): Remove d-ino.m4.
69803         (Depends-on): Add d-ino.
69804         * modules/getndelim2 (Depends-on): Add stdint.
69805         * modules/glob (Files): Remove m4/d-type.m4.
69806         (Depends-on): Add d-type.
69807         * modules/host-os: New module.
69808         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
69809         m4/inttypes_h.m4, m4/uintmax_t.m4.
69810         * Depends-on: Add stdint.
69811         (lib_SOURCES): Add human.h.
69812         * modules/inttostr (Files): Remove m4/intmax_t.m4,
69813         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
69814         m4/uintmax_t.m4, m4/ulonglong.m4.
69815         (Depends-on): Add stdint.
69816         (EXTRA_DIST): Add inttostr.h.
69817         * modules/lchmod: New module.
69818         * modules/link-follow: New module.
69819         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
69820         (Depends-on): Add lchmod.
69821         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
69822         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
69823         (Depends-on): Add stdint.
69824         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
69825         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
69826         (Depends-on): Add stdint.
69827         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
69828         * modules/perl: New module.
69829         * modules/regex (Depends-on): Add stdint.
69830         * modules/rmdir-errno: New module.
69831         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69832         m4/intmax_t.m4.
69833         (Depends-on): Add stdint.
69834         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69835         m4/uintmax_t.m4.
69836         (Depends-on): Add stdint.
69837         * modules/unlink-busy: New module.
69838         * modules/utimecmp (Depends-on): Add stdint.
69839         * modules/uptime: New module.
69840         * modules/winsz-ioctl: New module.
69841         * modules/winsz-termios: New module.
69842         * modules/xnanosleep (Depends-on): Add nanosleep.
69843         * modules/ullong_max: Remove.
69844         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
69845         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
69846         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
69847         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
69848         (Depends-on): Add inttypes.
69849         (lib_SOURCES): Add xstrtol.h.
69850         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
69851         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
69852         * MODULES.html.sh: Move 'assert' into the assert section.
69853         Move 'dummy' into the linking section.
69854         Remove ullong_max.
69855         Add section for compatibility checks for POSIX:2001 functions,
69856         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
69857         winsz-ioctl, and winsz-termios into it.
69858         Add lchmod.
69859         Add top-level Misc section and put host-os, perl, and uptime
69860         into it.
69861
69862 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69863
69864         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
69865         now assume the stdint module.  Do not include inttypes.h.
69866         * lib/fsusage.h: Likewise.
69867         * lib/getndelim2.c: Likewise.
69868         * lib/human.h: Likewise.
69869         * lib/inttostr.h: Likewise.
69870         * lib/obstack.c: Likewise.
69871         * lib/regex_internal.h: Likewise.
69872         * lib/tempname.c: Likewise.
69873         * lib/utimecmp.c: Likewise.
69874         * lib/xstrtol.h: Likewise.
69875
69876         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
69877
69878         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
69879         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
69880         * lib/xtime.h: Likewise.
69881
69882 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69883
69884         * modules/openat (Files): Add lib/fchmodat.c.
69885         Fixes problem reported by Jay Youngman.
69886
69887 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69888
69889         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
69890         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
69891
69892 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
69893             Bruno Haible  <bruno@clisp.org>
69894
69895         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
69896         and is a script that invokes bison. Tighten the code. Add comments.
69897
69898 2006-08-18  Jim Meyering  <jim@meyering.net>
69899
69900         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
69901         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
69902         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
69903         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
69904
69905 2006-08-18  Bruno Haible  <bruno@clisp.org>
69906
69907         * modules/bison-i18n: New file.
69908         * MODULES.html.sh (Internationalization functions): Add it.
69909
69910 2006-08-18  Bruno Haible  <bruno@clisp.org>
69911
69912         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
69913         sys/statvfs.h. When getmntinfo was found, check its declaration and
69914         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
69915
69916 2006-08-18  Bruno Haible  <bruno@clisp.org>
69917
69918         * m4/bison-i18n.m4: New file, from bison.
69919
69920 2006-08-18  Bruno Haible  <bruno@clisp.org>
69921
69922         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
69923         (ME_DUMMY): Treat "kernfs" as a dummy.
69924         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
69925
69926 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69927
69928         Update from coreutils.
69929
69930         2006-08-15  Jim Meyering  <jim@meyering.net>
69931
69932         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
69933
69934         2006-01-17  Jim Meyering  <jim@meyering.net>
69935
69936         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
69937
69938         2006-01-11  Jim Meyering  <jim@meyering.net>
69939
69940         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
69941         Check for the lchmod function.
69942
69943 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69944
69945         Update from coreutils.
69946
69947         * lib/__fpending.h: Add copyright notice.
69948         * lib/fprintftime.h: Likewise.
69949         * lib/savedir.c: Use (C) in copyright notice.
69950         * lib/savedir.h: Likewise.
69951
69952         2006-08-15  Jim Meyering  <jim@meyering.net>
69953
69954         * lib/at-func.c: New file, with the logic of all emulated at-functions.
69955         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
69956         in support of the EXPECTED_ERRNO macro.
69957         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
69958         definitions.  Instead, define the appropriate symbols and include
69959         "at-func.c".
69960         * lib/mkdirat.c (mkdirat): Likewise.
69961         * lib/fchmodat.c (fchmodat): Likewise.
69962         (ENOSYS): Remove definition.
69963         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
69964         it.  Don't include "unistd--.h" -- it wasn't ever used.
69965
69966         2006-01-17  Jim Meyering  <jim@meyering.net>
69967
69968         Rewrite fts.c not to change the current working directory,
69969         by using openat, fstatat, fdopendir, etc..
69970
69971         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
69972         (HAVE_OPENAT_SUPPORT): Define.
69973         [_LIBC] (fchdir): Don't undef or define; no longer used.
69974         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
69975         Now, this `function' always succeeds, and consumes its file descriptor
69976         parameter -- so callers must not close such FDs.  Update callers.
69977         (diropen_fd, opendirat, cwd_advance_fd): New functions.
69978         (diropen): Add parameter, SP.  Adjust all callers.
69979         Implement using diropen_fd, rather than open.
69980         (fts_open): Initialize new member, fts_cwd_fd.
69981         Remove fts_rft-setting code.
69982         (fts_close): Close fts_cwd_fd, if necessary.
69983         (__opendir2): Define in terms of opendir or opendirat,
69984         depending on whether the FST_NOCHDIR flag is set.
69985         (fts_build): Since fts_safe_changedir consumes its FD, and since
69986         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
69987         and close the dup'd file descriptor upon failure.
69988         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
69989         (fts_safe_changedir): Tweak semantics to reflect that this function
69990         now calls cwd_advance_fd and hence consumes its FD argument.
69991         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
69992         [struct FTS] (fts_rft): Remove now-unused member.
69993         [struct FTS] (fts_cycle.state): Improve comment.
69994
69995         * lib/openat.c (openat_needs_fchdir): New function.
69996         * lib/openat.h (openat_needs_fchdir): Declare it.
69997
69998 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
69999
70000         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
70001         Problem and fix reported by Pádraig Brady in
70002         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
70003
70004 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70005
70006         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
70007
70008 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70009
70010         * lib/memcoll.c (memcoll): Optimize for the common case where the
70011         arguments are bytewise equal.
70012
70013 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70014
70015         * doc/regexprops-generic.texi: Add a copyright notice.
70016
70017 2006-08-15  Bruno Haible  <bruno@clisp.org>
70018
70019         * modules/tmpdir (License): Change to LGPL.
70020
70021 2006-08-15  Bruno Haible  <bruno@clisp.org>
70022
70023         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
70024         module.
70025
70026 2006-08-14  Simon Josefsson  <jas@extundo.com>
70027
70028         * config/srclist.txt: Add gnupload.
70029
70030 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70031
70032         Change copyright notice from LGPL 2 to GPL 2, since that's the
70033         standard form used in the gnulib repository.
70034         * tests/test-lock.c: Likewise.
70035         * tests/test-stdint.c: Likewise.
70036         * tests/test-tls.c: Likewise.
70037
70038         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
70039         prelude-manager.  User shorter URLs for GNU projects, without '?'.
70040         Add copyright notice.
70041
70042         * check-module: Add copyright notice.  Output a copyright
70043         notice if "--version" is specified.
70044         * modules/COPYING: New file.
70045         * tests/test-getaddrinfo.c: Add copyright notice.
70046         * tests/test-verify.c: Likewise.
70047
70048 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70049
70050         Change copyright notice from LGPL 2 to GPL 2, since that's the
70051         standard form used in the gnulib repository.
70052         * lib/lock.c: LGPL -> GPL.
70053         * lib/lock.h: Likewise.
70054         * lib/strnlen1.c: Likewise.
70055         * lib/strnlen1.h: Likewise.
70056         * lib/tls.c: Likewise.
70057         * lib/tls.h: Likewise.
70058         * lib/tmpdir.c: Likewise.
70059
70060         * lib/TODO: Remove; this belongs only in coreutils.
70061
70062 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70063
70064         Add copyright notices to long-enough files that lack them, since
70065         otherwise the files aren't clearly free.  Use the same notice that
70066         getdate.texi already uses.
70067         * doc/alloca-opt.texi: Add copyright notice.
70068         * doc/alloca.texi: Likewise.
70069         * doc/ctime.texi: Likewise.
70070         * doc/functions.texi: Likewise.
70071         * doc/gcd.texi: Likewise.
70072         * doc/gnulib-tool.texi: Likewise.
70073         * doc/inet_ntoa.texi: Likewise.
70074         * doc/visibility.texi: Likewise.
70075
70076         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
70077         * doc/quote.texi: Add copyright notice.
70078
70079         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
70080         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
70081         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
70082         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
70083         is now obsolete, and give a pointer to the Sun list.
70084         Add copyright notice.
70085
70086 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70087
70088         * config/srclistvars.sh: Add copyright notice.
70089
70090 2006-08-14  Eric Blake  <ebb9@byu.net>
70091
70092         Import the following change from libc:
70093
70094         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
70095
70096         Upstream bug 2997.
70097         * lib/misc/error.c: Add space between program name and message if file
70098         name is missing.
70099
70100 2006-08-12  Karl Berry  <karl@gnu.org>
70101
70102         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
70103         remove, these originate in gnulib now.
70104
70105 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70106
70107         * doc/Makefile (standards.info standards.html standards.dvi):
70108         Also depend on make-stds.texi.
70109
70110 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70111
70112         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
70113         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
70114
70115         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
70116         in wchar_t.  Problem reported by Eric Blake.
70117
70118         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
70119         LEN is smaller than SIZE.  Suggested by Bruno Haible.
70120         Also, help the compiler to keep LEN in a register.
70121
70122 2006-08-11  Eric Blake  <ebb9@byu.net>
70123
70124         * users.txt: Sort.  Add tar.
70125
70126 2006-08-11  Bruno Haible  <bruno@clisp.org>
70127
70128         * users.txt: New file.
70129
70130 2006-08-11  Bruno Haible  <bruno@clisp.org>
70131
70132         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
70133         before <wchar.h>. Needed for OSF/1 and BSD/OS.
70134
70135 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
70136
70137         * modules/snprintf (Depends-on): Remove minmax.
70138         (Maintainer): Add self and Bruno.
70139
70140 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
70141
70142         * lib/.cppi-disable: Add snprintf.h, socket_.h.
70143         * lib/snprintf.c: Include <errno.h> and <limits.h>.
70144         (EOVERFLOW): Define if the system does not.
70145         Do not include "minmax.h"; it wasn't used.
70146         (snprintf): Don't assume size_t promotes to an unsigned type.
70147         Fix bug when generated string was too long for the buffer: the
70148         buffer's contents are supposed to be the initial prefix of the
70149         output.  Don't assume vasnprintf returns EOVERFLOW if the size
70150         exceeds INT_MAX; do the check ourselves.
70151
70152         Import the following changes from libc:
70153
70154         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
70155
70156         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
70157         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
70158         set wc to the byte which couldn't be converted.
70159         (re_string_reconstruct): Don't clear valid_raw_len before calling
70160         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
70161         tip_context using re_string_context_at.
70162
70163         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
70164
70165         * lib/posix/regex.h: g++ still cannot handled [restrict].
70166
70167         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
70168
70169         * lib/posix/regex.h: Remove special handling for VMS.
70170
70171 2006-08-10  Jim Meyering  <jim@meyering.net>
70172
70173         * modules/same-inode: New module.
70174         * modules/dev-ino: New module.
70175         * modules/cycle-check: Depend on these modules, rather than simply
70176         including their .h files.
70177         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
70178         required via m4/cycle-check.m4.
70179         * modules/same: Depend on new same-inode module, rather than
70180         including same-inode.h.
70181         * modules/chdir-safer: New file.
70182
70183         * modules/chown (Depends-on): Add stat-macros.
70184
70185 2006-08-10  Jim Meyering  <jim@meyering.net>
70186
70187         * m4/cycle-check.m4: New file.
70188         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
70189         * m4/dev-ino.m4, m4/same-inode.m4: New files.
70190
70191 2006-08-10  Eric Blake  <ebb9@byu.net>
70192
70193         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
70194         in from original proposal.
70195
70196 2006-08-10  Eric Blake  <ebb9@byu.net>
70197         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
70198
70199         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
70200         namespace.
70201
70202 2006-08-10  Bruno Haible  <bruno@clisp.org>
70203
70204         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
70205         as well.
70206
70207 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70208
70209         Sync from coreutils.
70210
70211         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
70212
70213         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
70214         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
70215
70216 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70217
70218         * modules/restrict: Remove; no longer needed now that we assume
70219         Autoconf 2.59 or later.
70220         * MODULES.html.sh: Remove 'restrict'.
70221         * modules/argp (Depends-on): Remove 'restrict'.
70222         * modules/base64 (Depends-on): Likewise.
70223         * modules/gc (Depends-on): Likewise.
70224         * modules/getaddrinfo (Depends-on): Likewise.
70225         * modules/glob (Depends-on): Likewise.
70226         * modules/inet_ntop (Depends-on): Likewise.
70227         * modules/inet_pton (Depends-on): Likewise.
70228         * modules/memxor (Depends-on): Likewise.
70229         * modules/regex (Depends-on): Likewise.
70230         * modules/strtok_r (Depends-on): Likewise.
70231         * modules/time_r (Depends-on): Likewise.
70232
70233 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70234
70235         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
70236         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
70237         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
70238         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
70239         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
70240         * m4/memxor.m4 (gl_MEMXOR): Likewise.
70241         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
70242         gl_C_RESTRICT replaced by AC_C_RESTRICT.
70243
70244         Merge from coreutils.
70245         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
70246         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
70247         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70248         * m4/time_r.m4 (gl_TIME_R): Likewise.
70249
70250 2006-08-09  Karl Berry  <karl@gnu.org>
70251
70252         * config/srclist.txt: no more gettext-tools, per Bruno.
70253
70254 2006-08-08  Eric Blake  <ebb9@byu.net>
70255
70256         * modules/verror: New module.
70257         * MODULES.html.sh: Document it.
70258
70259 2006-08-08  Eric Blake  <ebb9@byu.net>
70260
70261         * lib/verror.h, lib/verror.c: New files.
70262
70263 2006-08-08  Eric Blake  <ebb9@byu.net>
70264
70265         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
70266         verror_at_line output complies with GNU Coding Standards even when
70267         file is NULL.
70268
70269 2006-08-07  Bruno Haible  <bruno@clisp.org>
70270
70271         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
70272         versions of AIX.
70273         Reported by Ralf Wildenhues.
70274
70275 2006-08-07  Bruno Haible  <bruno@clisp.org>
70276
70277         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
70278         in an AC_DEFUN. Needed so that the autoconf snippets can use
70279         AC_REQUIRE.
70280
70281 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70282
70283         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70284         Initialize pkgdata_DATA.
70285         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
70286         overriding it.
70287
70288 2006-08-06  Eric Blake  <ebb9@byu.net>
70289
70290         * lib/error.h: Fold in some upstream changes from glibc.
70291         * lib/error.c: Likewise.
70292
70293 2006-08-04  Bruno Haible  <bruno@clisp.org>
70294
70295         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70296         Make the mostlyclean-local rule depend on mostlyclean-generic.
70297         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
70298
70299 2006-07-31  Bruno Haible  <bruno@clisp.org>
70300
70301         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
70302         <stdlib.h>, <string.h>.
70303
70304 2006-07-30  Bruno Haible  <bruno@clisp.org>
70305
70306         * modules/readlink (License): Change to LGPL.
70307
70308 2006-07-30  Bruno Haible  <bruno@clisp.org>
70309
70310         * modules/javaversion (Makefile.am): Distribute javaversion.java and
70311         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
70312         set PKGDATADIR to point to it.
70313
70314 2006-07-30  Bruno Haible  <bruno@clisp.org>
70315
70316         * modules/csharpexec (configure.ac): Comment out macro invocation.
70317         * modules/javaexec (configure.ac): Likewise.
70318         * modules/javacomp-script (configure.ac): Likewise.
70319
70320         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
70321
70322 2006-07-30  Bruno Haible  <bruno@clisp.org>
70323
70324         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
70325         linked-list.
70326
70327 2006-07-30  Bruno Haible  <bruno@clisp.org>
70328
70329         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
70330
70331 2006-07-30  Bruno Haible  <bruno@clisp.org>
70332
70333         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70334         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
70335         get removed.
70336
70337 2006-07-29  Bruno Haible  <bruno@clisp.org>
70338
70339         Make it possible for gnulib-tool to work with locally modified or
70340         augmented gnulib repositories.
70341         * gnulib-tool (func_usage): Document --local-dir option.
70342         (local_gnulib_dir): New variable.
70343         Handle --local-dir option.
70344         (func_lookup_file): New function.
70345         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
70346         (func_get_description, func_get_filelist, func_get_description,
70347         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
70348         func_get_automake_snippet, func_get_include_directive,
70349         func_get_license, func_get_maintainer): Use func_lookup_file.
70350         (func_import, func_create_testdir): Use func_lookup_file.
70351
70352 2006-07-29  Bruno Haible  <bruno@clisp.org>
70353
70354         * modules/setenv (Depends-on): Add unistd.
70355
70356 2006-07-29  Bruno Haible  <bruno@clisp.org>
70357
70358         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
70359
70360 2006-07-29  Bruno Haible  <bruno@clisp.org>
70361
70362         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
70363
70364 2006-07-29  Bruno Haible  <bruno@clisp.org>
70365
70366         * gnulib-tool (import, update): If there is no Makefile.am, look at
70367         aclocal.m4, instead of bailing out.
70368
70369 2006-07-29  Bruno Haible  <bruno@clisp.org>
70370
70371         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
70372         Categorize the options by when they are useful.
70373
70374 2006-07-29  Bruno Haible  <bruno@clisp.org>
70375
70376         * gnulib-tool (func_usage): Document option --no-libtool.
70377         Handle option --no-libtool.
70378         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
70379         for changed semantics of $libtool variable.
70380         (func_import): Likewise. If libtool is not used, show this through
70381         an option --no-libtool.
70382         (func_create_testdir): Update.
70383
70384 2006-07-29  Bruno Haible  <bruno@clisp.org>
70385
70386         * gnulib-tool (func_import): Extend error message about missing
70387         --doc-base.
70388
70389 2006-07-29  Bruno Haible  <bruno@clisp.org>
70390
70391         * gnulib-tool (func_import): Don't create the $docbase directory if
70392         there is no file to store there.
70393
70394 2006-07-29  Bruno Haible  <bruno@clisp.org>
70395
70396         * gnulib-tool (autoconf_minversion): If a --dir option is given and
70397         relevant, look for configure.ac there, not in the current directory.
70398         Also use a simple search for AC_PREREQ, not "autoconf --trace".
70399
70400 2006-07-29  Bruno Haible  <bruno@clisp.org>
70401
70402         * gnulib-tool (SORT): New variable.
70403         (func_usage): Undocument --assume-autoconf option.
70404         Remove --assume-autoconf option handling.
70405         (autoconf_minversion): Determine from the contents of configure.ac.
70406         (func_import): Remove autoconf_minversion handling.
70407         Suggested by Eric Blake.
70408
70409 2006-07-29  Bruno Haible  <bruno@clisp.org>
70410
70411         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
70412
70413 2006-07-29  Bruno Haible  <bruno@clisp.org>
70414
70415         * config/srclist.txt (*setenv.[ch]): Remove rules.
70416
70417 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70418
70419         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
70420
70421 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70422
70423         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
70424         arpa/inet.h.
70425
70426 2006-07-28  Simon Josefsson  <jas@extundo.com>
70427
70428         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
70429         * modules/inet_pton (Depends-on): Likewise.
70430
70431 2006-07-28  Simon Josefsson  <jas@extundo.com>
70432
70433         * m4/netinet_in_h.m4: New file.
70434
70435 2006-07-28  Simon Josefsson  <jas@extundo.com>
70436
70437         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
70438         #include's.
70439
70440 2006-07-28  Simon Josefsson  <jas@extundo.com>
70441
70442         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
70443         #include's.
70444
70445 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
70446
70447         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
70448         setgid on directories only if they set these bits.
70449         * lib/modechange.h: Remove obsolete comment about masks.
70450
70451 2006-07-28  Eric Blake  <ebb9@byu.net>
70452
70453         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
70454         macro expansion.
70455
70456 2006-07-28  Bruno Haible  <bruno@clisp.org>
70457
70458         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
70459
70460 2006-07-28  Bruno Haible  <bruno@clisp.org>
70461
70462         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
70463
70464 2006-07-28  Bruno Haible  <bruno@clisp.org>
70465
70466         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
70467         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
70468         Define fallbacks.
70469         Avoids link error on FreeBSD 4.x.
70470         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
70471
70472         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
70473         encoding.
70474         * lib/mbswidth.c (iswcntrl): Likewise.
70475
70476 2006-07-27  Bruno Haible  <bruno@clisp.org>
70477
70478         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
70479         test.
70480
70481 2006-07-27  Bruno Haible  <bruno@clisp.org>
70482
70483         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
70484         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
70485         defined.
70486
70487 2006-07-26  Eric Blake  <ebb9@byu.net>
70488
70489         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
70490
70491 2006-07-26  Eric Blake  <ebb9@byu.net>
70492
70493         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
70494         like mingw that lack mkstemp.
70495         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
70496         avoid compilation warning on mingw.
70497
70498 2006-07-26  Bruno Haible  <bruno@clisp.org>
70499
70500         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
70501         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
70502         INT_FAST*_MIN, INTPTR_MIN.
70503
70504 2006-07-25  Bruno Haible  <bruno@clisp.org>
70505
70506         * modules/version-etc (Depends-on): Add stdarg.
70507
70508 2006-07-25  Bruno Haible  <bruno@clisp.org>
70509
70510         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
70511         complex commands.
70512
70513 2006-07-25  Bruno Haible  <bruno@clisp.org>
70514
70515         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
70516         defined in <stdarg.h> or config.h.
70517
70518 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
70519
70520         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
70521         (gl_STDIO_SAFER): Remove.
70522
70523 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
70524
70525         * MODULES.html.sh (File stream based Input/Output):
70526         Add fopen-safer, tmpfile-safer; remove stdio-safer.
70527         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
70528         * modules/fopen-safer, modules/tmpfile-safer: New files.
70529         * modules/stdio-safer: Remove.
70530
70531 2006-07-24  Bruno Haible  <bruno@clisp.org>
70532
70533         * modules/tmpdir: New file.
70534         * MODULES.html.sh (File system functions): Add it.
70535
70536 2006-07-24  Bruno Haible  <bruno@clisp.org>
70537
70538         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
70539         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
70540
70541 2006-07-24  Bruno Haible  <bruno@clisp.org>
70542
70543         * modules/clean-temp: New file.
70544
70545 2006-07-24  Bruno Haible  <bruno@clisp.org>
70546
70547         * m4/tmpdir.m4: New file, from GNU gettext.
70548
70549 2006-07-24  Bruno Haible  <bruno@clisp.org>
70550
70551         * lib/tmpdir.h: New file, from GNU gettext.
70552         * lib/tmpdir.c: New file, from GNU gettext.
70553
70554 2006-07-24  Bruno Haible  <bruno@clisp.org>
70555
70556         * lib/clean-temp.h: New file, from GNU gettext.
70557         * lib/clean-temp.c: New file, from GNU gettext.
70558
70559 2006-07-23  Eric Blake  <ebb9@byu.net>
70560
70561         * modules/stdio-safer (Files): Add tmpfile-safer.c.
70562         (Depends-on): Add binary-io.
70563
70564 2006-07-23  Eric Blake  <ebb9@byu.net>
70565
70566         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
70567
70568 2006-07-23  Eric Blake  <ebb9@byu.net>
70569
70570         * lib/tmpfile-safer.c: New file.
70571         * lib/stdio-safer.h (fopen_safer): Add prototype.
70572         * lib/stdio--.h (tmpfile): Make safer.
70573
70574 2006-07-23  Bruno Haible  <bruno@clisp.org>
70575
70576         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
70577         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
70578         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
70579         gl_linked_remove_at): Use it.
70580
70581 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70582         and Simon Josefsson <jas@extundo.com>
70583
70584         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
70585
70586         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
70587
70588 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70589
70590         * modules/close-stream: New file.
70591         * modules/closeout (Description): Make it clear that it exits
70592         with a diagnostic on error.
70593         (Depends-on): Add close-stream.  Remove fpending, stdbool.
70594         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
70595
70596 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70597
70598         * m4/close-stream.m4: New file.
70599
70600 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70601
70602         * lib/close-stream.c, lib/close-stream.h: New files.
70603
70604 2006-07-22  Bruno Haible  <bruno@clisp.org>
70605
70606         Merge from GNU gettext 0.15.
70607
70608         2006-05-01  Bruno Haible  <bruno@clisp.org>
70609
70610                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
70611
70612         2006-07-22  Bruno Haible  <bruno@clisp.org>
70613
70614                 * modules/javaversion: New file.
70615                 * MODULES.html.sh (Java): Add javaversion.
70616
70617         2006-03-12  Bruno Haible  <bruno@clisp.org>
70618
70619                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
70620
70621         2005-12-04  Bruno Haible  <bruno@clisp.org>
70622
70623                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
70624                 (untested).
70625
70626         2006-06-21  Bruno Haible  <bruno@clisp.org>
70627
70628                 Avoid warnings from recent versions of mcs.
70629                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
70630                 -o, -L, -r any more. Use options documented since mcs-1.0
70631                 instead. Similarly for -g.
70632
70633         2005-12-04  Bruno Haible  <bruno@clisp.org>
70634
70635                 * build-aux/csharpcomp.sh.in: Suffix for resources is
70636                 .resources, not .resource.
70637
70638         2005-07-09  Bruno Haible  <bruno@clisp.org>
70639
70640                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
70641                 add a .dll suffix.
70642                 Reported by Mark Junker <mjscod@gmx.de>.
70643
70644         2006-07-22  Bruno Haible  <bruno@clisp.org>
70645
70646                 * modules/gettext: Upgrade to gettext-0.15.
70647                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
70648                 m4/visibility.m4.
70649                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
70650
70651 2006-07-22  Bruno Haible  <bruno@clisp.org>
70652
70653         Merge from GNU gettext 0.15.
70654
70655         2006-03-25  Bruno Haible  <bruno@clisp.org>
70656
70657                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
70658
70659         2006-07-21  Bruno Haible  <bruno@clisp.org>
70660
70661                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
70662                 "1.1".
70663
70664         2006-05-09  Bruno Haible  <bruno@clisp.org>
70665
70666                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
70667                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
70668                 for the conftestver execution.
70669
70670         2006-05-01  Bruno Haible  <bruno@clisp.org>
70671
70672                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
70673                 optional target-version argument. Verify that the compiler
70674                 groks source of the specified source-version, or add -source
70675                 option as necessary. Verify that the compiler produces
70676                 bytecode in the specified target-version, or add -target and
70677                 -source options as necessary. Make the result of the test
70678                 available as variable CONF_JAVAC. Also log error output in
70679                 config.log.
70680
70681         2006-03-11  Bruno Haible  <bruno@clisp.org>
70682
70683                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
70684
70685         2006-05-09  Bruno Haible  <bruno@clisp.org>
70686
70687                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
70688                 CLASSPATH_SEPARATOR to a semicolon.
70689
70690         2006-03-12  Bruno Haible  <bruno@clisp.org>
70691
70692                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
70693                 available as variable CONF_JAVA, for subsequent autoconf
70694                 tests. Also log error output in config.log.
70695
70696         2006-07-19  Bruno Haible  <bruno@clisp.org>
70697
70698                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
70699                 that getline works on glibc2 systems. Needed to avoid trouble
70700                 in relocatable.c.
70701                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
70702
70703         2005-12-04  Bruno Haible  <bruno@clisp.org>
70704
70705                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
70706                 launcher (untested).
70707
70708         2005-12-04  Bruno Haible  <bruno@clisp.org>
70709
70710                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
70711
70712         2006-07-22  Bruno Haible  <bruno@clisp.org>
70713
70714                 * gettext.m4: Update from GNU gettext-0.15.
70715                 * nls.m4: Likewise.
70716                 * po.m4: Likewise.
70717                 * inttypes-pri.m4: Likewise.
70718                 * inttypes-h.m4: Renamed from inttypes.m4.
70719                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
70720
70721 2006-07-22  Bruno Haible  <bruno@clisp.org>
70722
70723         Merge from GNU gettext 0.15.
70724
70725         2005-07-05  Bruno Haible  <bruno@clisp.org>
70726
70727                 * printf-args.c (printf_fetchargs): Work around broken
70728                 definition of wint_t on mingw.
70729
70730         2005-02-12  Bruno Haible  <bruno@clisp.org>
70731
70732                 * xallocsa.h: Add extern "C" for C++.
70733
70734         2006-05-17  Bruno Haible  <bruno@clisp.org>
70735
70736                 Cygwin portability.
70737                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
70738
70739         2006-04-30  Bruno Haible  <bruno@clisp.org>
70740
70741                 * progreloc.c: Include <mach-o/dyld.h> if available.
70742                 (find_executable): Use _NSGetExecutablePath when possible.
70743
70744         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
70745
70746                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
70747                 function.
70748
70749         2005-12-29  Bruno Haible  <bruno@clisp.org>
70750
70751                 * progreloc.c (set_program_name_and_installdir): Fix
70752                 compilation error.
70753
70754         2005-12-04  Bruno Haible  <bruno@clisp.org>
70755
70756                 Cygwin portability.
70757                 * progreloc.c: Include <windows.h> also on Cygwin.
70758                 (find_executable): Add support for Cygwin.
70759                 (set_program_name_and_installdir): Handle also platforms with
70760                 nonempty EXEEXT.
70761
70762         2006-07-11  Bruno Haible  <bruno@clisp.org>
70763
70764                 * javacomp.c: Fix a comment.
70765                 Reported by Jim Meyering.
70766
70767         2006-04-30  Bruno Haible  <bruno@clisp.org>
70768
70769                 * javacomp.h (compile_java_class): Add source_version,
70770                 target_version arguments.
70771                 * javacomp.c: Rewritten to choose only a compiler that
70772                 respects the specified source_version and target_version.
70773
70774         2006-06-27  Bruno Haible  <bruno@clisp.org>
70775
70776                 Assume correct S_ISDIR macro.
70777                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
70778
70779         2006-07-22  Bruno Haible  <bruno@clisp.org>
70780
70781                 * javaversion.h: New file, from GNU gettext.
70782                 * javaversion.c: New file, from GNU gettext.
70783                 * javaversion.java: New file, from GNU gettext.
70784                 * javaversion.class: New file, from GNU gettext.
70785
70786         2006-05-17  Bruno Haible  <bruno@clisp.org>
70787
70788                 Cygwin portability.
70789                 * javaexec.c (execute_java_class): Test for jview program
70790                 also on Cygwin.
70791
70792         2006-04-09  Bruno Haible  <bruno@clisp.org>
70793
70794                 * fatal-signal.c: Don't include string.h.
70795                 (at_fatal_signal): Use a copying loop instead of memcpy.
70796
70797         2005-12-04  Bruno Haible  <bruno@clisp.org>
70798
70799                 * csharpexec.c: Add support for 'clix' launcher (untested).
70800                 (execute_csharp_using_sscli): New function.
70801                 (execute_csharp_program): Call it.
70802
70803         2006-06-21  Bruno Haible  <bruno@clisp.org>
70804
70805                 Avoid warnings from recent versions of mcs.
70806                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
70807                 -o, -L, -r any more. Use options documented since mcs-1.0
70808                 instead. Similarly for -g.
70809
70810         2005-07-09  Bruno Haible  <bruno@clisp.org>
70811
70812                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
70813                 add a .dll suffix.
70814                 Reported by Mark Junker <mjscod@gmx.de>.
70815
70816         2006-06-17  Bruno Haible  <bruno@clisp.org>
70817
70818                 * config.charset: Update for NetBSD 3.0.
70819
70820         2006-05-17  Bruno Haible  <bruno@clisp.org>
70821
70822                 Cygwin portability.
70823                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
70824
70825         2006-05-16  Bruno Haible  <bruno@clisp.org>
70826
70827                 * localcharset.c [CYGWIN]: Include <windows.h>.
70828                 (get_charset_aliases): For Cygwin, return the same CPxxx
70829                 aliases list as under WIN32.
70830                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
70831                 the environment variables. Fall back to GetACP().
70832
70833         2006-04-05  Bruno Haible  <bruno@clisp.org>
70834
70835                 * config.charset: Update Juan Manuel Guerrero's address.
70836
70837         2005-02-12  Bruno Haible  <bruno@clisp.org>
70838
70839                 * allocsa.h: Add extern "C" for C++.
70840
70841         2005-02-10  Bruno Haible  <bruno@clisp.org>
70842
70843                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
70844                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
70845
70846         2006-07-22  Bruno Haible  <bruno@clisp.org>
70847
70848                 * gettext.h: Update to GNU gettext-0.15.
70849
70850 2006-07-22  Bruno Haible  <bruno@clisp.org>
70851
70852         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
70853         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
70854         lib-prefix.m4, longdouble.m4, ssize_t.m4.
70855
70856 2006-07-21  Eric Blake  <ebb9@byu.net>
70857
70858         * modules/stdlib-safer: New file.
70859         * MODULES.html.sh (File stream based Input/Output): Add
70860         stdlib-safer.
70861
70862 2006-07-21  Eric Blake  <ebb9@byu.net>
70863
70864         * lib/stdlib-safer.h: New file from coreutils, required by
70865         stdlib--.h.
70866
70867 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
70868
70869         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
70870
70871 2006-07-20  Bruno Haible  <bruno@clisp.org>
70872
70873         * gnulib-tool: Recognize new option --assume-autoconf.
70874         (autoconf_minversion): New variable.
70875         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
70876
70877 2006-07-20  Bruno Haible  <bruno@clisp.org>
70878
70879         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
70880
70881 2006-07-19  Derek R. Price  <derek@ximbiot.com>
70882
70883         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
70884         Reindent and repaginate.
70885
70886 2006-07-19  Derek Price  <derek@ximbiot.com>
70887
70888         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
70889         Correct grammar.
70890
70891 2006-07-17  Bruno Haible  <bruno@clisp.org>
70892
70893         * modules/list: New file.
70894         * modules/array-list: New file.
70895         * modules/carray-list, modules/carray-list-tests: New files.
70896         * modules/linked-list, modules/linked-list-tests: New files.
70897         * modules/avltree-list, modules/avltree-list-tests: New files.
70898         * modules/rbtree-list, modules/rbtree-list-tests: New files.
70899         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
70900         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
70901         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
70902         * modules/oset: New file.
70903         * modules/array-oset: New file.
70904         * modules/avltree-oset, modules/avltree-oset-tests: New files.
70905         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
70906         * tests/test-carray_list.c: New file.
70907         * tests/test-linked_list.c: New file.
70908         * tests/test-avltree_list.c: New file.
70909         * tests/test-rbtree_list.c: New file.
70910         * tests/test-linkedhash_list.c: New file.
70911         * tests/test-avltreehash_list.c: New file.
70912         * tests/test-rbtreehash_list.c: New file.
70913         * tests/test-avltree_oset.c: New file.
70914         * tests/test-rbtree_oset.c: New file.
70915         * MODULES.html.sh (Container data structures): New section.
70916
70917 2006-07-17  Bruno Haible  <bruno@clisp.org>
70918
70919         * m4/gl_list.m4: New file.
70920
70921 2006-07-17  Bruno Haible  <bruno@clisp.org>
70922
70923         * lib/gl_list.h: New file.
70924         * lib/gl_list.c: New file.
70925         * lib/gl_array_list.h: New file.
70926         * lib/gl_array_list.c: New file.
70927         * lib/gl_carray_list.h: New file.
70928         * lib/gl_carray_list.c: New file.
70929         * lib/gl_linked_list.h: New file.
70930         * lib/gl_linked_list.c: New file.
70931         * lib/gl_anylinked_list1.h: New file.
70932         * lib/gl_anylinked_list2.h: New file.
70933         * lib/gl_avltree_list.h: New file.
70934         * lib/gl_avltree_list.c: New file.
70935         * lib/gl_anyavltree_list1.h: New file.
70936         * lib/gl_anyavltree_list2.h: New file.
70937         * lib/gl_rbtree_list.h: New file.
70938         * lib/gl_rbtree_list.c: New file.
70939         * lib/gl_anyrbtree_list1.h: New file.
70940         * lib/gl_anyrbtree_list2.h: New file.
70941         * lib/gl_anytree_list1.h: New file.
70942         * lib/gl_anytree_list2.h: New file.
70943         * lib/gl_linkedhash_list.h: New file.
70944         * lib/gl_linkedhash_list.c: New file.
70945         * lib/gl_anyhash_list1.h: New file.
70946         * lib/gl_anyhash_list2.h: New file.
70947         * lib/gl_avltreehash_list.h: New file.
70948         * lib/gl_avltreehash_list.c: New file.
70949         * lib/gl_rbtreehash_list.h: New file.
70950         * lib/gl_rbtreehash_list.c: New file.
70951         * lib/gl_anytreehash_list1.h: New file.
70952         * lib/gl_anytreehash_list2.h: New file.
70953
70954         * lib/gl_oset.h: New file.
70955         * lib/gl_oset.c: New file.
70956         * lib/gl_array_oset.h: New file.
70957         * lib/gl_array_oset.c: New file.
70958         * lib/gl_avltree_oset.h: New file.
70959         * lib/gl_avltree_oset.c: New file.
70960         * lib/gl_rbtree_oset.h: New file.
70961         * lib/gl_rbtree_oset.c: New file.
70962         * lib/gl_anytree_oset.h: New file.
70963
70964 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70965
70966         * m4/mkancesdirs.m4: New file.
70967         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
70968         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
70969         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
70970         it.
70971
70972 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70973
70974         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
70975         * lib/mkancesdirs.h: New files.
70976         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
70977         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
70978         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
70979         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
70980         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
70981         callers changed.  Revamp internals significantly, by not
70982         attempting to create directories that are temporarily more
70983         permissive than the final results.  Do not attempt to use
70984         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
70985         This removes some race conditions, fixes some bugs, and simplifies
70986         things.  Use new dirchownmod function to do owner and mode changes.
70987         * lib/mkdir-p.h: Likewise.
70988         * lib/modechange.c (octal_to_mode): New function.
70989         (struct mode_change): New member mentioned.
70990         (make_node_op_equals): New arg mentioned.  All callers changed.
70991         (mode_compile): Keep track of which mode bits the user has explicitly
70992         mentioned.
70993         (mode_adjust): New arg DIR, so that we implement the X op correctly.
70994         New arg PMODE_BITS, to keep track of which mode bits the user
70995         mentioned; it treats S_ISUID and S_ISGID speciall.
70996         All callers changed.
70997         * lib/modechange.h: Likewise.
70998
70999 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71000
71001         * MODULES.html.sh: Add mkancestors.
71002         * modules/mkancesdirs: New module.
71003         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
71004         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
71005         The chdir-safer and afs files are now orphans; I'll remove them
71006         unless someone speaks up.
71007         Add lib/dirchownmod.c, lib/dirchownmod.h.
71008         (Depends-on): Remove alloca, chown, save-cwd, dirname.
71009         Add lchown, mkancesdirs.
71010         (Maintainer): Add self.
71011
71012 2006-07-15  Karl Berry  <karl@gnu.org>
71013
71014         * gnulib-tool: help message wording/arrangement.
71015
71016 2006-07-14  Simon Josefsson  <jas@extundo.com>
71017
71018         * doc/gnulib.texi (Libtool and Windows): New section.
71019
71020 2006-07-12  Simon Josefsson  <jas@extundo.com>
71021
71022         * modules/gendocs (License): Fix license, approved by Karl.
71023
71024 2006-07-12  Eric Blake  <ebb9@byu.net>
71025
71026         * MODULES.html.sh: Add gendocs.
71027
71028 2006-07-11  Eric Blake  <ebb9@byu.net>
71029
71030         * modules/fdl: New module, to install doc/fdl.texi.
71031         * MODULES.html.sh: Add new section for documentation modules.
71032         * gnulib-tool: Avoid space-tab.
71033         (--doc-base): New option, to manage files from doc.
71034
71035 2006-07-11  Eric Blake  <ebb9@byu.net>
71036
71037         * m4/absolute-header.m4: Fix comments to match recent change.
71038
71039 2006-07-11  Eric Blake  <ebb9@byu.net>
71040
71041         * gnulib-tool: List --doc-base before --tests-base.
71042
71043 2006-07-11  Derek R. Price  <derek@ximbiot.com>
71044
71045         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
71046
71047 2006-07-11  Bruno Haible  <bruno@clisp.org>
71048
71049         * README: Mention where to put documentation.
71050
71051 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71052
71053         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
71054
71055 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
71056
71057         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
71058         to stdint.m4.
71059
71060 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
71061
71062         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
71063         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
71064         "no/such/file/stdint.h" when there is no such file, so that
71065         the resulting C code can be parsed by dodgy compilers.
71066         Problems reported by Bob Proulx.
71067
71068 2006-07-10  Derek R. Price  <derek@ximbiot.com>
71069
71070         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
71071         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
71072         macros into the GNU _D_EXACT_NAMLEN.
71073         * lib/savedir.c:  Likewise.
71074         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
71075
71076 2006-07-10  Derek R. Price  <derek@ximbiot.com>
71077         and Paul Eggert  <eggert@cs.ucla.edu>
71078
71079         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
71080         * m4/savedir.m4:
71081         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
71082         macros into the GNU _D_EXACT_NAMLEN.
71083
71084 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71085
71086         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
71087         around the absolute name, to work around a problem with the HP-UX
71088         11.23 native C compiler, reported by Bob Proulx.
71089
71090 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71091
71092         * doc/maintain.texi, make-stds.texi: Sync from
71093         <http://savannah.gnu.org/projects/gnustandards>.
71094
71095 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71096
71097         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
71098
71099 2006-07-09  Jim Meyering  <jim@meyering.net>
71100
71101         * m4/glob.m4: Remove a doubled word in a comment.
71102
71103 2006-07-09  Jim Meyering  <jim@meyering.net>
71104
71105         * lib/argp-pv.c: Remove a doubled word in a comment.
71106         * lib/check-version.c (check_version): Likewise.
71107         * lib/javacomp.c (compile_java_class): Likewise.
71108
71109 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
71110
71111         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
71112         for the benefit of people using Autoconf 2.60.  If you want to
71113         support older Autoconf versions you can copy m4/onceonly_2_57.m4
71114         (or m4/onceonly.m4, if pre-2.57) manually.
71115
71116 2006-07-08  Jim Meyering  <jim@meyering.net>
71117
71118         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
71119         comment.
71120         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
71121         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
71122         comment.
71123
71124 2006-07-08  Jim Meyering  <jim@meyering.net>
71125
71126         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
71127
71128 2006-07-07  Simon Josefsson  <jas@extundo.com>
71129
71130         * tests/test-crc.c: Change expected crc value, the test vector
71131         were probably computed using the old broken crc.c?
71132
71133 2006-07-06  Simon Josefsson  <jas@extundo.com>
71134
71135         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
71136         now the canonical place for the M4 file).
71137
71138         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
71139         from the sys_socket dependency now.
71140
71141         * modules/inet_pton (Files): Ditto.
71142
71143         * modules/inet_ntop (Files): Ditto.
71144
71145 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71146
71147         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
71148         not gl_PREREQ_GETUSERSHELL.
71149
71150 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71151
71152         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
71153         with only one argument, for Autoconf 2.60.
71154         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
71155         expand to nothing, so add a shell command to avoid syntax error.
71156         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
71157
71158 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71159
71160         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
71161
71162 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71163
71164         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
71165         no longer needed.  Check for isblank decl.
71166         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
71167         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
71168         of existence.
71169
71170 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71171
71172         * lib/getloadavg.c: Use __VMS, not VMS.
71173         * lib/getopt.c: Likewise.
71174         * lib/getpagesize.h: Likewise.
71175         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
71176         and probably does not work.
71177
71178 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71179
71180         * lib/.cppi-disable: Add wcwidth.
71181         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
71182         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
71183         (ISGRAPH): Remove.  All uses changed to isgraph.
71184         (FOLD) [!defined _LIBC]: Remove special case.
71185         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
71186         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
71187         HAVE_ISBLANK.
71188         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
71189         case.
71190
71191 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
71192
71193         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
71194         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
71195         brackets.  Other minor changes to suppress some compiler
71196         warnings.
71197
71198 2006-07-06  Derek R. Price  <derek@ximbiot.com>
71199         and Paul Eggert  <eggert@cs.ucla.edu>
71200
71201         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
71202         of invoking obsolescent AC_HEADER_DIRENT macro.
71203         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
71204         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
71205         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
71206         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
71207         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
71208         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
71209         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
71210         * m4/readdir.m4: Remove; no longer needed.
71211
71212 2006-07-06  Derek R. Price  <derek@ximbiot.com>
71213         and Paul Eggert  <eggert@cs.ucla.edu>
71214
71215         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
71216         Don't worry about this obsolete case any more.
71217         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
71218         directories.
71219         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
71220         worry about this obsolete case any more.
71221         * lib/fts.c: Likewise.
71222         * lib/getcwd.c: Likewise.
71223         * lib/glob.h: Likewise.
71224         * lib/savedir.c: Likewise.
71225
71226 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
71227
71228         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
71229         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
71230         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
71231         needed.
71232         All uses removed.
71233         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71234         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
71235         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
71236         needed.
71237         * m4/getdate.m4 (gl_GETDATE): Likewise.
71238         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
71239         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
71240         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
71241         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71242         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
71243         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71244         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
71245         needed.
71246
71247 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
71248
71249         * lib/memcasecmp.c: Include <limits.h>.
71250         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
71251         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
71252         Don't assume isdigit succeeds only on '0' through '9'.
71253
71254 2006-07-05  Eric Blake  <ebb9@byu.net>
71255
71256         * modules/getaddrinfo (Depends-on): Add snprintf.
71257
71258 2006-07-05  Eric Blake  <ebb9@byu.net>
71259
71260         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
71261         to avoid 'header present but could not be compiled' on cygwin.
71262
71263 2006-07-05  Eric Blake  <ebb9@byu.net>
71264
71265         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
71266         missing from netdb.h.
71267         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
71268
71269 2006-07-05  Derek R. Price  <derek@ximbiot.com>
71270
71271         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
71272         no longer needed.
71273         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
71274         * m4/getdate.m4 (gl_GETDATE): Likewise.
71275         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
71276         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
71277         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
71278         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71279         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71280
71281 2006-07-05  Derek R. Price  <derek@ximbiot.com>
71282
71283         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
71284         All uses of is_space replaced by isspace.
71285         * lib/exit.h: Don't talk about STDC_HEADERS.
71286         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
71287         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
71288         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
71289         replaced by isprint etc.
71290         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
71291         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
71292         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
71293         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
71294         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
71295         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
71296
71297 2006-07-05  Bruno Haible  <bruno@clisp.org>
71298
71299         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
71300         the function exists, before testing against AIX.
71301         Reported by Martin Lambers <marlam@marlam.de>.
71302
71303 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
71304
71305         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
71306         From Mark D. Baushke.
71307
71308 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
71309
71310         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
71311         to the absolute name, not just one, to bypass Sun C 5.8's
71312         "warning: #include of /usr/include/... may be non-portable".
71313
71314 2006-07-04  Eric Blake  <ebb9@byu.net>
71315
71316         * modules/dirname-tests: New test module.
71317         * tests/test-dirname.c: New file, replacing dirname.c
71318         TEST_DIRNAME section that was recently deleted.
71319
71320 2006-07-04  Bruno Haible  <bruno@clisp.org>
71321
71322         Assume ANSI C header files and <ctype.h> functions.
71323         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
71324         (mbsnwidth): Use isprint, iscntrl instead.
71325
71326 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71327
71328         Merge from coreutils.
71329         * MODULES.html.sh: Add xstrtold.
71330         * modules/xstrtold: New file.
71331         * modules/cycle-check (Files): Add lib/same-inode.h.
71332         * modules/dirname (Files): Add m4/double-slash-root.m4.
71333         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
71334         * modules/mkdir-p (Files): Add lib/same-inode.h.
71335         * modules/same (Files): Add lib/same-inode.h.
71336
71337 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71338
71339         * m4/absolute-header.m4: Renamed from full-header-path.m4.
71340         This is to keep the terminology clean; POSIX talks about
71341         "absolute pathnames", not "full pathnames", but the GNU
71342         Coding Standards say to use "path" for something else;
71343         so use "absolute" to keep both sides happy.
71344         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
71345         Set gl_absolute_header, not gl_full_header_path.
71346         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
71347         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
71348         All uses changed.
71349
71350         Merge from coreutils.
71351
71352         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
71353
71354         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
71355         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
71356         want to require the building of c-strtod.o.
71357         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
71358         needs -lm directly.
71359         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
71360
71361         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
71362
71363         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
71364         --as-needed option if available.  Problem reported by Albert Chin in
71365         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
71366         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
71367         cc merely issues a bunch of annoying warnings for --as-needed
71368         (this problem was reported by Bob Proulx).  Also, try linking with
71369         -lm to detect a bug in binutils 2.16 (this problem was reported
71370         by Ralf Wildenhues).
71371
71372         2006-06-18  Jim Meyering  <jim@meyering.net>
71373
71374         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
71375         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
71376         macro.
71377         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
71378         also check for glibc-2.4's abort-inducing bug.
71379
71380         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
71381         Low-probability clean-up should be to use rmdir to get rid of
71382         the just-created directory, not unlink.
71383
71384         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
71385         configure fail, and request a bug report to inform us about it.
71386         Add a comment that, barring reports to the contrary, in 2007 we'll
71387         assume ftruncate is universally available.
71388
71389         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
71390
71391         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
71392
71393         2006-03-12  Jim Meyering  <jim@meyering.net>
71394
71395         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
71396         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
71397         * m4/same.m4 (gl_SAME): Likewise.
71398         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
71399
71400         2006-03-11  Eric Blake  <ebb9@byu.net>
71401
71402         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
71403         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
71404         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
71405         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
71406
71407 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71408
71409         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
71410         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
71411         reported by Mark D. Baushke, one in
71412         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
71413
71414         Merge from coreutils.
71415
71416         * lib/.cppi-disable: Add stdint_.h.
71417         * lib/.cvsignore: Add stdint.h.
71418
71419         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
71420
71421         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
71422         both double and long double versions.
71423         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
71424         * lib/xstrtold.c: New file.
71425         * lib/xstrtod.h (xstrtold): New decl.
71426
71427         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
71428
71429         * lib/filemode.c (setst): Remove.
71430         (strmode): Rewrite to avoid setst.  This makes the code shorter,
71431         (arguably) clearer, and the generated code is a bit smaller on my
71432         Debian GNU/Linux stable x86 host.
71433
71434         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
71435
71436         * lib/filemode.c: Include "filemode.h" first, to test the interface.
71437         Assume that filemode.h includes sys/types.h and sys/stat.h.
71438         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
71439         (ftypelet): Reorder to put common cases first, for efficiency.
71440         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
71441         to do 'M'.
71442         (strmode): Renamed from mode_string, and now stores 12 bytes instead
71443         of 10, for compatibility with FreeBSD.  All callers changed.
71444         (filemodestring): Now stores 12 bytes instead of 10, and sets file
71445         types that can't be deduced solely from st_mode.  First arg is now a
71446         const pointer.
71447         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
71448         (strmode): Renamed from mode_string.
71449         (filemodestring): New decl.
71450         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
71451         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
71452         needed.
71453         (S_ISPORT, S_ISWHT): New macros, if not already defined.
71454
71455         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
71456
71457         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
71458         fsusage.h now does that.  Include fsusage.h first, to test interface.
71459         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
71460         at most one method (the old code could have generated decls that
71461         didn't conform to C89, not that this was ever exercised).
71462         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
71463
71464         2006-03-19  Jim Meyering  <jim@meyering.net>
71465
71466         Work even in a chroot where d_ino values for entries in "/"
71467         don't match the stat.st_ino values for the same names.
71468         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
71469         number, iterate through all entries again, using lstat instead.
71470         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
71471         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
71472
71473         * lib/getcwd.c (__getcwd): Clarify a comment.
71474         Use memcpy in place of a call to strcpy.
71475
71476         2006-03-12  Jim Meyering  <jim@meyering.net>
71477
71478         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
71479         matches that of the current directory (which we're about to chdir ".."
71480         out of), then save the dev-ino of the parent, instead.
71481
71482         * lib/same-inode.h (SAME_INODE): New file/macro.
71483         * lib/chdir-safer.c (SAME_INODE): Remove definition.
71484         Include "same-inode.h", instead.
71485         * lib/same.c: Likewise.
71486         * lib/cycle-check.h: Include "same-inode.h".
71487         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
71488         * lib/cycle-check.c (SAME_INODE): Remove definition.
71489         * lib/root-dev-ino.h: Include "same-inode.h".
71490
71491         2006-03-11  Eric Blake  <ebb9@byu.net>
71492
71493         * lib/same.c (same_name): s/base_name/last_component/
71494         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
71495         * lib/filenamecat.c (file_name_concat): Likewise.
71496
71497         2006-03-11  Eric Blake  <ebb9@byu.net>,
71498                     Paul Eggert  <eggert@cs.ucla.edu>
71499
71500         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
71501         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
71502         drive prefix.
71503         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
71504         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
71505         (last_component): New method.
71506         * lib/dirname.c (dir_len): Determine when drive letters need a
71507         subsequent slash.  Preserve // when it is special.
71508         (dir_name): Don't append dot when drive letter is absolute.
71509         [TEST_DIRNAME]: Move into a full-blown gnulib test.
71510         * lib/basename.c (base_name): New semantics - malloc the result.
71511         Preserve // when it is special.  Preserve relative files that look
71512         like drive letters.
71513         (base_len): Preserve // when it is special.
71514         (last_component): New method, similar to old base_name semantics.
71515         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
71516         base_name.  Strip redundant slashes from ///.
71517
71518 2006-07-03  Jim Meyering  <jim@meyering.net>
71519
71520         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
71521         macro is used before the first cycle_check call.
71522
71523 2006-07-03  Eric Blake  <ebb9@byu.net>
71524
71525         * modules/dirname (Depends-on): Add xstrndup.
71526
71527 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
71528
71529         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
71530         test cases, so that config.log is a bit easier to follow.
71531
71532 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
71533
71534         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
71535         both are 64 bits, since this seems to be the tradition, and this
71536         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
71537         we ever run into a host that prefers long long to long in this
71538         case, we'll need another configure-time test.  Problem reported by
71539         Jim Meyering.
71540
71541 2006-07-02  Eric Blake  <ebb9@byu.net>
71542
71543         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
71544
71545 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71546
71547         * modules/inttypes (Depends-on): No longer depends on stdint.
71548         * modules/stdint (Description): Say more about assumptions.
71549         Say that the fast types might differ.  Say macros are used.
71550         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
71551         (Makefile.am): Revise list of substituted symbols to match
71552         new stdint.m4.
71553         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
71554         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
71555         * tests/test-stdint.c (verify_same_types)
71556         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
71557         the code conforms to C99/C89.
71558         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
71559         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
71560
71561 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71562
71563         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
71564         but fix a bug, by requiring at least 64 bits.
71565         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
71566         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
71567         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
71568         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
71569
71570         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
71571         changes.  Make 2.59 a prerequisite.  Check and substitute for
71572         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
71573         inttypes.h.  Do not use special include files; just use the
71574         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
71575         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
71576         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
71577         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
71578         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
71579         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
71580         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
71581         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
71582         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
71583         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
71584         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
71585         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
71586         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
71587         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
71588         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
71589         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
71590         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
71591         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
71592         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
71593         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
71594         WINT_MAX.  Check for C99 conformance more strictly, by detecting
71595         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
71596         not check for things that C99 does not require, e.g., int8_t.  If
71597         a test isn't needed unless <stdint.h> isn't working, and is
71598         unlikely to be needed for any other reason, then don't do it
71599         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
71600         size_t, since we assume C89 freestanding at least.  Do not check
71601         for sig_atomic_t, wchar_t, or wint_t, since the code now does
71602         the right thing even if the types are not defined.  Instead use:
71603         (gl_STDINT_TYPE_PROPERTIES): New macro.
71604         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
71605         testing whether <sys/types.h> clashes, as Autoconf does this for
71606         us now.  All uses removed.
71607         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
71608         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
71609         (gl_CHECK_TYPE_SAME):
71610         Remove; no longer needed.
71611         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
71612         exists, since we'll return 0 anyway in that case.
71613         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
71614
71615 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71616
71617         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
71618         possible collision with system files.
71619         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
71620         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
71621         WCHAR_MIN and WCHAR_MAX in this case.
71622         (<stddef.h>): Do not include; no longer needed.
71623         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
71624         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
71625         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
71626         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
71627         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
71628         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
71629         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
71630         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
71631         !defined(__c99))]: Include in this case too, since it's harmless
71632         now.
71633         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
71634         dangerous to do so.
71635         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
71636         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
71637         (_STDINT_MIN, _STDINT_MAX): New macros.
71638         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
71639         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
71640         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
71641         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
71642         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
71643         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
71644         macros, not typedefs; this simplifies things quite a bit.
71645         Use long int for all types narrower than int64_t.
71646         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
71647         Define in terms of long long int or int64_t or long int,
71648         not int64_t or int32_t.  This saves some compile-time testing.
71649         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
71650         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
71651         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
71652         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
71653         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
71654         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
71655         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
71656         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
71657         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
71658         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
71659         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71660         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71661         undef any previous version and define our own version, for
71662         simplicity and consistency with the new macros for types.
71663         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71664         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71665         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
71666         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
71667         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
71668         @WINT_T_SUFFIX@ to keep things simple here.
71669         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
71670         Simplify by assuming typical 8/16/32/64 host, since we're
71671         already doing that elsewhere anyway.
71672         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
71673         and assume long long int is 64 bits if available.  This
71674         speeds up 'configure'.
71675
71676 2006-07-01  Eric Blake  <ebb9@byu.net>
71677
71678         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
71679         Reported by Andreas Buening.
71680
71681 2006-07-01  Eric Blake  <ebb9@byu.net>
71682
71683         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
71684
71685 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
71686
71687         * lib/getaddrinfo.c: fixed typo
71688
71689 2006-06-29  Jim Meyering  <jim@meyering.net>
71690
71691         * modules/strftime (Maintainer): Add my name, since with the
71692         FPRINTFTIME changes strftime.c has forked from glibc.
71693
71694 2006-06-29  Eric Blake  <ebb9@byu.net>
71695
71696         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
71697
71698 2006-06-29  Eric Blake  <ebb9@byu.net>
71699
71700         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
71701
71702 2006-06-29  Eric Blake  <ebb9@byu.net>
71703
71704         * lib/stat_.h: New file.
71705
71706 2006-06-29  Eric Blake  <ebb9@byu.net>
71707
71708         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
71709         unused static function.
71710
71711 2006-06-29  Eric Blake  <ebb9@byu.net>
71712
71713         * doc/functions.texi (Function Portability): Document missing lstat
71714         on mingw.
71715
71716 2006-06-29  Eric Blake  <ebb9@byu.net>
71717
71718         * MODULES.html.sh: Add sys_stat.
71719         * modules/sys_stat: New module.
71720         * modules/mkstemp (Depends-on): Add sys_stat.
71721
71722 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71723
71724         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
71725
71726 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71727
71728         * m4/c-bs-a.m4: Removed.
71729
71730 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71731
71732         * lib/strftime.c: Assume strftime() exists.
71733
71734 2006-06-29  Derek Price  <derek@ximbiot.com>
71735
71736         * modules/c-bs-a: Removed - \a is C89.
71737         * MODULES.html.sh: Remove c-bs-a.
71738
71739 2006-06-29  Bruno Haible  <bruno@clisp.org>
71740
71741         * modules/wcwidth (License): Change to LGPL.
71742
71743 2006-06-28  Simon Josefsson  <jas@extundo.com>
71744
71745         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
71746         on _WIN32.
71747
71748         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
71749         getnameinfo.
71750
71751 2006-06-28  Simon Josefsson  <jas@extundo.com>
71752
71753         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
71754
71755 2006-06-28  Simon Josefsson  <jas@extundo.com>
71756
71757         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
71758         functions there.  It will succeed on Windows XP, but on Windows
71759         2000 and (presumably) earlier, it will fail, and use the internal
71760         re-implementation.
71761         (use_win32_p): New function.
71762         (getaddrinfo): Use strtoul on servname, to support numeric ports.
71763         Support AI_NUMERICSERV to disable getservbyname.
71764         (getnameinfo): New function, only supports
71765         NI_NUMERICHOST|NI_NUMERICSERV for now.
71766
71767         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
71768         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
71769         getnameinfo.
71770
71771 2006-06-28  Eric Blake  <ebb9@byu.net>
71772
71773         * modules/wcwidth: New file.
71774         * modules/mbchar (Depends-on): Add wcwidth.
71775         * modules/mbswidth (Depends-on): Add wcwidth.
71776         * MODULES.html.sh: Add wcwidth.
71777
71778 2006-06-28  Eric Blake  <ebb9@byu.net>
71779
71780         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
71781         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
71782
71783 2006-06-28  Eric Blake  <ebb9@byu.net>
71784
71785         * lib/xvasprintf.h: Fix comments.
71786
71787 2006-06-28  Eric Blake  <ebb9@byu.net>
71788
71789         * lib/mbchar.h (wcwidth): Include wcwidth.h.
71790         * lib/mbswidth.c (wcwidth): Move from here...
71791         * lib/wcwidth.h: ...to this new file.
71792
71793 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71794
71795         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
71796
71797         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
71798         it's obsolete.
71799         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
71800
71801 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71802
71803         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
71804         Autoconf 2.60 says this stuff was obsolete.
71805
71806 2006-06-28  Bruno Haible  <bruno@clisp.org>
71807
71808         * modules/wcwidth (Files): Add m4/wchar_t.m4.
71809
71810 2006-06-28  Bruno Haible  <bruno@clisp.org>
71811
71812         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
71813         gt_TYPE_WCHAR_T.
71814
71815 2006-06-28  Bruno Haible  <bruno@clisp.org>
71816
71817         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
71818         declaration for wcwidth.
71819         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
71820
71821 2006-06-28  Bruno Haible  <bruno@clisp.org>
71822
71823         * lib/mkdtemp.c [MINGW]: Include <io.h>.
71824         (mkdir): Define using _mkdir.
71825
71826 2006-06-28  Bruno Haible  <bruno@clisp.org>
71827
71828         * lib/getaddrinfo.h: Fix POSIX URL.
71829         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
71830         _WIN32.
71831         (use_win32_p): Make static.
71832         (getaddrinfo): Reject service name if it is empty or does not consist
71833         solely of decimal digits, or if its value is > 65535.
71834         (getnameinfo): Remove useless casts.
71835
71836 2006-06-27  Simon Josefsson  <jas@extundo.com>
71837
71838         * modules/sys_select: New file, suggested by Bruno Haible, Paul
71839         Eggert and Martin Lambers.
71840
71841 2006-06-27  Simon Josefsson  <jas@extundo.com>
71842
71843         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
71844         Eggert and Martin Lambers.
71845
71846 2006-06-27  Bruno Haible  <bruno@clisp.org>
71847
71848         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
71849         result to 0, not to empty.
71850         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
71851
71852 2006-06-27  Bruno Haible  <bruno@clisp.org>
71853
71854         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
71855
71856 2006-06-26  Simon Josefsson  <jas@extundo.com>
71857
71858         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
71859         present.
71860
71861 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
71862
71863         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
71864         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
71865         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
71866
71867 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
71868
71869         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
71870
71871 2006-06-26  Bruno Haible  <bruno@clisp.org>
71872
71873         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
71874
71875 2006-06-26  Bruno Haible  <bruno@clisp.org>
71876
71877         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
71878
71879 2006-06-26  Bruno Haible  <bruno@clisp.org>
71880
71881         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
71882         SGI C compiler in pre-C99 mode.
71883         Suggested by Mark D. Baushke and Larry Jones.
71884
71885 2006-06-26  Bruno Haible  <bruno@clisp.org>
71886
71887         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
71888         WCHAR_MAX.
71889         Reported by Mark D. Baushke and Larry Jones.
71890
71891 2006-06-26  Bruno Haible  <bruno@clisp.org>
71892
71893         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
71894         in pre-C99 mode.
71895         Suggested by Mark D. Baushke and Larry Jones.
71896
71897 2006-06-23  Simon Josefsson  <jas@extundo.com>
71898             Bruno Haible  <bruno@clisp.org>
71899
71900         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
71901         Emit mostlyclean-local rule.
71902         (func_emit_tests_Makefile_am): Likewise.
71903         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
71904
71905 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
71906
71907         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
71908
71909 2006-06-23  Bruno Haible  <bruno@clisp.org>
71910
71911         * tests/test-stdint.c: Update to match ISO C 99 Technical
71912         Corrigendum 1.
71913
71914 2006-06-23  Bruno Haible  <bruno@clisp.org>
71915
71916         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
71917
71918 2006-06-23  Bruno Haible  <bruno@clisp.org>
71919
71920         * lib/stdint_.h: Treat IRIX like OpenBSD.
71921
71922 2006-06-23  Bruno Haible  <bruno@clisp.org>
71923
71924         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
71925         ISO C 99 Technical Corrigendum 1.
71926
71927 2006-06-22  Simon Josefsson  <jas@extundo.com>
71928
71929         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
71930         MinGW.
71931
71932 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71933
71934         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
71935         needed.  Some compiler complained about some of them.  Problem reported
71936         by Larry Jones in
71937         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
71938
71939 2006-06-21  Simon Josefsson  <jas@extundo.com>
71940
71941         * tests/test-getaddrinfo.c: New file.
71942
71943         * modules/getaddrinfo-tests: New file.
71944
71945         * MODULES.html.sh: Add inet_pton.
71946
71947         * modules/inet_pton: New file.
71948
71949 2006-06-21  Simon Josefsson  <jas@extundo.com>
71950
71951         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
71952         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
71953         of using the (limited) gnulib implementation on Windows XP.
71954
71955         * m4/inet_pton.m4: New file.
71956
71957 2006-06-21  Simon Josefsson  <jas@extundo.com>
71958
71959         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
71960         variable.
71961
71962         * lib/socket_.h: Don't define WINVER.
71963
71964         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
71965         slightly modified to work in gnulib.
71966
71967 2006-06-21  Simon Josefsson  <jas@extundo.com>
71968
71969         * doc/gnulib.texi (Windows sockets): Add.
71970
71971 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
71972
71973         * lib/read-file.c (fread_file): Start with buffer allocation of
71974         0 bytes rather than 1 byte; this simplifies the code.
71975         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
71976         code to free buffer and save/restore errno.
71977         (internal_read_file): Remove unused local.
71978
71979 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
71980
71981         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
71982         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
71983         Problem reported by Denis Excoffier in
71984         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
71985
71986 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71987
71988         * modules/sys_socket, modules/socklen: Include sys/types since
71989         FreeBSD 4.x's sys/socket.h needs it.
71990
71991 2006-06-19  Simon Josefsson  <jas@extundo.com>
71992
71993         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
71994
71995 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
71996
71997         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
71998
71999 2006-06-19  Bruno Haible  <bruno@clisp.org>
72000
72001         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
72002         and FULL_PATH_INTTYPES_H in angle brackets.
72003         Reported by Mark D. Baushke <mdb@gnu.org>.
72004
72005 2006-06-17  Eric Blake  <ebb9@byu.net>
72006
72007         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
72008         errno.
72009
72010 2006-06-17  Bruno Haible  <bruno@clisp.org>
72011
72012         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
72013         <sys/inttypes.h>.
72014
72015 2006-06-17  Bruno Haible  <bruno@clisp.org>
72016
72017         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
72018         whether errno is declared. Assume <errno.h> declares errno.
72019
72020 2006-06-17  Bruno Haible  <bruno@clisp.org>
72021
72022         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
72023
72024 2006-06-17  Bruno Haible  <bruno@clisp.org>
72025
72026         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
72027         problem on Solaris 2.5.1.
72028
72029 2006-06-16  Eric Blake  <ebb9@byu.net>
72030
72031         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
72032         * lib/unicodeio.c [!defined errno]: Likewise.
72033         * lib/strtol.c [!defined errno]: Likewise.
72034         * lib/strtod.c [!defined errno]: Likewise.
72035
72036 2006-06-15  Eric Blake  <ebb9@byu.net>
72037
72038         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
72039
72040 2006-06-15  Eric Blake  <ebb9@byu.net>
72041
72042         * config/srclist.txt (ssize_t.m4): Lose sync.
72043
72044 2006-06-15  Bruno Haible  <bruno@clisp.org>
72045
72046         * modules/stdint (Files): Include m4/full-header-path.m4,
72047         m4/size_max.m4, m4/wchar_t.m4.
72048         (Makefile.am): Many more substitutions.
72049         * modules/stdint-tests: New file.
72050         * tests/test-stdint.c: New file.
72051
72052 2006-06-15  Bruno Haible  <bruno@clisp.org>
72053
72054         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
72055         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
72056         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
72057         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
72058         gl_CHECK_TYPE_SAME): New macros.
72059
72060 2006-06-15  Bruno Haible  <bruno@clisp.org>
72061
72062         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
72063
72064 2006-06-15  Bruno Haible  <bruno@clisp.org>
72065
72066         * lib/stdint_.h: Rewritten to be fully auto-configured.
72067         Fixes bug on HP-UX/IA64.
72068
72069 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
72070
72071         * lib/getdate.y (__attribute__): Don't define if already defined.
72072         Problem reported by Larry Jones.
72073         * lib/utimens.c (__attribute__): Likewise.
72074
72075 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
72076
72077         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
72078         reported by Andreas Schwab.
72079
72080 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72081             Bruno Haible  <bruno@clisp.org>
72082
72083         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
72084         check for the declaration of strnlen and a run test that exposes the
72085         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
72086         rpl_strndup.
72087
72088 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72089             Bruno Haible  <bruno@clisp.org>
72090
72091         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
72092
72093 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72094
72095         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
72096         compile test, for Tru64 4.0D.
72097
72098 2006-05-28  Karl Berry  <karl@gnu.org>
72099
72100         * config/srclist.txt (printf-args.c): lose sync.
72101
72102 2006-05-26  Martin Lambers  <marlam@marlam.de>
72103
72104         * lib/getpass.c: Updates the test for the native W32 API, and adds
72105         missing includes, thus fixing compilation warnings.
72106
72107 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72108
72109         * lib/exclude.c (exclude_fnmatch): New function.
72110         (excluded_file_name): Call exclude_fnmatch.
72111         * lib/exclude.h (excluded_file_name): New prototype
72112
72113 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
72114
72115         * lib/tempname.c (small_open, large_open): New macros.
72116         (__open, __open64) [!_LIBC]: Remove.
72117         (__gen_tempname): Use small_open and large_open instead of __open
72118         and __open64.  This fixes a portability bug on HP-UX 11.11i
72119         reported by Simon Wing-Tang in
72120         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
72121
72122 2006-05-24  Bruno Haible  <bruno@clisp.org>
72123
72124         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
72125         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
72126         Reported by Thorsten Maerz <torte@netztorte.de> via
72127         Aaron Stone <aaron@serendipity.cx>.
72128
72129 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
72130
72131         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
72132         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
72133         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
72134         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
72135         not really conditional on the cache.
72136         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
72137
72138 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
72139
72140         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
72141         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
72142         (my_usleep): Don't mishandle maximum value.
72143
72144 2006-05-19  Jim Meyering  <jim@meyering.net>
72145
72146         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
72147
72148 2006-05-17  Bruno Haible  <bruno@clisp.org>
72149
72150         Cygwin portability.
72151         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
72152
72153 2006-05-17  Bruno Haible  <bruno@clisp.org>
72154
72155         * lib/stdint_.h: Fix recognition of Cygwin.
72156
72157 2006-05-15  Bruno Haible  <bruno@clisp.org>
72158
72159         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
72160         on libtool patch by Ralf Wildenhues.
72161
72162 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
72163
72164         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
72165         test for C99 conformance; (bool) 0.5 is an integer constant
72166         expression, but (bool) -0.5 is not.  Problem reported by Fedor
72167         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
72168
72169 2006-05-11  Simon Josefsson  <jas@extundo.com>
72170
72171         * m4/xvasprintf.m4: Fix obvious typo.
72172
72173 2006-05-11  Jim Meyering  <jim@meyering.net>
72174
72175         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
72176         James Lemley.
72177
72178 2006-05-10  Simon Josefsson  <jas@extundo.com>
72179
72180         * lib/md4.c: Typo fix, update copyright years.
72181         (K1, K2): Don't use L because it turn computations into 64-bit on
72182         64-bit platforms.
72183
72184 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
72185
72186         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
72187         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
72188         unwanted sign propagation, e.g., on hosts with 64-bit int.
72189         There still are some problems with reeelly weird theoretical hosts
72190         (e.g., 33-bit int) but it's not worth worrying about now.
72191         * lib/sha1.c (rol): Likewise.
72192         (K1, K2, K3, K4): Remove unnecessary L suffix.
72193
72194 2006-05-10  Bruno Haible  <bruno@clisp.org>
72195
72196         * lib/des.c: Cast to avoid warnings.
72197
72198 2006-05-09  Bruno Haible  <bruno@clisp.org>
72199
72200         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
72201         (Depends-on): Depend also on xsize, stdarg.
72202         (configure.ac): Add gl_XVASPRINTF.
72203
72204 2006-05-09  Bruno Haible  <bruno@clisp.org>
72205
72206         * m4/xvasprintf.m4: New file.
72207
72208 2006-05-09  Bruno Haible  <bruno@clisp.org>
72209
72210         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
72211         (EOVERFLOW): Define fallback value.
72212         (xstrcat): New function.
72213         (xvasprintf): Recognize the special case of a string concatenation.
72214
72215 2006-05-08  Eric Blake  <ebb9@byu.net>
72216
72217         * gnulib-tool (func_version): Base copyright year on CVS date.
72218         (func_emit_copyright_notice): New function.
72219         (func_emit_lib_Makefile_am): Use it.
72220         (func_emit_tests_Makefile_am): Likewise.
72221         (func_import): Likewise.
72222
72223 2006-05-08  Bruno Haible  <bruno@clisp.org>
72224
72225         * modules/stdarg: New file.
72226         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
72227
72228 2006-05-08  Bruno Haible  <bruno@clisp.org>
72229
72230         * m4/stdarg.m4: New file, from GNU gettext.
72231
72232 2006-05-08  Bruno Haible  <bruno@clisp.org>
72233
72234         * config/srclist.txt (build-aux/config.rpath): different from latest
72235         release.
72236
72237 2006-05-08  Bruno Haible  <bruno@clisp.org>
72238
72239         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
72240
72241 2006-05-05  Jim Meyering  <jim@meyering.net>
72242
72243         * m4/warning.m4: New file, derived from bison's file by the same name.
72244
72245 2006-05-03  Bruno Haible  <bruno@clisp.org>
72246
72247         * lib/stdint_.h: Shorter URL.
72248         * lib/inttypes.h: Likewise.
72249
72250 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72251
72252         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
72253
72254 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72255
72256         * lib/verify.h: Document the internals better.  Most of this change
72257         was written by Bruno Haible.
72258
72259 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72260
72261         * doc/verify.texi: New file, partly based on a proposal by
72262         Bruno Haible.
72263
72264 2006-05-02  Bruno Haible  <bruno@clisp.org>
72265
72266         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
72267         test from here...
72268         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
72269
72270 2006-04-29  Bruno Haible  <bruno@clisp.org>
72271
72272         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
72273         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
72274
72275 2006-04-29  Bruno Haible  <bruno@clisp.org>
72276
72277         * gnulib-tool: Make --update option actually work.
72278
72279 2006-04-29  Bruno Haible  <bruno@clisp.org>
72280
72281         * doc/gcd.texi: New file.
72282         * doc/gnulib.texi: Include it.
72283
72284 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
72285
72286         * lib/getdate.y (get_date): When adding relative date, start with the
72287         initial time, not with the result of the first mktime call.
72288
72289 2006-04-25  Bruno Haible  <bruno@clisp.org>
72290
72291         * gnulib-tool (func_import): Output the include directives in three
72292         blocks, sorted separately.
72293         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72294
72295 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
72296
72297         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
72298         to define main with arguments, for C++.  Reported by Eric Blake.
72299         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
72300         Prefer 'int main ()' to 'int main (void)', for C++.
72301         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
72302         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
72303         for 'main', for C99 and C++.
72304
72305 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
72306
72307         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
72308         Don't assume that exit status -1 is valid.
72309         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72310         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
72311         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
72312         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
72313         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
72314         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
72315         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
72316         functions can be used without declaring them, or that you can
72317         exit with status -1.
72318         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
72319
72320 2006-04-24  Karl Berry  <karl@gnu.org>
72321
72322         * config/srclist.txt (longdouble.m4): sync lost.
72323
72324 2006-04-24  Eric Blake  <ebb9@byu.net>
72325
72326         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
72327
72328 2006-04-24  Bruno Haible  <bruno@clisp.org>
72329
72330         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
72331         poll() implementation in AIX.
72332         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72333
72334 2006-04-24  Bruno Haible  <bruno@clisp.org>
72335
72336         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
72337         assigned exactly once.
72338
72339 2006-04-23  Claudio Fontana  <claudio@gnu.org>
72340             Bruno Haible  <bruno@clisp.org>
72341
72342         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
72343         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
72344         for AM_CPPFLAGS.
72345
72346 2006-04-23  Bruno Haible  <bruno@clisp.org>
72347
72348         * modules/copy-file: Depend on unistd.
72349         * modules/execute: Likewise.
72350         * modules/fatal-signal: Likewise.
72351         * modules/findprog: Likewise.
72352         * modules/mkdtemp : Likewise.
72353         * modules/pipe: Likewise.
72354         * modules/wait-process: Likewise.
72355
72356 2006-04-23  Bruno Haible  <bruno@clisp.org>
72357
72358         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
72359         condition was already detected.
72360         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72361
72362 2006-04-23  Bruno Haible  <bruno@clisp.org>
72363
72364         * lib/copy-file.c: Include <unistd.h> unconditionally.
72365         * lib/execute.c: Likewise.
72366         * lib/fatal-signal.c: Likewise.
72367         * lib/findprog.c: Likewise.
72368         * lib/mkdtemp.c: Likewise.
72369         * lib/pipe.h: Likewise.
72370         * lib/pipe.c: Likewise.
72371         * lib/wait-process.h: Likewise.
72372
72373 2006-04-23  Bruno Haible  <bruno@clisp.org>
72374
72375         * gnulib-tool (func_usage): Fix --import description. Document
72376         --update.
72377         (func_import): Create temporary file in a temporary directory, if
72378         --dry-run is specified. Silence errors from 'grep' when there are no
72379         m4 files in $m4dir.
72380         (func_create_testdir): Silence errors from 'grep' when there are no
72381         m4 files in $m4dir.
72382         Reported by Karl Berry <karl@freefriends.org>.
72383
72384 2006-04-20  Bruno Haible  <bruno@clisp.org>
72385
72386         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
72387         one argument, so that the code will be portable to Autoconf 2.60.
72388         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
72389         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
72390         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
72391
72392 2006-04-19  Derek Price  <derek@ximbiot.com>
72393             Eric Blake  <ebb9@byu.net>
72394
72395         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
72396         rather than "/full/path.h".  Update comment to match.  Shorten &
72397         generalize m4_translit call via AS_TR_CPP.
72398
72399 2006-04-19  Derek Price  <derek@ximbiot.com>
72400             Eric Blake  <ebb9@byu.net>
72401
72402         * lib/inttypes.h: Correct grammar in comment.
72403
72404 2006-04-18  Derek Price  <derek@ximbiot.com>
72405             Paul Eggert  <eggert@cs.ucla.edu>
72406
72407         * modules/inttypes: New file.
72408         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
72409
72410 2006-04-18  Derek Price  <derek@ximbiot.com>
72411             Paul Eggert  <eggert@cs.ucla.edu>
72412
72413         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
72414         New files.
72415
72416 2006-04-18  Derek Price  <derek@ximbiot.com>
72417             Paul Eggert  <eggert@cs.ucla.edu>
72418
72419         * lib/inttypes.h: New file.
72420         * lib/strtoimax.c: Assume <inttypes.h>.
72421
72422 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
72423
72424         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
72425         isn't mounted.  Problem reported by Kir Kolyshkin.
72426
72427 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
72428
72429         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
72430         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
72431         Derek R. Price.
72432         * lib/regex.h (RE_DUP_MAX): Update comment to match current
72433         implementation.
72434
72435 2006-04-12  Eric Blake  <ebb9@byu.net>
72436
72437         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
72438         is now done automatically by the corresponding Autoconf macro.
72439
72440 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
72441
72442         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
72443         time_r.h.
72444
72445 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72446
72447         Merge regex changes from libc, removing some of our
72448         POSIX-conformance changes that were rejected and redoing them in a
72449         less-intrusive way.
72450
72451         * lib/regcomp.c (re_compile_internal, init_dfa):
72452         Length arg is now size_t, not Idx.  All uses changed.
72453         (peek_token): Forward decl now says internal_function.
72454         (__re_error_msgid, __re_error_msgid_idx):
72455         Now static rather than extern with attribute_hidden.
72456         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
72457         For some reason libc prefers K&R style defns for external functions.
72458         (regerror) [!defined _LIBC]: Likewise.
72459         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
72460         (seek_collating_symbol_entry, lookup_collation_sequence_value):
72461         (build_range_exp, build_collating_symbol):
72462         Use K&R-style defn.
72463         (re_compile_fastmap): Use '\0' to memset, not 0.
72464         (utf8_sb_map): Make the calculations more obvious.
72465         (init_dfa, parse_bracket_exp, build_charclass_op):
72466         Call calloc and cast result, as glibc does.
72467         (init_word_char, fetch_token, peek_token, peek_token_bracket):
72468         (build_range_exp, build_collating_symbol):
72469         Now internal functions.
72470
72471         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
72472
72473         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
72474         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
72475         Don't depend on VMS; depend on __VMS instead, for POSIX
72476         namespace cleanness.
72477         (regoff_t): Define to ssize_t, not long int.
72478
72479         Remove the REG_ macros named below.  Instead, make the old names
72480         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
72481         __USE_GNU_REGEX.
72482         (REG_BACKSLASH_ESCAPE_IN_LISTS):
72483         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
72484         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
72485         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
72486         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
72487         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
72488         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
72489         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
72490         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
72491         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
72492         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
72493         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
72494         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
72495         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
72496         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
72497         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
72498         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
72499         (REG_NREGS):
72500         Remove.  All uses replaced by the old RE_* names.
72501         (RE_BACKSLASH_ESCAPE_IN_LISTS):
72502         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
72503         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
72504         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
72505         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
72506         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
72507         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
72508         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
72509         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
72510         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
72511         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
72512         Don't bother having these macros be independent of each others'
72513         values, since they no longer exist in the POSIX name space.
72514
72515         Rename the following member names back to their old names,
72516         unless !__USE_GNU_REGEX.  All uses changed back.
72517         (buffer): Renamed from re_buffer.
72518         (allocated): Renamed from re_allocated.
72519         (used): Renamed from re_used.
72520         (syntax): Renamed from re_syntax.
72521         (fastmap): Renamed from re_fastmap.
72522         (translate): Renamed from re_translate.
72523         (can_be_null): Renamed from re_can_be_null.
72524         (regs_allocated): Renamed from re_regs_allocated.
72525         (fastmap_accurate): Renamed from re_fastmap_accurate.
72526         (no_sub): Renamed from re_no_sub.
72527         (not_bol): Renamed from re_not_bol.
72528         (not_eol): Renamed from re_not_eol.
72529         (newline_anchor): Renamed from re_newline_anchor.
72530         (num_regs): Renamed from rm_num_regs.
72531         (start): Renamed from rm_start.
72532         (end): Renamed from rm_end.
72533
72534         (free_state): Move up a bit.
72535
72536         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
72537         #define to be empty.
72538         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
72539         when that is what is intended.
72540         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
72541         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
72542         (MAX): New macro.
72543         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
72544         All uses changed back to re_malloc, etc.  It's now the caller's
72545         responsibility to check for overflow; all callers changed.
72546         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
72547         (re_x2nrealloc): Remove.
72548         (free_state): Remove decl.
72549
72550         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
72551         (re_set_registers, re_exec):
72552         Use K&R-style defn.
72553
72554         2006-01-31  Roland McGrath  <roland@redhat.com>
72555
72556         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
72557         Reported by Mike Frysinger <vapier@gentoo.org>.
72558
72559         2006-01-15  Andreas Jaeger  <aj@suse.de>
72560
72561         [BZ #1950]
72562         * lib/regex_internal.c (re_string_reconstruct): Adjust for
72563         build_wcs_upper_buffer change.
72564         (build_wcs_upper_buffer): Change return type.
72565
72566         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
72567
72568         * lib/regex_internal.h: Include <stdint.h> if available.
72569
72570         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
72571
72572         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
72573
72574         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
72575
72576         * lib/regcomp.c: Adjust for changed secondary hash function.
72577
72578         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
72579
72580         * lib/regex.h: Pretty printing.
72581         Clean up namespace a bit.
72582
72583         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
72584
72585         * lib/regexec.c (update_cur_sifted_state, check_arrival,
72586         check_arrival_add_next_nodes): Avoid using uninitialized variable.
72587
72588         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
72589                     Ulrich Drepper  <drepper@redhat.com>
72590
72591         [BZ #1302]
72592         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
72593         changed.
72594         (bitset_word_t): Renamed from bitset_word.  All uses changed.
72595
72596         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
72597
72598         [BZ #281]
72599         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
72600         * lib/regcomp.c: Remove unnecessary uses of
72601         unsigned RE_TRANSLATE_TYPE.
72602         * lib/regex_internal.h: Likewise.
72603         * lib/regex_internal.c: Likewise.
72604         * lib/regexec.c: Likewise.
72605         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
72606
72607         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
72608
72609         * lib/regexec.c (find_recover_state): Remove unnecessary
72610         initialization.
72611         (transit_state_bkref): Make DFA a const pointer.
72612         (get_subexp): Likewise.
72613         (check_arrival): Likewise.
72614         (update_cur_sifted_state): Likewise.
72615         (re_search_internal): Likewise.
72616         (prune_impossible_nodes): Likewise.
72617         (acquire_init_state_context): Likewise.
72618         (proceed_next_node): Likewise.
72619         (set_regs): Likewise.
72620         (free_fail_stack_return): Likewise.
72621         (check_arrival_expand_ecl): Mark DFA parameter as const.
72622         (check_arrival_expand_ecl_sub): Likewise.
72623         (check_subexp_limits): Likewise.
72624         (sub_epsilon_src_nodes):  Likewise.
72625         (add_epsilon_src_nodes):  Likewise.
72626         (merge_state_array): Likewise.
72627         (update_regs): Likewise.
72628         (build_trtable): Likewise.
72629         (sift_states_backward): Mark MCTX parameter as const.
72630         (build_sifted_states): Likewise.
72631         (update_cur_sifted_state): Likewise.
72632         (sift_states_mkref): Likewise.
72633         (check_arrival_expand_ecl): Mark eclosure as const.
72634         (check_dst_limits_calc_pos_1): Likewise.
72635         * lib/regex_internal.h (re_match_context_t): Make dfa a const
72636         pointer.
72637
72638         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
72639
72640         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
72641         (transit_state_sb): Likewise.
72642         (transit_state_mb): Likewise.
72643         (sift_states_iter_mb): Likewise.
72644         (check_arrival_add_next_nodes): Likewise.
72645         (check_node_accept_bytes): Change first parameter to pointer-to-const.
72646         [_LIBC] (re_search_2_stub): Use mempcpy.
72647
72648         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
72649         mbrtowc for very simple UTF-8 case.
72650
72651         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
72652         a pointer-to-const.
72653         (re_acquire_state_context): Likewise.
72654         * lib/regex_internal.h: Adjust prototypes.
72655
72656         * lib/regex.c: Prevent using C++ compilers.
72657
72658         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
72659         (re_acquire_state_context): Likewise.
72660
72661 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72662
72663         * modules/regex (Depends-on): Add ssize_t.
72664
72665 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72666
72667         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
72668         translation table.
72669
72670 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72671
72672         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
72673
72674 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
72675             Bruno Haible  <bruno@clisp.org>
72676
72677         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
72678         <sys/types.h> and <inttypes.h>.
72679
72680 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72681
72682         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
72683         `__error_t_defined', so argp.h will not typedef the former.
72684
72685 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
72686
72687         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
72688         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
72689         glibc names.  Even if glibc is changed to conform to POSIX, the
72690         traditional names will be available anyway, since regex depends on
72691         the extensions module.  Also, fix a longstanding typo in the
72692         implementation of Spencer ERE test #75 from grep 2.3.  Problems
72693         reported by Emanuele Giaquinta.  Also, change sense of cached
72694         variable, so that the message makes sense.
72695
72696 2006-03-24  Simon Josefsson  <jas@extundo.com>
72697
72698         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
72699         including some doc fixes.
72700         (base64_encode_alloc): Fix +1 bug on allocation failures.
72701
72702 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72703
72704         * lib/base64.c (base64_encode): Do not read past end of array with
72705         unsanitized input on systems with CHAR_BIT > 8.
72706
72707 2006-03-24  Eric Blake  <ebb9@byu.net>
72708
72709         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
72710
72711 2006-03-22  Karl Berry  <karl@gnu.org>
72712
72713         * config/srclist.txt (*setenv.[ch]): get from coreutils.
72714         * config/srclistvars.sh (COREUTILS): new var.
72715
72716 2006-03-17  Jim Meyering  <jim@meyering.net>
72717
72718         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
72719         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
72720
72721 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72722
72723         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
72724         no longer needs it.  Instead, check that regoff_t is as least
72725         as wide as ptrdiff_t.
72726
72727         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
72728         so that our regex.h stays compatible with the installed regex.
72729         This is helpful for installers who configure --without-included-regex.
72730         Problem reported by Emanuele Giaquinta.
72731
72732 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72733
72734         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
72735         Typedef to long int, not to off_, as POSIX will likely change
72736         in that direction.
72737
72738 2006-03-15  Eric Blake  <ebb9@byu.net>
72739
72740         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
72741
72742 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72743
72744         * lib/argp-help.c (validate_uparams): Fix typo
72745         * lib/argp-parse.c (argp_default_options): Consistently begin help
72746         messages with a lowercase letter.
72747
72748 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
72749
72750         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
72751         overrun buffers and shouldn't be used (much as gets shouldn't be
72752         used).
72753         * lib/time_r.c (asctime_r, ctime_r): Likewise.
72754
72755 2006-03-08  Simon Josefsson  <jas@extundo.com>
72756
72757         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
72758         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72759
72760 2006-03-08  Simon Josefsson  <jas@extundo.com>
72761
72762         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
72763         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72764
72765 2006-03-08  Simon Josefsson  <jas@extundo.com>
72766
72767         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
72768         signal that configure disabled the device.
72769
72770 2006-03-08  Simon Josefsson  <jas@extundo.com>
72771
72772         * build-aux/maint.mk: Fix refresh-po, to handle no translated
72773         languages.
72774
72775 2006-03-07  Simon Josefsson  <jas@extundo.com>
72776
72777         * modules/getopt (Depends-on): Add unistd.
72778
72779         * modules/unistd: New file.
72780
72781 2006-03-07  Simon Josefsson  <jas@extundo.com>
72782
72783         * modules/gc-random: New file.
72784
72785 2006-03-07  Simon Josefsson  <jas@extundo.com>
72786
72787         * m4/unistd_h.m4: New file.
72788
72789 2006-03-07  Simon Josefsson  <jas@extundo.com>
72790
72791         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
72792         test to be side-effect free by storing the result in the cache
72793         variable gl_cv_lib_readline, and moving the assignment of
72794         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
72795         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72796
72797 2006-03-07  Simon Josefsson  <jas@extundo.com>
72798
72799         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
72800         error on missing devices (the functions will return an error).
72801
72802         * m4/gc.m4: Move random stuff to gc-random.m4
72803
72804 2006-03-07  Simon Josefsson  <jas@extundo.com>
72805
72806         * lib/unistd_.h: New file.
72807
72808 2006-03-07  Simon Josefsson  <jas@extundo.com>
72809
72810         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
72811
72812 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72813
72814         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
72815         Problem reported by Juan Manuel Guerrero.
72816
72817 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72818
72819         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
72820         the unistd module.
72821         * lib/getlogin_r.c: Likewise.
72822         * lib/getlogin_r.h: Likewise.
72823         * lib/glob.c: Likewise.
72824         * lib/pagealign_alloc.c: Likewise.
72825         * lib/unistd_.h: Remove; no longer needed.
72826
72827 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72828
72829         * MODULES.html.sh (Support for systems lacking POSIX:2001):
72830         Add unistd.
72831         * modules/c-stack (Depends-on): Add unistd.
72832         * modules/getlogin_r: Likewise.
72833         * modules/glob: Likewise.
72834         * modules/pagealign_alloc: Likewise.
72835         * modules/unistd (Files): Remove lib/unistd_.h.
72836         (EXTRA_DIST): Remove.
72837         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
72838         need unistd_.h.
72839         (MOSTLYCLEANFILES): Remove unistd.h-t.
72840
72841 2006-03-03  Simon Josefsson  <jas@extundo.com>
72842
72843         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
72844
72845 2006-03-03  Simon Josefsson  <jas@extundo.com>
72846
72847         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
72848         libidn and bison.
72849
72850 2006-03-03  Simon Josefsson  <jas@extundo.com>
72851
72852         * build-aux/maint.mk: Add indent target.
72853
72854 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
72855
72856         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
72857         our replacement poll.h in any case, to avoid a differing
72858         declaration from a system header.  Seen on AIX.
72859
72860 2006-03-01  Simon Josefsson  <jas@extundo.com>
72861
72862         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
72863         <kasal@ucw.cz>.
72864
72865 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72866
72867         * modules/gettime (Depends-on): Add extensions module.
72868         * modules/nanosleep (Depends-on): Likewise.
72869         * modules/settime (Depends-on): Likewise.
72870
72871 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72872
72873         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
72874         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
72875         pedantically.
72876         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72877         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
72878
72879         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
72880         not "==".  Reported by Ralf Wildenhues.
72881
72882 2006-03-01  Karl Berry  <karl@gnu.org>
72883
72884         * doc/Copyright/request-*: new files, synced from gnuorg.
72885
72886 2006-03-01  Karl Berry  <karl@gnu.org>
72887
72888         * config/srclist.txt (Copyright/*): new entries.
72889
72890 2006-02-28  Simon Josefsson  <jas@extundo.com>
72891
72892         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
72893
72894 2006-02-27  Simon Josefsson  <jas@extundo.com>
72895
72896         * lib/base64.h: Indent #define's.  From Jim Meyering
72897         <jim@meyering.net>.
72898
72899 2006-02-27  Jim Meyering  <jim@meyering.net>
72900
72901         Revert the change of 2006-02-24, so these files can continue
72902         to be sync'd from gettext.
72903         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
72904         of `config.h'.
72905
72906 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
72907
72908         * modules/intprops: New file.
72909         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72910         Add intprops.
72911         * modules/getloadavg (Files): Remove lib/intprops.h.
72912         (Depends-on): Add intprops.
72913         * modules/human: Likewise.
72914         * modules/inttostr: Likewise.
72915         * modules/openat: Likewise.
72916         * modules/sig2str: Likewise.
72917         * modules/userspec: Likewise.
72918         * modules/utimecmp: Likewise.
72919         * modules/xnanosleep: Likewise.
72920         * modules/xstrtol: Likewise.
72921
72922 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
72923
72924         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
72925         * modules/lock-tests (TESTS): Use $(EXEEXT).
72926         * modules/tls-tests: Likewise.
72927         * modules/argp-tests: Likewise.
72928         (check_PROGRAMS): New var, replacing...
72929         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
72930
72931 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72932
72933         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
72934         `config.h'.
72935
72936 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
72937
72938         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
72939
72940 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72941
72942         Sync from coreutils.
72943         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
72944         gl_CHDIR_SAFER.
72945
72946 2006-02-22  Jim Meyering  <jim@meyering.net>
72947
72948         Sync from coreutils.
72949         * m4/chdir-safer.m4: New file.
72950
72951 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
72952
72953         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
72954         AT_FDCWD exceeds INT_MAX.
72955         * lib/openat.h (AT_FDCWD): Likewise.
72956
72957 2006-02-17  Eric Blake  <address@hidden>
72958
72959         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
72960
72961 2006-02-16  Simon Josefsson  <jas@extundo.com>
72962
72963         * modules/getaddrinfo (Depends-on): Add sys_socket.
72964
72965 2006-02-15  Simon Josefsson  <jas@extundo.com>
72966
72967         * build-aux/maint.mk: Add dsyntax-check rule.
72968
72969 2006-02-15  Eric Blake  <ebb9@byu.net>
72970
72971         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
72972         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
72973         'present but cannot compile' warnings on cygwin.
72974         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
72975         use ws2tcpip.h if sys/socket.h works.
72976         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
72977         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
72978
72979 2006-02-14  Simon Josefsson  <jas@extundo.com>
72980
72981         * modules/maintainer-makefile (Files): Rename.
72982
72983         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
72984         and (the local) Makefile.cfg to maint-cfg.mk.
72985
72986         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
72987         to the latter.
72988
72989         * modules/maintainer-makefile: New module.
72990
72991         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
72992         severaly stripped to make it possible to build it up from scratch
72993         with reliable tests.
72994
72995         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
72996         fixes to permit overriding the default actions when configure and
72997         makefile are not available.
72998
72999 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
73000
73001         Sync from coreutils.
73002         * modules/lstat (Depends-on): Don't depend on xalloc.
73003         (License): Change from GPL to LGPL, since this is now simply a
73004         replacement for a libc function.
73005
73006 2006-02-14  Jim Meyering  <jim@meyering.net>
73007
73008         Sync from coreutils.
73009
73010         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
73011         failure on deficient systems, and simplify gnulib lgpl dependencies.
73012         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
73013         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
73014
73015         * lib/xalloc-die.c: Remove unused definition of N_.
73016
73017 2006-02-14  Jim Meyering  <jim@meyering.net>
73018
73019         Sync from coreutils.
73020         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
73021         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
73022         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
73023         double-quote uses of that variable, to accommodate the rare case in
73024         which getmntent is available in none of the libraries checked.  This
73025         happens at least on FreeBSD 5.0.
73026
73027 2006-02-13  Simon Josefsson  <jas@extundo.com>
73028
73029         * gnulib-tool (Usage): Fix --import, from
73030         karl@freefriends.org (Karl Berry).
73031
73032 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
73033
73034         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
73035
73036 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
73037
73038         * lib/argp-namefrob.h: Restore changes accidentally lost during the
73039         "autoupdate" on 2005-12-12.
73040
73041 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
73042
73043         * modules/closeout (Depends-on): Remove atexit.
73044
73045 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
73046
73047         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
73048         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
73049
73050 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
73051
73052         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
73053         __EXTENSIONS__ if this causes compilation to fail.  Problem
73054         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
73055         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
73056
73057 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
73058
73059         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
73060         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
73061         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
73062         All uses changed.
73063
73064 2006-01-26  Simon Josefsson  <jas@extundo.com>
73065
73066         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
73067         prototype is visible on mingw32.
73068
73069         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
73070         for mingw32.
73071
73072         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
73073         mingw32).
73074
73075 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
73076
73077         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
73078         attempt to open for write; this always fails, at least on POSIX
73079         hosts.  This reinstates the 2006-01-09 change, which was
73080         inadvertently removed.
73081
73082 2006-01-26  Bruno Haible  <bruno@clisp.org>
73083
73084         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
73085         Reported by Paul Eggert.
73086
73087 2006-01-26  Bruno Haible  <bruno@clisp.org>
73088             Paul Eggert  <eggert@cs.ucla.edu>
73089
73090         * lib/stdbool_.h (_Bool)
73091         [(! (defined __cplusplus || defined __BEOS__)
73092           && !defined __GNUC__
73093           && !(defined __HP_cc || defined __xlc__
73094                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
73095                || defined __sgi))]:
73096         #define to signed char in these cases too; this simplifies
73097         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
73098         etc., separately) and makes it more conservative.
73099
73100 2006-01-25  Simon Josefsson  <jas@extundo.com>
73101
73102         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
73103         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
73104         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
73105
73106 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
73107
73108         * lib/argp-namefrob.h: Bugfix. Remove stray #
73109
73110 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
73111
73112         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
73113         so that we test the test.
73114         Check for yet another HP-UX cc bug involving *bool |= bool.
73115
73116 2006-01-25  Karl Berry  <karl@gnu.org>
73117
73118         * config/srclist.txt (vasnprintf.c): sync lost.
73119
73120 2006-01-25  Jim Meyering  <jim@meyering.net>
73121
73122         Sync from the stable (b5) branch of coreutils:
73123
73124         * lib/fts.c (fts_children): Don't let close() clobber errno from
73125         failed fchdir().
73126
73127         * lib/fts.c (fts_stat): When following a symlink-to-directory,
73128         don't necessarily interpret stat-fails+lstat-succeeds as indicating
73129         a dangling symlink.  That can also happen at least for ELOOP.
73130         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
73131         FYI, this bug predates the inclusion of fts.c in coreutils.
73132
73133         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
73134         in their own block, so pre-c99 compilers don't object.
73135
73136         Avoid the double-free (first in fts_read, second in fts_close) that
73137         would occur when an `active' directory is made inaccessible (e.g.,
73138         via chmod a-x) during a traversal.
73139         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
73140         before returning.  Reproduce this failure by
73141         mkdir -p a/b; cd a; chmod a-x . b
73142         Reported by Stavros Passas.
73143
73144 2006-01-25  Jim Meyering  <jim@meyering.net>
73145
73146         * lib/fileblocks.c: Remove more useless parentheses.
73147         * lib/readutmp.h: Likewise.
73148
73149 2006-01-25  Bruno Haible  <bruno@clisp.org>
73150
73151         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
73152         warnings.
73153         Reported by Paul Eggert.
73154
73155 2006-01-25  Bruno Haible  <bruno@clisp.org>
73156
73157         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
73158         rid of a trap command. For Solaris sh.
73159         Reported by Mark D. Baushke <mdb@gnu.org>.
73160
73161 2006-01-24  Simon Josefsson  <jas@extundo.com>
73162
73163         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
73164         Bruno.
73165
73166 2006-01-24  Karl Berry  <karl@gnu.org>
73167
73168         * config/srclist.txt (argp-namefrob.h): sync lost.
73169
73170 2006-01-24  Jim Meyering  <jim@meyering.net>
73171
73172         * modules/openat (Files): Add lib/intprops.h.
73173         From Mark D. Baushke.
73174
73175 2006-01-24  Jim Meyering  <jim@meyering.net>
73176
73177         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
73178         Reported by Mark D. Baushke.
73179
73180 2006-01-24  Jim Meyering  <jim@meyering.net>
73181
73182         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
73183
73184 2006-01-24  Bruno Haible  <bruno@clisp.org>
73185
73186         * modules/strnlen (Maintainer): Change from glibc to all.
73187
73188 2006-01-24  Bruno Haible  <bruno@clisp.org>
73189
73190         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
73191         Patch by Paul Eggert.
73192
73193 2006-01-24  Bruno Haible  <bruno@clisp.org>
73194
73195         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
73196         already has it.
73197         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
73198         2005-11-26.
73199
73200         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
73201         'signed char' to avoid problems with the built-in _Bool type.
73202         Reported by Paul Eggert on 2005-11-26.
73203
73204 2006-01-24  Bruno Haible  <bruno@clisp.org>
73205
73206         * gnulib-tool (func_import): Avoid constructing complicated sed
73207         expressions inside backquote.
73208         Report and solution by Mark D. Baushke <mdb@gnu.org>.
73209
73210 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
73211
73212         These changes imported from libc.
73213         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
73214         test and two separate function calls.
73215         * lib/strndup.c (__strndup): Add libc_hidden_def.
73216
73217 2006-01-23  Simon Josefsson  <jas@extundo.com>
73218
73219         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
73220         Remove the test_*_SOURCES variable: automake infers it by default.
73221         * modules/tls-tests: Likewise.
73222
73223 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73224
73225         Work around porting bugs reported by Dieter in
73226         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
73227         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
73228         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
73229         Include "getopt.h" first, to check interface.
73230         (getenv): Declare only if defined HAVE_DECL_GETENV &&
73231         !HAVE_DECL_GETENV.
73232         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
73233         (__strndup): Revert to K&R-style function dfns, the glibc style.
73234         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
73235         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
73236         Include strnlen.h first, to get prototype properly.
73237         (strnlen): Renamed from __strnlen.
73238         Remove weak alias.
73239
73240 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73241
73242         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
73243
73244 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73245
73246         * config/srclist.txt: Adjust to reflect glibc reorganization.
73247         This affects only comments.
73248
73249 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73250
73251          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
73252          Reported by Bruce Korb <bkorb@gnu.org>.
73253
73254 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
73255
73256         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
73257         to pacify gcc -Wswitch-default.
73258
73259 2006-01-22  Bruno Haible  <bruno@clisp.org>
73260
73261         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
73262         temporary buffer for sprintf, take into account the precision also
73263         for 'd', 'i', 'u', 'o', 'x', 'X'.
73264
73265 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
73266
73267         * modules/argp-tests: New module
73268         * tests/test-argp.c: New file
73269         * tests/test-argp-2.sh: New file
73270
73271 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
73272
73273         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
73274         (__argp_base_name): Removed
73275         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
73276         typo.
73277         (__argp_base_name): Provide macro definition or extern declaration
73278         depending on the configuration
73279
73280 2006-01-20  Simon Josefsson  <jas@extundo.com>
73281
73282         * modules/inet_ntop (Depends-on): Depend on sys_socket.
73283
73284 2006-01-20  Simon Josefsson  <jas@extundo.com>
73285
73286         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
73287
73288 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
73289
73290         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
73291         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
73292         Suggested by Bruno Haible.
73293
73294 2006-01-20  Karl Berry  <karl@gnu.org>
73295
73296         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
73297         until changes propagate, I guess.
73298
73299 2006-01-19  Simon Josefsson  <jas@extundo.com>
73300
73301         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
73302
73303 2006-01-19  Simon Josefsson  <jas@extundo.com>
73304
73305         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
73306
73307 2006-01-19  Simon Josefsson  <jas@extundo.com>
73308
73309         * gnulib-tool: Set check_PROGRAMS.
73310
73311         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
73312         modules/des-tests, modules/gc-arcfour-tests,
73313         modules/gc-arctwo-tests, modules/gc-des-tests,
73314         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
73315         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
73316         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
73317         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
73318         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
73319         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
73320         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
73321         test_*_SOURCES.
73322
73323 2006-01-18  Simon Josefsson  <jas@extundo.com>
73324
73325         * modules/socklen (Depends-on): Depend on sys_socket.
73326
73327 2006-01-18  Simon Josefsson  <jas@extundo.com>
73328
73329         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
73330         modules/des-tests, modules/gc-arcfour-tests,
73331         modules/gc-arctwo-tests, modules/gc-des-tests,
73332         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
73333         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
73334         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
73335         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
73336         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
73337         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
73338         $(EXEEXT) to automake TESTS variable, for mingw32.
73339
73340 2006-01-17  Simon Josefsson  <jas@extundo.com>
73341
73342         * modules/socklen (Include): Need sys/socket.h.
73343
73344 2006-01-17  Bruno Haible  <bruno@clisp.org>
73345
73346         * modules/ssize_t (Include): Add <sys/types.h>.
73347
73348 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
73349
73350         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
73351         it's not portable and it doesn't work with cross-compiles.
73352         Problem reported by Bruno Haible.  Fix missing-$ typo in
73353         'test "gl_cv_ignore_unused_libraries" ...' that prevented
73354         -zignore from being used with Sun's C compiler.
73355
73356 2006-01-12  Simon Josefsson  <jas@extundo.com>
73357
73358         * lib/base64.c: Fix warning, reported by Bruno Haible
73359         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
73360
73361 2006-01-12  Bruno Haible  <bruno@clisp.org>
73362
73363         * modules/ldd: New file.
73364         * build-aux/ldd.sh.in: New file.
73365         * MODULES.html.sh (Support for building libraries and executables): Add
73366         ldd.
73367
73368 2006-01-12  Bruno Haible  <bruno@clisp.org>
73369
73370         * m4/ldd.m4: New file.
73371
73372 2006-01-12  Bruno Haible  <bruno@clisp.org>
73373
73374         * gnulib-tool (func_import, func_create_testdir): Don't go into an
73375         endless loop while replacing $auxdir with build-aux.
73376
73377 2006-01-11  Simon Josefsson  <jas@extundo.com>
73378
73379         * lib/stdint_.h (SIZE_MAX): Add missing (.
73380
73381 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
73382
73383         Sync from coreutils.
73384         * lib/md5.c: Fix commentary typos.
73385         (alignof, UNALIGNED_P): No need for a GCC-specific version.
73386         * lib/md5.h (__attribute__): Remove; unused.
73387         * lib/sha1.c: Fix commentary to match md5 better.
73388         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
73389         so that we don't need to worry about alignment.  All uses changed.
73390         This merges the 2005-10-28 md5 change into sha1.
73391
73392 2006-01-11  Jim Meyering  <jim@meyering.net>
73393
73394         Sync from coreutils.
73395         * lib/md5.c (OP): Fix spacing.
73396
73397 2006-01-11  Bruno Haible  <bruno@clisp.org>
73398
73399         Ensure automatic ordering between gl_LOCK and gl_ARGP.
73400         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
73401         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
73402
73403 2006-01-11  Bruno Haible  <bruno@clisp.org>
73404
73405         Ensure automatic ordering between gl_LOCK and gl_ARGP.
73406         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
73407         the "early" section as well.
73408
73409 2006-01-11  Bruno Haible  <bruno@clisp.org>
73410
73411         Avoid "ar: no archive members specified" error on MacOS X.
73412         * gnulib-tool (func_modules_add_dummy): New function.
73413         (func_import, func_create_testdir): Invoke it.
73414
73415 2006-01-11  Bruno Haible  <bruno@clisp.org>
73416
73417         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
73418         with $auxdir in AC_CONFIG_FILES statements.
73419
73420 2006-01-11  Bruno Haible  <bruno@clisp.org>
73421
73422         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73423         Initialize also noinst_HEADERS to empty.
73424
73425 2006-01-11  Bruno Haible  <bruno@clisp.org>
73426
73427         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
73428         variables.
73429         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
73430         autoreconf.
73431
73432 2006-01-11  Bruno Haible  <bruno@clisp.org>
73433
73434         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
73435         overridable by the user.
73436         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73437
73438 2006-01-10  Simon Josefsson  <jas@extundo.com>
73439
73440         * modules/sys_socket: New file.
73441
73442 2006-01-10  Simon Josefsson  <jas@extundo.com>
73443
73444         * m4/sys_socket_h.m4: New file.
73445
73446 2006-01-10  Simon Josefsson  <jas@extundo.com>
73447
73448         * lib/socket_.h: New file.
73449
73450 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73451
73452         * modules/readutmp (Maintainer): Add myself.
73453
73454 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73455
73456         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
73457         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
73458         People who are still concerned with buggy memcmp implementations
73459         can invoke gl_FUNC_MEMCMP themselves.
73460
73461 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73462
73463         * lib/regex_internal.h (BITSET_WORD_BITS):
73464         Work around a bug in 64-bit PGC (before version 6.1-2), where the
73465         preprocessor mishandles large unsigned values as if they were signed.
73466         Problem reported by Claudio Fontana in
73467         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
73468
73469 2006-01-10  Jim Meyering  <jim@meyering.net>
73470
73471         Avoid the double-free (first in fts_read, second in fts_close) that
73472         would occur when an `active' directory is made inaccessible (e.g.,
73473         via chmod a-x) during a traversal.
73474         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
73475         before returning.  Reproduce this failure by
73476         mkdir -p a/b; cd a; chmod a-x . b
73477         Reported by Stavros Passas.
73478
73479         Sync from coreutils.
73480         * lib/sha1.c: Tweak grammar in a comment.
73481
73482 2006-01-10  Jim Meyering  <jim@meyering.net>
73483
73484         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
73485         Patch by Joerg Sonnenberger.
73486
73487 2006-01-10  Bruno Haible  <bruno@clisp.org>
73488
73489         * modules/readutmp: Depend on module free.
73490         * modules/strtok_r: Depend on module restrict.
73491
73492 2006-01-10  Bruno Haible  <bruno@clisp.org>
73493
73494         * modules/gettext (configure.ac): Add an invocation of
73495         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
73496
73497 2006-01-10  Bruno Haible  <bruno@clisp.org>
73498
73499         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
73500         Reported by Werner Lemberg <wl@gnu.org>.
73501
73502 2006-01-10  Bruno Haible  <bruno@clisp.org>
73503
73504         * lib/localcharset.c: Update from GNU gettext.
73505
73506 2006-01-10  Bruno Haible  <bruno@clisp.org>
73507
73508         * lib/argp.h (__const): Remove macro. Use const instead.
73509         * lib/argp-fmtstream.h (__const): Likewise.
73510         * lib/glob_.h (__const): Remove macro.
73511         * lib/glob-libc.h: Use const instead of __const.
73512
73513 2006-01-10  Bruno Haible  <bruno@clisp.org>
73514
73515         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
73516         variable.
73517         Needed to avoid an automake error regarding the 'gettext' module.
73518
73519 2006-01-09  Simon Josefsson  <jas@extundo.com>
73520
73521         * modules/inet_ntop (Depends-on): Add restrict.
73522
73523 2006-01-09  Simon Josefsson  <jas@extundo.com>
73524
73525         * modules/gc-rijndael-tests (License): Put under LGPL.
73526
73527         * modules/gc-des-tests (License): Likewise.
73528
73529         * modules/gc-arcfour-tests (License): Likewise.
73530
73531         * modules/gc-arctwo-tests (License): Likewise.
73532
73533         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
73534
73535         * modules/gc-hmac-sha1-tests (Files): Likewise.
73536
73537         * modules/gc-hmac-md5-tests (License): Likewise.
73538
73539         * modules/gc-sha1-tests (License): Likewise.
73540
73541         * modules/gc-md5-tests (License): Likewise.
73542
73543         * modules/gc-md4-tests (License): Likewise.
73544
73545         * modules/gc-md2-tests (License): Likewise.
73546
73547         * modules/gc-tests (License): Likewise.
73548
73549         * modules/des-tests (License): Likewise.
73550
73551         * modules/md4-tests (License): Likewise.
73552
73553         * modules/md2-tests (License): Likewise.
73554
73555 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73556
73557         Sync from coreutils:
73558
73559         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
73560         * modules/lib-ignore: New file.
73561         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
73562         chdir-safer.m4, lchmod.m4.
73563         * modules/openat: Add mkdirat.c, openat-priv.h.
73564
73565 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73566
73567         Sync from coreutils.
73568         * m4/lib-ignore.m4: New file.
73569         * m4/lchmod.m4: New file.
73570
73571 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73572
73573         Sync from coreutils.
73574         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
73575         for write access: POSIX says that must fail.
73576         * lib/fts.c (diropen): Likewise.
73577         * lib/save-cwd.c (save_cwd): Likewise.
73578         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
73579         well, for minor improvements on hosts that lack O_DIRECTORY.
73580         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
73581         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
73582         Fall back on chown if open failed with EACCES.
73583
73584         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
73585         Report an error at compile-time if only a 1-second nominal clock
73586         resolution is found.
73587
73588         * lib/lchmod.h: New file.
73589         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
73590         (make_dir_parents): Use lchown rather than chown, and
73591         lchmod rather than chmod.
73592
73593         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
73594         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
73595         "proc" reported by n0dalus.
73596
73597         * lib/mountlist.c: Include <limits.h>.
73598         (dev_from_mount_options)
73599         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
73600         New function.  It no longer assumes "dev=" has the System V meaning
73601         on Linux (since it doesn't).  It also parses "dev=" more carefully.
73602         (read_file_system_list)
73603         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
73604         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
73605         dev= in that case.
73606
73607         * lib/posixtm.h (PDS_PRE_2000): New macro.
73608         * lib/posixtm.c (year): Arg is now syntax_bits rather than
73609         allow_century.  All usages changed.  Reject dates outside the range
73610         1969-1999 if PDS_PRE_2000 is used.
73611
73612 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73613
73614         Sync from coreutils.
73615         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
73616         (Time of day items): Mention the possibility of leap seconds.
73617         Problem reported by Dr. David Alan Gilbert.
73618
73619 2006-01-09  Jim Meyering  <jim@meyering.net>
73620
73621         Sync from coreutils.
73622
73623         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
73624
73625         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
73626
73627         * lib/modechange.c (mode_compile): Reject an invalid mode string
73628         that starts with an octal digit.  From Andreas Gruenbacher.
73629
73630         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
73631         and dup to open_safer and dup_safer, respectively.
73632         (openat_permissive): Fix typo in comment.
73633
73634         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
73635         "gettext.h"; either no longer needed or are guaranteed by openat.h.
73636         (_): Remove; no longer needed.
73637         (openat): Renamed from rpl_openat; no need for rpl_openat
73638         since openat.h renames openat for us.
73639         Replace most of the body with a call to openat_permissive,
73640         to avoid duplicate code.
73641         Port to (probably hypothetical) environments were mode_t is
73642         wider than int.
73643         (openat_permissive): Require mode arg, so that we can check
73644         types better.  Put it just after flags.  Change cwd failure
73645         indicator from pointer-to-bool to pointer-to-errno-value.
73646         All callers changed.
73647         Invoke openat_save_fail and/or openat_restore_fail if
73648         cwd_errno is null, so that openat can call us.
73649         (openat_permissive, fdopendir, fstatat, unlinkat):
73650         Simplify errno handling to avoid some duplicate code,
73651         as it's OK to set errno on success.
73652         * lib/openat.h: Revamp code so that function macros depend on
73653         __OPENAT_PREFIX only, not also on AT_FDCWD.
73654         (openat_ro): Remove.  Caller changed to use openat_permissive.
73655         (openat_permissive): Now a macro, if not a function.
73656         (openat_restore_fail, openat_save_fail): Now always functions,
73657         since mkdirat needs them even if __OPENAT_PREFIX is defined.
73658
73659         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
73660         and openat.c.
73661         * lib/mkdirat.c: Include openat-priv.h.
73662         Remove definitions of macros defined therein.
73663         * lib/openat.c: Likewise.
73664
73665         * lib/mkdirat.c (mkdirat): New file and function.
73666         * lib/openat.h (mkdirat): Declare.
73667
73668         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
73669
73670         * lib/openat.h (openat_permissive): Declare.
73671         (openat_ro): Define.
73672
73673         * lib/openat.c (EXPECTED_ERRNO): New macro.
73674         (openat_permissive): New function -- used in remove.c rewrite.
73675         (all functions): Set errno just before returning, only if there
73676         was an actual failure.
73677         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
73678
73679         Emulate openat-family functions using Linux's procfs, if possible.
73680         Idea and some code based on Ulrich Drepper's glibc changes.
73681
73682         * lib/openat.c: (BUILD_PROC_NAME): New macro.
73683         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
73684         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
73685         before falling back on save_cwd and restore_cwd.
73686         (fdopendir, fstatat, unlinkat): Likewise.
73687
73688         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
73689         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
73690
73691         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
73692         as second argument to va_arg.  Otherwise, some versions of gcc
73693         warn that `if this code is reached, the program will abort'.
73694
73695 2006-01-09  Jim Meyering  <jim@meyering.net>
73696
73697         Sync from coreutils.
73698         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
73699         Require openat-priv.h.
73700
73701 2006-01-09  Bruno Haible  <bruno@clisp.org>
73702
73703         * modules/strnlen (Include): Use strnlen.h.
73704
73705 2006-01-09  Bruno Haible  <bruno@clisp.org>
73706
73707         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
73708
73709 2006-01-09  Bruno Haible  <bruno@clisp.org>
73710
73711         * lib/sysexit_.h (EX_OK): New macro.
73712         Suggested by Martin Lambers <marlam@marlam.de>.
73713
73714 2006-01-09  Bruno Haible  <bruno@clisp.org>
73715
73716         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
73717         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
73718
73719 2006-01-09  Bruno Haible  <bruno@clisp.org>
73720
73721         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
73722         numbers.
73723
73724 2006-01-09  Bruno Haible  <bruno@clisp.org>
73725
73726         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
73727         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
73728         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
73729         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
73730
73731 2006-01-09  Bruno Haible  <bruno@clisp.org>
73732
73733         * build-aux/javacomp.sh.in: New file, moved from lib/.
73734         * modules/javacomp-script (Files): Update.
73735         (configure.ac): Add AC_CONFIG_FILES invocation.
73736         (EXTRA_DIST): Remove variable.
73737
73738         * build-aux/javaexec.sh.in: New file, moved from lib/.
73739         * modules/javaexec (Files): Update.
73740         (configure.ac): Add AC_CONFIG_FILES invocation.
73741         (EXTRA_DIST): Remove javaexec.sh.in.
73742
73743         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
73744         * modules/csharpcomp-script (Files): Update.
73745         (configure.ac): Add AC_CONFIG_FILES invocation.
73746         (EXTRA_DIST): Remove variable.
73747
73748         * build-aux/csharpexec.sh.in: New file, moved from lib/.
73749         * modules/csharpexec (Files): Update.
73750         (configure.ac): Add AC_CONFIG_FILES invocation.
73751         (EXTRA_DIST): Remove csharpexec.sh.in.
73752
73753 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73754
73755         Sync from coreutils.
73756
73757         Add POSIX ACL support
73758         * lib/acl.h (copy_acl, set_acl): Add declarations.
73759         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
73760         systems other than Linux.
73761         (chmod_or_fchmod): New function: use fchmod when possible,
73762         and chmod otherwise.
73763         (file_has_acl): Add a POSIX ACL implementation, with a
73764         Linux-specific subcase.
73765         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
73766         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
73767         acls are unsupported.
73768         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
73769         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
73770         are unsupported.
73771
73772 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73773
73774         Sync from coreutils.
73775         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
73776
73777 2006-01-07  Bruno Haible  <bruno@clisp.org>
73778
73779         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
73780         gl_EARLY.
73781
73782 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73783
73784         * lib/strftime.c (tzname): Don't declare if it is already #defined.
73785         Problem reported for Mingw by Mark Junker.
73786
73787 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73788
73789         * README: Gnulib normally doesn't generate a tarball.
73790
73791 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
73792
73793         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
73794         long int, not int, for nanosecond counts, so that people who are
73795         used to POSIX struct timespec won't be surprised.  Reported by Jim
73796         Meyering.
73797
73798 2005-12-28  Bruno Haible  <bruno@clisp.org>
73799
73800         * build-aux/config.rpath: Update from GNU gettext.
73801
73802 2005-12-16  Jim Meyering  <jim@meyering.net>
73803
73804         * modules/fprintftime: New module.
73805         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
73806
73807 2005-12-16  Jim Meyering  <jim@meyering.net>
73808
73809         * m4/fprintftime.m4: New file.
73810
73811 2005-12-16  Jim Meyering  <jim@meyering.net>
73812
73813         * lib/fprintftime.c, lib/fprintftime.h: New files.
73814
73815 2005-12-15  Simon Josefsson  <jas@extundo.com>
73816
73817         * modules/socklen (configure.ac): Fix M4 macro name, to align with
73818         new m4/socklen.m4.
73819
73820 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73821
73822         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
73823         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
73824
73825 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73826
73827         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
73828         * lib/argp-help.c (fill_in_uparams): Check if the constructed
73829         struct uparams is valid. Fall back to the default values if it is
73830         not.
73831
73832 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73833
73834         * modules/argp (Files): Add argp-pin.c
73835         (Depends-on): dirname
73836         (lib_SOURCES): Add argp-pin.c
73837
73838 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73839
73840         * m4/argp.m4:  Check if program_invocation_name and
73841         program_invocation_short_name are declared and define appropriate
73842         macros if they are not.
73843
73844 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73845
73846         * lib/argp-help.c (__argp_base_name): New function
73847         (__argp_short_program_name): Rewrite using __argp_base_name
73848         * lib/argp-namefrob.h: Define program_invocation_name and
73849         program_invocation_short_name if requested
73850         (__argp_base_name): Add prototype
73851         * lib/argp-parse.c (argp_def): Use gettext wrappers
73852         (argp_default_parser): Use __argp_base_name
73853         * lib/argp-pin.c: New file. Defines program_invocation_name and
73854         program_invocation_short_name on systems that lack them.
73855
73856 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73857
73858         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
73859         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73860         porting problem reported by Georg Schwarz in
73861         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73862
73863 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73864
73865         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
73866         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73867         porting problem reported by Georg Schwarz in
73868         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73869
73870 2005-12-05  Bruno Haible  <bruno@clisp.org>
73871
73872         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
73873         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
73874         Reported by Mark Junker <mjscod@gmx.de>.
73875
73876 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
73877
73878         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
73879         Use implementation from Albert Chin, with some
73880         comments/corrections by Stepan Kasal and myself.
73881
73882 2005-12-02  Bruno Haible  <bruno@clisp.org>
73883
73884         * gnulib-tool (func_import): Accept GPLed build tool modules when
73885         --lgpl is given.
73886         * modules/csharpcomp-script: New file.
73887         * modules/csharpcomp: Depend on it.
73888         * modules/javacomp-script: New file.
73889         * modules/javacomp: Depend on it.
73890         Suggested by Simon Josefsson.
73891
73892 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
73893
73894         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
73895         statement, to work around an HP-UX 10.20 compiler bug reported by
73896         Peter O'Gorman.
73897
73898 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73899
73900         * modules/savedir (Depends-on): Add openat.
73901
73902 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73903
73904         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
73905         (uintmax_t) [defined uintmax_t]: Do not declare.
73906         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
73907         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
73908         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
73909         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
73910         sake of portability to weird hosts that C allows (though we don't
73911         know of any practical examples).
73912
73913         * lib/savedir.h (fdsavedir): New decl.
73914         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
73915         contains most of the former guts of savedir.
73916         (savedir): Use savedirstream.
73917         Include "openat.h".
73918
73919 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73920
73921         * modules/obstack (Files): Add m4/ulonglong.m4.
73922         Problem reported by Davide Angelocola.
73923
73924 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
73925
73926         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
73927         coreutils no longer futzes with rounding modes.
73928
73929 2005-11-14  Jim Meyering  <jim@meyering.net>
73930
73931         * lib/mkstemp-safer.c: Include <config.h>, required for possible
73932         replacement of mkstemp.
73933
73934 2005-11-10  Simon Josefsson  <jas@extundo.com>
73935
73936         * lib/readline.c: Remove EOL.
73937
73938 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73939
73940         * modules/gethrxtime (Depends-on): Add gettime.
73941
73942 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73943
73944         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
73945         or gettimeofday; no longer needed.
73946
73947 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73948
73949         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
73950         time business.
73951         (gethrxtime) [! (HAVE_NANOUPTIME
73952         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
73953         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
73954         our own approximation.
73955
73956 2005-11-08  Eric Blake  <ebb9@byu.net>
73957
73958         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73959
73960 2005-11-08  Eric Blake  <ebb9@byu.net>
73961
73962         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73963
73964 2005-11-04  Bruno Haible  <bruno@clisp.org>
73965
73966         * gnulib-tool: Implement --update mode.
73967
73968 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73969
73970         Fix porting problem reported by Theodoros V. Kalamatianos.
73971         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
73972         Don't assume that futimes failing means we must fail.
73973
73974 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73975
73976         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
73977         variables to suggest the intended function of the PATH_MAX check.
73978
73979 2005-10-30  Kean Johnston  <jkj@sco.com>
73980
73981         Trivial changes to support SCO systems.
73982         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
73983         as PATH_MAX.
73984         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
73985         where __ptr is null when no I/O is pending.
73986
73987 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73988
73989         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
73990         leave errno alone.  Problem reported by Dmitry V. Levin.
73991
73992 2005-10-28  Simon Josefsson  <jas@extundo.com>
73993
73994         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
73995         Test more.
73996
73997         * tests/test-gc-md2.c, tests/test-md2.c: New files.
73998
73999         * modules/md2, modules/md2-tests: New files.
74000
74001 2005-10-28  Simon Josefsson  <jas@extundo.com>
74002
74003         * m4/inet_ntop.m4: More tests.
74004
74005         * m4/gc-md2.m4, md2.m4: New file.
74006
74007 2005-10-28  Simon Josefsson  <jas@extundo.com>
74008
74009         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
74010         "restrict" keywords, as per POSIX.  Protect the function
74011         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
74012         Don't use K&R prototypes.  Check the sprintf return values.
74013         Re-define EAFNOSUPPORT if not present.  Indent.
74014
74015         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
74016         suggested by Bruno Haible <bruno@clisp.org>.
74017
74018         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
74019
74020         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
74021
74022         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
74023         libgcrypt).
74024
74025         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
74026
74027         * lib/md2.h, lib/md2.c: New files.
74028
74029 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
74030
74031         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
74032         errno alone.  Problem reported by Frederic Jolliton.
74033
74034 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
74035
74036         * modules/verify (License): Change from GPL to LGPL.  This is a
74037         tiny module and there are apparently near-equivalents that are
74038         under the BSD license.
74039
74040 2005-10-24  Simon Josefsson  <jas@extundo.com>
74041
74042         * modules/sha1: Relicense to LGPL.
74043
74044 2005-10-24  Simon Josefsson  <jas@extundo.com>
74045
74046         * lib/md4.h: Shrink buffer size, now that we changed the type.
74047
74048 2005-10-23  Simon Josefsson  <jas@extundo.com>
74049
74050         * gnulib-tool (func_import): Fix --tests-base.
74051
74052 2005-10-22  Simon Josefsson  <jas@extundo.com>
74053
74054         * modules/arcfour (Depends-on): Need stdint.
74055
74056 2005-10-22  Simon Josefsson  <jas@extundo.com>
74057
74058         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
74059         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
74060
74061 2005-10-22  Simon Josefsson  <jas@extundo.com>
74062
74063         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
74064         suggested by Bruno Haible <bruno@clisp.org>.
74065
74066 2005-10-22  Simon Josefsson  <jas@extundo.com>
74067
74068         * lib/crc.h: Include stddef.h, for size_t.
74069
74070 2005-10-22  Simon Josefsson  <jas@extundo.com>
74071
74072         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
74073         arcfour_context struct (simplify test vector testing in GNU
74074         Shishi).
74075
74076 2005-10-21  Simon Josefsson  <jas@extundo.com>
74077
74078         * modules/des, modules/des-tests: New files.
74079
74080         * modules/gc-des, modules/gc-des-tests: New files.
74081
74082         * tests/test-des.c, tests/test-gc-des.c: New file.
74083
74084 2005-10-21  Simon Josefsson  <jas@extundo.com>
74085
74086         * modules/arctwo, modules/arctwo-tests: New files.
74087
74088         * tests/test-arctwo.c: New file.
74089
74090         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
74091
74092         * tests/test-gc-arctwo.c: New file.
74093
74094 2005-10-21  Simon Josefsson  <jas@extundo.com>
74095
74096         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
74097         Bruno Haible <bruno@clisp.org>.
74098
74099         * m4/gc-des.m4: New file.
74100
74101 2005-10-21  Simon Josefsson  <jas@extundo.com>
74102
74103         * m4/arctwo.m4: New file.
74104
74105         * m4/gc-arctwo.m4: New file.
74106
74107 2005-10-21  Simon Josefsson  <jas@extundo.com>
74108
74109         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
74110         block.
74111
74112 2005-10-21  Simon Josefsson  <jas@extundo.com>
74113
74114         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
74115         <bruno@clisp.org>.
74116
74117         * lib/hmac-sha1.c (hmac_sha1): Likewise.
74118
74119         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
74120         Bruno Haible <bruno@clisp.org>.
74121
74122         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
74123         <bruno@clisp.org>.
74124
74125 2005-10-21  Simon Josefsson  <jas@extundo.com>
74126
74127         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
74128
74129 2005-10-21  Simon Josefsson  <jas@extundo.com>
74130
74131         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
74132
74133 2005-10-21  Simon Josefsson  <jas@extundo.com>
74134
74135         * lib/des.h, lib/des.c: New files.
74136
74137         * lib/gc-gnulib.c: Support DES.c
74138
74139 2005-10-21  Simon Josefsson  <jas@extundo.com>
74140
74141         * lib/arctwo.h, lib/arctwo.c: New files.
74142
74143         * lib/gc-gnulib.c: Support ARCTWO.
74144
74145 2005-10-21  Simon Josefsson  <jas@extundo.com>
74146
74147         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
74148         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74149
74150 2005-10-21  Simon Josefsson  <jas@extundo.com>
74151
74152         * gnulib-tool (func_import, func_create_testdir): Define automake
74153         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
74154         Makefile.am snippet),
74155         suggested by Bruno Haible <bruno@clisp.org>.
74156
74157         * modules/gc (Makefile.am): Use it.
74158
74159 2005-10-21  Bruno Haible  <bruno@clisp.org>
74160
74161         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
74162         patch.
74163
74164 2005-10-19  Simon Josefsson  <jas@extundo.com>
74165
74166         * tests/test-gc-rijndael.c: New file.
74167
74168         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
74169
74170 2005-10-19  Simon Josefsson  <jas@extundo.com>
74171
74172         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
74173         interface too.
74174
74175 2005-10-19  Simon Josefsson  <jas@extundo.com>
74176
74177         * tests/test-gc-arcfour.c: New file.
74178
74179         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
74180
74181 2005-10-19  Simon Josefsson  <jas@extundo.com>
74182
74183         * modules/gc-md4, modules/gc-md4-tests: New file.
74184
74185         * tests/test-gc-md4.c: New file.
74186
74187 2005-10-19  Simon Josefsson  <jas@extundo.com>
74188
74189         * m4/gc-md4.m4: New file.
74190
74191 2005-10-19  Simon Josefsson  <jas@extundo.com>
74192
74193         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
74194         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
74195         <kasal@ucw.cz>.
74196
74197 2005-10-19  Simon Josefsson  <jas@extundo.com>
74198
74199         * m4/gc-arcfour.m4: New file.
74200
74201         * m4/gc-rijndael.m4: New file.
74202
74203 2005-10-19  Simon Josefsson  <jas@extundo.com>
74204
74205         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
74206
74207 2005-10-19  Simon Josefsson  <jas@extundo.com>
74208
74209         * lib/gc-gnulib.c: Support ARCFOUR.
74210
74211 2005-10-19  Simon Josefsson  <jas@extundo.com>
74212
74213         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
74214         support.
74215
74216         * lib/gc.h: Add ECB enum type.
74217
74218         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
74219
74220 2005-10-18  Simon Josefsson  <jas@extundo.com>
74221
74222         * tests/test-md5.c: New file.
74223
74224         * modules/md5-tests: New file.
74225
74226 2005-10-18  Simon Josefsson  <jas@extundo.com>
74227
74228         * tests/test-md4.c: New file.
74229
74230         * modules/md4, modules/md4-tests: New files.
74231
74232 2005-10-18  Simon Josefsson  <jas@extundo.com>
74233
74234         * m4/md4.m4: New file.
74235
74236 2005-10-18  Simon Josefsson  <jas@extundo.com>
74237
74238         * lib/md4.h, lib/md4.c: New files, based on md5.?.
74239
74240 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
74241
74242         * gnulib-tool (func_create_testdir): Omit the second check whether
74243         BUILT_SOURCES in nonempty.
74244
74245 2005-10-17  Simon Josefsson  <jas@extundo.com>
74246
74247         * tests/test-rijndael.c: New file.
74248
74249 2005-10-17  Simon Josefsson  <jas@extundo.com>
74250
74251         * modules/sha1: Depend on stdint instead of md5.
74252
74253         * modules/md5: Depend on stdint, remove uint32_t.
74254
74255 2005-10-17  Simon Josefsson  <jas@extundo.com>
74256
74257         * modules/gc-sha1-tests: New file.
74258
74259         * tests/test-gc-sha1.c: New file.
74260
74261 2005-10-17  Simon Josefsson  <jas@extundo.com>
74262
74263         * m4/md5.m4: Remove call to uint32_t.m4.
74264
74265 2005-10-17  Simon Josefsson  <jas@extundo.com>
74266
74267         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
74268
74269         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
74270         md5.h.
74271
74272         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
74273
74274         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
74275
74276 2005-10-17  Simon Josefsson  <jas@extundo.com>
74277
74278         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
74279
74280 2005-10-17  Simon Josefsson  <jas@extundo.com>
74281
74282         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
74283
74284 2005-10-17  Simon Josefsson  <jas@extundo.com>
74285
74286         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
74287
74288         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
74289
74290 2005-10-17  Bruno Haible  <bruno@clisp.org>
74291
74292         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
74293         that it can also be used in a test.
74294
74295 2005-10-16  Bruno Haible  <bruno@clisp.org>
74296
74297         * gnulib-tool (func_emit_tests_Makefile_am): Also define
74298         TESTS_ENVIRONMENT, so that individual tests can augment it.
74299
74300         * gnulib-tool (func_create_testdir): Use an intermediate target for
74301         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
74302         macros, like $(ALLOCA_H), which cannot be passed through the command
74303         line.
74304
74305 2005-10-15  Simon Josefsson  <jas@extundo.com>
74306
74307         * modules/rijndael-tests: New file.
74308
74309         * modules/rijndael: New file.
74310
74311 2005-10-15  Simon Josefsson  <jas@extundo.com>
74312
74313         * m4/rijndael.m4: New file.
74314
74315 2005-10-15  Simon Josefsson  <jas@extundo.com>
74316
74317         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
74318
74319         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
74320
74321 2005-10-14  Simon Josefsson  <jas@extundo.com>
74322
74323         * tests/test-arcfour.c: New file.
74324
74325         * modules/arcfour, modules/arcfour-tests: New files.
74326
74327 2005-10-14  Simon Josefsson  <jas@extundo.com>
74328
74329         * m4/arcfour.m4: New file.
74330
74331 2005-10-14  Simon Josefsson  <jas@extundo.com>
74332
74333         * lib/arcfour.h, lib/arcfour.c: New files.
74334
74335 2005-10-14  Roland McGrath  <roland@redhat.com>
74336
74337         Import from libc.  [BZ #1331]
74338         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
74339         macro argument.
74340         Reported by Matej Vela <vela@debian.org>.
74341
74342 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
74343
74344         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
74345         include <wchar.h>; no longer needed.
74346
74347 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
74348
74349         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
74350
74351 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
74352         and  Ulrich Drepper  <drepper@redhat.com>
74353
74354         Import from libc.
74355         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
74356         instead of inline stream orientation test and two separate
74357         function calls.  Pay no attention to USE_IN_LIBIO.
74358
74359 2005-10-13  Simon Josefsson  <jas@extundo.com>
74360
74361         * modules/gc-hmac-md5-tests: New file.
74362
74363         * tests/test-gc-hmac-sha1.c: New file.
74364
74365         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
74366
74367         * modules/gc-hmac-md5-tests: New file.
74368
74369         * tests/test-gc-md5.c: New file.
74370
74371         * modules/gc-md5-tests: New file.
74372
74373 2005-10-13  Simon Josefsson  <jas@extundo.com>
74374
74375         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
74376         Move memory allocation outside of loop.
74377
74378 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
74379
74380         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
74381         intermediate directory is in a read-only file system.  Problem
74382         reported by Eric Blake.
74383
74384 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
74385
74386         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
74387
74388 2005-10-12  Simon Josefsson  <jas@extundo.com>
74389
74390         * tests/test-hmac-sha1.c: New file.
74391
74392         * modules/hmac-sha1-tests: New file.
74393
74394         * modules/hmac-sha1: New file.
74395
74396 2005-10-12  Simon Josefsson  <jas@extundo.com>
74397
74398         * modules/gc-sha1: New file.
74399
74400 2005-10-12  Simon Josefsson  <jas@extundo.com>
74401
74402         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
74403
74404         * tests/test-gc-pbkdf2-sha1.c: New file.
74405
74406 2005-10-12  Simon Josefsson  <jas@extundo.com>
74407
74408         * modules/gc-md5, modules/gc-hmac-md5: New files.
74409
74410         * modules/gc (Files): Remove md5, memxor and hmac files.
74411
74412 2005-10-12  Simon Josefsson  <jas@extundo.com>
74413
74414         * m4/gc-pbkdf2-sha1.m4: New file.
74415
74416         * m4/gc-hmac-sha1.m4: New file.
74417
74418         * m4/gc-sha1: New file.
74419
74420         * m4/hmac-sha1.m4: New file.
74421
74422 2005-10-12  Simon Josefsson  <jas@extundo.com>
74423
74424         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
74425
74426         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
74427
74428 2005-10-12  Simon Josefsson  <jas@extundo.com>
74429
74430         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
74431         suggested by Bruno Haible <bruno@clisp.org>.
74432
74433 2005-10-12  Simon Josefsson  <jas@extundo.com>
74434
74435         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
74436
74437 2005-10-12  Simon Josefsson  <jas@extundo.com>
74438
74439         * lib/gc-pbkdf2-sha1.c: New file.
74440
74441         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
74442
74443 2005-10-12  Simon Josefsson  <jas@extundo.com>
74444
74445         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
74446
74447         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
74448
74449 2005-10-12  Simon Josefsson  <jas@extundo.com>
74450
74451         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
74452         GC_USE_HMAC_MD5, respectively.
74453
74454         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
74455         (gc_md5): Fix typo.
74456
74457         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
74458
74459         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
74460
74461         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
74462
74463 2005-10-12  Bruno Haible  <bruno@clisp.org>
74464
74465         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
74466         Reported by Stepan Kasal <kasal@ucw.cz>.
74467
74468 2005-10-11  Simon Josefsson  <jas@extundo.com>
74469
74470         * tests/test-crc.c: New file.
74471
74472         * modules/crc, modules/crc-tests: New files.
74473
74474 2005-10-11  Simon Josefsson  <jas@extundo.com>
74475
74476         * m4/crc.m4: New file.
74477
74478 2005-10-11  Simon Josefsson  <jas@extundo.com>
74479
74480         * lib/gc.h: Add gc_hash and gc_hash_buffer.
74481
74482         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
74483
74484         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
74485
74486 2005-10-11  Simon Josefsson  <jas@extundo.com>
74487
74488         * lib/crc.h, lib/crc.c: New files.
74489
74490         * lib/gc.h (gc_hash_buffer): Add doc.
74491
74492 2005-10-11  Bruno Haible  <bruno@clisp.org>
74493
74494         * modules/c-strcasestr: New file.
74495         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
74496
74497 2005-10-11  Bruno Haible  <bruno@clisp.org>
74498
74499         * modules/c-strcase: New file.
74500         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
74501
74502 2005-10-11  Bruno Haible  <bruno@clisp.org>
74503
74504         * lib/strcasecmp.c: Include limits.h.
74505         (strcasecmp): Avoid integer overflow on exotic platforms.
74506         * lib/strncasecmp.c: Include limits.h.
74507         (strncasecmp): Avoid integer overflow on exotic platforms.
74508         Reported by Paul Eggert.
74509
74510 2005-10-11  Bruno Haible  <bruno@clisp.org>
74511
74512         * lib/c-strcasestr.h: New file, from GNU gettext.
74513         * lib/c-strcasestr.c: New file, from GNU gettext.
74514
74515 2005-10-11  Bruno Haible  <bruno@clisp.org>
74516
74517         * lib/c-strcase.h: New file, from GNU gettext.
74518         * lib/c-strcasecmp.c: New file, from GNU gettext.
74519         * lib/c-strncasecmp.c: New file, from GNU gettext.
74520
74521 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
74522
74523         * modules/mempcpy (License): GPL -> LGPL.
74524         * modules/strchrnul (License): Likewise.
74525         * modules/sysexits (License): Likewise.
74526
74527 2005-10-08  Simon Josefsson  <jas@extundo.com>
74528
74529         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
74530
74531 2005-10-07  Simon Josefsson  <jas@extundo.com>
74532
74533         * m4/memxor.m4: Remove gl_C_RESTRICT call.
74534
74535 2005-10-06  Simon Josefsson  <jas@extundo.com>
74536
74537         * tests/test-hmac-md5.c: New file.
74538
74539         * modules/hmac-md5-tests: New file.
74540
74541         * modules/hmac-md5: New file.
74542
74543 2005-10-06  Simon Josefsson  <jas@extundo.com>
74544
74545         * m4/hmac-md5.m4: New file.
74546
74547         * m4/memxor.m4: Require gl_C_RESTRICT.
74548
74549 2005-10-06  Simon Josefsson  <jas@extundo.com>
74550
74551         * lib/memxor.c (memxor): Avoid casts and warnings.
74552
74553 2005-10-06  Simon Josefsson  <jas@extundo.com>
74554
74555         * lib/hmac-md5.c: New file.
74556
74557         * lib/hmac.h: New file.
74558
74559 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
74560
74561         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
74562         promotes to int, not unsigned int, to catch the AIX 5.3
74563         compiler bug.
74564
74565 2005-10-05  Simon Josefsson  <jas@extundo.com>
74566
74567         * modules/memxor: New file.
74568
74569         * modules/iconv (Files): Move config.rpath to havelib, it is used
74570         there.
74571
74572         * modules/havelib (Files): Add config.rpath.
74573
74574 2005-10-05  Simon Josefsson  <jas@extundo.com>
74575
74576         * m4/memxor.m4: New file.
74577
74578 2005-10-05  Simon Josefsson  <jas@extundo.com>
74579
74580         * lib/memxor.c (memxor): Fix compiler error.
74581
74582         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
74583         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
74584
74585         * lib/memxor.h, lib/memxor.c: New files.
74586
74587         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
74588         we assume all systems have it, suggested by Jim Meyering
74589         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
74590         any systems lack sys/socket.h; mingw32 is known to lack it, but we
74591         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
74592         same reasons.
74593
74594 2005-10-05  Simon Josefsson  <jas@extundo.com>
74595
74596         * config/srclist.txt: Add glibc bug 1423 for md5.h.
74597
74598 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
74599
74600         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
74601         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
74602         needed, since the source code now assumes these .h files.
74603
74604 2005-10-05  Derek Price  <derek@ximbiot.com>
74605
74606         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
74607
74608 2005-10-05  Bruno Haible  <bruno@clisp.org>
74609
74610         * modules/stdint (License): Change to LGPL.
74611
74612 2005-10-04  Simon Josefsson  <jas@extundo.com>
74613
74614         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
74615         D. Baushke" <mdb@gnu.org>.
74616
74617 2005-10-04  Bruno Haible  <bruno@clisp.org>
74618
74619         * lib/verify.h (verify_true): Provide alternative definition for C++.
74620
74621 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
74622
74623         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
74624         (SSIZE_MAX): New macro, if not already defined.
74625         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
74626         than 2 GiB.
74627
74628 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74629
74630         Sync from coreutils.
74631         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
74632         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
74633         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
74634         ULLONG_MAX doesn't work with 2.7.2.1.
74635
74636 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74637
74638         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
74639         From Ben Pfaff.
74640
74641         * modules/exclude (Depends-on): Depend on verify.
74642         * modules/strtoimax (Depends-on): Likewise.
74643         * modules/utimecmp (Depends-on): Likewise.
74644
74645 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74646
74647         * lib/exclude.c: Include verify.h.
74648         (verify): Remove.  All callers changed to use verify.h's version.
74649         * lib/strtoimax.c: Likewise.
74650         * lib/utimecmp.c: Likewis.e
74651
74652         Sync from coreutils.
74653         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
74654         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
74655         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
74656         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
74657         bother returning ENOSYS if settimeofday or stime fails; just let
74658         them return whatever errno they want to return.
74659         * lib/utimens.c: Include unistd.h, for dup2.
74660         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
74661         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
74662
74663 2005-10-02  Jim Meyering  <jim@meyering.net>
74664
74665         Sync from coreutils.
74666         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
74667         from glibc-2.2.5 that fails for read-only files.
74668
74669 2005-10-02  Jim Meyering  <jim@meyering.net>
74670
74671         Sync from coreutils.
74672         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
74673         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
74674         `#if HAVE_CONFIG_H'.
74675         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
74676         Remove AT_FDCWD test.
74677         Do not consume the fd unless successful.
74678         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
74679         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
74680         block, so that we don't even try to compile it if settimeofday is
74681         available.  This works around a compilation failure on OSF1 V5.1,
74682         due to stime requiring a `long int*' while tv_sec is `int'.
74683
74684 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
74685
74686         Sync from coreutils.
74687         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
74688         against `yes', rather than just testing for nonempty.
74689
74690 2005-10-01  Simon Josefsson  <jas@extundo.com>
74691
74692         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
74693         and Darwin.
74694
74695         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
74696         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
74697         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
74698         freeaddrinfo and gai_strerror are declared by the POSIX headers.
74699         Check if struct addrinfo is declared.
74700
74701 2005-10-01  Simon Josefsson  <jas@extundo.com>
74702
74703         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
74704         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
74705         AI_* and EAI_* definitions.  Protect function declarations.
74706
74707 2005-10-01  Jim Meyering  <jim@meyering.net>
74708
74709         Sync from coreutils.
74710
74711         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
74712         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
74713         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
74714         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74715         in the inet and nsl libraries.  Required on Solaris 5.7.
74716
74717 2005-10-01  Jim Meyering  <jim@meyering.net>
74718
74719         Sync from coreutils.
74720         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74721         in the inet and nsl libraries.  Required on Solaris 5.7.
74722
74723 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
74724
74725         * lib/getdelim.c (getdelim): Remove unused variables.
74726
74727 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
74728
74729         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
74730         so that the code works even with ancient cpp.  Portability problem
74731         with GCC 2.7.2.1 reported by Thomas M.Ott.
74732
74733 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
74734
74735         * modules/regex (Depends-on): Add strcase.
74736
74737         * modules/gethostname (Licence): Change from GPL to LGPL, since
74738         gethostname.c is a trivial implementation of a standard library
74739         function.
74740         * modules/poll (License): Change from GPL to LGPL, since it's
74741         derived from LGPL code.
74742
74743 2005-09-27  Jim Meyering  <jim@meyering.net>
74744
74745         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
74746         HAVE_CONFIG_H.
74747
74748         * lib/intprops.h (signed_type_or_expr__): Define.
74749         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
74750         for unsigned types.
74751
74752 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
74753
74754         * lib/verify.h (verify_expr): Remove, replacing with:
74755         (verify_true): New macro that returns true instead of void.
74756         (verify_type__): Remove.
74757         (verify): Use verify_true rather than verify_type__.
74758
74759 2005-09-26  Bruno Haible  <bruno@clisp.org>
74760
74761         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
74762         is necessary.
74763         (lib_SOURCES): Remove mbchar.c.
74764         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
74765         (Files): Add m4/mbrtowc.m4.
74766         * modules/mbiter: Likewise.
74767         * modules/mbuiter: Likewise.
74768
74769 2005-09-26  Bruno Haible  <bruno@clisp.org>
74770
74771         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
74772         compile mbchar.c if they are not both present.
74773         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
74774         * m4/mbiter.m4 (gl_MBITER): Likewise.
74775         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
74776         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
74777         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
74778
74779 2005-09-25  Jim Meyering  <jim@meyering.net>
74780
74781         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
74782         also uses socklen_t.
74783
74784 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
74785
74786         * lib/utimens.c (ENOSYS): Define if not already defined.
74787         (futimens): Support having a null PATH if the file descriptor
74788         is nonnegative.
74789
74790         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
74791         Remove.
74792         (__attribute): Define to empty unless GCC 3.1 or later.
74793         This works around a core dump on OpenBSD 3.4, which has GCC
74794         2.95.3, which dumps core when given __attribute__(()).  It also
74795         simplifies other tests, since we really don't want to bother with
74796         worrying about which ancient version of GCC supported what.
74797         Original problem reported by Yoann Vandoorselaere, with part of
74798         the fix suggested by Derek Price.
74799
74800 2005-09-24  Jim Meyering  <jim@meyering.net>
74801
74802         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
74803         so we can once again use a positive bitfield width of 1 -- now we
74804         don't have to explain why we were using a bitfield width of 2.
74805
74806 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74807
74808         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
74809         and similarly for the other external symbols.  Problem reported
74810         by James Gallager.
74811
74812         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
74813         bug reported by Jim Meyering.
74814
74815         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
74816         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
74817         not needed, since socklen is a prerequisite module.
74818
74819 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74820
74821         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
74822         Problem reported by Eric Blake.
74823         (getaddrinfo): Initialize se so that it's not garbage.
74824         Redo internal storage allocation so that it doesn't make unportable
74825         assumptions about alignment.
74826         Fix a memory leak.
74827
74828         * lib/utimens.c (futimens): Use futimesat if available.
74829         Prefer it to futimes since it doesn't have the futimes bug.
74830
74831         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
74832         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
74833         Instead, declare a function that returns a pointer to an array,
74834         and use verify_type__ to declare the size of the array.
74835         Problem and germ of a solution reported by Bruno Haible.
74836         (verify_type__): Use 2, not 1, for bitfield size, to avoid
74837         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
74838
74839 2005-09-23  Jim Meyering  <jim@meyering.net>
74840
74841         Sync from coreutils.
74842         Correct build failure (socklen_t not defined) on at least
74843         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
74844         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
74845
74846 2005-09-23  Jim Meyering  <jim@meyering.net>
74847
74848         * modules/getaddrinfo (Depends-on): Add socklen.
74849
74850 2005-09-23  Bruno Haible  <bruno@clisp.org>
74851
74852         * tests/test-verify.c: New file.
74853
74854 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74855
74856         Sync from coreutils.
74857
74858         * modules/argmatch (Depends-on): Add verify.
74859         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
74860         unistd-safer.
74861         * modules/save-cwd (Depends-on): Likewise.
74862
74863         * modules/openat (Files): Add lib/openat-die.c.
74864         (Depends-on): Remove error, exitfail.
74865         Add dirname.
74866
74867         * modules/verify: New file.
74868         * MODULES.html.sh (Diagnostics <assert.h>): New section,
74869         with "verify" module.
74870
74871 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74872
74873         Sync from coreutils.
74874
74875         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
74876         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
74877         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
74878         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
74879         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
74880         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
74881         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
74882         Don't bother checking for string.h, stdlib.h, unistd.h.
74883         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
74884         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
74885         module's job.
74886         * m4/jm-macros.m4 (gl_MACROS): Likewise.
74887         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
74888
74889         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
74890         (gl_GETDATE): Use it.
74891
74892         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
74893
74894 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74895
74896         Sync from coreutils.
74897
74898         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
74899         stat-time.h.
74900         * lib/argmatch.h: Include verify.h
74901         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
74902         (ARGMATCH_ASSERT): Remove; unused.
74903         * lib/canonicalize.c: Assume STDC_HEADERS.
74904         * lib/exclude.c: Include "strcase.h".
74905         * lib/regex_internal.h [!defined _LIBC]: Likewise.
74906         * lib/getusershell.c: Include stdio--.h rather than stdio.h
74907         and stdio-safer.h.
74908         (getusershell): Call fopen, not fopen_safer.
74909         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
74910         Do not include unistd-safer.h.
74911         (save_cwd): Don't call fd_safer; no longer needed
74912         now that we include fcntl--.h.
74913
74914         * lib/getdate.y (relative_time): New type.
74915         (RELATIVE_TIME_0): New constant.
74916         (parser_control): Use relative_time instead of doing it ourselves.
74917         (%union): Add new relative_time rel member.
74918         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
74919         Now typeless.
74920         (relunit, relunit_snumber): Now of type rel.
74921         (zone, rel, relunit, get_date): Adjust to above changes.
74922
74923         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
74924         Do not include unistd-safer.h.
74925         (getloadavg): Don't call fd_safer; no longer needed
74926         now that we include fcntl--.h.
74927
74928         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
74929         (make_dir_parents): Treat ENOSYS like EEXIST.
74930
74931         Improve quality of diagnostics on restore_cwd failure.
74932         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
74933         (make_dir_parents): Last arg is now int * (for errno), not bool *.
74934         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
74935         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
74936         each time through the loop.  Do not diagnose restore_cwd failure;
74937         that is the caller's job (and perhaps the caller does not care).
74938
74939         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
74940         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
74941         If the file already exists but is not a directory, don't bother
74942         to try to make its parents.
74943         Close potential file descriptor leak if we can't chdir("/") (!).
74944         Don't always return true if chdir($PWD) fails; return true only
74945         if the requested action was done successfully (except for the
74946         chdir($PWD)).
74947         Don't log final directory unless we actually made it.
74948         Refactor to avoid duplicate code to fix up permissions.
74949         Don't attempt to fix up parent permissions if chdir($PWD) fails.
74950
74951         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
74952         to make it a bit faster and (I hope) clearer.
74953         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
74954         Fix bug in formats like %2N.
74955
74956         * lib/verify.h: New file.
74957
74958 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74959
74960         Sync from coreutils.
74961         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
74962
74963 2005-09-22  Jim Meyering  <jim@meyering.net>
74964
74965         Sync from coreutils.
74966
74967         * m4/lstat.m4 (gl_FUNC_LSTAT):
74968         Use AC_LIBSOURCES to require lstat.c and lstat.h.
74969         Remove obsolete comment.
74970         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
74971         * m4/xstrtod.m4: Likewise.
74972
74973         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
74974
74975 2005-09-22  Jim Meyering  <jim@meyering.net>
74976
74977         Sync from coreutils.
74978
74979         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
74980
74981         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
74982         the .tm_year member, since otherwise gcc-4.0 would now warn about
74983         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
74984
74985         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
74986         order to avoid an unsuppressible warning from gcc on 64-bit systems.
74987
74988         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
74989         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
74990         when run in a time zone for which daylight savings time is in effect
74991         for the starting date.
74992
74993         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
74994         stop us from restricting permissions of just-created absolute-named
74995         directories.
74996         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
74997         to restore initial working directory.
74998         * lib/mkdir-p.c (make_dir_parents): New parameter:
74999         different_working_dir, to tell caller if/when we change the working
75000         directory and are unable to return to the initial one.
75001         * lib/mkdir-p.h (make_dir_parents): Update prototype.
75002         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
75003         `return false'.  This fixes a bug introduced on 2004-07-30.
75004
75005         * lib/openat.c (fdopendir): Be sure to close the supplied
75006         file descriptor before returning.  This makes our replacement
75007         implementation a little closer to Solaris's, where fdopendir
75008         ties the file descriptor to the returned DIR* pointer.
75009         * lib/openat.c (unlinkat): New function.
75010         * lib/openat.h (unlinkat): Add prototype.
75011         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
75012         (openat_restore_fail): Rename from openat_restore_die.
75013         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
75014
75015         Provide an alternative to exiting immediately upon save_cwd or
75016         restore_cwd failure.  Now, an application can arrange e.g.,
75017         to perform a longjump in that case.
75018         * lib/openat.c: Include dirname.h.
75019         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
75020         (rpl_openat, fdopendir, fstatat): Call openat_save_die
75021         and openat_restore_die rather than calling error directly.
75022         Don't include "error.h" or "exitfail.h"; they're no longer needed.
75023
75024         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
75025         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
75026         define.
75027
75028         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
75029         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
75030                             int utc, int nanoseconds);
75031         Background:
75032         date should not have to allocate a megabyte of virtual memory to
75033         handle a format argument like +%1048575T.  When implemented with
75034         strftime, it must allocate such a buffer, use strftime to fill it
75035         in, print it, then free it.
75036         With fprintftime, it simply prints everything and exits.
75037         With no need for memory allocation, that's one fewer way to fail.
75038         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
75039         optional field width, not before, so we accept %9:z, not %:9z.
75040         (my_strftime): Be sure to use L_('x') for literals.
75041
75042         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
75043         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
75044         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
75045         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
75046         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
75047         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
75048         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
75049         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
75050         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
75051         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
75052         * lib/xgethostname.c, lib/xreadlink.c:
75053         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
75054
75055         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
75056         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
75057         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
75058         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
75059         and don't include <sys/file.h>).
75060
75061 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
75062
75063         Sync from coreutils.
75064
75065         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
75066         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
75067         [!LDAV_DONE]: Avoid unused variable warning.
75068
75069 2005-09-21  Bruno Haible  <bruno@clisp.org>
75070
75071         * lib/unicodeio.h (unicode_to_mb): New declaration.
75072
75073 2005-09-20  Derek Price  <derek@ximbiot.com>
75074
75075         * lib/getaddrinfo.c: Don't include <netdb.h> included from
75076         getaddrinfo.h.
75077
75078 2005-09-20  Bruno Haible  <bruno@clisp.org>
75079
75080         * gnulib-tool: Remove trailing slashes from the values specified for
75081         --source-base, --m4-base, --tests-base, --aux-dir.
75082         Suggested by Simon Josefsson <jas@extundo.com>.
75083
75084 2005-09-20  Bruno Haible  <bruno@clisp.org>
75085
75086         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
75087         func_modules_to_filelist, func_import, func_create_testdir): Make all
75088         sorting results locale-independent, so that gnulib-cache.m4 doesn't
75089         change when gnulib-tool is invoked in a different locale.
75090
75091 2005-09-19  Simon Josefsson  <jas@extundo.com>
75092
75093         * m4/socklen.m4: Fix typo.
75094
75095 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75096
75097         Use a consistent style for including <config.h>.
75098         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
75099         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
75100         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
75101         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
75102         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
75103         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
75104         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
75105         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
75106         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
75107         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
75108         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
75109         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
75110         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
75111         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
75112         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
75113         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
75114         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
75115         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
75116         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
75117         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
75118         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
75119         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
75120         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
75121         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
75122         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
75123         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
75124         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
75125         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
75126         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
75127         lib/xstrtoumax.c, lib/yesno.c:
75128         Standardize inclusion of config.h.
75129         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
75130         lib/inttostr.h:  Removed inclusion of config.h from header files.
75131         * lib/inttostr.c:  Adjusted in-tree users.
75132         * lib/timespec.h: Remove superfluous warning to include config.h.
75133         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
75134         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
75135         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
75136         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
75137         config.h with HAVE_CONFIG_H.
75138
75139 2005-09-19  Jim Meyering  <jim@meyering.net>
75140
75141         * modules/pathmax (License): Change to LGPL.
75142
75143 2005-09-19  Derek Price  <derek@ximbiot.com>
75144
75145         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
75146
75147 2005-09-19  Bruno Haible  <bruno@clisp.org>
75148
75149         * gnulib-tool (import): Provide default for --tests-base.
75150
75151 2005-09-19  Bruno Haible  <bruno@clisp.org>
75152
75153         * doc/quote.texi: New file, extracted from gnulib.texi.
75154         * doc/ctime.texi: New file, extracted from gnulib.texi.
75155         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
75156         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
75157         * doc/gnulib.texi: Include them.
75158
75159 2005-09-18  Bruno Haible  <bruno@clisp.org>
75160
75161         Portability fix.
75162         * gnulib-tool (func_readlink): New function.
75163         (func_ln_if_changed): Use it.
75164
75165 2005-09-18  Bruno Haible  <bruno@clisp.org>
75166
75167         * gnulib-tool: Support --with-tests also with --import.
75168         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
75169         (func_import): Use variables $testsbase and $inctests. Emit a
75170         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
75171         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
75172         SUBDIRS += $testsdir.
75173         (func_create_testdir): Update.
75174
75175 2005-09-18  Bruno Haible  <bruno@clisp.org>
75176
75177         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
75178         instead of $dry_run.
75179         (func_cp_if_changed, func_mv_if_changed): Remove functions.
75180         (func_ln_if_changed): Don't handle dry-run here.
75181         (func_import): In dry-run mode, detect more precisely which actions
75182         would be performed, and don't use "...ing" verbs.
75183
75184 2005-09-18  Bruno Haible  <bruno@clisp.org>
75185
75186         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
75187         (func_import): Use join on two temporary files instead of three nested
75188         loops, in order to determine which files are new or old.
75189
75190 2005-09-18  Bruno Haible  <bruno@clisp.org>
75191
75192         * gnulib-tool (func_import): Comment out code that spits out the
75193         new files with --dry-run.
75194
75195 2005-09-18  Bruno Haible  <bruno@clisp.org>
75196
75197         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
75198
75199 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75200
75201         * lib/stat-time.h: New file.
75202         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
75203         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
75204         in a different way.
75205         (timespec_cmp): New function.
75206         * lib/utimecmp.c: Include stat-time.h.
75207         (SYSCALL_RESOLUTION): Depend on whether various struct stat
75208         members exist, not on the obsolescent ST_MTIM_NSEC.
75209         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
75210
75211 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75212
75213         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
75214
75215 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75216
75217         * MODULES.html.sh (File system functions): Add stat-time.
75218         * modules/stat-time: New file.
75219         * modules/timespec (Files): Remove m4/st_mtim.m4; this
75220         is now done in a different way, by the stat-time module.
75221         * modules/utimecmp (Depends-on): Add stat-time.
75222
75223 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75224
75225         * m4/st_mtim.m4: Remove.  Superseded by...
75226         * m4/stat-time.m4: New file.
75227         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
75228         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
75229
75230 2005-09-15  Derek Price  <derek@ximbiot.com>
75231
75232         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
75233
75234 2005-09-15  Derek Price  <derek@ximbiot.com>
75235
75236         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
75237         * lib/regex_internal.c: Ditto, using this...
75238         (__GNUC_PREREQ): ...new macro.
75239         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
75240         using...
75241         (__GNUC_PREREQ): ...this new macro.
75242
75243         * lib/strstr.h: Include string.h. Define strstr as a macro here.
75244
75245 2005-09-15  Derek Price  <derek@ximbiot.com>
75246             Paul Eggert  <eggert@cs.ucla.edu>
75247
75248         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
75249         changes, consolidating in...
75250         * lib/regex_internal.h: ...this file.
75251
75252 2005-09-13  Jim Meyering  <jim@meyering.net>
75253
75254         * lib/canon-host.c: Filter through gnu indent and reword comments
75255         slightly.
75256         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
75257
75258 2005-09-13  Derek Price  <derek@ximbiot.com>
75259
75260         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
75261         failure.
75262         Reported by Jim Meyering  <jim@meyering.net>.
75263
75264 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75265
75266         * lib/base64.c: Typo.
75267         (base64_encode): Put b64str in initialized data section.
75268
75269 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
75270
75271         Merge glibc and coreutils changes into gnulib, plus a few
75272         extra fixes.
75273         * lib/md5.c: Use #error rather than a string.
75274         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
75275         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
75276         (__attribute__): Define to empty for non recent-GCC.
75277         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
75278         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
75279         Renamed from their non-__ counterparts, with new macros replacing
75280         them if not _LIBC.  Add __THROW attribute.
75281         (rol): Remove.
75282         (struct md5_ctx): Align buffer if using GCC.
75283         * lib/sha1.h (struct sha1_ctx): Likewise.
75284         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
75285         The old name was backwards.
75286         (NOTSWAP): Remove; not used.
75287         (rol): New macro, moved here from md5.h.
75288         (sha1_process_block): Remove a FIXME that doesn't make sense.
75289
75290 2005-09-12  Derek Price  <derek@ximbiot.com>
75291
75292         Return usable errors from canon-host.
75293         * lib/canon-host.h: New file.
75294         * lib/canon-host.c (canon_host): Wrap...
75295         (canon_host_r): ...this new function, which now relies exclusively on
75296         getaddrinfo.
75297         (ch_strerror): New function.
75298         (last_cherror): New global.
75299         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
75300         interface.
75301         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
75302         void *.
75303         (freeaddrinfo): Free ai->ai_canonname when set.
75304
75305 2005-09-12  Derek Price  <derek@ximbiot.com>
75306
75307         Make canon-host require getaddrinfo.
75308         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
75309         AC_LIBSOURCE canon-host.h.  Call...
75310         (gl_PREREQ_CANON_HOST): ...this new function, which requires
75311         gl_GETADDRINFO.
75312         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
75313
75314 2005-09-12  Derek Price  <derek@ximbiot.com>
75315
75316         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
75317         LGPL.
75318         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
75319
75320 2005-09-12  Derek Price  <derek@ximbiot.com>
75321
75322         * lib/gai_strerror.c: Include config.h when available.  Include
75323         getaddrinfo.h before other headers to test interface.
75324         Reported by Larry Jones <lawrence.jones@ugs.com>.
75325
75326 2005-09-12  Derek Price  <derek@ximbiot.com>
75327             Paul Eggert  <eggert@cs.ucla.edu>
75328
75329         * modules/glob (Files): Add glob-libc.h.
75330
75331 2005-09-12  Derek Price  <derek@ximbiot.com>
75332             Paul Eggert  <eggert@cs.ucla.edu>
75333
75334         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
75335         glob_.h, glob-libc.h.
75336         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
75337
75338 2005-09-12  Derek Price  <derek@ximbiot.com>
75339             Paul Eggert  <eggert@cs.ucla.edu>
75340
75341         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
75342         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
75343         protecting things that should be done only in gnulib contexts.
75344         * lib/glob_.h: New file, containing only the glob things needed for
75345         gnulib.
75346         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
75347         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
75348         (glob, globfree, glob_pattern_p): Now defined simply in terms of
75349         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
75350         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
75351         and to respect the namespace rules better.
75352
75353 2005-09-08  Simon Josefsson  <jas@extundo.com>
75354
75355         * modules/socklen: New file.
75356
75357 2005-09-08  Simon Josefsson  <jas@extundo.com>
75358
75359         * m4/socklen.m4: New file.
75360
75361 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75362
75363         * modules/utimens (Files): Add m4/utimbuf.m4, since
75364         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
75365         Reported by Sergey Poznyakoff.
75366
75367 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75368
75369         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
75370         definitions, since that's the preferred style in glibc.
75371         Fix a minor spacing issue, and update copyright notice to match
75372         glibc's.
75373
75374 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75375
75376         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
75377
75378 2005-09-06  Simon Josefsson  <jas@extundo.com>
75379
75380         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
75381         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
75382
75383 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75384
75385         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
75386         warning.
75387
75388 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75389
75390         * config/srclist.txt: Add glibc bug 1302.
75391
75392 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
75393
75394         Change bitset word type from unsigned int to unsigned long int,
75395         as this has better performance on typical 64-bit hosts.
75396         Port bitset code to hosts with unusual word sizes.
75397         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
75398         (build_collating_symbol):
75399         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
75400         argument is a bitset.  This is merely a style issue, but it makes
75401         it clearer that an entire array is expected.
75402         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
75403         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
75404         Port to the case where bitset_word is not the same as unsigned int.
75405         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75406         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
75407         Likewise.
75408         * lib/regexec.c (check_dst_limits_calc_pos_1,
75409         check_subexp_matching_top):
75410         (build_trtable, group_nodes_into_DFAstates):
75411         Likewise.
75412         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
75413         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
75414         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
75415         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
75416         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
75417         * lib/regcomp.c (optimize_subexps, lower_subexp):
75418         Work even if bitset_word has holes in its bitwise representation.
75419         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
75420         * lib/regexec.c (check_dst_limits_calc_pos_1,
75421         check_subexp_matching_top):
75422         Likewise.
75423         * lib/regex_internal.c (re_string_reconstruct):
75424         Don't assume UCHAR_MAX == 255.
75425         * lib/regex_internal.h (bitset_set_all): Likewise.
75426         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
75427         All uses changed.
75428         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
75429         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
75430         All uses changed.
75431         (BITSET_WORD_MAX): New macro.
75432         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
75433         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
75434         (bitset_empty, bitset_copy):
75435         Prefer sizeof (bitset) to multiplying it out ourselves.
75436         (bitset_not_merge): Remove; unused.
75437         (bitset_contain): Return bool, not unsigned int with one bit on.
75438         All callers changed.
75439         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
75440         alignment than re_node_set; do this by defining a new internal
75441         type struct dests_alloc and using it to allocate memory.
75442
75443 2005-09-05  Bruno Haible  <bruno@clisp.org>
75444
75445         * gnulib-tool (func_import): Fix comparison in handling of symbolic
75446         links.
75447
75448 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
75449
75450         * modules/size_max (Makefile.am): Add size_max.h
75451
75452 2005-09-04  Derek Price  <derek@ximbiot.com>
75453
75454         * gnulib-tool (func_import): Fix reversed $symbolic logic.
75455
75456 2005-09-03  Simon Josefsson  <jas@extundo.com>
75457
75458         * gnulib-tool: Fix typo.
75459
75460 2005-09-03  Simon Josefsson  <jas@extundo.com>
75461
75462         * config/srclist.txt: Add glibc bug 1293.
75463
75464 2005-09-03  Derek Price  <derek@ximbiot.com>
75465
75466         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
75467         From Larry Jones <lawrence.jones@ugs.com>.
75468
75469 2005-09-02  Simon Josefsson  <jas@extundo.com>
75470
75471         * modules/socklen: New file.
75472
75473 2005-09-02  Simon Josefsson  <jas@extundo.com>
75474
75475         * modules/havelib: New module.
75476
75477         * modules/gettext, modules/iconv, modules/lock, modules/readline:
75478         Use havelib.
75479
75480 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
75481
75482         Check for arithmetic overflow when calculating sizes, to prevent
75483         some buffer-overflow issues.  These patches are conservative, in the
75484         sense that when I couldn't determine whether an overflow was possible,
75485         I inserted a run-time check.
75486         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
75487         macros.
75488         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
75489         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
75490         (re_xnrealloc, re_x2nrealloc): New inline functions.
75491         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
75492         parse_bracket_exp):
75493         (build_equiv_class, build_charclass): Check for arithmetic overflow
75494         in size expression calculations.
75495         * lib/regex_internal.c (re_string_realloc_buffers):
75496         (build_wcs_upper_buffer, re_node_set_add_intersect):
75497         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
75498         (re_dfa_add_node, register_state): Likewise.
75499         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
75500         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
75501         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
75502         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
75503
75504 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
75505
75506         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
75507         m4/ulonglong.m4.  Problem reported by Martin Lambers.
75508
75509 2005-09-02  Bruno Haible  <bruno@clisp.org>
75510
75511         Support for lib vs. lib64 distinction on biarch platforms.
75512         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
75513         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
75514         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
75515
75516 2005-09-02  Bruno Haible  <bruno@clisp.org>
75517
75518         * gnulib-tool (import): In the other first-use case, provide defaults
75519         as well.
75520
75521 2005-09-02  Bruno Haible  <bruno@clisp.org>
75522
75523         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
75524         patches not yet found in the latest gettext release.
75525
75526 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75527
75528         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
75529         to avoid a collision with bits/local_lim.h in glibc.
75530         All uses changed.  Problem reported by Dmitry V. Levin in
75531         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
75532
75533         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
75534         bugs in int versus size_t comparisons.
75535         (re_string_context_at): Fix bug where the code assumed that
75536         Idx is signed.
75537
75538         Use bool where appropriate.
75539         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
75540         All callers changed.
75541         (calc_eclosure_iter): Likewise, for ROOT arg.
75542         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
75543         (build_charclass_op): Likewise, for NON_MATCH arg.
75544         * lib/regex_internal.c (re_string_allocate, re_string_construct):
75545         (re_string_construct_common): Likewise, for ICASE arg.
75546         * lib/regexec.c (re_search_2_stub, re_search_stub):
75547         Likewise, for RET_LEN arg.
75548         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
75549         (set_regs): Likewise, for FL_BACKTRACK arg.
75550         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
75551         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
75552         (calc_eclosure_iter, parse_bracket_exp):
75553         Use bool for internal variables that are booleans.
75554         * lib/regexec.c (re_search_internal, check_matching,
75555         proceed_next_node):
75556         (set_regs, build_sifted_states, sift_states_bkref):
75557         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
75558         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
75559         (find_collation_sequence_value):
75560         Likewise.
75561         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
75562         (re_node_set_compare):
75563         Return bool, not int. All callers changed.
75564         * lib/regexec.c (check_halt_node_context, check_dst_limits):
75565         (build_trtable, check_node_accept): Likewise.
75566         * lib/regex_internal.h: Include stdbool.h.
75567
75568         Fix bugs uncovered when converting to bool.
75569         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
75570         failure instead of charging ahead blindly.
75571         * lib/regex_internal.c (register_state): Likewise.
75572         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
75573         for freeing internal storage.
75574         (group_nodes_into_DFA_states): Use unsigned int, not int, for
75575         bitset pieces used as boolean, to avoid undefined behavior
75576         on hosts that do int overflow checking.
75577
75578 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75579
75580         * config/srclist.txt: Add glibc bugs 1285-1287.
75581
75582 2005-09-01  Jim Meyering  <jim@meyering.net>
75583
75584         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
75585         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
75586         Require gl_STAT_MACROS, too.
75587
75588 2005-09-01  Bruno Haible  <bruno@clisp.org>
75589
75590         * gnulib-tool (import): In the first-use case, provide defaults.
75591
75592 2005-09-01  Bruno Haible  <bruno@clisp.org>
75593
75594         * gnulib-tool (func_import): Remove the .tmp files.
75595
75596 2005-09-01  Bruno Haible  <bruno@clisp.org>
75597
75598         * gnulib-tool (func_import): Fix handling of symbolic links.
75599
75600 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75601
75602         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
75603         old glibc regex code mishandles strings longer than 2**31 bytes.
75604         This patch fixes this when the regex code is used in gnulib
75605         (i.e., outside glibc).
75606
75607         This patch should not affect the use of the regex code inside
75608         glibc.  No doubt this problem also needs to be handled for glibc
75609         as well, but the result will be an incompatible change to the
75610         glibc ABI, and the old ABI will have to be supported too.  That
75611         can be the the subject for another patch.
75612
75613         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
75614         governing whether the rest of this patch is active.  By default,
75615         the macro is disabled and the patch has no effect.
75616         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
75617         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
75618         (struct re_pattern_buffer, re_search, re_search_2, re_match):
75619         (re_match_2, re_set_registers): Use the new types.
75620         * lib/regex_internal.h (Idx, re_hashval_t): New types.
75621         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
75622         New macros.
75623         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
75624         (re_string_context_at, bin_tree_t, re_dfastate_t):
75625         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
75626         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
75627         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
75628         (re_string_char_size_at, re_string_wchar_at):
75629         (re_string_elem_size_at):
75630         Use the new types and macros to port to 64-bit hosts.
75631         Use unsigned types for internal values, so that the code
75632         mostly works even for arrays larger than SSIZE_MAX.
75633         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
75634         (search_duplicated_node, calc_eclosure_iter, fetch_number):
75635         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
75636         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
75637         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
75638         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
75639         (calc_inveclosure, parse_dup_op, build_range_exp):
75640         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
75641         (fetch_number, create_token_tree, mark_opt_subexp):
75642         Likewise.
75643         * lib/regex_internal.c (re_string_construct_common,
75644         create_ci_newstate):
75645         (create_cd_newstate, re_string_allocate, re_string_construct):
75646         (re_string_realloc_buffers, build_wcs_upper_buffer):
75647         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
75648         (re_string_reconstruct, re_string_peek_byte_case):
75649         (re_string_fetch_byte_case, re_string_context_at):
75650         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
75651         (re_node_set_init_copy, re_node_set_add_intersect):
75652         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75653         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75654         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
75655         (re_acquire_state, re_acquire_state_context, register_state):
75656         Likewise.
75657         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
75658         search_cur_bkref_entry):
75659         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
75660         (re_search_internal, re_search_2_stub, re_search_stub)
75661         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
75662         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
75663         (update_cur_sifted_state, check_dst_limits):
75664         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75665         (check_subexp_limits, sift_states_bkref, merge_state_array):
75666         (check_subexp_matching_top, get_subexp, get_subexp_sub):
75667         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
75668         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
75669         (expand_bkref_cache, check_node_accept_bytes):
75670         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
75671         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
75672         (acquire_init_state_context, check_halt_node_context):
75673         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
75674         (sift_states_backward, clean_state_log_if_needed):
75675         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
75676         (find_recover_state, transit_state_sb, transit_state_mb):
75677         (transit_state_bkref, build_trtable, match_ctx_clean):
75678         Likewise.
75679         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
75680         to work around an assumption that REG_MISSING is negative.
75681
75682         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
75683         (seek_collating_symbol_entry) [defined _LIBC]:
75684         (lookup_collation_sequence_value) [defined _LIBC]:
75685         (build_range_exp, build_collating_symbol) [defined _LIBC]:
75686         Use prototypes rather than old-style function definitions.
75687         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
75688         (transit_state_sb) [0]:
75689         (find_collation_sequence_value) [defined _LIBC]: Likewise.
75690
75691         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
75692         rm_eo.
75693
75694         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
75695         (optimize_subexps, lower_subexp):
75696         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
75697         since the signed shift might overflow.  Use 1u<<31 instead.
75698         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75699         Likewise.
75700         * lib/regexec.c (check_dst_limits_calc_pos_1,
75701         check_subexp_matching_top): Likewise.
75702
75703         * lib/regcomp.c (optimize_subexps, lower_subexp):
75704         Use CHAR_BIT rather than 8, for clarity.
75705         * lib/regexec.c (check_dst_limits_calc_pos_1):
75706         (check_subexp_matching_top): Likewise.
75707         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
75708         have to worry about portability issues when shifting it left.
75709         Remove no-longer-needed test for table_size > 0.
75710         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
75711         in a word, as the resulting behavior is undefined.
75712         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
75713         in one case, a <= should have been an <, and in another case the
75714         whole test was missing.
75715         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
75716         the standard name CHAR_BIT.
75717         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
75718         this is not true on one's complement and signed-magnitude hosts.
75719
75720         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
75721         next_last_offset.
75722         (struct re_dfa_t): Remove unused member states_alloc.
75723         * lib/regcomp.c (init_dfa): Don't initialize unused members.
75724
75725 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75726
75727         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
75728         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
75729         and large-file glibc and in 32-bit large-file Solaris.
75730
75731 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75732
75733         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
75734         lengths fit in regoff_t; this isn't true if regoff_t is the same
75735         width as size_t.
75736         * lib/regex.c (re_search_internal): 5th arg is LAST_START
75737         (= START + RANGE) instead of RANGE.  This avoids overflow
75738         problems when regoff_t is the same width as size_t.
75739         All callers changed.
75740         (re_search_2_stub): Check for overflow when adding the
75741         sizes of the two strings.
75742         (re_search_stub): Check for overflow when adding START
75743         to RANGE; if it occurs, substitute the extreme value.
75744
75745 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75746
75747         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
75748
75749 2005-08-31  Jim Meyering  <jim@meyering.net>
75750
75751         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
75752         a pointer-to-const.
75753         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
75754         (register_state): Likewise.
75755         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
75756         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75757         (group_nodes_into_DFAstates): Likewise.
75758
75759 2005-08-31  Jim Meyering  <jim@meyering.net>
75760
75761         * check-module: Add a FIXME comment.
75762
75763 2005-08-31  Eric Blake  <ebb9@byu.net>
75764
75765         * modules/unistd-safer (Files): Add unistd--.h.
75766         * modules/stdio-safer (Files): Add stdio--.h.
75767
75768 2005-08-31  Derek Price  <derek@ximbiot.com>
75769
75770         * lib/getdelim.c (getdelim): Return EOF on EOF.
75771         Reported by Larry Jones <lawrence.jones@ugs.com>.
75772
75773 2005-08-31  Bruno Haible  <bruno@clisp.org>
75774
75775         Avoid unnecessary diffs in the generated lib/Makefile.am.
75776         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
75777         the generated files.
75778         (func_import): Don't set cmd.
75779
75780 2005-08-31  Bruno Haible  <bruno@clisp.org>
75781
75782         * lib/strstr.c: Include <stddef.h>, for NULL.
75783         * lib/strcasestr.c: Likewise.
75784         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75785
75786 2005-08-31  Bruno Haible  <bruno@clisp.org>
75787
75788         * gnulib-tool: New option --macro-prefix.
75789         (func_import): Use macro_prefix.
75790         (import): Handle option --macro-prefix.
75791
75792 2005-08-31  Bruno Haible  <bruno@clisp.org>
75793
75794         * gnulib-tool (import): Rename most ac_* variables to cached_*.
75795         Also use new variables cached_lgpl, cached_libtool.
75796
75797 2005-08-31  Bruno Haible  <bruno@clisp.org>
75798
75799         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
75800         always instantiating them.
75801
75802 2005-08-31  Bruno Haible  <bruno@clisp.org>
75803
75804         * gnulib-tool (func_import): Read the previous cached settings
75805         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
75806         earlier added by gnulib but are now dropped. Warn when a gnulib file
75807         overwrites a non-gnulib file.
75808
75809 2005-08-31  Bruno Haible  <bruno@clisp.org>
75810
75811         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
75812         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
75813         projects that don't keep autogenerated files in CVS. Put into
75814         actioncmd only the specified modules, not the transitive closure.
75815
75816 2005-08-31  Bruno Haible  <bruno@clisp.org>
75817
75818         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
75819         Create directories that shall be filled.
75820         (import): Don't look for gl_* macros in configure.ac. Recurse across
75821         all directories containing a gnulib-cache.m4 files, if meaningful.
75822
75823 2005-08-31  Bruno Haible  <bruno@clisp.org>
75824
75825         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
75826         (import): Set seen_libtool when we see gl_LIBTOOL.
75827
75828 2005-08-31  Bruno Haible  <bruno@clisp.org>
75829
75830         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
75831         declaration macro definitions from generated gnulib.m4.
75832
75833 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
75834
75835         * lib/iconvme.h: Add prototype for iconv_alloc.
75836
75837 2005-08-29  Simon Josefsson  <jas@extundo.com>
75838
75839         * lib/iconvme.c: Fix errno.
75840
75841 2005-08-29  Bruno Haible  <bruno@clisp.org>
75842
75843         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
75844         that it works when the directory contains spaces.
75845
75846 2005-08-29  Bruno Haible  <bruno@clisp.org>
75847
75848         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
75849
75850 2005-08-29  Bruno Haible  <bruno@clisp.org>
75851
75852         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
75853         Emit more advice.
75854
75855 2005-08-29  Bruno Haible  <bruno@clisp.org>
75856         and Stepan Kasal  <kasal@ucw.cz>
75857
75858         * check-module: If more parameters are given, check each of them
75859         separately; add more exceptions, as noted by Jim Meyering.
75860         (check_module): New procedure.
75861         (%exempt_header): Now contains all exceptions.
75862
75863 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
75864
75865         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
75866
75867 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
75868
75869         * lib/iconvme.c: Split iconv_string into iconv_alloc.
75870
75871 2005-08-28  Bruno Haible  <bruno@clisp.org>
75872
75873         * m4/gnulib-tool.m4: New file.
75874
75875 2005-08-27  Jim Meyering  <jim@meyering.net>
75876
75877         * modules/unistd-safer (Files): Add pipe-safer.c.
75878         * modules/fcntl-safer (Files): Add creat-safer.c.
75879
75880 2005-08-27  Jim Meyering  <jim@meyering.net>
75881
75882         * m4/stdlib-safer.m4: New file.  From coreutils.
75883         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
75884         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
75885         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
75886         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
75887         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
75888
75889 2005-08-27  Jim Meyering  <jim@meyering.net>
75890
75891         * lib/fopen-safer.c: Merge minor changes from coreutils.
75892         * lib/dup-safer.c: Likewise.
75893         * lib/fd-safer.c: Likewise.
75894
75895         Merge from coreutils.
75896         * lib/stdio--.h: New file.
75897         * lib/stdlib--.h: New file.
75898         * lib/mkstemp-safer.c: New file.
75899
75900         GNU tar needs these.
75901         * lib/pipe-safer.c: New file.
75902         * lib/creat-safer.c: New file.
75903         * lib/fcntl--.h (creat): Define to creat_safer.
75904         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
75905         * lib/unistd--.h (pipe): Define to pipe_safer.
75906         * lib/unistd-safer.h: Declare pipe_safer.
75907
75908 2005-08-26  Simon Josefsson  <jas@extundo.com>
75909
75910         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
75911         Haible <bruno@clisp.org>.
75912
75913 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
75914
75915         * lib/regex_internal.h: Remove all references to
75916         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
75917         or better.
75918         (bitset_not, bitset_merge, bitset_not_merge):
75919         (bitset_mask, re_string_allocate, re_string_construct):
75920         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
75921         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
75922         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
75923         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
75924         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75925         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75926         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
75927         (re_acquire_state_context):
75928         Remove unnecessary forward decls.
75929         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
75930         Put __attribute at function definition,
75931         now that the function decl has been removed.
75932         * lib/regex_internal.c (re_string_peek_byte_case):
75933         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
75934         Likewise.
75935
75936 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
75937
75938         * m4/regex.m4: Add AC_PREREQ(2.50).
75939         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
75940
75941 2005-08-25  Simon Josefsson  <jas@extundo.com>
75942
75943         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
75944         __fsetlocking.
75945
75946 2005-08-25  Simon Josefsson  <jas@extundo.com>
75947
75948         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
75949         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
75950         GLIBC specific code.
75951
75952 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75953
75954         Make regex safe for g++.  This fixes one real bug (an "err"
75955         that should have been "*err").  g++ problem reported by
75956         Sam Steingold.
75957         * lib/regex_internal.h (re_calloc): New macro, consistent with
75958         re_malloc etc.  All callers of calloc changed to use re_calloc.
75959         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
75960         not int.  All callers changed.
75961         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
75962         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
75963         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
75964         (find_recover_state): Change "err" to "*err"; this fixes what
75965         appears to be a real bug.
75966         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
75967         versus int.
75968
75969 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75970
75971         * modules/regex (Depends-on): Add malloc, since the code
75972         assumes that !malloc(0) means failure.
75973
75974 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75975
75976         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
75977
75978         alloca modernization/simplification for regex.
75979         * lib/regex.c: Remove portability cruft for alloca.  This no longer
75980         needs to be at the start of the file, and can be moved into
75981         regex_internal.h and simplified.
75982         * lib/regex_internal.h: Include <alloca.h>.
75983         (__libc_use_alloca) [!defined _LIBC]: New macro.
75984         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
75985         now works outside glibc.
75986
75987 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75988
75989         * config/srclist.txt: Add glibc bugs 1241, 1245.
75990
75991 2005-08-25  Jim Meyering  <jim@meyering.net>
75992
75993         * lib/open-safer.c: Include <config.h>.
75994         Otherwise, we'd lose LARGEFILE support in any file using
75995         e.g. "fcntl--.h"
75996
75997 2005-08-25  Bruno Haible  <bruno@clisp.org>
75998
75999         * m4/minmax.m4: Require autoconf 2.52.
76000         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
76001         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
76002         alternatives of translit over the alphabet.
76003         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
76004
76005 2005-08-24  Simon Josefsson  <jas@extundo.com>
76006
76007         * tests/test-getpass.c: New file.
76008
76009 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76010
76011         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
76012         for GNU regex features.
76013
76014 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76015
76016         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
76017         * lib/regex.h (regerror): Likewise.
76018
76019         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
76020         requires this.  (The code never needed it.)
76021
76022         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
76023         All uses of recently-renamed identifiers changed to use the new,
76024         POSIX-compliant names.  The code will build and run just fine
76025         without these changes, but it's better to eat our own dog food
76026         and use the standard-conforming names.
76027
76028         * lib/regex.h: Fix a multitude of POSIX name space violations.
76029         These changes have an effect only for programs that define
76030         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
76031         do not change anything for programs compiled in the normal way.
76032         Also, there is no effect on the ABI.
76033
76034         (_REGEX_SOURCE): New macro.
76035         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
76036         defined and _GNU_SOURCE is not; this fixes a name space violation.
76037
76038         Rename the following macros to obey POSIX requirements.
76039         The old names are still visible as macros if _REGEX_SOURCE is defined.
76040         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
76041         RE_BACKSLASH_ESCAPE_IN_LISTS.
76042         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
76043         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
76044         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
76045         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
76046         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
76047         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
76048         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
76049         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
76050         (REG_INTERVALS): renamed from RE_INTERVALS.
76051         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
76052         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
76053         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
76054         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
76055         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
76056         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
76057         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
76058         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
76059         RE_UNMATCHED_RIGHT_PAREN_ORD.
76060         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
76061         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
76062         (REG_DEBUG): renamed from RE_DEBUG.
76063         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
76064         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
76065         unusual, since we can't clash with the POSIX REG_ICASE.
76066         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
76067         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
76068         (REG_NO_SUB): renamed from RE_NO_SUB.
76069         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
76070         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
76071         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
76072         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
76073         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
76074         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
76075         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
76076         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
76077         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
76078         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
76079         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
76080         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
76081         RE_SYNTAX_POSIX_MINIMAL_BASIC.
76082         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
76083         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
76084         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
76085         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
76086         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
76087         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
76088         (REG_FIXED): Renamed from REGS_FIXED.
76089         (REG_NREGS): Renamed from RE_NREGS.
76090
76091         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
76092         of other REG_* macros, since POSIX says the user is allowed to
76093         #undef these macros selectively.
76094
76095         (reg_errcode_t): Update comment stating what other tables need
76096         to be consistent.
76097
76098         Rename the following enum values to obey POSIX requirements.
76099         The old names are still visible as macros.
76100         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
76101         is not defined, since GNU is supposed to be a superset of POSIX as
76102         much as possible, and since we want reg_errcode_t to be a signed
76103         type for implementation consistency.
76104         (_REG_NOERROR): Renamed from REG_NOERROR.
76105         (_REG_NOMATCH): Renamed from REG_NOMATCH.
76106         (_REG_BADPAT): Renamed from REG_BADPAT.
76107         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
76108         (_REG_ECTYPE): Renamed from REG_ECTYPE.
76109         (_REG_EESCAPE): Renamed from REG_EESCAPE.
76110         (_REG_ESUBREG): Renamed from REG_ESUBREG.
76111         (_REG_EBRACK): Renamed from REG_EBRACK.
76112         (_REG_EPAREN): Renamed from REG_EPAREN.
76113         (_REG_EBRACE): Renamed from REG_EBRACE.
76114         (_REG_BADBR): Renamed from REG_BADBR.
76115         (_REG_ERANGE): Renamed from REG_ERANGE.
76116         (_REG_ESPACE): Renamed from REG_ESPACE.
76117         (_REG_BADRPT): Renamed from REG_BADRPT.
76118         (_REG_EEND): Renamed from REG_EEND.
76119         (_REG_ESIZE): Renamed from REG_ESIZE.
76120         (_REG_ERPAREN): Renamed from REG_ERPAREN.
76121         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
76122         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
76123         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
76124         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
76125
76126         (_REG_RE_NAME, _REG_RM_NAME): New macros.
76127         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
76128         changed.  But support the old name if the new one is not defined
76129         and if _REGEX_SOURCE.
76130
76131         Change the following member names in struct re_pattern_buffer.
76132         The old names are still supported if !_REGEX_SOURCE.
76133         The new names are always supported, regardless of _REGEX_SOURCE.
76134         (re_buffer): Renamed from buffer.
76135         (re_allocated): Renamed from allocated.
76136         (re_used): Renamed from used.
76137         (re_syntax): Renamed from syntax.
76138         (re_fastmap): Renamed from fastmap.
76139         (re_translate): Renamed from translate.
76140         (re_can_be_null): Renamed from can_be_null.
76141         (re_regs_allocated): Renamed from regs_allocated.
76142         (re_fastmap_accurate): Renamed from fastmap_accurate.
76143         (re_no_sub): Renamed from no_sub.
76144         (re_not_bol): Renamed from not_bol.
76145         (re_not_eol): Renamed from not_eol.
76146         (re_newline_anchor): Renamed from newline_anchor.
76147
76148         Change the following member names in struct re_registers.
76149         The old names are still supported if !_REGEX_SOURCE.
76150         The new names are always supported, regardless of _REGEX_SOURCE.
76151         (rm_num_regs): Renamed from num_regs.
76152         (rm_start): Renamed from start.
76153         (rm_end): Renamed from end.
76154
76155         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
76156         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
76157         Prepend __ to parameter names.
76158
76159         Undo yesterday's changes.
76160
76161 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76162
76163         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
76164         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
76165         lib/regex.c.
76166
76167 2005-08-24  Jim Meyering  <jim@meyering.net>
76168
76169         Sync from coreutils.
76170         * m4/fcntl-safer.m4: New file.
76171
76172         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
76173         and object files for this module.
76174
76175 2005-08-24  Jim Meyering  <jim@meyering.net>
76176
76177         Sync from coreutils.
76178         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
76179
76180 2005-08-24  Jim Meyering  <jim@meyering.net>
76181
76182         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
76183         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
76184
76185 2005-08-24  Jim Meyering  <jim@meyering.net>
76186
76187         * modules/fcntl-safer: New module.
76188         * modules/fts (Depends-on): Add fcntl-safer.
76189         * MODULES.html.sh (File descriptor based Input/Output):
76190         Add fcntl-safer.
76191
76192 2005-08-24  Bruno Haible  <bruno@clisp.org>
76193
76194         Support for unit test modules.
76195         * modules/README: Mention tests modules.
76196         * modules/TEMPLATE-TESTS: New file.
76197         * gnulib-tool: New options --extract-tests-module, --with-tests and
76198         --tests-base (unused for the moment).
76199         (testsbase, inctests): New variables.
76200         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
76201         (func_verify_module): Exclude TEMPLATE-TESTS.
76202         (func_verify_nontests_module, func_verify_tests_module): New functions.
76203         (func_get_dependencies): Add implicit dependency for tests modules.
76204         (func_get_tests_module): New function.
76205         (func_modules_transitive_closure): When --with-tests was specified,
76206         include the unit tests as well, unless explicitly avoided.
76207         (func_emit_lib_Makefile_am): Ignore the tests modules here.
76208         (func_emit_tests_Makefile_am): New function.
76209         (func_create_testdir): When --with-tests was specified, emit a
76210         tests/ directory.
76211         * MODULES.html.sh (Future developments): Update.
76212
76213 2005-08-24  Bruno Haible  <bruno@clisp.org>
76214
76215         * modules/tls-tests: New file.
76216         * tests/test-tls.c: New file, from GNU gettext.
76217
76218 2005-08-24  Bruno Haible  <bruno@clisp.org>
76219
76220         * modules/lock-tests: New file.
76221         * tests/test-lock.c: New file, from GNU gettext.
76222
76223 2005-08-24  Bruno Haible  <bruno@clisp.org>
76224
76225         * lib/lock.h: Add multiple inclusion guard.
76226         * lib/tls.h: Add multiple inclusion guard.
76227
76228 2005-08-24  Bruno Haible  <bruno@clisp.org>
76229
76230         * gnulib-tool: Add support for the --aux-dir option to
76231         --create-testdir, --create-megatestdir, --test, --megatest.
76232         (func_create_testdir, func_create_megatestdir): Optionally emit a
76233         AC_CONFIG_AUX_DIR directive.
76234         (create-testdir, create-megatestdir, test, megatest): Provide a
76235         default value for $auxdir.
76236
76237 2005-08-24  Bruno Haible  <bruno@clisp.org>
76238
76239         * gnulib-tool (import): Use compound statement instead of subshell
76240         where possible.
76241
76242 2005-08-24  Bruno Haible  <bruno@clisp.org>
76243
76244         * gnulib-tool (import): Change --aux-dir default to "build-aux".
76245
76246 2005-08-24  Bruno Haible  <bruno@clisp.org>
76247
76248         * gnulib-tool (func_version): Update.
76249
76250 2005-08-24  Bruno Haible  <bruno@clisp.org>
76251
76252         * gnulib-tool (func_import, func_create_testdir,
76253         func_create_megatestdir): Quote all autoconf macro arguments.
76254
76255 2005-08-24  Bruno Haible  <bruno@clisp.org>
76256
76257         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
76258         option --force, because --force causes the aclocal.m4 of each
76259         subdirectory to be newer than the corresponding config.h.in.
76260
76261 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76262
76263         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
76264         All contents moved to gl_REGEX.
76265         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
76266         assume that it does.
76267
76268 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76269
76270         * lib/regex.h (REG_NOSYS)
76271         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
76272         Define, since POSIX requires it as of 2001.
76273         (_REG_ENOSYS)
76274         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
76275         New private symbol, used to keep the enum signed in all cases.
76276         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
76277         Youngman in
76278         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
76279
76280         * lib/regex_internal.c (re_string_skip_chars, register_state):
76281         (calc_state_hash):
76282         Remove forward decls; no longer needed now that we use prototypes.
76283         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
76284         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
76285         (clean_state_log_if_needed): Likewise.
76286
76287 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76288
76289         * config/srclist.txt: Add glibc bugs 1231-1233.
76290
76291 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76292
76293         Fix problems reported by Sam Steingold in
76294         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
76295         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
76296         assumed that reg_errcode_t is a signed type, which is not
76297         necessarily true if _XOPEN_SOURCE is not defined.
76298         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
76299         since some compilers warn about it otherwise.
76300
76301 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76302
76303         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
76304         (init_word_char, create_initial_state, duplicate_node_closure):
76305         (fetch_token, peek_token_bracket, build_range_exp):
76306         (build_collating_symbol): Remove forward decls; no longer needed
76307         now that we use prototypes.
76308
76309         * lib/regcomp.c:
76310         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
76311         (re_compile_fastmap_iter, regcomp, regerror, regfree):
76312         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
76313         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
76314         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
76315         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
76316         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
76317         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
76318         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
76319         (build_range_exp, build_collating_symbol, parse_bracket_exp):
76320         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
76321         (build_charclass, build_charclass_op, fetch_number, create_tree):
76322         (create_token_tree, mark_opt_subexp, duplicate_tree):
76323         Use prototypes rather than old-style definitions.
76324
76325         * lib/regex_internal.c:
76326         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
76327         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
76328         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
76329         (re_string_reconstruct, re_string_peek_byte_case):
76330         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
76331         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
76332         (re_node_set_init_copy, re_node_set_add_intersect):
76333         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76334         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76335         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
76336         (re_acquire_state, re_acquire_state_context, register_state):
76337         (create_ci_newstate, create_cd_newstate, free_state):
76338         Likewise.
76339         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
76340         re_search_2):
76341         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
76342         (re_search_internal, prune_impossible_nodes):
76343         (acquire_init_state_context, check_matching, static):
76344         (check_halt_node_context, check_halt_state_context, proceed_next_node):
76345         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
76346         (update_regs, sift_states_backward, build_sifted_states):
76347         (clean_state_log_if_needed, merge_state_array):
76348         (update_cur_sifted_state, add_epsilon_src_nodes):
76349         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
76350         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
76351         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
76352         (find_recover_state, check_subexp_matching_top, transit_state_mb):
76353         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
76354         (check_arrival, check_arrival_add_next_nodes):
76355         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
76356         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
76357         (check_node_accept_bytes, check_node_accept, extend_buffers):
76358         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
76359         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
76360         (sift_ctx_init):
76361         Likewise.
76362
76363         * lib/regex_internal.h:
76364         (re_string_allocate, re_string_construct, re_string_reconstruct):
76365         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
76366         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
76367         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
76368         (re_string_context_at, re_string_peek_byte_case):
76369         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
76370         is defined, since we now use prototypes always.
76371
76372         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
76373         C89 or better.  All uses removed.
76374
76375 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76376
76377         * config/srclist.txt: Add glibc bugs 1220-1227.
76378
76379 2005-08-20  Jim Meyering  <jim@meyering.net>
76380
76381         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
76382         of unused local, dfa.
76383
76384 2005-08-20  Bruno Haible  <bruno@clisp.org>
76385
76386         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
76387
76388 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76389
76390         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
76391         (re_node_set_insert_last, re_dfa_add_node):
76392         Rename local variables to avoid GCC shadowing warnings.
76393
76394 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76395
76396         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
76397         [defined lint]: Suppress bogus uninitialized-variable warnings.
76398
76399         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
76400         and let the caller return REG_ESPACE if out of space.  This
76401         removes an uninitialied-variable warning with GCC 4.0.1, and also
76402         avoids taking the address of a local variable.  All callers
76403         changed.
76404
76405 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76406
76407         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
76408         $LIBCSRC/posix/regexec.c.
76409         Add glibc bug 1217 for regcomp.c.
76410
76411 2005-08-19  Jim Meyering  <jim@meyering.net>
76412
76413         * lib/regexec.c (proceed_next_node): Redo local variables to
76414         avoid GCC shadowing warnings.
76415
76416 2005-08-18  Bruno Haible  <bruno@clisp.org>
76417
76418         * lib/strstr.c (strstr): Fix return value in multibyte case.
76419         * lib/strcasestr.c (strcasestr): Likewise.
76420
76421 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76422
76423         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
76424
76425 2005-08-17  Jim Meyering  <jim@meyering.net>
76426
76427         Make the %s format (seconds since the epoch) work for a negative
76428         number and when used with a zero-padded field width, e.g. %015s.
76429
76430         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
76431         label so that it precedes the code to set `digits'.  Otherwise,
76432         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
76433         print `00-22'.  Now, it prints `-0022', as it should.
76434
76435 2005-08-17  Bruno Haible  <bruno@clisp.org>
76436
76437         * modules/strstr (Files): Add m4/mbrtowc.m4.
76438         (Depends-on): Add mbuiter.
76439
76440 2005-08-17  Bruno Haible  <bruno@clisp.org>
76441
76442         * modules/strcasestr: New file.
76443         * MODULES.html.sh (String handling, based on ANSI C 89): Add
76444         strcasestr.
76445
76446 2005-08-17  Bruno Haible  <bruno@clisp.org>
76447
76448         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
76449
76450 2005-08-17  Bruno Haible  <bruno@clisp.org>
76451
76452         * modules/mbuiter: New file.
76453         * MODULES.html.sh (Extended multibyte and wide character utilities):
76454         Add mbuiter.
76455
76456 2005-08-17  Bruno Haible  <bruno@clisp.org>
76457
76458         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
76459         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
76460
76461 2005-08-17  Bruno Haible  <bruno@clisp.org>
76462
76463         * m4/strcasestr.m4: New file.
76464
76465 2005-08-17  Bruno Haible  <bruno@clisp.org>
76466
76467         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
76468         * lib/strstr.c: Completely rewritten, with multibyte locale support.
76469
76470 2005-08-17  Bruno Haible  <bruno@clisp.org>
76471
76472         * lib/strcasestr.h: New file.
76473         * lib/strcasestr.c: New file.
76474
76475 2005-08-17  Bruno Haible  <bruno@clisp.org>
76476
76477         * lib/strcasecmp.c: Use mbuiter.h.
76478
76479 2005-08-17  Bruno Haible  <bruno@clisp.org>
76480
76481         * lib/mbuiter.h: New file.
76482
76483 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
76484
76485         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
76486         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
76487         and gl_GETOPT are both invoked via different paths (as happens
76488         with GNU tar CVS because it uses both argp and getopt), the former
76489         wins.
76490
76491 2005-08-16  Bruno Haible  <bruno@clisp.org>
76492
76493         * modules/tls: New file.
76494         * MODULES.html.sh (Multithreading): Add tls.
76495
76496 2005-08-16  Bruno Haible  <bruno@clisp.org>
76497
76498         * modules/strnlen1: New file.
76499         * MODULES.html.sh (String handling): Add strnlen1.
76500
76501 2005-08-16  Bruno Haible  <bruno@clisp.org>
76502
76503         * modules/strcase (Files): Add m4/mbrtowc.m4.
76504         (Depends-on): Add strnlen1, mbchar.
76505
76506 2005-08-16  Bruno Haible  <bruno@clisp.org>
76507
76508         * modules/mbiter: New file.
76509         * MODULES.html.sh (Extended multibyte and wide character utilities):
76510         Add mbiter.
76511
76512 2005-08-16  Bruno Haible  <bruno@clisp.org>
76513
76514         * modules/mbfile: New file.
76515         * MODULES.html.sh (Extended multibyte and wide character utilities):
76516         Add mbfile.
76517
76518 2005-08-16  Bruno Haible  <bruno@clisp.org>
76519
76520         * modules/mbchar: New file.
76521         * MODULES.html.sh (Extended multibyte and wide character utilities):
76522         New section.
76523
76524 2005-08-16  Bruno Haible  <bruno@clisp.org>
76525
76526         * m4/tls.m4: New file, from GNU gettext.
76527
76528 2005-08-16  Bruno Haible  <bruno@clisp.org>
76529
76530         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
76531         always.
76532         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
76533
76534 2005-08-16  Bruno Haible  <bruno@clisp.org>
76535
76536         * m4/mbiter.m4: New file.
76537
76538 2005-08-16  Bruno Haible  <bruno@clisp.org>
76539
76540         * m4/mbfile.m4: New file.
76541
76542 2005-08-16  Bruno Haible  <bruno@clisp.org>
76543
76544         * m4/mbchar.m4: New file.
76545
76546 2005-08-16  Bruno Haible  <bruno@clisp.org>
76547
76548         * lib/tls.h: New file, from GNU gettext.
76549         * lib/tls.c: New file, from GNU gettext.
76550
76551 2005-08-16  Bruno Haible  <bruno@clisp.org>
76552
76553         * lib/strnlen1.h: New file.
76554         * lib/strnlen1.c: New file.
76555
76556 2005-08-16  Bruno Haible  <bruno@clisp.org>
76557
76558         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
76559         (mbi_init): Update.
76560         (mbi_avail, mbi_advance): Let the iteration end before the terminating
76561         NUL byte, not after it.
76562
76563 2005-08-16  Bruno Haible  <bruno@clisp.org>
76564
76565         * lib/strcase.h (strcasecmp): Add note in comments.
76566         * lib/strncasecmp.c: Use code from strcasecmp.c.
76567         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
76568         (strcasecmp): Work correctly in multibyte locales.
76569
76570 2005-08-16  Bruno Haible  <bruno@clisp.org>
76571
76572         * lib/mbiter.h: New file.
76573
76574 2005-08-16  Bruno Haible  <bruno@clisp.org>
76575
76576         * lib/mbfile.h: New file.
76577
76578 2005-08-16  Bruno Haible  <bruno@clisp.org>
76579
76580         * lib/mbchar.h: New file.
76581         * lib/mbchar.c: New file.
76582
76583 2005-08-16  Bruno Haible  <bruno@clisp.org>
76584
76585         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
76586         the valid ones. Makes the comparison operations transitive:
76587         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
76588         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
76589
76590 2005-08-15  Simon Josefsson  <jas@extundo.com>
76591
76592         * modules/ssize_t (License): Change to 'unlimited'.
76593
76594         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
76595
76596 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76597
76598         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
76599         Add comments for each pending glibc patch.
76600
76601 2005-08-15  Bruno Haible  <bruno@clisp.org>
76602
76603         * lib/regex.h (__restrict_arr): Don't define to __restrict if
76604         __cplusplus is defined.
76605
76606 2005-08-14  Jim Meyering  <jim@meyering.net>
76607
76608         Sync from coreutils.
76609
76610         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
76611         Use the hash-table-based cycle-detection code not just when
76612         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
76613         Reported by James Youngman in
76614         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
76615         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
76616         FTS_TIGHT_CYCLE_CHECK.
76617         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
76618         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
76619         once again.
76620         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
76621         * lib/fts.c (fd_safer): Remove decl.
76622         Include fcntl--.h rather than unistd-safer.h
76623         (fts_safe_changedir): Don't call fd_safer; no longer needed
76624         now that we include fcntl--.h.
76625
76626 2005-08-12  Simon Josefsson  <jas@extundo.com>
76627
76628         * modules/getndelim2: Use ssize_t module.
76629         * modules/getnline: Likewise.
76630         * modules/safe-read: Likewise.
76631         * modules/xreadlink: Likewise.
76632
76633         * modules/ssize_t: New file.
76634
76635 2005-08-12  Simon Josefsson  <jas@extundo.com>
76636
76637         * m4/readline.m4: Look for termcap, curses or ncurses if required.
76638
76639 2005-08-12  Simon Josefsson  <jas@extundo.com>
76640
76641         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76642         ssize_t.
76643
76644 2005-08-12  Simon Josefsson  <jas@extundo.com>
76645
76646         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
76647         readline, getdelim and check_version.
76648         (Support for systems lacking ISO C 99: Sizes of integer types):
76649         Add size_max.
76650
76651 2005-08-12  Bruno Haible  <bruno@clisp.org>
76652
76653         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
76654
76655 2005-08-11  Simon Josefsson  <jas@extundo.com>
76656
76657         * modules/readline: New file.
76658
76659         * modules/strnlen (Files): Add strnlen.h.
76660
76661 2005-08-11  Simon Josefsson  <jas@extundo.com>
76662
76663         * m4/readline.m4: New file.
76664
76665 2005-08-11  Simon Josefsson  <jas@extundo.com>
76666
76667         * lib/readline.h, readline.c: New file.
76668
76669 2005-08-11  Simon Josefsson  <jas@extundo.com>
76670
76671         * doc/gnulib.texi (Initial import, Finishing touches): Mention
76672         gl_AVOID.
76673
76674 2005-08-11  Bruno Haible  <bruno@clisp.org>
76675
76676         * lib/strnlen.h (strnlen): Change parameter name to match comment.
76677
76678 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
76679
76680         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
76681
76682 2005-08-10  Simon Josefsson  <jas@extundo.com>
76683
76684         * tests/test-iconvme.c: New file.
76685
76686 2005-08-10  Simon Josefsson  <jas@extundo.com>
76687
76688         * m4/strnlen.m4: New file.
76689
76690         * m4/strndup.m4: Don't check for strnlen declaration, done in
76691         strnlen.m4.
76692
76693 2005-08-10  Simon Josefsson  <jas@extundo.com>
76694
76695         * lib/strndup.c: Use strnlen.h.
76696
76697         * lib/strnlen.h: New file.
76698
76699 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76700
76701         * README: Typos.
76702
76703 2005-08-02  Simon Josefsson  <jas@extundo.com>
76704
76705         * modules/readline: New file.
76706
76707 2005-08-02  Simon Josefsson  <jas@extundo.com>
76708
76709         * modules/getdelim: New file.
76710
76711         * modules/getline: Rewrite, don't use getndelim2.
76712
76713 2005-08-02  Simon Josefsson  <jas@extundo.com>
76714
76715         * m4/getline.m4: Separate out getdelim stuff into separate module.
76716
76717         * m4/getdelim.m4: New file.
76718
76719 2005-08-02  Simon Josefsson  <jas@extundo.com>
76720
76721         * lib/getline.h, getline.c: Rewrite.
76722
76723         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
76724
76725 2005-07-31  Bruno Haible  <bruno@clisp.org>
76726
76727         * lib/lock.h (gl_lock_initializer): New macro.
76728         (gl_lock_define_initialized): Use it.
76729         (gl_rwlock_initializer): New macro.
76730         (gl_rwlock_define_initialized): Use it.
76731         (gl_recursive_lock_initializer): New macro.
76732         (gl_recursive_lock_define_initialized): Use it.
76733
76734 2005-07-30  Karl Berry  <karl@gnu.org>
76735
76736         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
76737         Report from Ben Pfaff, regarding getopt.
76738
76739 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
76740
76741         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
76742         normal way.
76743         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
76744         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
76745         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
76746         (gl_GETOPT): Use the new macros.  Most of the implementation
76747         is moved to the new macros.  This is for programs like Emacs
76748         that don't want all the functionality of gl_GETOPT.
76749
76750 2005-07-26  Bruno Haible  <bruno@clisp.org>
76751
76752         * m4/lock.m4: Update from GNU gettext.
76753
76754 2005-07-26  Bruno Haible  <bruno@clisp.org>
76755
76756         * lib/lock.h: Update from GNU gettext.
76757         * lib/lock.c: Update from GNU gettext.
76758
76759 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
76760
76761         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
76762         obsolescent AC_TRY_RUN.  Include the default includes files, for
76763         'exit'.
76764
76765 2005-07-24  Bruno Haible  <bruno@clisp.org>
76766
76767         * modules/visibility: New file.
76768         * MODULES.html.sh (Misc): Add visibility.
76769
76770 2005-07-24  Bruno Haible  <bruno@clisp.org>
76771
76772         * m4/visibility.m4: New file.
76773
76774 2005-07-24  Bruno Haible  <bruno@clisp.org>
76775
76776         * doc/visibility.texi: New file.
76777
76778 2005-07-22  Bruno Haible  <bruno@clisp.org>
76779
76780         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
76781         $(ALLOCA_H), redundant through BUILT_SOURCES.
76782         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
76783         redundant through BUILT_SOURCES.
76784         * modules/byteswap (Makefile.am): Remove explicit dependency on
76785         $(BYTESWAP_H), redundant through BUILT_SOURCES.
76786         * modules/fnmatch (Makefile.am): Remove explicit dependency on
76787         $(FNMATCH_H), redundant through BUILT_SOURCES.
76788         * modules/getopt (Makefile.am): Remove explicit dependency on
76789         $(GETOPT_H), redundant through BUILT_SOURCES.
76790         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
76791         redundant through BUILT_SOURCES.
76792         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
76793         redundant through BUILT_SOURCES.
76794         * modules/stdbool (Makefile.am): Remove explicit dependency on
76795         $(STDBOOL_H), redundant through BUILT_SOURCES.
76796         * modules/stdint (Makefile.am): Remove explicit dependency on
76797         $(STDINT_H), redundant through BUILT_SOURCES.
76798         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
76799         Remove explicit dependency on $(SYSEXITS_H).
76800         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
76801
76802 2005-07-18  Simon Josefsson  <jas@extundo.com>
76803
76804         * lib/check-version.c (check_version): Accept identical versions too.
76805
76806 2005-07-18  Bruno Haible  <bruno@clisp.org>
76807
76808         * modules/lock: New file.
76809         * MODULES.html.sh (Multithreading): New section.
76810
76811 2005-07-18  Bruno Haible  <bruno@clisp.org>
76812
76813         * m4/lock.m4: New file, from GNU gettext.
76814
76815 2005-07-18  Bruno Haible  <bruno@clisp.org>
76816
76817         * lib/lock.h: New file, from GNU gettext.
76818         * lib/lock.c: New file, from GNU gettext.
76819
76820 2005-07-18  Bruno Haible  <bruno@clisp.org>
76821
76822         * lib/lock.h (gl_once_t): New type.
76823         (gl_once_define, gl_once): New macros.
76824         * lib/lock.c (fresh_once): New variable.
76825         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
76826         functions.
76827
76828 2005-07-16  Simon Josefsson  <jas@extundo.com>
76829
76830         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
76831         workaround, suggested by Bruno.
76832
76833 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76834
76835         * modules/xalloc (Depends-on): Add xalloc-die.
76836         * modules/xvasprintf (Depends-on): Add xalloc-die.
76837
76838 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76839
76840         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
76841         with a minor change.
76842
76843 2005-07-15  Bruno Haible  <bruno@clisp.org>
76844
76845         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
76846         When using lib/poll.c, define poll as rpl_poll.
76847
76848 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
76849
76850         * modules/argp (Depends-on): Remove unlocked-io.
76851
76852 2005-07-14  Derek Price  <derek@ximbiot.com>
76853
76854         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
76855         for glob symlink bug.
76856
76857 2005-07-14  Bruno Haible  <bruno@clisp.org>
76858
76859         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
76860         Instead, test for *_unlocked function declarations directly.
76861
76862 2005-07-11  Simon Josefsson  <jas@extundo.com>
76863
76864         * modules/size_max: New file.
76865
76866         * modules/xsize: Depend on size_max module for size_max.m4.
76867
76868 2005-07-11  Simon Josefsson  <jas@extundo.com>
76869
76870         * lib/size_max.h: New file.
76871
76872 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
76873
76874         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
76875         copyright symbol and the year.
76876         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
76877         (version_etc_va): Use parameterized copyright notice.
76878         Reword to conform to the current GNU coding standards.
76879
76880 2005-07-11  Karl Berry  <karl@gnu.org>
76881
76882         * doc/gnulib.texi (Quoting): new node.
76883         (Initial import): more info, from Patrice.
76884
76885 2005-07-11  Bruno Haible  <bruno@clisp.org>
76886
76887         * gnulib-tool (func_usage): Document option --avoid.
76888         (Command line options): Handle --avoid.
76889         (func_acceptable): New function.
76890         (func_modules_transitive_closure): Use it.
76891
76892 2005-07-11  Bruno Haible  <bruno@clisp.org>
76893
76894         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
76895         Reported by Jim Meyering.
76896
76897 2005-07-10  Bruno Haible  <bruno@clisp.org>
76898
76899         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
76900         Needed when size_t is smaller than 'unsigned int'.
76901         Reported by Paul Eggert.
76902
76903 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76904
76905         * modules/argp (Depends-on): Add unlocked-io
76906
76907 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76908
76909         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
76910         block of defines.
76911
76912 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76913
76914         * config/srclist.txt: Comment out regcomp.c, since we have a porting
76915         fix now.
76916
76917 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
76918         and Paul Eggert  <eggert@cs.ucla.edu>
76919
76920         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
76921         in wint_t, not wchar_t.  Remove now-unnecessary cast.
76922
76923 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76924
76925         * modules/regex (Files): Add lib/regex_internal.c,
76926         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
76927         (Depends-on): Add extensions.
76928         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
76929
76930 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76931
76932         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
76933         pathconf.
76934         * m4/same.m4 (gl_SAME): Likewise.
76935         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
76936
76937         * m4/regex.m4: Adjust to new libc regex implementation.
76938         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
76939         all the .c and .h parts of (the new) regex.
76940         Quote the m4 stuff better.
76941         Check for RE_ICASE bug of old gnulib.
76942         Check for REG_STARTEND of recent libc.
76943         Rename local variables from jm_* to gl_*.
76944         Quote operand of "test -f".
76945         Say "recent enough" version of libc, not "version 2".
76946         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
76947         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
76948         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
76949         Remove check for btowc, isascii.
76950         Require AM_LANGINFO_CODESET.
76951
76952 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76953
76954         * lib/regex.c, regex.h: Sync from libc.
76955         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
76956         * lib/regexec.c:
76957         New files, synced from libc, except that regex_internal.h
76958         currently has a small porting fix.
76959
76960 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76961
76962         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
76963         regex_internal.c, regexec.c.
76964         Add regex_internal.h too, but as a comment, since the libc version
76965         is currently broken in gnulib mode.
76966
76967 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76968
76969         Support programs like Emacs that use gnulib but not gettext.
76970         * MODULES.html.sh (Internationalization functions): Add gettext-h.
76971         * modules/gettext-h: New file.
76972         * modules/gettext (Files): Remove lib/gettext.h.
76973         (Depends-on): Add gettext-h.
76974         (Makefile.am): Remove lib_SOURCES.
76975         * modules/argmatch, modules/c-stack, modules/closeout:
76976         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
76977         * modules/execute, modules/file-type, modules/getaddrinfo:
76978         * modules/getopt, modules/human, modules/javacomp:
76979         * modules/javaexec, modules/mkdir-p, modules/obstack:
76980         * modules/openat, modules/pagealign_alloc, modules/pipe:
76981         * modules/quotearg, modules/regex, modules/rpmatch:
76982         * modules/unicodeio, modules/userspec, modules/version-etc:
76983         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
76984         * modules/xsetenv:
76985         Depend on gettext-h, not gettext.
76986
76987 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76988
76989         * gnulib-tool (func_import): Add support for 'public domain' license.
76990         * modules/alloca, modules/atexit, modules/memmove:
76991         Now public domain, not GPL.
76992         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
76993         * modules/realloc, modules/strerror, modules/strtod:
76994         Now LGPL, not GPL.
76995
76996 2005-07-05  Bruno Haible  <bruno@clisp.org>
76997
76998         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
76999         autoconf CVS. Needed for mingw.
77000
77001 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77002
77003         Remove the dependency of the strftime module on the tzset module.
77004         * modules/strftime (Depends-on): Remove dependency on tzset.
77005
77006 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77007
77008         Remove the dependency of the strftime module on the tzset module.
77009         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
77010         gl_FUNC_TZSET_CLOBBER.
77011
77012 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77013
77014         Remove the dependency of the strftime module on the tzset module.
77015         * lib/strftime.c (my_strftime)
77016         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
77017         Copy the input structure, to work around some of the bug with
77018         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
77019         Solaris releases, you should also use the tzset module, but we won't
77020         require it as a dependency any more since we don't want LGPLed code
77021         to depend on GPLed code.
77022
77023 2005-07-02  Jim Meyering  <jim@meyering.net>
77024
77025         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
77026         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
77027         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
77028         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
77029
77030 2005-07-02  Jim Meyering  <jim@meyering.net>
77031
77032         * lib/backupfile.c (backup_args): Change a `0' to NULL.
77033
77034 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77035
77036         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
77037         declares only 'struct timespec;' (!).
77038
77039 2005-07-01  Jim Meyering  <jim@meyering.net>
77040
77041         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
77042         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
77043         * lib/save-cwd.c, tempname.c:
77044         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
77045         and don't include <sys/file.h>).
77046
77047 2005-06-29  Jim Meyering  <jim@meyering.net>
77048
77049         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
77050         type name.  Use the variable name instead.
77051         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
77052         Likewise.
77053
77054 2005-06-28  Simon Josefsson  <jas@extundo.com>
77055
77056         * modules/check-version (Files): Add check-version.m4.
77057
77058 2005-06-28  Simon Josefsson  <jas@extundo.com>
77059
77060         * m4/check-version.m4: New file, suggested by Jim Meyering
77061         <jim@meyering.net>.
77062
77063 2005-06-28  Simon Josefsson  <jas@extundo.com>
77064
77065         * lib/check-version.h, lib/check-version.c: New files.
77066
77067 2005-06-28  Simon Josefsson  <jas@extundo.com>
77068
77069         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
77070         collision with global variable.  Better indentation.  Don't
77071         increment buffer pointer beyond buffer end.  Based on comments
77072         from Paul Eggert <eggert@cs.ucla.edu>.
77073
77074         * lib/base64.h: Indent.
77075
77076 2005-06-28  Simon Josefsson  <jas@extundo.com>
77077
77078         * doc/gnulib.texi (Library version handling): New section.
77079
77080 2005-06-28  Jim Meyering  <jim@meyering.net>
77081
77082         * check-module (find_included_lib_files): Hard-code another
77083         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
77084         but modules/fts-lgpl (correctly) does not list those files.
77085
77086         * modules/canonicalize (Files): Add lib/pathmax.h.
77087
77088 2005-06-25  Simon Josefsson  <jas@extundo.com>
77089
77090         * modules/check-version: New file.
77091
77092 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
77093
77094         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
77095         initializer of struct addrinfo, as an indication that we don't
77096         care how many members the structure has.
77097
77098 2005-06-24  Derek Price  <derek@ximbiot.com>
77099         and Bruno Haible  <bruno@clisp.org>
77100
77101         Remove stat module & update lstat.
77102         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
77103         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
77104         * m4/stat.m4: Remove this 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         * lib/stat.c: Remove this file...
77111         (slash_aware_lstat): ...moving this content and its support...
77112         * lib/lstat.c (rpl_lstat): ...into here.
77113         * lib/lstat.h: New file.
77114
77115 2005-06-24  Derek Price  <derek@ximbiot.com>
77116         and Bruno Haible  <bruno@clisp.org>
77117
77118         Remove stat module & update lstat.
77119         * config/srclist.txt (libc sources): Remove stat.
77120
77121 2005-06-24  Derek Price  <derek@ximbiot.com>
77122         and Bruno Haible  <bruno@clisp.org>
77123
77124         Remove stat module & update lstat.
77125         * MODULES.html.sh (stat): Remove.
77126         * MODULES.html: Regenerated.
77127         * modules/lstat (Description): Correct function name.
77128         (Files): Add "lstat.h".
77129         (Depends-on): Remove stat, add xalloc, stat-macros.
77130         * modules/stat: Remove this file.
77131         (Include): Add "lstat.h", remove <sys/stat.h>.
77132
77133 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
77134
77135         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
77136         (ranged_convert): Don't save conversion in a temporary struct.
77137         This causes a warning with GCC 4.0.0, and anyway in the typical
77138         case it's not worth the extra 100 bytes or so of code.
77139         (ranged_convert, __mktime_internal): When calling a function via a
77140         pointer P, use P () rather than (*P) (), as we now assume C89 or
77141         better.
77142
77143 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77144
77145         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
77146         "who -r" failed to give output.  Problem reported by Tim Waugh.
77147
77148         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
77149         (xcalloc): Use it to avoid needless tests.
77150         Problem reported by Jim Meyering.
77151
77152 2005-06-20  Derek Price  <derek@ximbiot.com>
77153
77154         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
77155         unnecessary for Autoconfs > 2.59c.
77156
77157 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77158
77159         * lib/argp.h (__option_is_short): Check upper limit of
77160         __key. Isprint() requires its argument to have the value
77161         of an unsigned char or EOF.
77162
77163 2005-06-16  Jim Meyering  <jim@meyering.net>
77164
77165         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
77166         when either N or S is zero.
77167
77168 2005-06-16  Derek Price  <derek@ximbiot.com>
77169
77170         * m4/bison.m4: Declare YACC & YFLAGS precious.
77171
77172 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
77173
77174         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
77175         multibyte string or pattern, fall back on unibyte matching.
77176         Problem reported by James Youngman.
77177
77178 2005-06-08  Bruno Haible  <bruno@clisp.org>
77179
77180         * modules/csharpcomp: New file.
77181         * MODULES.html.sh (C#): Add csharpcomp.
77182
77183 2005-06-08  Bruno Haible  <bruno@clisp.org>
77184
77185         * m4/csharpcomp.m4: New file, from GNU gettext.
77186
77187 2005-06-08  Bruno Haible  <bruno@clisp.org>
77188
77189         * lib/csharpcomp.h: New file, from GNU gettext.
77190         * lib/csharpcomp.c: New file, from GNU gettext.
77191         * lib/csharpcomp.sh.in: New file, from GNU gettext.
77192
77193 2005-06-08  Bruno Haible  <bruno@clisp.org>
77194
77195         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
77196         warning on mingw.
77197
77198 2005-06-07  Derek Price  <derek@ximbiot.com>
77199
77200         Sync from CVS.
77201         * lib/glob_.h: Indent nested #ifdef.
77202
77203 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77204
77205         Sync from coreutils.
77206         Use "file name" when talking about file names, instead of "filename"
77207         or "path", as per the GNU coding standards.
77208         * lib/mkdir-p.c: Renamed from makepath.c.
77209         (make_dir_parents): Renamed from make_path.  All callers changed.
77210         * lib/mkdir-p.h: Likewise.  All includers changed.
77211         * lib/filenamecat.c: Renamed from path-concat.c.
77212         (file_name_concat): Renamed from path_concat.  All callers changed.
77213         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
77214         * lib/filenamecat.h: Likewise.  All includers changed.
77215         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
77216         in comments or local variable names.
77217         * lib/basename.c: Likewise.
77218         * lib/canonicalize.c, canonicalize.h: Likewise.
77219         * lib/dirname.c, dirname.h: Likewise.
77220         * lib/euidaccess.c: Likewise.
77221         * lib/exclude.c: Likewise
77222         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
77223         * lib/fsusage.c, fsuage.h: Likewise.
77224         * lib/fts.c, fts_.h: Likewise.
77225         * lib/getcwd.c: Likewise.
77226         * lib/getloadavg.c: Likewise.
77227         * lib/mkstemp.c: Likewise.
77228         * lib/mountlist.c, mountlist.h: Likewise.
77229         * lib/openat.c, openat.h: Likewise.
77230         * lib/readlink-stub.c: Likewise.
77231         * lib/readutmp.c, readutmp.h: Likewise.
77232         * lib/rename.c: Likewise.
77233         * lib/rmdir.c: Likewise.
77234         * lib/same.c: Likewise.
77235         * lib/savedir.c: Likewise.
77236         * lib/stripslash.c: Likewise.
77237         * lib/tempname.c: Likewise.
77238         * lib/xreadlink.c: Likewise.
77239         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
77240         All uses changed.
77241         * lib/exclude.h: Likewise.
77242
77243         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
77244         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77245         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
77246         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77247         * lib/pathmax.h: Include <limits.h> unconditionally, since other
77248         files have been getting away with it for years (MORE/BSD 4.3
77249         is extinct now).
77250         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
77251         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77252
77253         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
77254         Define to 256, not 255, as per modern POSIX.
77255
77256 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77257
77258         Sync from coreutils.
77259         Use "file name" when talking about file names, instead of "filename"
77260         or "path", as per the GNU coding standards.
77261         * MODULES.html.sh: mkdir-p renamed from makepath.
77262         filenamecat renamed from path-concat.
77263         * modules/filenamecat: Renamed from modules/path-concat.
77264         (Files): filenamecat.h and filenamecat.c renamed from
77265         path-concat.h and path-concat.c.
77266         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
77267         (Include): filenamecat.h, not path-concat.h.
77268         * modules/mkdir-p: Renamed from modules/makepath.
77269         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
77270         makepath.c.
77271         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
77272         (Include): mkdir-p.h, not makepath.h.
77273
77274 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77275
77276         Sync from coreutils.
77277         * m4/mkdir-p.m4: Renamed from makepath.m4.
77278         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
77279         Rename files from makepath.c to mkdir-p.c, and from
77280         makepath.h to mkdir-p.h.
77281         * m4/filenamecat.m4: Renamed from path-concat.m4.
77282         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
77283         Rename files from path-concat.c to filenamecat.c,
77284         and from path-concat.h to filenamecat.h.
77285         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
77286         "file name" in local variables or comments.
77287         * m4/rename.m4: Likewise.
77288
77289 2005-06-01  Bruno Haible  <bruno@clisp.org>
77290
77291         * modules/csharpexec: New file.
77292         * MODULES.html.sh (C#): New section.
77293
77294 2005-06-01  Bruno Haible  <bruno@clisp.org>
77295
77296         * m4/csharp.m4: New file, from GNU gettext.
77297         * m4/csharpexec.m4: New file, from GNU gettext.
77298
77299 2005-06-01  Bruno Haible  <bruno@clisp.org>
77300
77301         * lib/csharpexec.h: New file, from GNU gettext.
77302         * lib/csharpexec.c: New file, from GNU gettext.
77303         * lib/csharpexec.sh.in: New file, from GNU gettext.
77304
77305 2005-05-31  Derek Price  <derek@ximbiot.com>
77306             Paul Eggert  <eggert@cs.ucla.edu>
77307
77308         Sync from cvs.
77309         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
77310
77311 2005-05-31  Derek Price  <derek@ximbiot.com>
77312             Paul Eggert  <eggert@cs.ucla.edu>
77313
77314         Sync from cvs.
77315         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
77316
77317 2005-05-29  Derek Price  <derek@ximbiot.com>
77318
77319         * config/srclist.txt (glob_.h, glob.c): Add these files.
77320
77321 2005-05-29  Derek Price  <derek@ximbiot.com>
77322
77323         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
77324         * modules/glob: New file.
77325         * modules/getlogin_r: Add link to POSIX spec in description.
77326
77327 2005-05-29  Derek Price  <derek@ximbiot.com>
77328             Paul Eggert  <eggert@cs.ucla.edu>
77329
77330         * m4/glob.m4: New file.
77331
77332 2005-05-29  Derek Price  <derek@ximbiot.com>
77333             Paul Eggert  <eggert@cs.ucla.edu>
77334
77335         * lib/glob_.h, lib/glob.c: New files.
77336
77337 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77338
77339         * modules/fts (Files): Remove m4/inttypes-pri.m4.
77340         * modules/fts-lgpl (Depends-on): Remove gettext.
77341
77342 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77343
77344         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
77345         and don't require gt_INTTYPES_PRI.
77346
77347 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77348
77349         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
77350
77351         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
77352         the configuration hassle isn't worth it.
77353         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
77354         (LONGEST_MODIFIER, PRIuMAX): Remove.
77355
77356 2005-05-27  Bruno Haible  <bruno@clisp.org>
77357
77358         * lib/getlogin_r.h: Remove second include of <stddef.h>.
77359
77360 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
77361
77362         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
77363         _POSIX_PTHREAD_SEMANTICS for Solaris.
77364
77365 2005-05-25  Derek Price  <derek@ximbiot.com>
77366
77367         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
77368
77369 2005-05-25  Derek Price  <derek@ximbiot.com>
77370             Paul Eggert  <eggert@cs.ucla.edu>
77371
77372         * modules/getlogin_r, m4/getlogin_r.m4: New files.
77373         * lib/getlogin_r.c, getlogin_r.h: New files.
77374
77375 2005-05-25  Bruno Haible  <bruno@clisp.org>
77376             Derek Price  <derek@ximbiot.com>
77377
77378         * lib/getlogin_r.h: Simplify API documentation.
77379
77380 2005-05-23  Derek Price  <derek@ximbiot.com>
77381
77382         * modules/minmax (Files): Add m4/minmax.m4.
77383         (configure.ac): Add gl_MINMAX.
77384
77385 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
77386
77387         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
77388         so that unistd-safer.h (GPL'ed code) need not be included.
77389
77390 2005-05-22  Bruno Haible  <bruno@clisp.org>
77391
77392         * m4/minmax.m4: New file.
77393         Based on a patch by Derek Price <derek@ximbiot.com>.
77394
77395 2005-05-22  Bruno Haible  <bruno@clisp.org>
77396
77397         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
77398         (INT64_MIN): Fix definition.
77399         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
77400
77401         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
77402         NEED_SIGNED_INT_TYPES.
77403
77404         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
77405         HAVE_SYSTEM_INTTYPES.
77406
77407 2005-05-22  Bruno Haible  <bruno@clisp.org>
77408
77409         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
77410         Also include <sys/param.h> if it defines MIN, MAX.
77411         Based on a patch by Derek Price <derek@ximbiot.com>.
77412
77413 2005-05-21  Jim Meyering  <jim@meyering.net>
77414
77415         * modules/fts (Files): Add m4/inttypes-pri.m4.
77416         (Depends-on): Add lstat and remove gettext.  Alphabetize.
77417
77418 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77419
77420         New fts module.
77421         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
77422         (setup_dir, free_dir): New functions.
77423         (enter_dir, leave_dir): Define trivial
77424         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
77425         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
77426         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
77427         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
77428         Move to fts-cycle.c.
77429         (fts_open): Use setup_dir.
77430         (fts_close): Use free_dir.
77431         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
77432         This adds a label and some gotos, but the alternatives were messier.
77433         Check for memory allocation failure when entering a dir.
77434         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
77435         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
77436         (FTS): New member fts_cycle, that is a union that contains the
77437         old active_dir_ht and cycle_state.  All uses changed to mention
77438         fts_cycle.ht and fts_cycle.state.
77439         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
77440         fts.c, with the following changes:
77441         (setup_dir, free_dir): New functions.
77442         (enter_dir): Now returns bool.  Return true if successful, false
77443         if memory exhausted.  All callers changed.
77444         Do not bother partly cleaning up on
77445         memory allocation failure; that is free_dir's job.
77446         However, free ad if hash_insert fails, to avoid memory leak.
77447         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
77448         fts->fts_options to see which union member to use.
77449
77450 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77451
77452         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
77453         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
77454
77455 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77456
77457         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
77458
77459 2005-05-20  Jim Meyering  <jim@meyering.net>
77460
77461         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
77462         Now a macro, to pacify GCC.
77463
77464 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
77465
77466         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
77467         of -1.
77468
77469 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
77470
77471         * lib/chown.c (rpl_chown): Return -1 on failure.
77472
77473 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
77474
77475         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
77476         Don't check for stddef.h.
77477         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
77478         don't use its results.
77479         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
77480         since we include them unconditionally.  Don't require
77481         AM_STDBOOL_H, since stdbool is a prerequisite.
77482         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
77483         since we assume C89 or better.
77484         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
77485         as we don't use their results.
77486         Don't check for fchdir, memmove, memset, strrchr, as we use
77487         them unconditionally.
77488         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
77489         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
77490
77491 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
77492
77493         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
77494         Include <stddef.h> unconditionally, since we assume C89 now.
77495         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
77496         * lib/fts.c: Include fts_.h first, to check interface.
77497         Do not include intprops.h; no longer needed.
77498         Include cycle-check.h and hash.h, since fts_.h no longer does.
77499         Remove unnecessary casts of closedir to void.
77500         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
77501         decide whether to decrement nlinks.
77502         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
77503         (FTS): Use struct hash_table * instead of Hash_table, so that
77504         we no longer need to include hash.h here.
77505
77506 2005-05-18  Jim Meyering  <jim@meyering.net>
77507
77508         * modules/dirfd (License): Change to LGPL.  Most of the code
77509         is already in the public domain.
77510
77511 2005-05-18  Jim Meyering  <jim@meyering.net>
77512
77513         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
77514         Reported by Yoann Vandoorselaere.
77515
77516 2005-05-17  Jim Meyering  <jim@meyering.net>
77517
77518         * m4/fts.m4: New file, from coreutils.
77519
77520 2005-05-17  Jim Meyering  <jim@meyering.net>
77521
77522         * lib/fts.c, lib/fts_.h: New files, from coreutils.
77523
77524 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77525
77526         Sync from coreutils.
77527         * m4/unlinkdir.m4: New file.
77528
77529 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77530
77531         Sync from coreutils.
77532         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
77533         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
77534         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
77535         White space changes only.
77536         * lib/makepath.c (make_path): Port to hosts where leading "//" is
77537         special.
77538         * lib/yesno.c: Include getline.h, not ctype.h.
77539         (yesno): Don't remove leading white space; POSIX doesn't allow it.
77540         Use getline to remove arbitrary restriction on response length.
77541
77542 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77543
77544         * config/srclist-update: Spell out "Street" in FSF postal
77545         mail address; this is the style the FSF seems to prefer.
77546
77547         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
77548         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
77549         this updates FSF postal mail address.
77550
77551         Sync from coreutils.
77552         * modules/unlinkdir: New file.
77553         * modules/yesno (Depends-on): Add getline.
77554         * MODULES.html.sh (File system functions): Add unlinkdir.
77555
77556 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77557
77558         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
77559         lib/strsep.h:
77560         Change the initial comment to refer to GPL, not LGPL.
77561         gnulib-tool will change it to LGPL as needed.
77562
77563         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
77564         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
77565         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
77566         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
77567         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
77568         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
77569         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
77570         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
77571         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
77572         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
77573         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
77574         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
77575         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
77576         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
77577         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
77578         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
77579         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
77580         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
77581         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
77582         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
77583         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
77584         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
77585         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
77586         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
77587         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
77588         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
77589         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
77590         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
77591         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
77592         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
77593         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
77594         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
77595         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
77596         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
77597         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
77598         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
77599         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
77600         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
77601         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
77602         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
77603         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
77604         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
77605         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
77606         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
77607         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
77608         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
77609         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
77610         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
77611         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
77612         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
77613         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
77614         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
77615         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
77616         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
77617         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
77618         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
77619         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
77620         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
77621         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
77622         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
77623         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
77624         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
77625         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
77626         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
77627         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
77628         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
77629         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
77630         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
77631         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
77632         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
77633         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
77634         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
77635         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
77636         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
77637         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
77638         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
77639         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
77640         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
77641         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
77642         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
77643         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
77644         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
77645         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
77646         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
77647         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
77648         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
77649         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
77650         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
77651         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
77652         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
77653         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
77654         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
77655         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
77656         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
77657         lib/yesno.c, lib/yesno.h:
77658         Update FSF postal mail address.
77659
77660 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77661
77662         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
77663         tests/test-memmem.c, tests/test-stpncpy.c:
77664         Update FSF postal mail address.
77665
77666 2005-05-13  Bruno Haible  <bruno@clisp.org>
77667
77668         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
77669         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
77670         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
77671         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
77672         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
77673         Add support for 64-bit integers in the MSVC compiler.
77674
77675 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77676
77677         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
77678
77679 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
77680
77681         * gnulib-tool (func_import): Sort and uniquify recommended includes.
77682
77683 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
77684
77685         * doc/getdate.texi (General date syntax): Don't say that date
77686         date --iso-8601=ns generates acceptable dates; it doesn't yet.
77687         Problem reported by Nic Ferrier.
77688
77689 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77690
77691         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
77692         specified in ai_socktype. Fix invalid ai_protocol
77693         check. ai_protocol is usually set to 0 or depending on
77694         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
77695         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
77696         ai_socktype / ai_protocol in the returned addrinfo structure.
77697
77698 2005-05-10  Simon Josefsson  <jas@extundo.com>
77699
77700         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
77701         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77702
77703 2005-05-10  Karl Berry  <karl@gnu.org>
77704
77705         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
77706         (from http://www.gnu.org/licenses).
77707         * doc/COPYING.LIB: also rename to COPYING.LESSER.
77708         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
77709         fdl.texi suffices.
77710
77711 2005-05-10  Karl Berry  <karl@gnu.org>
77712
77713         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
77714         (COPYING.DOC): remove.
77715
77716         * config/srclist-update: new FSF address.
77717
77718 2005-05-10  Derek Price  <derek@ximbiot.com>
77719
77720         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
77721         possible.
77722
77723 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77724             Bruno Haible  <bruno@clisp.org>
77725
77726         * modules/inet_ntop: New file.
77727         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77728         inet_ntop.
77729
77730 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77731             Bruno Haible  <bruno@clisp.org>
77732
77733         * m4/inet_ntop.m4: New file.
77734
77735 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77736             Bruno Haible  <bruno@clisp.org>
77737
77738         * lib/inet_ntop.h: New file.
77739         * lib/inet_ntop.c: New file, from glibc with modifications.
77740
77741 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
77742
77743         * modules/time_r (License): Change to LGPL.
77744         * modules/extensions (License): Change to LGPL.  Actually,
77745         the license is more permissive than that, but currently gnulib-tool
77746         doesn't know how to handle more-permissive licenses.
77747
77748         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
77749         Problem reported by Dave Love.
77750
77751 2005-05-08  Jim Meyering  <jim@meyering.net>
77752
77753         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
77754         blank.
77755
77756 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
77757
77758         * modules/argmatch (Depends-on): Add stdbool.
77759         * modules/backupfile (Depends-on): Likewise.
77760         * modules/chdir-long (Depends-on): Likewise.
77761         * modules/closeout (Depends-on): Likewise.
77762         * modules/cycle-check (Depends-on): Likewise.
77763         * modules/dirname (Depends-on): Likewise.
77764         * modules/fnmatch (Depends-on): Likewise.
77765         * modules/fsusage (Depends-on): Likewise.
77766         * modules/fwriteerror (Depends-on): Likewise.
77767         * modules/getcwd (Depends-on): Likewise.
77768         * modules/getloadavg (Depends-on): Likewise.
77769         * modules/hard-locale (Depends-on): Likewise.
77770         * modules/makepath (Depends-on): Likewise.
77771         * modules/mountlist (Depends-on): Likewise.
77772         * modules/nanosleep (Depends-on): Likewise.
77773         * modules/posixtm (Depends-on): Likewise.
77774         * modules/quotearg (Depends-on): Likewise.
77775         * modules/readtokens (Depends-on): Likewise.
77776         * modules/readtokens0 (Depends-on): Likewise.
77777         * modules/readutmp (Depends-on): Likewise.
77778         * modules/save-cwd (Depends-on): Likewise.
77779         * modules/strftime (Depends-on): Likewise.
77780         * modules/userspec (Depends-on): Likewise.
77781         * modules/utimecmp (Depends-on): Likewise.
77782         * modules/xgetcwd (Depends-on): Likewise.
77783         * modules/xnanosleep (Depends-on): Likewise.
77784         * modules/xstrtod (Depends-on): Likewise.
77785         * modules/yesno (Depends-on): Likewise.
77786
77787 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
77788
77789         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
77790         needless checks.
77791
77792 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77793
77794         Merge from coreutils.  Among other things,
77795         add bulletproofing for cases where stdin, stdout, or stderr are closed.
77796         * lib/fd-safer.c: New file.
77797         * lib/fcntl-safer.h, open-safer.c: Remove.
77798         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
77799         * lib/dup-safer.c: Include unistd-safer.h first.
77800         Don't include errno.h.
77801         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
77802         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
77803         * lib/file-type.c: Rely on file-type.h change.
77804         * lib/getloadavg.c: Include unistd-safer.h.
77805         (getloadavg): Use safer open.
77806         * lib/getusershell.c: Include "stdio-safer.h".
77807         (getusershell): Use safer fopen.
77808         * lib/long-options.c (long_options): Use NULL rather than 0.
77809         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
77810         'free'.
77811         * lib/modechange.c: Likewise.
77812         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
77813         (MODE_DONE): New constant.
77814         (struct mode_change): Remove 'next' member.
77815         (make_node_op_equals): New function; like the old one of the
77816         same name, except it allocates an array.
77817         (mode_compile, mode_create_from_ref): Use it.
77818         (mode_compile): Allocate result as an array, not a linked list.
77819         Parse octal string ourself, so that we catch mistakes like "+0".
77820         (mode_adjust): Arg is an array, not a linked list.
77821         * lib/modechange.c: Include stat-macros.h, xalloc.h.
77822         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
77823         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
77824         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
77825         Remove.  This is now stat-macros.h's job.
77826         (talloc): Remove.  All callers replaced by xalloc, so that
77827         our invokers don't have to worry about reporting memory failures.
77828         (make_node_op_equals): Remove.
77829         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77830         New constants.
77831         (struct mode_change): Moved here from modechange.h.
77832         (mode_append_entry): Remove.
77833         (mode_compile): Remove MASKED_OPS arg, since it encouraged
77834         apps to have incorrect behavior.  Use simpler algorithm for head
77835         and tail.  Don't futz with umask; that's now the job of mode_adjust.
77836         Detect more invalid usages rather than having somewhat-random behavior.
77837         Don't insert an "a=" action, as that leads to incorrect behavior.
77838         (mode_compile, mode_create_from_ref): Return NULL on error instead
77839         of an enum, since now there's only one way to have an error.  All
77840         callers changed.
77841         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
77842         at the correct time.  Simplify calculation of "+u" and its ilk.
77843         Don't mishandle "+X".
77844         (mode_free): Remove "register" and localize decls.
77845         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77846         (struct mode_change): Move to modechange.c; callers don't
77847         need to see this stuff.
77848         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
77849         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
77850         (mode_change, mode_adjust): Reflect the new signatures noted above.
77851         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
77852         that might redefine system include files.
77853         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
77854         (my_usleep): Use NULL rather than (void *) 0.
77855         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
77856         Use siginterrupt to specify that system calls should be interrupted.
77857         (rpl_nanosleep): Move initialization of suspended closer to call of
77858         my_usleep.
77859         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
77860         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
77861         (desirable_utmp_entry): New function.
77862         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
77863         using x2nrealloc, to simplify logic.
77864         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
77865         size calculation.  Do not assume utmp file is a regular file.
77866         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
77867         (READ_UTMP_CHECK_PIDS): New constant.
77868         * lib/save-cwd.c: Include unistd-safer.h.
77869         (save_cwd): Use fd_safer.
77870         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
77871         [!_LIBC] Include "stat-macros.h" instead.
77872         * lib/unistd-safer.h (fd_safer): New decl.
77873
77874 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77875
77876         * modules/getloadavg (Depends-on): Add unistd-safer.
77877         * modules/getusershell (Depends-on): Add stdio-safer.
77878         * modules/lstat (Depends-on): Remove xalloc.
77879         * modules/mkstemp (Depends-on): Add stat-macros.
77880         * modules/modechange (Depends-on): Remove xstrtol.
77881         Add stat-macros, xalloc.
77882         * modules/save-cwd (Depends-on): Add unistd-safer.
77883         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
77884         * modules/unistd-safer (Files): Add lib/fd-safer.c
77885         (Makefile.am): Remove lib_SOURCES.
77886
77887         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
77888         Remove fcntl-safer; unistd-safer supersedes it.
77889
77890 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77891
77892         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
77893         AC_HEADER_STAT.
77894         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
77895         (gl_PREREQ_CHOWN): Remove.
77896         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
77897         it.  Don't require AC_HEADER_STAT.
77898         (gl_PREREQ_LSTAT): Remove.
77899         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
77900         Don't require AC_HEADER_STAT.
77901         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
77902         (gl_PREREQ_RMDIR): Remove.
77903         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
77904         mention stat-macros.h or AC_HEADER_STAT, since we'll make
77905         the stat-macros module a prerequisite.
77906         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
77907         * m4/filemode.m4 (gl_FILEMODE): Likewise.
77908         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
77909         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
77910         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
77911         variable names.
77912         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
77913         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
77914         variable prefixes.
77915         * m4/fcntl-safer.m4: Remove.
77916         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
77917         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
77918         Invoke gl_PREREQ_FD_SAFER.
77919         (gl_PREREQ_FD_SAFER): New macro.
77920         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
77921         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
77922         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
77923         Remove duplicate call to AC_LIBOBJ(readutmp).
77924         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
77925
77926         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
77927         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
77928
77929 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77930
77931         * MODULES.html.sh (Misc): Add byteswap.
77932
77933 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77934
77935         * modules/getcwd (Depends-on): Add extensions.
77936         * modules/openat (Depends-on): Likewise.
77937
77938 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77939
77940         * modules/byteswap: New file.
77941
77942 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77943
77944         * m4/byteswap.m4: New file.
77945
77946 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77947
77948         * lib/byteswap_.h: New file.
77949
77950 2005-04-25  Karl Berry  <karl@gnu.org>
77951
77952         * m4/gettext.m4: Update from GNU gettext 0.14.4.
77953
77954 2005-04-25  Albert Chin  <china@thewrittenword.com>
77955
77956         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
77957         Toolkit C bug.
77958
77959 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
77960
77961         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
77962         (func_ln_if_changed): Remove forcibly for no error message
77963         in case file does not exist.
77964
77965 2005-04-19  Simon Josefsson  <jas@extundo.com>
77966
77967         * gnulib-tool (Options): Make --symlink mean --symbolic.
77968
77969 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
77970
77971         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
77972
77973 2005-04-16  Simon Josefsson  <jas@extundo.com>
77974
77975         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
77976
77977 2005-04-15  Simon Josefsson  <jas@extundo.com>
77978
77979         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
77980
77981 2005-04-15  Simon Josefsson  <jas@extundo.com>
77982
77983         * gnulib-tool: Rename --symlink to --symbolic.
77984
77985 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
77986
77987         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
77988         symbolic links to files instead of copying/moving.  Add --aux-dir,
77989         specifying directory relative --dir where auxiliary build tools
77990         are placed.
77991
77992 2005-04-14  Bruno Haible  <bruno@clisp.org>
77993
77994         * modules/allocsa (License): Change to LGPL.
77995         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
77996
77997 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77998
77999         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
78000         that "UTC +1 second" continues to work.  Problem reported
78001         by Dmitry V. Levin.
78002         (relunit_snumber): New rule.
78003         (relunit): Use it.
78004
78005 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
78006
78007         * lib/getdate.y (universal_time_zone_table): New constant.
78008         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
78009         universal_time_zone_table.
78010         (lookup_zone): Prefer universal_time_zone_table to
78011         local_time_zone_table, so that "GMT" time stamps are allowed in
78012         London during the summer.  Problem reported by Ian Abbott.
78013
78014 2005-04-12  Jim Meyering  <jim@meyering.net>
78015
78016         * lib/human.c (humblock): Set *options even when returning due to
78017         xstrtoumax conversion failure.  Thanks to a used-uninitialized
78018         warning from gcc-4.
78019
78020 2005-04-09  Jim Meyering  <jim@meyering.net>
78021
78022         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
78023         -Wuninitialized: initialize tm0.tm_year.
78024
78025 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
78026
78027         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
78028         count, since there's no maximum.  All uses changed.
78029         Add member dsts_seen.
78030         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
78031         not being INT_MAX.
78032         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
78033         Use pc_rels_seen to decide whther a date is absolute.
78034
78035         * lib/getdate.y (number): Don't overwrite year.
78036         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
78037         check.
78038
78039 2005-04-02  Simon Josefsson  <jas@extundo.com>
78040
78041         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
78042         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
78043
78044 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
78045
78046         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
78047         where no absolute path name can be longer than PATH_MAX.
78048
78049 2005-03-27  Jim Meyering  <jim@meyering.net>
78050
78051         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
78052
78053 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
78054
78055         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
78056         "one's complement" -> "ones' complement" in comment, as per Knuth.
78057         "value of type" -> "type or expression" in comment.
78058         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
78059
78060 2005-03-26  Jim Meyering  <jim@meyering.net>
78061
78062         Comment nits.
78063         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
78064         Correct typos: s/or/of/.
78065
78066 2005-03-26  Jim Meyering  <jim@meyering.net>
78067
78068         * modules/check-include-files: Move to ../ and rename to...
78069         * check-module: ...this.
78070
78071 2005-03-25  Jim Meyering  <jim@meyering.net>
78072
78073         * modules/xvasprintf (Files): Add xalloc.h.
78074
78075 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
78076
78077         * modules/gettext (Files): config/config.rpath ->
78078         build-aux/config.rpath
78079         * modules/iconv (Files): Likewise.
78080         Problem reported by Oskar Liljeblad.
78081
78082 2005-03-23  Jim Meyering  <jim@meyering.net>
78083
78084         * modules/check-include-files: New script to check for
78085         missing dependencies, multiple includes, etc.
78086
78087         * modules/c-strtold (Depends-on): Add xalloc.
78088         * modules/c-strtod (Depends-on): Add xalloc.
78089         * modules/hash (Depends-on): Add xalloc.
78090         (Files): Remove lib/xalloc.h.
78091
78092         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
78093         * modules/userspec (Files): Add lib/inttostr.h.
78094
78095 2005-03-23  Jim Meyering  <jim@meyering.net>
78096
78097         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
78098
78099 2005-03-22  Jim Meyering  <jim@meyering.net>
78100
78101         * modules/stat-macros: New module.
78102         * modules/canonicalize, modules/euidaccess, modules/file-type,
78103         * modules/filemode, modules/lchown, modules/makepath,
78104         * modules/rmdir, modules/stat: Depend on new stat-macros module
78105         rather than listing lib/stat-macros.h manually.
78106         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
78107
78108 2005-03-22  Jim Meyering  <jim@meyering.net>
78109
78110         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
78111
78112 2005-03-22  Bruno Haible  <bruno@clisp.org>
78113
78114         * config/srclist.txt: Replace target directory 'config' with
78115         'build-aux'.
78116         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
78117         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
78118         ../build-aux/.
78119
78120 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
78121
78122         * modules/chdir-long (Depends-on): Add mempcpy.
78123
78124         * modules/acl, modules/backupfile, modules/c-strtod,
78125         modules/c-strtold, modules/canon-host, modules/canonicalize,
78126         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
78127         modules/exclude, modules/exitfail, modules/file-type,
78128         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
78129         modules/getdate, modules/getline, modules/getpagesize,
78130         modules/getpass, modules/getugroups, modules/group-member,
78131         modules/hard-locale, modules/hash, modules/human, modules/idcache,
78132         modules/inttostr, modules/long-options, modules/makepath,
78133         modules/md5, modules/memcasecmp, modules/memcoll,
78134         modules/modechange, modules/mountlist, modules/path-concat,
78135         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
78136         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
78137         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
78138         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
78139         modules/strftime, modules/strndup, modules/strverscmp,
78140         modules/timespec, modules/unlocked-io, modules/userspec,
78141         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
78142         modules/yesno:
78143         Remove lib_SOURCES line from Makefile.am section, as this is now
78144         done automatically by the corresponding Autoconf macro.
78145
78146 2005-03-21  Jim Meyering  <jim@meyering.net>
78147
78148         Changes imported from coreutils.
78149
78150         * lib/cycle-check.c: Don't include xalloc.h.
78151
78152         * lib/path-concat.c: Don't include assert.h.
78153         (path_concat): Remove assertion that would have triggered
78154         for ABASE starting with more than one slash.
78155         Reported by Andreas Schwab.
78156
78157         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
78158         properly when ABASE is an absolute file name.
78159         Correct the description of this function.
78160         Include <assert.h>.
78161         Add an assertion and a test driver.
78162         This fixes a bug introduced on 2004-07-02.
78163         Andreas Schwab reported the resulting failure of cp --parents:
78164         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
78165
78166 2005-03-21  Jim Meyering  <jim@meyering.net>
78167
78168         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
78169         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
78170
78171 2005-03-21  Jim Meyering  <jim@meyering.net>
78172         and  Paul Eggert  <eggert@cs.ucla.edu>
78173
78174         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
78175         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
78176         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
78177         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
78178         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
78179         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
78180         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
78181         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
78182         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
78183         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
78184         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
78185         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
78186         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
78187         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
78188         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
78189         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
78190         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
78191         for these modules.
78192
78193 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
78194
78195         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
78196         (which shouldn't happen), generate nothing instead of returning 0
78197         immediately, so that nstrftime (NULL, ...) doesn't return 0.
78198
78199 2005-03-16  Bruno Haible  <bruno@clisp.org>
78200
78201         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
78202         HAVE_LONGLONG_64BIT.
78203
78204 2005-03-16  Bruno Haible  <bruno@clisp.org>
78205
78206         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
78207         HAVE_LONGLONG_64BIT.
78208
78209 2005-03-16  Bruno Haible  <bruno@clisp.org>
78210
78211         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
78212         HAVE_LONGLONG_64BIT.
78213
78214 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
78215
78216         * lib/strftime.c (my_strftime): Prepend space to format so that we can
78217         reliably distinguish strftime failure from empty output on POSIX
78218         hosts.
78219
78220 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
78221
78222         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
78223         (iconv_string): Don't guess a size-zero buffer, as that might cause
78224         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
78225         result would be 'too large', where 'too large' is (heuristically)
78226         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
78227         overflow concerns.  This will prevent some unwanted malloc failures
78228         when the inputs are very large.
78229
78230 2005-03-15  Karl Berry  <karl@gnu.org>
78231
78232         * config/srclist.txt (config.rpath): from gettext.
78233         * config/config.rpath: update.
78234
78235 2005-03-15  Bruno Haible  <bruno@clisp.org>
78236
78237         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
78238         to 'negate'.
78239
78240         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
78241         variable.
78242
78243         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
78244         results.
78245
78246 2005-03-14  Simon Josefsson  <jas@extundo.com>
78247
78248         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
78249         <fx@gnu.org>.
78250
78251 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
78252
78253         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
78254         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
78255         intprops.h.
78256         * lib/strtol.c: Likewise.
78257
78258 2005-03-14  Jim Meyering  <jim@meyering.net>
78259
78260         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
78261         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
78262         to be nonzero so that we (and caller) can detect the difference
78263         between a valid zero-length expansion and an error return, even
78264         when the underlying strftime fails before writing anything into
78265         that location.
78266
78267 2005-03-14  Bruno Haible  <bruno@clisp.org>
78268
78269         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
78270         Update from GNU gettext 0.14.3.
78271
78272 2005-03-10  Jim Meyering  <jim@meyering.net>
78273
78274         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
78275
78276 2005-03-10  Jim Meyering  <jim@meyering.net>
78277
78278         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
78279         so that this module works on systems without fchdir.
78280
78281 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
78282
78283         Factor int-properties macros into a single file, except for
78284         glibc-related files.
78285         * lib/intprops.h: New file.
78286         * lib/getloadavg.c: Include it instead of limits.h.
78287         (INT_STRLEN_BOUND): Remove.
78288         * lib/human.c: Include intprops.h.
78289         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
78290         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
78291         302/1000.
78292         * lib/inttostr.h: Include intprops.h instead of limits.h.
78293         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
78294         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
78295         for consistency with intprops.h.
78296         (time_t_is_integer, twos_complement_arithmetic): Use them.
78297         * lib/sig2str.h: Include <signal.h>, intprops.h.
78298         (INT_STRLEN_BOUND): Remove.
78299         * lib/strftime.c (TYPE_SIGNED): Remove.
78300         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
78301         * lib/strtol.c: Adjust comments to match intprops.h.
78302         * lib/userspec.c: Include intprops.h.
78303         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
78304         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
78305         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
78306         instead of rolling our own expressions.
78307         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
78308
78309         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
78310         instead of int.
78311         (my_strftime): Do not mishandle years close to INT_MAX, by doing
78312         the right thing even if adding 1900 would overflow.  Similarly
78313         for tm_mon + 1 and tm_yday + 1.
78314         Make %Y always equivalent to %C%y, and similarly for %G and %g.
78315         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
78316         (DO_SIGNED_NUMBER): New macro.
78317         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
78318
78319 2005-03-07  Bruno Haible  <bruno@clisp.org>
78320
78321         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
78322
78323 2005-03-07  Bruno Haible  <bruno@clisp.org>
78324
78325         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
78326
78327 2005-03-04  Derek R. Price  <derek@ximbiot.com>
78328
78329         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
78330         (func_import): Only replace files via --import when they have actually
78331         changed.
78332
78333 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78334
78335         * m4/mmap-anon.m4: New file.
78336         * m4/pagealign_alloc.m4: New file.
78337
78338 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78339             Bruno Haible  <bruno@clisp.org>
78340
78341         * modules/pagealign_alloc: New file.
78342         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
78343
78344 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78345             Bruno Haible  <bruno@clisp.org>
78346
78347         * lib/pagealign_alloc.h: New file.
78348         * lib/pagealign_alloc.c: New file.
78349
78350 2005-03-03  Bruno Haible  <bruno@clisp.org>
78351
78352         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
78353         Use an all-permissive copyright notice, recommended by RMS.
78354
78355 2005-03-02  Bruno Haible  <bruno@clisp.org>
78356
78357         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
78358         of AIX, the replacement has to be done only after <string.h> is
78359         included, therefore not in config.h. stpncpy.h does the replacement,
78360         and stpncpy.c uses it.
78361
78362 2005-03-02  Bruno Haible  <bruno@clisp.org>
78363
78364         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
78365         stpncpy.c uses it.
78366
78367 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78368
78369         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
78370         The workaround isn't strictly needed for POSIX conformance, and
78371         it's too much of a pain to configure and maintain.  We'll ask
78372         people to fix their kernels instead.
78373         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
78374         (NANOSLEEP_BUG_WORKAROUND): Remove.
78375         (xnanosleep): Remove the workaround.
78376
78377 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78378
78379         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
78380         Reported by Derek Price.
78381         (Include): Add "timespec.h".
78382
78383         * modules/xnanosleep (Depends-on): Remove gethrxtime.
78384
78385 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78386
78387         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
78388         to detect nanosleep bug.
78389
78390 2005-03-01  Bruno Haible  <bruno@clisp.org>
78391
78392         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
78393
78394 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
78395
78396         * modules/gethrxtime: New file.
78397         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
78398         (Depends-on): Add gethrxtime.
78399         (configure.ac): Add gl_XNANOSLEEP.
78400         (Makefile.am): Remove lib_SOURCES line.
78401
78402 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
78403
78404         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
78405         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
78406
78407 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
78408
78409         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
78410         * lib/timespec.h (gettime): Return void, since it always
78411         succeeds now.  All uses changed.
78412         * lib/gettime.c (gettime): Likewise.
78413         [HAVE_NANOTIME]: Prefer nanotime.
78414         Assume gettimeofday succeeds, as POSIX requires.
78415         Assime time () succeeds, since other code already does.
78416         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
78417         (timespec_subtract): Remove.
78418         (NANOSLEEP_BUG_WORKAROUND): New constant.
78419         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
78420         things considerably.  Use it only on GNU/Linux hosts, since the
78421         workaround shouldn't be needed elsewhere.
78422
78423 2005-02-24  Bruno Haible  <bruno@clisp.org>
78424
78425         * modules/gettext (Files): Add m4/glibc2.m4.
78426
78427 2005-02-24  Bruno Haible  <bruno@clisp.org>
78428
78429         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
78430         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
78431         * m4/progtest.m4:
78432         Update from GNU gettext 0.14.2.
78433         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
78434
78435 2005-02-24  Bruno Haible  <bruno@clisp.org>
78436
78437         * lib/localcharset.c: Update from GNU gettext 0.14.2.
78438         * lib/config.charset: Update from GNU gettext 0.14.2.
78439
78440 2005-02-24  Bruno Haible  <bruno@clisp.org>
78441
78442         * lib/gettext.h: Update from GNU gettext 0.14.2.
78443
78444 2005-02-23  Simon Josefsson  <jas@extundo.com>
78445
78446         * m4/iconvme.m4: New file.
78447
78448 2005-02-23  Jim Meyering  <jim@meyering.net>
78449
78450         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
78451         change.
78452         Thanks to Bruno Haible for catching it.
78453
78454 2005-02-22  Simon Josefsson  <jas@extundo.com>
78455
78456         * modules/iconvme: New file.
78457
78458         * MODULES.html.sh: Add iconvme.
78459
78460 2005-02-22  Simon Josefsson  <jas@extundo.com>
78461
78462         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
78463
78464 2005-02-22  Simon Josefsson  <jas@extundo.com>
78465
78466         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
78467
78468 2005-02-22  Jim Meyering  <jim@meyering.net>
78469
78470         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
78471         s/ifndef/ifdef/.
78472
78473 2005-02-20  Neil Conway  <neilc@samurai.com>
78474
78475         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
78476         returned by OSX/Darwin if the specified buffer is not large
78477         enough for the hostname.
78478
78479 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78480
78481         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
78482         pass it to _help, otherwise the latter coredumps trying to
78483         dereference state.root_argp.
78484
78485 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78486
78487         * modules/chdir-long (Depends-on): Add memrchr.
78488         * modules/memrchr (Files): Add lib/memrchr.h.
78489         (Include): "memrchr.h".
78490
78491 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78492
78493         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
78494
78495 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78496
78497         * lib/memrchr.h: New file.
78498         * lib/chdir-long.c: Include it.
78499         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
78500         Don't bother including stddef.h.
78501
78502 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
78503
78504         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
78505         inclusion.
78506         Include <sys/types.h>, for dev_t.
78507         (ME_DUMMY, ME_REMOTE): Move from here....
78508         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
78509         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
78510         Dmitry V. Levin.
78511         Include mountlist.h first, to test the interface.
78512
78513 2005-01-29  Bruno Haible  <bruno@clisp.org>
78514
78515         * lib/progname.c (program_name): Initialize.
78516         Needed when linking statically on MacOS X.
78517
78518 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
78519
78520         Sync from coreutils.
78521         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
78522         (Depends-on): Add c-strtod.
78523         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
78524
78525 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
78526
78527         Sync from coreutils.
78528         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
78529
78530         Remove files that are specific to coreutils.
78531         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
78532
78533 2005-01-28  Bruno Haible  <bruno@clisp.org>
78534
78535         * modules/javacomp: New file.
78536         * MODULES.html.sh (Java): Add javacomp.
78537
78538 2005-01-28  Bruno Haible  <bruno@clisp.org>
78539
78540         * m4/javacomp.m4: New file, from GNU gettext.
78541
78542 2005-01-28  Bruno Haible  <bruno@clisp.org>
78543
78544         * lib/javacomp.sh.in: New file, from GNU gettext.
78545         * lib/javacomp.h: New file, from GNU gettext.
78546         * lib/javacomp.c: New file, from GNU gettext.
78547
78548 2005-01-26  Simon Josefsson  <jas@extundo.com>
78549
78550         * lib/gai_strerror.c: Use GPL in header.
78551
78552 2005-01-26  Bruno Haible  <bruno@clisp.org>
78553
78554         * modules/javaexec: New file.
78555         * MODULES.html.sh (Java): Add javaexec.
78556
78557 2005-01-26  Bruno Haible  <bruno@clisp.org>
78558
78559         * m4/javaexec.m4: New file, from GNU gettext.
78560
78561 2005-01-26  Bruno Haible  <bruno@clisp.org>
78562
78563         * lib/javaexec.sh.in: New file, from GNU gettext.
78564         * lib/javaexec.h: New file, from GNU gettext.
78565         * lib/javaexec.c: New file, from GNU gettext.
78566
78567 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78568
78569         * modules/lchown (Depends-on): Remove lchown.h
78570
78571 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78572
78573         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
78574         must be defined if the header file was not found, in order
78575         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
78576
78577 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78578
78579         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
78580         initializers for struct pentry_state.
78581         (__argp_error): Check return value of __asprintf
78582         (__argp_failure): Translate error message
78583
78584         * lib/argp-parse.c: Removed braces around the expansion of N_()
78585
78586 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78587
78588         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
78589         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
78590         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
78591         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
78592         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
78593         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
78594         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
78595         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
78596         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
78597         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
78598         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
78599         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
78600         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
78601         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
78602         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
78603         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
78604         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
78605         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
78606         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
78607         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
78608         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
78609         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
78610         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
78611         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
78612         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
78613         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
78614         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
78615         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
78616         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
78617         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
78618         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
78619         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
78620         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
78621         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
78622         xstrtol.m4, xstrtoumax.m4, yesno.m4:
78623         Use an all-permissive copyright notice, recommended by RMS.
78624
78625 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
78626
78627         * modules/chdir-long (Depends-on): Remove mempcpy.
78628
78629 2005-01-21  Jim Meyering  <jim@meyering.net>
78630
78631         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
78632         same value as for Solaris 9.
78633
78634         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
78635         component length.  This included changing the parameter to be
78636         of type `char *' rather than `char const *'.
78637         * lib/chdir-long.h (chdir_long): Update prototype.
78638
78639         * lib/openat.c (fdopendir, fstatat): New functions.
78640         * lib/openat.h: Include headers required for use of DIR and struct
78641         stat.
78642         [AT_SYMLINK_NOFOLLOW]: Define.
78643         (fdopendir, fstatat): Add prototypes.
78644
78645 2005-01-21  Bruno Haible  <bruno@clisp.org>
78646
78647         * modules/classpath: New file.
78648         * MODULES.html.sh (Java): Add classpath.
78649
78650 2005-01-21  Bruno Haible  <bruno@clisp.org>
78651
78652         * lib/classpath.h: New file, from GNU gettext.
78653         * lib/classpath.c: New file, from GNU gettext.
78654
78655 2005-01-20  Simon Josefsson  <jas@extundo.com>
78656
78657         * modules/version-etc-fsf: New file.
78658
78659 2005-01-20  Simon Josefsson  <jas@extundo.com>
78660
78661         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
78662         * lib/version-etc.c: Remove version_etc_copyright.
78663         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
78664         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
78665
78666 2005-01-20  Simon Josefsson  <jas@extundo.com>
78667
78668         * lib/base64.h (isbase64): Add.
78669
78670         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
78671         using a unsigned prototype, don't inline.
78672         (base64_decode): Use it.
78673
78674 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78675
78676         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
78677         it.
78678
78679 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78680
78681         * lib/save-cwd.c (save_cwd): Remove code to support the case
78682         where fchdir is missing or flaky.
78683
78684 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78685
78686         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
78687
78688 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
78689
78690         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
78691         AC_LIBSOURCES now does this.
78692         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
78693         with new ullong_max module.
78694
78695 2005-01-19  Bruno Haible  <bruno@clisp.org>
78696
78697         * modules/sh-quote: New file.
78698         * MODULES.html.sh (Executing programs): Add sh-quote.
78699
78700 2005-01-19  Bruno Haible  <bruno@clisp.org>
78701
78702         * lib/sh-quote.h: New file, from GNU gettext.
78703         * lib/sh-quote.c: New file, from GNU gettext.
78704
78705 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78706
78707         Merge from coreutils.
78708         * m4/ullong_max.m4: New file.
78709         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
78710         (gl_MACROS): Assume localeconv exists.
78711
78712 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78713
78714         Merge changes from coreutils, as described below in several
78715         changelogs dated today.
78716
78717         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
78718         (O_DIRECTORY): Remove; not needed here, since "." must be
78719         a directory.  All uses removed.
78720         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
78721         universal on Suns, and we also need to test for IRIX.
78722         Revamp code to use 'if' rather than '#if'.
78723         Avoid unnecessary comparison of cwd->desc to 0.
78724
78725         * lib/utimens.c (futimens): Robustify the previous patch, by checking
78726         for known valid error numbers rather than observed invalid ones.
78727
78728 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78729
78730         * modules/ullong_max: New file.
78731
78732         * modules/chdir-long, modules/openat: New files.
78733         * modules/save-cwd (Depends-on): Depend on chdir-long.
78734         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
78735
78736 2005-01-18  Jim Meyering  <jim@meyering.net>
78737
78738         Merge from coreutils.
78739         * m4/chdir-long.m4, m4/openat.m4: New files.
78740         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
78741         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
78742         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
78743         is sane and DOES follow symlinks.  Besides, testing 20 different
78744         systems found no broken chown implementations.
78745         Prompted by a change in rsync's copy of this macro.
78746         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
78747
78748         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
78749
78750         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
78751         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
78752         NULL-means-set-to-current-time semantics.
78753         Remove temporary file immediately, rather than waiting
78754         for configure's at-exit trap code to do it.
78755
78756 2005-01-18  Jim Meyering  <jim@meyering.net>
78757
78758         * lib/version-etc.c (version_etc_copyright): Update copyright date.
78759
78760         * lib/utimens.c (futimens): Account for the fact that futimes
78761         can also fail with errno == ENOSYS or errno == ENOENT.
78762         Patch from Dmitry V. Levin.
78763
78764         Change the name of the robust chdir function from chdir to chdir_long.
78765         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
78766         (restore_cwd): Use chdir_long, not chdir.
78767         * lib/chdir-long.c: Renamed from chdir.c.
78768         * lib/chdir-long.h: Renamed from chdir.h.
78769         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
78770         Hurd.
78771
78772 2005-01-18  Bruno Haible  <bruno@clisp.org>
78773
78774         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
78775         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
78776         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
78777         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
78778         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
78779         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
78780         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
78781         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
78782         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
78783         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
78784         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
78785         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
78786         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
78787         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
78788         Use an all-permissive copyright notice, recommended by RMS.
78789
78790 2005-01-18  Bob Proulx  <bob@proulx.com>
78791
78792         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
78793         simplify offsetof() macro construct to avoid compile failure with
78794         native HP-UX 11.0 ANSI C compiler.
78795
78796 2005-01-17  Bruno Haible  <bruno@clisp.org>
78797
78798         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
78799         redundant because stpncpy.m4 takes care of it.
78800
78801 2005-01-17  Bruno Haible  <bruno@clisp.org>
78802
78803         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
78804
78805 2005-01-17  Bruno Haible  <bruno@clisp.org>
78806
78807         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
78808         used.
78809
78810 2005-01-17  Bruno Haible  <bruno@clisp.org>
78811
78812         * lib/fwriteerror.h (fwriteerror): Change specification to include
78813         fclose.
78814         * lib/fwriteerror.c: Include <stdbool.h>.
78815         (fwriteerror): At the end, close the file stream. Record whether
78816         stdout was already closed.
78817
78818 2005-01-17  Bruno Haible  <bruno@clisp.org>
78819
78820         * lib/execute.c (environ): Declare if needed.
78821         * lib/pipe.c (environ): Likewise.
78822         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
78823
78824 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78825
78826         * modules/argp: Depend on vsnprintf
78827
78828 2005-01-10  Jim Meyering  <jim@meyering.net>
78829
78830         * modules/closeout (Depends-on): Add atexit.
78831
78832 2005-01-06  Bruno Haible  <bruno@clisp.org>
78833
78834         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
78835
78836 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78837
78838         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
78839         definitions to be after all include files, to avoid collisions.
78840         Problem reported by Bob Proulx.
78841
78842 2005-01-04  Jim Meyering  <jim@meyering.net>
78843
78844         Changes imported from coreutils.
78845         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
78846         as the mkstemp template, use a temporary directory and an
78847         8.3-friendly template to avoid trouble on systems like DJGPP.
78848         Reported by Juan M. Guerrero via Stepan Kasal.
78849         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
78850         close. Remove the temporary directory right away, rather than waiting
78851         for configure's at-exit trap code to do it.
78852         Suggestion from Stepan Kasal.
78853
78854 2005-01-01  Simon Josefsson  <jas@extundo.com>
78855
78856         * gnulib-tool: Print #include directives when --import'ing.
78857
78858 2004-12-28  Simon Josefsson  <jas@extundo.com>
78859
78860         * tests/test-base64.c: Include required header files.  Remove
78861         unused variables.
78862
78863 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78864
78865         * modules/error (Depends-on): Remove gettext.
78866
78867 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78868
78869         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
78870         not needed.  This removes a dependency on the gettext module.
78871         [defined _LIBC]: Do not include <libintl.h>; not needed.
78872
78873 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78874
78875         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
78876         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
78877
78878 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78879
78880         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
78881         HAVE_DECL_STRTOLD.
78882
78883 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78884
78885         * modules/getdate (Depends-on): Remove alloca-opt.
78886
78887 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78888
78889         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
78890
78891 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78892
78893         * lib/argp-parse.c: Include <stddef.h>.
78894         (alignof, alignto): New macros.
78895         (parser_init): Don't assume that void * is aligned sufficiently
78896         for struct option.
78897
78898         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
78899         need to extend the stack.
78900         (YYINITDEPTH): New macro, so that the initial stack isn't overly
78901         large.
78902
78903 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78904
78905         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
78906
78907 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78908
78909         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
78910         (2004-10-24) change.  Apparently this was a false alarm.
78911
78912         * modules/getdate: Depend on alloca-opt, not alloca.
78913
78914 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78915
78916         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
78917         Remove now-obsolete comment about AIX.
78918         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
78919         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
78920         (YYMAXDEPTH): New macro.
78921
78922 2004-12-18  Simon Josefsson  <jas@extundo.com>
78923
78924         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
78925
78926 2004-12-18  Bruno Haible  <bruno@clisp.org>
78927
78928         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
78929
78930 2004-12-18  Bruno Haible  <bruno@clisp.org>
78931
78932         * lib/fatal-signal.c (fatal_signals): Make non-const.
78933         (init_fatal_signals): New function.
78934         (uninstall_handlers, install_handlers): Ignore signals that were set to
78935         SIG_IGN.
78936         (at_fatal_signal): Call init_fatal_signals.
78937         (init_fatal_signal_set): Likewise. Ignore signals that were set to
78938         SIG_IGN.
78939         Reported by Paul Eggert.
78940
78941 2004-12-18  Bruno Haible  <bruno@clisp.org>
78942
78943         * doc/alloca.texi: New file.
78944         * doc/alloca-opt.texi: New file.
78945
78946 2004-12-17  Jim Meyering  <jim@meyering.net>
78947
78948         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
78949         Otherwise, install-sh could exit with improper exit status when
78950         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
78951
78952 2004-12-16  Simon Josefsson  <jas@extundo.com>
78953
78954         * tests/test-base64.c: Add license.
78955
78956 2004-12-15  Stepan Kasal  <address@hidden>
78957
78958         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
78959
78960 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
78961
78962         * modules/getcwd (Files): Add m4/d-ino.m4.
78963         Suggested by Mark D. Baushke.
78964
78965 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78966
78967         * lib/getdate.y (textint): New member "negative".
78968         (time_zone_hhmm): New function.
78969         Expect 14 shift-reduce conflicts, not 13.
78970         (o_colon_minutes): New rule.
78971         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
78972         (yylex): Set the "negative" member of signed numbers.
78973
78974 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78975
78976         * doc/getdate.texi (Time of day items, Time zone items):
78977         Describe new formats +00:00, UTC+00:00.
78978
78979 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78980
78981         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
78982         spurious "-l"s.  Problem reported by Stepan Kasal.
78983
78984 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
78985
78986         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
78987         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
78988
78989 2004-12-04  Simon Josefsson  <jas@extundo.com>
78990
78991         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
78992         Vandoorselaere <yoann@prelude-ids.org>.
78993
78994 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78995
78996         Changes imported from coreutils.
78997         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
78998         exist.
78999         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
79000
79001 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79002
79003         Changes imported from coreutils.
79004         * lib/hard-locale.c: Assume <locale.h> exists.
79005         Include "strdup.h".
79006         (GLIBC_VERSION): New macro.
79007         (hard_locale): Assume setlocale exists.
79008         Rewrite to avoid #ifdef.
79009         Use strdup rather than malloc + strcpy.
79010         * lib/human.c: Assume <locale.h> exists.
79011         (human_readable): Assume localeconv exists.
79012
79013 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79014
79015         * modules/hard-locale (Depends-on): Add strdup.
79016
79017 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
79018
79019         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
79020         convert T2, not T.  (Imported from libc.)
79021
79022 2004-11-30  Simon Josefsson  <jas@extundo.com>
79023
79024         * modules/restrict (License): Change to LGPL.
79025
79026 2004-11-30  Simon Josefsson  <jas@extundo.com>
79027
79028         * m4/restrict.m4: Add copyright and copying conditions.
79029
79030 2004-11-30  Simon Josefsson  <jas@extundo.com>
79031
79032         * m4/base64.m4: New file.
79033
79034 2004-11-30  Simon Josefsson  <jas@extundo.com>
79035
79036         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
79037         base64.
79038
79039         * tests/test-base64.c: New file.
79040
79041         * modules/base64: New file.
79042
79043 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
79044
79045         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
79046         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
79047
79048         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
79049
79050 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
79051
79052         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
79053         (__getcwd.c): Don't restore errno; glibc doesn't.
79054         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
79055         first, falling back to our code only if its results look suspicious.
79056         Ensure that the resulting buffer is only as large as necessary.
79057
79058         * lib/readutmp.c: Include readutmp.h first.
79059         Include <errno.h>, since readutmp.h no longer does that.
79060         * lib/readutmp.h: Don't include <errno.h>,
79061         <sys/param.h>, <time.h>; not needed to establish interface.
79062         (errno): Remove decl.
79063         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
79064         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
79065         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
79066
79067 2004-11-28  Simon Josefsson  <jas@extundo.com>
79068
79069         * lib/base64.h, base64.c: New file.
79070
79071 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
79072
79073         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
79074
79075 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
79076
79077         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
79078         (Depends-on): Remove pathmax, same.  Add mempcpy.
79079         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
79080         (Makefile.am): Append getcwd.h to lib_SOURCES.
79081         (Include): Add getcwd.h.
79082         (Maintainer): Change from Jim Meyering to "all, glibc",
79083         since getdate now uses intended-for-glibc code.
79084         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
79085         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
79086
79087 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79088
79089         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
79090         HP's ANSI C compiler.
79091         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
79092         Declaring int functions causes warnings on some modern systems and
79093         shouldn't be needed to compile on ancient ones.
79094         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
79095         defined.
79096
79097         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
79098         with the following changes.
79099         (__set_errno): Parenthesize properly.
79100         Include <stdbool.h>.
79101         (MIN, MAX, MATCHING_INO): New macros.
79102         (__getcwd): Define with prototype, not K&R form.
79103         Use heuristics to allocate default buffer on stack if possible.
79104         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
79105         behavior, and to avoid the PATH_MAX limit when computing
79106         ../../../../...
79107         Use MATCHING_INO to compare inode number to file.
79108         Check for arithmetic overflow in size calculations.
79109         Fix bug in reallocation of dot array that caused getcwd to fail
79110         on directories nested deeper than 75.
79111         Be more careful about saving errno on error.
79112         Do not use realloc; use only free+malloc, as this is a bit
79113         more flexible and avoids a needless copy operation.
79114         Do not inspect st_dev and st_ino for symbolic links; POSIX
79115         doesn't specify the latter.
79116         Check for closedir errors.
79117         Avoid needless casts.
79118         Use "#ifdef weak_alias" around weak_alias, to be like other
79119         glibc code.
79120         The following changes to getcwd.c have effect only when used in
79121         gnulib; they have no effect inside glibc proper.
79122         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
79123         as alloca isn't used.
79124         (alloca, __alloca): Likewise.
79125         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
79126         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
79127         unconditionally, as gnulib assumes C89 or better.
79128         Do not include <sys/param.h>.
79129         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
79130         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
79131         better.
79132         (NULL) [!defined NULL]: Remove; we assume C89 or better.
79133         Include <dirent.h> in a way that is compatible with modern Autoconf.
79134         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
79135         New macros, if not already defined.
79136         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
79137         Use "_LIBC", not "defined _LIBC", for consistency.
79138         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
79139         a mempcpy module.
79140         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
79141         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
79142         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
79143         credit only to Jim Meyering and adjust the copyright dates.
79144         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
79145         <stdlib.h>, <unistd.h>, "pathmax.h".
79146         Instead, include "xgetcwd.h" (first) and "getcwd.h".
79147         (INITIAL_BUFFER_SIZE): Remove.
79148         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
79149
79150 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79151
79152         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
79153         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
79154         Use the _ONCE methods, for efficiency.
79155         Check for fcntl.h.  In test program, include <errno.h>
79156         and <fcntl.h> if available.  Remove old K&R cruft from
79157         test program.  Check for common errors in GNU/Linux,
79158         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
79159         don't do AC_LIBOBJ, as that's getcwd.m4's job.
79160         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
79161         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
79162         name accordingly.
79163         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
79164         accommodate new getcwd.c.
79165         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
79166         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
79167         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
79168         that's all we need now.
79169
79170 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79171
79172         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
79173         argp-parse.c depends on getopt internals, that means we should
79174         always use our getopt, to be on the safe side.
79175         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
79176         order not to spoil the result of an eventual previous invocation
79177         of gl_GETOPT_SUBSTITUTE.
79178
79179 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79180
79181         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
79182         redefinition warnings. To avoid them, include the defines
79183         in `#if !defined __need_getopt ... #endif'. The only place
79184         where __getopt_argv_const is used is in definitions
79185         of getopt_long and getopt_long_only below, which are as well
79186         protected by `#ifndef __need_getopt'.
79187         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
79188         __need_getopt after including <stdio.h> and <unistd.h> These
79189         headers might have defined it.
79190
79191 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
79192
79193         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
79194
79195 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
79196
79197         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
79198         (futimens): New function, which uses futimes if available.
79199         (futimens, utimens): Support timespec==NULL, with same semantics
79200         as utime and utimens.
79201         * lib/utimens.h (futimens): New decl.
79202
79203 2004-11-23  Jim Meyering  <jim@meyering.net>
79204
79205         * lib/getopt_.h: Remove trailing blanks.
79206
79207 2004-11-23  Jim Meyering  <jim@meyering.net>
79208
79209         * lib/__fpending.c: Add comment.
79210
79211 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
79212
79213         * modules/canonicalize (Depends-on): Add xreadlink.
79214         Problem reported by James Youngman.
79215
79216 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
79217
79218         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
79219         New macros.
79220         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
79221         optopt): Use them instead of invoking ## directly; otherwise, the
79222         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
79223
79224 2004-11-19  Bruno Haible  <bruno@clisp.org>
79225
79226         * lib/strtok_r.c: Move comments from here...
79227         * lib/strtok_r.h: ... to here.
79228
79229 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
79230
79231         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
79232         implementations that mishandle size_t overflow.
79233
79234 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
79235
79236         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
79237         might fail.  Problem reported by Yoann Vandoorselaere.
79238         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
79239         implementations that mishandle size_t overflow.
79240
79241 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79242
79243         * modules/canon-host (Depends-on): Add strdup.
79244
79245 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79246
79247         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
79248
79249 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79250
79251         * lib/canon-host.c: Include "strdup.h".
79252         (canon_host): Use getaddrinfo if available, so that IPv6 works.
79253         Use strdup instead of malloc/strcpy to duplicate strings.
79254
79255         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
79256         (human_space_before_unit): New constant.
79257         * lib/human.c (human_readable): Support it.
79258
79259         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
79260         (xgetcwd): Set errno correctly when failing.
79261         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
79262         the failure is actually due to a PATH_MAX problem.
79263
79264         Further getopt changes to make it more likely that glibc will
79265         buy the changes back.
79266         * lib/getopt.c (POSIXLY_CORRECT): New constant.
79267         (getopt): Use it, so to preserve glibc semantic
79268         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
79269         when compiling for libc.
79270         * lib/getopt_.h (__getopt_argv_const): Bring it back.
79271         (getopt_long, getopt_long_only): Use it.
79272
79273         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
79274         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
79275         (getopt): Argv is now char * const *, as per standard.
79276         (_getopt_internal_r, _getopt_internal): Argv is now char **,
79277         not char *__getopt_argv_const *.
79278         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
79279         _getopt_long_only_r): Likewise.
79280         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
79281         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
79282         _getopt_long_r, _getopt_long_only_r): Likewise.
79283         * lib/getopt_.h (__getopt_argv_const): Remove.
79284         (getopt): Argv is now char * const *, as per standard.
79285
79286         * lib/getdate.y (tORDINAL): New token.
79287         (day, relunit): Allow it for relative times.
79288         (relative_time_table): Use tORDINAL for ordinals.
79289
79290 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79291
79292         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
79293         Document that "second" isn't allowed as an ordinal number.
79294
79295 2004-11-16  Jim Meyering  <jim@meyering.net>
79296
79297         * modules/closeout (Depends-on): Add fpending.
79298
79299 2004-11-15  Jim Meyering  <jim@meyering.net>
79300
79301         * lib/closeout.c: Include "__fpending.h" once again.
79302         Include <stdbool.h>.
79303         (close_stdout): Don't fail just because stdout was closed initially,
79304         since some programs don't write to stdout in the normal course of
79305         operation (other than --version and --help), and we don't want this
79306         function to make e.g. `touch file >&-' fail.
79307         But do fail if it was closed and someone has tried to write to it.
79308         E.g., `printf foo >&-' must fail.
79309
79310 2004-11-13  Jim Meyering  <jim@meyering.net>
79311
79312         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
79313
79314 2004-11-12  Simon Josefsson  <jas@extundo.com>
79315
79316         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
79317         small doc fix is still pending.
79318
79319 2004-11-11  Simon Josefsson  <jas@extundo.com>
79320
79321         * modules/strtok_r: New file.
79322
79323         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79324         strtok_r.
79325
79326 2004-11-11  Simon Josefsson  <jas@extundo.com>
79327
79328         * m4/strtok_r.m4: New file.
79329
79330         * m4/getopt.m4: Replace opterr.
79331
79332 2004-11-11  Simon Josefsson  <jas@extundo.com>
79333
79334         * lib/strtok_r.h, strtok_r.c: New file.
79335
79336 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
79337
79338         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
79339         of replacing opterr, getopt, etc.  This should handle the
79340         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
79341
79342 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
79343
79344         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
79345         we can stop lying to compilers about the constness of argv when we
79346         are compiled outside glibc.
79347         (getopt, getopt_long, getopt_long_only): Use it.
79348         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
79349         _getopt_internal, getopt): Likewise.
79350         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
79351         _getopt_long_only_r): Likewise.
79352         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
79353         _getopt_long_r, _getopt_long_only_r): Likewise.
79354
79355         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
79356         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
79357         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
79358         the other external symbols.
79359         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
79360         declaration, since the above renaming now works around collisions.
79361
79362 2004-11-11  Jim Meyering  <jim@meyering.net>
79363
79364         * lib/linebreak.c: Remove trailing blanks.
79365         * lib/alloca_.h: Likewise.
79366         * lib/acosl.c: Likewise.
79367         * lib/euidaccess.c: Likewise.
79368         * lib/allocsa.h: Likewise.
79369
79370 2004-11-10  Simon Josefsson  <jas@extundo.com>
79371
79372         * m4/getaddrinfo.m4: New file.
79373
79374 2004-11-10  Simon Josefsson  <jas@extundo.com>
79375
79376         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
79377
79378 2004-11-10  Simon Josefsson  <jas@extundo.com>
79379
79380         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79381         getaddrinfo.
79382
79383         * modules/getaddrinfo: New file.
79384
79385 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79386
79387         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
79388
79389 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79390
79391         * lib/mktime.c (SHR): New macro, which is a portable
79392         substitute for >> that should work even on Crays.
79393         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
79394         Problem reported by Mark D. Baushke in
79395         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
79396         * lib/getdate.y (SHR): Likewise.
79397         (tm_diff): Use it.
79398         * lib/strftime.c (SHR): Likewise.
79399         (tm_diff): Use it.
79400         * lib/quotearg.c (struct quoting_options): Use unsigned int for
79401         quote_these_too, so that right shifts are well defined.  All uses
79402         changed.
79403
79404 2004-11-10  Jim Meyering  <jim@meyering.net>
79405
79406         Ensure that no close failure goes unreported.
79407         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
79408         return early when it seems there's nothing to flush.
79409         Don't include __fpending.h.
79410
79411 2004-11-10  Jim Meyering  <jim@meyering.net>
79412
79413         * modules/closeout (Depends-on): Remove fpending.
79414
79415 2004-11-10  Jim Meyering  <jim@meyering.net>
79416
79417         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
79418
79419 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
79420
79421         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
79422         gl_FUNC_STRFTIME.
79423         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
79424         and AC_REQUIRE when possible, to avoid duplicate checks.
79425         Check for <wchar.h>.
79426
79427 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
79428
79429         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
79430
79431 2004-11-09  Bruno Haible  <bruno@clisp.org>
79432
79433         * m4/sockpfaf.m4: New file.
79434
79435 2004-11-05  Bruno Haible  <bruno@clisp.org>
79436
79437         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
79438         Reported by Mark D. Baushke <mdb@cvshome.org>.
79439
79440 2004-11-04  Bruno Haible  <bruno@clisp.org>
79441
79442         2004-09-11  Bruno Haible  <bruno@clisp.org>
79443                 * allocsa.valgrind: New file.
79444         2004-02-06  Bruno Haible  <bruno@clisp.org>
79445                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
79446                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
79447                 Reported by Christopher Seip <chris.seip@hp.com>.
79448
79449 2004-11-04  Bruno Haible  <bruno@clisp.org>
79450
79451         * modules/allocsa (Files): Add lib/allocsa.valgrind.
79452         (Makefile.am): Distribute it.
79453
79454 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
79455
79456         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
79457         with errno == ERANGE if the buffer is too small.
79458         Problem reported by Mark D. Baushke.
79459
79460 2004-11-03  Albert Chin  <china@thewrittenword.com>
79461             Paul Eggert  <eggert@cs.ucla.edu>
79462
79463         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
79464         equivalent, substitute $ac_type for equivalent type rather than
79465         blindly using uint32_t *always* which won't work if uint32_t is not
79466         available.  Define _UINT32_T to work around typedef of uint32_t if
79467         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
79468         2.5.1.
79469
79470 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79471
79472         * m4/jm-macros.m4: Sync from coreutils.
79473         (gl_MACROS): Check for mbrlen, for pathchk.
79474         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
79475
79476 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79477
79478         * lib/xreadlink.c (MAXSIZE): New macro.
79479         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
79480         size does not exceed MAXSIZE.  Avoid cast.
79481         As suggested by Mark D. Baushke in
79482         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
79483         if readlink fails with buffer size just under MAXSIZE, try again
79484         with MAXSIZE.
79485
79486 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79487
79488         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
79489
79490 2004-11-02  Derek R. Price  <derek@ximbiot.com>
79491         and  Paul Eggert  <eggert@cs.ucla.edu>
79492
79493         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
79494         (get_date): Overparenthesize to avoid GCC warning.
79495
79496 2004-11-02  Bruno Haible  <bruno@clisp.org>
79497
79498         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
79499         returns void.
79500
79501 2004-11-02  Bruno Haible  <bruno@clisp.org>
79502
79503         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
79504         function returns void.
79505
79506 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79507
79508         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
79509         fflush_unlocked, flockfile, funlockfile, funlockfile,
79510         fputs_unlocked, putc_unlocked.
79511
79512 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79513
79514         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
79515         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
79516         already declared.
79517
79518 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79519
79520         * modules/getdate (Files): Add doc/getdate.texi.
79521         (Depends-on): Add setenv, xalloc.
79522
79523 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79524
79525         * lib/getdate.y: Add support for TZ="foo" within a date string.
79526         Fix some bugs near time_t boundaries.  Reject dates with
79527         out-of-range components, e.g., "Sept 31".
79528         Include <stdlib.h>, "setenv.h", "xalloc.h".
79529         (ISDIGIT_LOCALE): Remove; unused.
79530         Note that the TZ and time functions used here are not reentrant.
79531         (mktime_ok, get_tz): New functions.
79532         (TZBUFSIZE): New constant.
79533         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
79534         This requires that we sometimes generate our own TZ="XXX..." setting.
79535
79536 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79537
79538         * doc/getdate.texi: New file, from coreutils with modifications for
79539         the new TZ parsing.
79540
79541 2004-10-27  Derek R. Price  <derek@ximbiot.com>
79542
79543         * lib/mktime.c (not_equal_tm): Remove redundant check.
79544
79545 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79546
79547         * modules/regex (lib_SOURCES): Add regex.c.
79548         Reported by James Youngman in
79549         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
79550
79551 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79552
79553         * lib/getdate.y: Use Bison 1.875 features, and some minor
79554         code cleanups.  This change does not affect semantics.
79555         Don't include <stdlib.h>; no longer needed.
79556         Don't include unlocked-io.h; only the "#if TEST" code uses
79557         stdio, and performance isn't crucial there.
79558         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
79559         Bison 1.875 features as described below.
79560         All uses of "PC." replaced by "pc->".
79561         (YYSTYPE): Add a forward declaration.
79562         (yylex, yyerror): Use full prototypes in forward decls.
79563         Use "%pure-parser" rather than obsolescent "%pure_parser".
79564         Use %parse-param and %lex-param instead of obsolescent
79565         YYPARSE_PARAM and YYLEX_PARAM.
79566         (meridian_table, month_and_day_table, time_units_table,
79567         relative_time_table, time_zone_table, military_table,
79568         lookup_zone, lookup_word, get_date):
79569         Use NULL instead of 0 where appropriate.
79570         (to_hour): Avoid abort (), to avoid a dependency on
79571         stdlib.h.
79572         (yyerror, yylex): Now accepts parser_control * arg.
79573         (main) [TEST]: Use '\0' rather than 0 for char.
79574
79575 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79576
79577         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
79578
79579 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79580
79581         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
79582         It's now the caller's responsibility to handle the case where
79583         !HAVE_GETPAGESIZE && !defined getpagesize.
79584
79585         * lib/mktime.c (leapyear): Arg is long int, not int.
79586
79587 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
79588
79589         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
79590
79591 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
79592
79593         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
79594         missing.  Problem reported by James Youngman.
79595
79596 2004-10-16  Simon Josefsson  <jas@extundo.com>
79597
79598         * gnulib-tool: Fix comments.  Fix parse problem.
79599         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
79600
79601 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
79602
79603         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
79604         implementation of getopt_long.  Problem reported by Alexander Taler in:
79605         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
79606
79607 2004-10-15  Bruno Haible  <bruno@clisp.org>
79608
79609         * gnulib-tool: Untabify. Initialize supplied_libname.
79610         (func_usage): More homogenous output.
79611         (func_modules_transitive_closure, func_modules_to_filelist,
79612         func_emit_lib_Makefile_am): New functions.
79613         (func_import): New function, extracted from big case statement. Use
79614         func_get_license, func_modules_transitive_closure,
79615         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
79616         opt_lgpl. Don't use test -a, as it's not portable.
79617         (func_create_testdir): Use func_modules_transitive_closure,
79618         func_modules_to_filelist, func_emit_lib_Makefile_am.
79619
79620 2004-10-15  Bruno Haible  <bruno@clisp.org>
79621
79622         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
79623
79624 2004-10-15  Bruno Haible  <bruno@clisp.org>
79625
79626         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
79627         the portions belonging to each module.
79628         Suggested by Derek Robert Price <derek@ximbiot.com>.
79629
79630 2004-10-12  Simon Josefsson  <jas@extundo.com>
79631
79632         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
79633         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
79634         to real functions.
79635
79636 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79637
79638         * modules/vsnprintf: New file.
79639
79640 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79641
79642         * m4/vsnprintf.m4: New file.
79643
79644 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79645
79646         * lib/vsnprintf.h: New file.
79647         * lib/vsnprintf.c: New file.
79648
79649 2004-10-11  Bruno Haible  <bruno@clisp.org>
79650
79651         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
79652         vsnprintf.
79653
79654 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79655
79656         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
79657
79658 2004-10-07  Bruno Haible  <bruno@clisp.org>
79659
79660         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
79661         fits into the provided buffer.
79662
79663 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79664
79665         * lib/diacrit.c, diacrit.h: Add GPL notice.
79666
79667         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
79668         notice.
79669         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
79670         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
79671         This avoids a potential constant-folding bug.
79672
79673 2004-10-05  Bruno Haible  <bruno@clisp.org>
79674
79675         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
79676         for the declaration of strsep.
79677
79678 2004-10-05  Bruno Haible  <bruno@clisp.org>
79679
79680         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
79681
79682 2004-10-04  Simon Josefsson  <jas@extundo.com>
79683
79684         * modules/memmem: New file.
79685         * tests/test-memmem.c: New file.
79686         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
79687
79688 2004-10-04  Simon Josefsson  <jas@extundo.com>
79689
79690         * m4/memmem.m4: New file.
79691
79692 2004-10-04  Simon Josefsson  <jas@extundo.com>
79693
79694         * lib/memmem.h: New file.
79695         * lib/memmem.c: New file, taken from glibc.
79696
79697 2004-10-04  Simon Josefsson  <jas@extundo.com>
79698
79699         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
79700         '#ifdef USE_UNLOCKED_IO'.
79701
79702 2004-10-04  Simon Josefsson  <jas@extundo.com>
79703
79704         * config/srclist.txt: Add memmem from glibc.
79705
79706 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79707
79708         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
79709
79710         * modules/argmatch, modules/argp, modules/closeout, modules/error,
79711         modules/exclude, modules/getdate, modules/getline,
79712         modules/getndelim2, modules/getpass, modules/getpass-gnu,
79713         modules/getusershell, modules/linebuffer, modules/md5,
79714         modules/mountlist, modules/posixtm, modules/readtokens,
79715         modules/readutmp, modules/regex, modules/sha1,
79716         modules/version-etc, modules/yesno:
79717         Remove dependency on unlocked-io.
79718
79719 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79720
79721         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
79722
79723         * m4/unlocked-io.m4: Add copyright notice.
79724         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
79725
79726 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79727
79728         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
79729         * lib/xmalloc.c (xmemdup): Likewise.
79730         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
79731         XFREE): Remove these long-obsolescent macros.
79732         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
79733         * lib/xstrdup.c: Remove.
79734
79735         * lib/regex.c (re_comp): Cast gettext return value to char *,
79736         Problem reported by Martin Neitzel via Mark D. Baushke.
79737
79738 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79739
79740         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
79741         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
79742         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
79743         regex.c, sha1.c, version-etc.c, yesno.c:
79744         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
79745         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
79746         the includer's responsibility.
79747
79748         Sync from coreutils.
79749
79750         * lib/modechange.c (mode_compile): Don't decrement a pointer that
79751         points to the start of a string, as the C Standard says the
79752         resulting behavior is undefined.
79753
79754         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
79755         simple -> simple_backups, numbered_existing ->
79756         numbered_existing_backups, numbered -> numbered_backups
79757         to avoid shadowing problems.  All uses changed.
79758         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
79759         * lib/backupfile.c (check_extension, numbered_backup):
79760         Rename locals to avoid shadowing 'basename'.
79761         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
79762         once.
79763
79764         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
79765         * lib/.cvsignore: Add getopt.h.
79766
79767 2004-10-04  Bruno Haible  <bruno@clisp.org>
79768
79769         * modules/README: New file.
79770         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
79771         not a module.
79772
79773 2004-10-02  Jim Meyering  <jim@meyering.net>
79774
79775         * lib/dirfd.h, getpagesize.h: Add copyright notice.
79776
79777 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79778
79779         * modules/strsep: New file.
79780
79781 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79782
79783         * m4/strsep.m4: New file.
79784
79785 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79786
79787         * lib/strsep.h: New file.
79788         * lib/strsep.c: New file.
79789
79790 2004-10-01  Simon Josefsson  <jas@extundo.com>
79791
79792         * lib/snprintf.c (snprintf): Handle size==0.
79793
79794 2004-10-01  Simon Josefsson  <jas@extundo.com>
79795             Bruno Haible  <bruno@clisp.org>
79796
79797         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
79798         (snprintf): Declare 'args'.
79799
79800 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
79801
79802         * lib/snprintf.c: Remove comments as to why each header is needed.
79803
79804 2004-10-01  Bruno Haible  <bruno@clisp.org>
79805
79806         * MODULES.html.sh: Add strsep.
79807
79808 2004-09-30  Simon Josefsson  <jas@extundo.com>
79809
79810         * modules/snprintf: New file.
79811
79812 2004-09-30  Simon Josefsson  <jas@extundo.com>
79813
79814         * m4/snprintf.m4: New file.
79815
79816 2004-09-30  Simon Josefsson  <jas@extundo.com>
79817
79818         * lib/snprintf.h, lib/snprintf.c: New files.
79819
79820 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79821
79822         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
79823         (hol_entry_help): Never translate an empty string.
79824         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
79825         * lib/argp.h (OPTION_NO_TRANS): New option.
79826
79827 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79828
79829         * modules/argp (Maintainer): Replace Simon Josefsson
79830         by Sergey Poznyakoff.
79831
79832 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79833
79834         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
79835         changes merged back into glibc.
79836
79837 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79838
79839         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
79840
79841 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
79842
79843         * lib/xvasprintf.c: Include xalloc.h.
79844         (xvasprintf): Use xalloc_die, not xmalloc_die.
79845
79846 2004-09-29  Bruno Haible  <bruno@clisp.org>
79847
79848         * modules/alloca-opt: New file, derived from modules/alloca.
79849         * modules/allocsa: Depend on alloca-opt instead of alloca.
79850         * modules/setenv: Likewise.
79851         * modules/vasnprintf: Likewise.
79852         * MODULES.html.sh: Add alloca-opt.
79853
79854 2004-09-28  Simon Josefsson  <jas@extundo.com>
79855
79856         * gnulib-tool: New parameter --lgpl, to asseert that modules are
79857         LGPL, and to replace license template from GPL to LGPL.
79858
79859 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79860
79861         * modules/dummy: Change license to LGPL.
79862
79863 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79864
79865         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
79866
79867 2004-09-24  Simon Josefsson  <jas@extundo.com>
79868
79869         * modules/minmax (License): Change from GPL to LGPL.
79870
79871 2004-09-23  Simon Josefsson  <jas@extundo.com>
79872
79873         * gnulib-tool (--import): Typo.
79874
79875 2004-09-23  Simon Josefsson  <jas@extundo.com>
79876
79877         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
79878
79879 2004-09-22  Bruno Haible  <bruno@clisp.org>
79880
79881         * modules/*: Add 'License' field.
79882         * gnulib-tool: Accept --extract-license option.
79883         (func_get_license): New function.
79884
79885 2004-09-21  Bruno Haible  <bruno@clisp.org>
79886
79887         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
79888         Reported by Simon Josefsson.
79889
79890 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79891
79892         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
79893         gl_AC_TYPE_LONG_LONG.
79894
79895 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79896
79897         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
79898
79899 2004-09-18  Simon Josefsson  <jas@extundo.com>
79900         and  Paul Eggert  <eggert@cs.ucla.edu>
79901
79902         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
79903         calls with autoreconf.  Define GL_LIB.
79904
79905 2004-09-14  Karl Berry  <karl@gnu.org>
79906
79907         * config/srclist.txt: unsync setenv.c, sigh.
79908
79909 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79910
79911         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
79912         Problem reported by Bruno Haible in:
79913         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
79914
79915 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79916
79917         * config/srclist.txt: Comment out argp-pvh.c.
79918
79919 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
79920
79921         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
79922         in case some system header has #define'd it.  Problem reported by
79923         Soeren D. Schulze in
79924         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
79925
79926 2004-09-09  Karl Berry  <karl@gnu.org>
79927
79928         * regex.[ch]: delete from the root.  These were supposed to be
79929                 synced with emacs cvs, but this has not happened for about
79930                 a year, and anyway nothing else uses emacs regex.[ch].
79931                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
79932                 lib/regex[.ch] is untouched.
79933
79934 2004-09-09  Bruno Haible  <bruno@clisp.org>
79935
79936         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
79937
79938 2004-09-09  Bruno Haible  <bruno@clisp.org>
79939
79940         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
79941         modifications.
79942         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
79943
79944 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79945
79946         * modules/xvasprintf: New file.
79947         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
79948
79949 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79950
79951         * lib/xvasprintf.h: New file.
79952         * lib/xvasprintf.c: New file.
79953         * lib/xasprintf.c: New file.
79954
79955 2004-09-08  Bruno Haible  <bruno@clisp.org>
79956
79957         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
79958
79959 2004-09-08  Bruno Haible  <bruno@clisp.org>
79960
79961         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
79962         length is > INT_MAX.
79963         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
79964         more.
79965
79966 2004-09-08  Bruno Haible  <bruno@clisp.org>
79967
79968         * lib/stdint_.h: New file, taken from GNU clisp.
79969
79970 2004-09-08  Bruno Haible  <bruno@clisp.org>
79971             Oskar Liljeblad  <oskar@osk.mine.nu>
79972
79973         * modules/stdint: New file.
79974         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
79975
79976 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79977
79978         Import from coreutils.
79979         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
79980         strings on unbounded length.  alloca's performance benefits aren't
79981         that important here.
79982         (V_STRDUP): Remove.
79983         (parse_with_separator): New function, with most of the internals
79984         of the old parse_user_spec.  Allow user to omit both user and group,
79985         for compatibility with FreeBSD.
79986         Clone only the user name, not the entire spec.
79987         Do not set *uid, *gid unless entirely successful.
79988         Avoid memory leak in some failing cases.
79989         Fix regression for USER.GROUP reported by Dmitry V. Levin in
79990         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
79991         (parse_user_spec): Rewrite to use parse_with_separator.
79992
79993 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79994
79995         * modules/userspec: Don't depend on alloca.
79996
79997 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79998
79999         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
80000
80001 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80002
80003         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
80004         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
80005         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
80006
80007 2004-08-16  Simon Josefsson  <jas@extundo.com>
80008
80009         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
80010         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
80011         Add --dry-run for --import.
80012         Let user provided command line parameters override configure.ac
80013         settings.
80014
80015 2004-08-12  Simon Josefsson  <jas@extundo.com>
80016
80017         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
80018         as discussed with Paul Eggert in threads rooted at
80019         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
80020         and
80021         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
80022         Before, the test was empty, and relied on ELIDE_CODE in source
80023         code.)
80024         (gl_PREREQ_GETOPT): New macro.
80025         (gl_GETOPT): Use them.
80026
80027 2004-08-12  Simon Josefsson  <jas@extundo.com>
80028
80029         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
80030         * lib/getopt_.h: Renamed from getopt.h.
80031
80032 2004-08-12  Simon Josefsson  <jas@extundo.com>
80033
80034         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
80035         Change default library name from libfoo to libgnu.
80036         Now, if you have a configure.ac that says:
80037                 gl_SOURCE_BASE(gl)
80038                 gl_M4_BASE(gl/m4)
80039                 gl_MODULES(error getopt etcetera)
80040                 gl_INIT
80041         you can import all you need by running:
80042                 ../gnulib/gnulib-tool --import
80043
80044         * modules/getopt (Files): Rename getopt.h to getopt_.h.
80045         (Makefile.am): Rewrite, use logic from argz.
80046         (Include): Use <getopt.h> instead of "getopt.h".
80047
80048 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80049
80050         * modules/argp (Files): Add m4/unlocked-io.m4.
80051         (Depends-on): Add extensions.
80052
80053 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80054
80055         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
80056         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
80057         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
80058         Check for program_invocation_name, program_invocation_short_name,
80059         flockfile, funlockfile, features.h, _getopt_long_only_r.
80060
80061 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80062
80063         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
80064         its complicated substitute.
80065         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
80066         and program_invocation_name.
80067         (__argp_basename) [!_LIBC]: Remove; the only use was
80068         replaced by its body.
80069         (__argp_short_program_name): Change condition from
80070         !defined __argp_short_program_name to
80071         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
80072         to match argp-namefrob.h.
80073         (__argp_failure): Don't assume strerror_r returns char *.
80074         * lib/argp-parse.c (N_): Define unconditionally.
80075         (argp_default_options): Fill out initializers with 0 to avoid
80076         gcc warnings.
80077
80078 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80079
80080         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
80081         getopt1.c.
80082
80083 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80084
80085         Merge from coreutils.
80086
80087         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
80088
80089         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
80090         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
80091
80092 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80093
80094         Merge from coreutils.
80095
80096         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
80097         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
80098         for Reliant Unix 5.43.
80099
80100         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
80101         (union fooround): Use uintmax_t, not long int.
80102         The rest is a merge from libc:
80103         [defined _LIBC]: Include <shlib-compat.h>.
80104         (_obstack) [defined _LIBC]: Remove after 2.3.4.
80105
80106         * lib/settime.c (settime): Recode to avoid warning with
80107         Sun Forte C 6U2.
80108
80109         * lib/strverscmp.c: Convert to UTF-8.
80110
80111 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80112
80113         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
80114         m4/uintmax_t.m4.
80115
80116 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80117
80118         * modules/xalloc-die: New file.
80119         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
80120
80121         * modules/md5 (Files): Add m4/uint32_t.m4.
80122         * modules/sha1: Renamed from modules/sha.
80123         (Files):
80124         Rename lib/sha.h to lib/sha1.h.
80125         Rename lib/sha.c to lib/sha1.c.
80126         Rename m4/sha.m4 to m4/sha1.m4.
80127         (lib_SOURCES): Likewise.
80128         (configure.ac): Rename gl_SHA to gl_SHA1.
80129         (Include): sha.h -> sha1.h.
80130
80131 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80132
80133         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
80134         * m4/sha1.m4: Renamed from sha.m4.
80135         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
80136
80137 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80138
80139         * lib/obstack.h (obstack_empty_p):
80140         Don't assume that chunk->contents is suitably aligned.
80141         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
80142         Likewise. Problem reported by Benno in
80143         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
80144
80145         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
80146         readable.  This could be improved further but it'd take some work.
80147
80148 2004-08-08  Simon Josefsson  <jas@extundo.com>
80149
80150         * modules/xgethostname (Depends-on): Remove exit and error (not
80151         used).
80152
80153         * modules/getpass-gnu: Add getpass.h.
80154         (Depends-on): Add stdbool.
80155         * modules/getpass: Add getpass.h.
80156
80157 2004-08-08  Simon Josefsson  <jas@extundo.com>
80158
80159         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
80160         Check getpass declaration.
80161
80162 2004-08-08  Simon Josefsson  <jas@extundo.com>
80163
80164         * lib/xgethostname.c: Don't include error.h (not used).
80165
80166         * lib/getpass.h: Add.
80167         * lib/getpass.c: Include getpass.h first.
80168
80169 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
80170
80171         * lib/xalloc-die.c: New file.
80172         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
80173         All uses removed.
80174         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
80175         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
80176         xalloc-die.c.
80177         (_, N_, xalloc_die): Move to xalloc-die.c.
80178         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
80179         so that we needn't mess with xalloc_msg_memory_exhausted.
80180
80181         * lib/sha1.h: Renamed from sha.h.
80182         (SHA1_H): Renamed from _SHA_H.
80183         (sha1_ctx): Renamed from sha_ctx.
80184         (sha1_init_ctx): Renamed from sha_init_ctx.
80185         (sha1_process_block): Renamed from sha_process_block.
80186         (sha1_process_bytes): Renamed from sha_process_bytes.
80187         (sha1_finish_ctx): Renamed from sha_finish_ctx.
80188         (sha1_read_ctx): Renamed from sha_read_ctx.
80189         (sha1_stream): Renamed from sha_stream.
80190         (sha1_buffer): Renamed from sha_buffer.
80191         * lib/sha1.c: Likewise; renamed from sha.c.
80192         Do not include <sys/types.h>.
80193         Include <stddef.h> rather than <stdlib.h>.
80194
80195 2004-08-08  Bruno Haible  <bruno@clisp.org>
80196
80197         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
80198         FILESYSTEM_PREFIX_LEN.
80199         * lib/progreloc.c: Likewise.
80200         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
80201
80202 2004-08-06  Simon Josefsson  <jas@extundo.com>
80203
80204         * modules/progname (Depends-on): Don't depend on stdbool.
80205
80206 2004-08-06  Simon Josefsson  <jas@extundo.com>
80207
80208         * modules/getsubopt: New file.
80209         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80210         getsubopt.
80211
80212 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80213
80214         More merge from coreutils.
80215
80216         * m4/utimens.m4, m4/utimecmp.m4: New files.
80217         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
80218         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
80219         prereq.m4, sha.m4: Import changes from coreutils.
80220
80221 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80222
80223         More merge from coreutils.
80224         * modules/raise, modules/readtokens0, modules/utimens:
80225         * modules/utimecmp, module/xnanosleep: New files.
80226         * modules/strftime: Add lib/strftime.h.
80227         Change include from <time.h> to "strftime.h".
80228         * modules/yesno: Add lib/yesno.h.
80229         * modules/backupfile: Remove lib/addext.c.
80230         * modules/euidaccess: Add stat-macros.h.
80231         * modules/canonicalize, modules/euidaccess,
80232         modules/filemode, modules/lchown, modules/makepath,
80233         modules/rmdir, modules/stat: Likewise.
80234
80235 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80236
80237         Merge from tar.
80238         * lib/argp-help.c (make_hol, hol_append): Don't assume that
80239         SIZE_MAX is a valid preprocessor constant.
80240         (__argp_basename): Change from "#ifndef _LIBC"
80241         to "#ifndef __argp_short_program_name", so that
80242         we don't compile these functions for tar.
80243
80244         More merges from coreutils.
80245         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
80246         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
80247         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
80248         * lib/addext.c: Remove; no longer needed.
80249         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
80250         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
80251         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
80252         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
80253         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
80254         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
80255         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
80256         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
80257         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
80258         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
80259         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
80260         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
80261         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
80262         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
80263         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
80264         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
80265         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
80266         Import changes from coreutils.
80267
80268 2004-08-05  Simon Josefsson  <jas@extundo.com>
80269
80270         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
80271
80272 2004-08-05  Simon Josefsson  <jas@extundo.com>
80273
80274         * m4/getsubopt.m4: New file.
80275
80276 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80277
80278         Merge from coreutils.
80279
80280         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
80281         * m4/getcwd-path-max.m4: New files.
80282
80283         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
80284         FILESYSTEM_PREFIX_LEN ->
80285         FILE_SYSTEM_PREFIX_LEN.
80286         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
80287         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
80288         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
80289         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
80290
80291         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
80292         prerequisite modules now handle the DOS stuff.
80293         Don't check for unistd.h.
80294
80295 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80296
80297         Merge from coreutils.
80298
80299         * lib/.gdb-history: Remove; this doesn't belong here.
80300
80301         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
80302         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
80303         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
80304         * lib/getcwd.c: New files.
80305
80306         * lib/dirname.h: Include <stdbool.h>.
80307         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
80308         for consistency with POSIX terminology.  All uses changed.
80309         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
80310         (strip_trailing_slashes): Use bool for booleans.
80311         * lib/stripslash.c (strip_trailing_slashes): Likewise.
80312
80313         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
80314         sometimes returns a positive errno value even when it succeeds.
80315         (print_errno_message) [!LIBC]: Fall back on strerror if
80316         __strerror_r fails.
80317
80318         * lib/path-concat.c (mempcpy): Don't define if a system header defines
80319         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
80320         (longest_relative_suffix): New function.
80321         (path_concat): Use it.  Assume first argument is not NULL.
80322         Port to DOS.  Omit redundant separators.
80323         Report an error instead of returning NULL.
80324         Use mempcpy instead of memcpy.
80325         (xpath_concat): Remove: not declared or used.
80326
80327         * lib/same.h: Include <stdbool.h>
80328         (same_name): Return bool, not int.
80329         * lib/same.c (same_name): Likewise.
80330         (errno): Don't declare; we assume C89 or better now.
80331
80332         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
80333         if not already defined.
80334
80335         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
80336         * lib/dup-safer.c (errno): Likewise.
80337
80338 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80339
80340         Merge from coreutils.
80341         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
80342         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
80343         * modules/path-concat: Don't depend on strdup.
80344
80345 2004-08-03  Simon Josefsson  <jas@extundo.com>
80346
80347         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
80348         * lib/progname.h: Don't include stdbool.h.
80349
80350 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80351
80352         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
80353         * MODULES.html.sh (func_all_modules): Remove fatal.
80354
80355 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80356
80357         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
80358
80359 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80360
80361         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
80362         working.
80363
80364 2004-08-02  Simon Josefsson  <jas@extundo.com>
80365
80366         * lib/getsubopt.h: New file, with comments from Bruno Haible.
80367         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
80368         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
80369
80370 2004-08-01  Simon Josefsson  <jas@extundo.com>
80371
80372         * lib/xgetdomainname.c: Include stdlib.h, for free().
80373
80374 2004-07-19  Bruno Haible  <bruno@clisp.org>
80375
80376         * MODULES.html.sh (func_all_modules): Add dummy.
80377
80378 2004-07-16  Simon Josefsson  <jas@extundo.com>
80379
80380         * modules/dummy: New file.
80381
80382 2004-07-16  Simon Josefsson  <jas@extundo.com>
80383
80384         * lib/dummy.c: New file.
80385
80386 2004-07-16  Bruno Haible  <bruno@clisp.org>
80387
80388         * lib/backupfile.h: Add extern "C" for C++.
80389         * lib/closeout.h: Likewise.
80390         * lib/copy-file.h: Likewise.
80391         * lib/findprog.h: Likewise.
80392         * lib/full-write.h: Likewise.
80393         * lib/pathname.h: Likewise.
80394         * lib/progname.h: Likewise.
80395         * lib/stpcpy.h: Likewise.
80396         * lib/stpncpy.h: Likewise.
80397         * lib/strcase.h: Likewise.
80398         * lib/strstr.h: Likewise.
80399         * lib/xalloc.h: Likewise.
80400
80401         * lib/mbswidth.h: Add extern "C" for C++.
80402         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
80403
80404 2004-07-13  Robert Millan  <robertmh@gnu.org>
80405
80406         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
80407
80408 2004-07-09  Simon Josefsson  <jas@extundo.com>
80409
80410         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
80411         failed without this.)
80412
80413 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80414
80415         * modules/chown (Files): Add lib/fchown-stub.c, since
80416         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
80417
80418 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80419
80420         * lib/fchown-stub.c: New file.
80421
80422 2004-06-24  Jim Meyering  <jim@meyering.net>
80423
80424         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
80425
80426 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80427
80428         * modules/argz: Omit "#include".
80429
80430         * MODULES.html.sh (func_all_modules): Add calloc, to match
80431         2004-06-01 addition of calloc module.
80432
80433 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80434
80435         * m4/argz.m4: New file, which is autoupdated from libtool.
80436
80437 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80438
80439         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
80440         libtool.
80441
80442 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80443
80444         * config/srclist-update: Don't insist on "USA." before the
80445         close-comment, as libtool omits the period and puts the */ on a
80446         separate line.
80447         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
80448         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
80449
80450 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
80451
80452         * modules/argz: New file.
80453         * MODULES.html.sh (func_all_modules): Add argz.
80454
80455 2004-06-12  Jim Meyering  <jim@meyering.net>
80456         and  Paul Eggert  <eggert@cs.ucla.edu>
80457
80458         * modules/hash (Files): Add lib/xalloc.h.
80459         * modules/pipe (Depends-on): Add wait-process.
80460         * modules/stat (Depends-on): Add xalloc.
80461         * modules/userspec (Files): Add lib/userspec.h.
80462         * modules/xstrto
80463
80464         Upgrade from gettext-0.13.
80465         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
80466         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
80467         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
80468
80469 2004-06-10  Jim Meyering  <jim@meyering.net>
80470
80471         * lib/calloc.c: New file.
80472
80473 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
80474
80475         * lib/getdate.y (yylex): Allow space between sign and number.
80476         Problem reported by Dan Jacobson.
80477
80478 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
80479
80480         Merge from coreutils CVS.
80481
80482         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
80483         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
80484         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
80485         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
80486         xstrtol.m4: Fix copyright date and/or serial number.
80487
80488         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
80489         See if we need an fchown replacement.
80490         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
80491         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
80492         and use the replacement function if we detect either defect.
80493
80494         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
80495         gl_UTIMECMP.
80496
80497 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
80498         and  Jim Meyering  <jim@meyering.net>
80499
80500         Merge from coreutils CVS.
80501
80502         * lib/stat-macros.h: New file, with contents from file-type.h
80503         and coreutils' system.h.
80504         * lib/file-type.c: Include "stat-macros.h".
80505         * lib/file-type.h (file_type): Move all macro definitions to new file,
80506         stat-macros.h.
80507
80508         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
80509         Wrap old code with this conditional.
80510         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
80511         function that does not dereference symlinks.
80512         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
80513
80514         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
80515         dependency problems.
80516         (xreadlink): Accept new arg SIZE, for efficiency.
80517         All decls and uses changed.
80518         * lib/xreadlink.h: Include <stddef.h>, for size_t.
80519
80520         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
80521         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
80522
80523         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
80524         sysexits.h.
80525
80526 2004-06-01  Jim Meyering  <jim@meyering.net>
80527
80528         * m4/calloc.m4: New file.
80529
80530 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
80531
80532         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
80533         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
80534         Also, fix a typo in a diagnostic.
80535
80536 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
80537
80538         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
80539         or AC_FUNC_REALLOC.
80540
80541 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
80542
80543         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
80544         macros to be defined.
80545         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
80546         the allocator returns NULL because the requested size is zero.
80547
80548 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
80549
80550         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
80551         var.  Add comment explaining why libc still defines it.  This
80552         merges the following patch from glibc:
80553         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
80554
80555 2004-05-20  Andreas Schwab  <schwab@suse.de>
80556
80557         * m4/free.m4: Replace free if it not known to work, not the other
80558         way round.
80559
80560 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80561
80562         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
80563         present in glibc since revision 1.1 of this file.
80564         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
80565         obstack_alignment_mask, obstack_alloc, obstack_base,
80566         obstack_blank, obstack_blank_fast, obstack_chunk_size,
80567         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
80568         obstack_grow0, obstack_init, obstack_int_grow,
80569         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
80570         obstack_next_free, obstack_object_size, obstack_ptr_grow,
80571         obstack_ptr_grow_fast, obstack_room): Remove declarations of
80572         nonexistent functions.
80573
80574 2004-05-18  Karl Berry  <karl@gnu.org>
80575
80576         * config/srclist.txt: break link for vasnprintf.c.
80577
80578 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80579
80580         Port obstack to the AS/400, where pointers are 16 bytes wide and
80581         you cannot cast an integer to a valid pointer.  This patch is
80582         currently waiting to be integrated into glibc; see
80583         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
80584
80585         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
80586         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
80587         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
80588         (struct obstack): temp member is now a union of a pointer and
80589         an integer, instead of an integer.  All integer uses changed.
80590         This does not affect the physical layout of struct obstack,
80591         except on hosts (like the AS/400) where the size or alignment of
80592         void * is greater than that of ptrdiff_t.
80593         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
80594         __STDC__)]: Store temporary in pointer member of union, not
80595         integer member.
80596         * lib/obstack.c: Include <stddef.h>, for offsetof.
80597         (struct fooalign): Remove; it doesn't need a name.
80598         (union fooround): Change double to long double, and add void *.
80599         (DEFAULT_ALIGNMENT): Use offsetof to compute.
80600         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
80601         not a macro.  Hence the values are always int; so remove all
80602         casts-to-int in uses.
80603
80604 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80605
80606         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
80607         we can get this patch merged into glibc.
80608
80609 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80610             Paul Eggert  <eggert@cs.ucla.edu>
80611
80612         * m4/argp: Depend on alloca.
80613
80614 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80615             Paul Eggert  <eggert@cs.ucla.edu>
80616
80617         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
80618         freecoding.
80619
80620 2004-05-17  Bruno Haible  <bruno@clisp.org>
80621
80622         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
80623         precision that consists of a '.' followed by an empty digit string.
80624         Patch by Tor Lillqvist <tml@iki.fi>.
80625
80626 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80627
80628         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
80629         for backward compatibility with older code.  We need our own
80630         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
80631         it under some other name, and our alloca.h will define it.
80632
80633 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80634             Derek Price  <derek@ximbiot.com>
80635
80636         * lib/alloca.c: Include <alloca.h>, to get our interface.
80637         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
80638         include <alloca.h> first.  Use C89 prototype for alloca; this
80639         requires including <stddef.h> for size_t.  Use extern "C" if C++.
80640         Use #elif for simplicity, since we can assume C89 now.
80641         Don't try to source the system alloca.h since it will not be found
80642         and to prevent recursively including its replacement.
80643         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
80644         * lib/regex.c: Likewise.
80645
80646 2004-05-16  Derek Price  <derek@ximbiot.com>
80647             Paul Eggert  <eggert@cs.ucla.edu>
80648
80649         getline cleanup.  This changes the getndelim2 API: both order of
80650         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
80651         no delimiter).
80652
80653         * lib/getline.c: Don't include stddef.h or stdio.h, since our
80654         interface does that.
80655         (getline): Always use getdelim, so that we don't have two
80656         copies of this code.
80657         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
80658         if available.
80659         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
80660         (GETNDELIM2_MAXIMUM): New macro.
80661         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
80662         instead of the old practice of delim2==0.  All callers changed.
80663         Return -1 on overflow, instead of returning junk.
80664         Do not set *linesize unless allocation succeeds.
80665         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
80666         that we include sys/types.h.
80667         * lib/getnline.h: Likewise.
80668         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
80669         (getndelim2): Reorder arguments.
80670         * lib/getnline.c (getnline, getndelim):
80671         Don't discard the NMAX argument.
80672         (getnline): Invoke getndelim, to avoid code duplication.
80673         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
80674         of (size_t) -1 by callers of the getnline family.
80675
80676 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80677
80678         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
80679         Check for gettimeofday.
80680         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
80681         Check for settimeofday, stime.
80682
80683 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80684
80685         * lib/nanosleep.c (suspended): Change its type from int to
80686         sig_atomic_t volatile.
80687         (first_call): Make it private to rpl_nanosleep, and have it
80688         be zero initially as that's a bit faster.
80689         (my_usleep): Round up fractional times instead of truncating them,
80690         as this is the usual meaning for 'sleep'.
80691
80692         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
80693         doesn't work.
80694         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
80695         (ENOSYS): Define if not defined.
80696         (settime): Fall back on stime if it exists and settimeofday fails.
80697         But don't bother with fallbacks if a method fails with errno == EPERM.
80698
80699 2004-05-11  Jim Meyering  <jim@meyering.net>
80700
80701         Prior to this change, the save_cwd caller required read access to the
80702         current directory on most systems (ones with the fchdir function).
80703
80704         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
80705         fails, try write-only, and finally, resort to using xgetcwd.
80706
80707 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
80708
80709         * lib/obstack.c, obstack.h: Import changes from libc.
80710
80711 2004-04-28  Bruno Haible  <bruno@clisp.org>
80712
80713         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
80714         also implicitly appends .exe to executables.
80715         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
80716         accepts Windows pathnames.
80717         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80718         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80719         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80720         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80721         Reported by Derek Robert Price <derek@ximbiot.com>.
80722
80723 2004-04-21  Karl Berry  <karl@gnu.org>
80724
80725         * config/srclist.txt (localcharset.c): break sync.
80726
80727 2004-04-20  Paul Eggert  <eggert@twinsun.com>
80728
80729         * m4/host-os.m4: Add a copyright notice.
80730
80731 2004-04-20  Jim Meyering  <jim@meyering.net>
80732
80733         Change UTILS_ to gl_ in AC_DEFINE'd names.
80734         Change utils_- and jm_-prefixed variables, too.
80735         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
80736         UTILS_FUNC_MKDIR_TRAILING_SLASH.
80737         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
80738
80739         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
80740         Don't emit trailing blanks.
80741         Also rename jm_-prefixed variables to have gl_ prefix.
80742
80743         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
80744         Also rename jm_-prefixed variables to have gl_ prefix.
80745
80746         * m4/jm-macros.m4: Reflect the renamings.
80747         * m4/prereq.m4: Likewise.
80748
80749 2004-04-20  Jim Meyering  <jim@meyering.net>
80750
80751         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
80752         memory.
80753
80754 2004-04-20  Jim Meyering  <jim@meyering.net>
80755             Bruno Haible  <bruno@clisp.org>
80756
80757         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
80758         memory when realloc fails.
80759
80760 2004-04-19  Jim Meyering  <jim@meyering.net>
80761
80762         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
80763         now that readutmp.c may call `free (0)'.
80764
80765 2004-04-19  Bruno Haible  <bruno@clisp.org>
80766
80767         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
80768         * m4/inttypes_h.m4: Likewise.
80769         * m4/stdint_h.m4: Likewise.
80770         * m4/intmax_t.m4: Likewise.
80771         * m4/uintmax_t.m4: Likewise.
80772
80773 2004-04-18  Jim Meyering  <jim@meyering.net>
80774
80775         * m4/prereq.m4: Don't forbid jm_ prefix.
80776
80777         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
80778         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
80779         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
80780         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
80781         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
80782         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
80783         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
80784         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
80785         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
80786         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
80787         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
80788         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
80789         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
80790         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
80791         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
80792         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
80793         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
80794         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
80795         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
80796
80797 2004-04-18  Jim Meyering  <jim@meyering.net>
80798
80799         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
80800         failure, don't leak memory and do call END_UTMP_ENT.
80801
80802 2004-04-16  Jim Meyering  <jim@meyering.net>
80803
80804         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
80805         coreutils' stat program.
80806         (gl_PREREQ): Don't require jm_PREREQ_STAT.
80807
80808 2004-04-11  Paul Eggert  <eggert@twinsun.com>
80809
80810         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
80811         C89.
80812         (CHAR_BIT): Remove, since we assume C89.
80813         Include <stdint.h> if available, as per current Autoconf CVS advice.
80814
80815 2004-03-31  Jim Meyering  <jim@meyering.net>
80816
80817         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
80818         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
80819         * m4/xalloc.m4: Likewise.
80820
80821 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80822
80823         Merge from coreutils.
80824
80825         * m4/inttostr.m4: New file.
80826         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
80827         Require AM_STDBOOL_H and gl_TIMESPEC instead.
80828         Require gl_CLOCK_TIME.
80829         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
80830
80831 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80832
80833         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
80834         not bool, to be more consistent with Unix conventions.
80835         Suggested by Bruno Haible.
80836
80837         Merge from coreutils.
80838
80839         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
80840         * lib/umaxtostr.c: New files.
80841
80842         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
80843         the usual <time.h> dance.
80844         (get_date): Change signature to support fractional time stamps.
80845         All callers changed.
80846         * lib/getdate.y: Include "getdate.h" first, as we can now
80847         assume C89 and don't need to worry about 'const'.
80848         Similarly, include "unlocked-io.h" near start, not in middle.
80849         Include <limits.h>.
80850         (textint.value): Use long int rather than int.
80851         (textint.digits): Use size_t rather than int.
80852         (BILLION, LOG10_BILLION): New constants.
80853         (parser_control): New member rel_ns.  Members day_ordinal,
80854         time_zone, month, day, hour, minutes, rel_year, rel_month,
80855         rel_day, rel_hour, rel_minutes, rel_seconds
80856         are now long int, not int.  Member seconds is now struct timespec,
80857         not int.  New member timespec_seen.  Members dates_seen, days_seen,
80858         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
80859         not int.
80860         (%union.intval): Now long int, not int.
80861         New member timespec.
80862         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
80863         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
80864         (spec): Now is a timespec or an item list.
80865         (timespec, items): New nonterminals.
80866         (time, rel, relunit, number, get_date):
80867         Add support for fractional seconds.
80868         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
80869         (gmtime, localtime, mktime): Remove decls; not needed with C89.
80870         (to_hour): First arg is now long int, not int.
80871         (to_year): Returns long int, not int.
80872         Don't treat year -70 like 70.
80873         (tm_diff): Returns long int, not int.
80874         (lookup_word): Use bool instead of int when appropriate.
80875         (yylex): Use size_t for count, not int.
80876         Detect overflow when parsing large integer constants.
80877         Add support for fractions.
80878         (get_date): Make pointers 'const' if possible.
80879         Use more-portable code to detect integer overflow.
80880         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
80881         Don't use ctime; it's not reliable if the year has >4 digits.
80882
80883         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
80884         This is for compatibility with BSD.
80885
80886         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
80887         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
80888         From coreutils' system.h.
80889
80890         * lib/userspec.c: Don't include "posixver.h".
80891         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
80892         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
80893         compatible extension.  Simplify code by removing a boolean int
80894         that was always nonzero if a string was nonnull.
80895
80896 2004-03-30  Jim Meyering  <jim@meyering.net>
80897
80898         Merge from coreutils.
80899
80900         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
80901         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
80902         on some systems one must include <grp.h> before it.
80903         Reported by Christian Krackowizer.
80904
80905 2004-03-30  Jim Meyering  <jim@meyering.net>
80906
80907         Merge from coreutils.
80908
80909         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
80910
80911         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
80912         an empty input stream.
80913
80914         * lib/readtokens.c: Include <stdbool.h>.
80915         (readtoken): Use `size_t' rather than int/long.
80916         All callers adjusted.
80917         Use `bool' rather than `int' where appropriate.
80918         Use memset rather than an explicit loop.
80919         Use x2nrealloc rather than xrealloc.
80920         Allow the use of `\0' as a delimiter.
80921         (readtokens): Likewise.
80922         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
80923
80924 2004-03-30  Jim Meyering  <jim@meyering.net>
80925
80926         * m4/realloc.m4: Remove file, since now it does no more than
80927         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
80928         the `configure.ac' section of module/realloc.
80929         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
80930
80931 2004-03-30  Bruno Haible  <bruno@clisp.org>
80932
80933         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
80934         nonnull.
80935
80936 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80937
80938         Merge changes to getloadavg.c from coreutils and Emacs.
80939
80940         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
80941         Define to an expression, not to the empty string.
80942         Include cloexec.h and xalloc.h.
80943         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
80944         Use set_cloexec_flag rather than rolling our own.
80945         * lib/cloexec.c, lib/cloexec.h: New files.
80946
80947 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80948
80949         * m4/cloexec.m4: New file.
80950
80951 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80952
80953         * lib/getopt.h: Sync with libc CVS.
80954
80955 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80956             Bruno Haible  <bruno@clisp.org>
80957
80958         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
80959         mbswidth.
80960
80961 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80962             Bruno Haible  <bruno@clisp.org>
80963
80964         * lib/mbswidth.h: Include <wchar.h> only if
80965         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
80966         <wchar.h>.
80967         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
80968
80969 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80970
80971         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
80972         Sync with libc CVS.
80973         * lib/getopt_int.h: New file, also synced from libc.
80974
80975 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80976
80977         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
80978         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
80979         Bring back getopt.c, getopt.h, getopt1.c.
80980
80981 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80982
80983         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
80984         All uses changed.  Check for sa_sigaction member; this fixes
80985         a bug first reported by Jason Andrade in
80986         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80987
80988 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80989
80990         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
80991         '#if' expressions.  Unlike the code it replaces, it does not
80992         depend on (defined _SC_PAGESIZE).  However, it does depend on
80993         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
80994         first reported by Jason Andrade in
80995         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80996
80997 2004-02-25  Simon Josefsson  <jas@extundo.com>
80998
80999         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
81000
81001 2004-02-25  Simon Josefsson  <jas@extundo.com>
81002
81003         * lib/strdup.h: New file.
81004         * lib/strdup.c: Include it.
81005         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
81006         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
81007
81008 2004-02-23  Karl Berry  <karl@gnu.org>
81009
81010         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
81011         (from fencepost.gnu.org:/gd/gnuorg).
81012
81013 2004-02-23  Karl Berry  <karl@gnu.org>
81014
81015         * config/srclistvars.sh (GNUORG) [karl]: redefine.
81016         * config/srclist.txt: add maintain/standards documents.
81017
81018 2004-02-18  Bruno Haible  <bruno@clisp.org>
81019
81020         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
81021         Reported by Derek Robert Price <derek@ximbiot.com>.
81022
81023 2004-02-16  Karl Berry  <karl@gnu.org>
81024
81025         * config/mkinstalldirs, install-sh: update from automake.
81026
81027 2004-02-06  Karl Berry  <karl@gnu.org>
81028
81029         * m4/po.m4: update from gettext 0.14.1.
81030
81031 2004-02-06  Karl Berry  <karl@gnu.org>
81032
81033         * lib/config.charset: update from gettext 0.14.1.
81034
81035 2004-02-05  Paul Eggert  <eggert@twinsun.com>
81036
81037         Add comments and code, prompted by suggestions from Bruno Haible
81038         for sh-quote.
81039         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
81040         describing the enum quoting_style values.
81041         * lib/quotearg.c (quotearg_alloc): New function.
81042         (quotearg_buffer_restyled): Treat lone { and } as special.
81043         Treat = as special.  Work around bug with older shells
81044         that "see" a '\' that is really the 2nd byte of a multibyte char.
81045         Quote empty string with shell_quoting_style.
81046
81047 2004-02-03  Bruno Haible  <bruno@clisp.org>
81048
81049         * m4/pipe.m4: New file, from GNU gettext.
81050
81051 2004-02-03  Bruno Haible  <bruno@clisp.org>
81052
81053         * lib/pipe.h: New file, from GNU gettext.
81054         * lib/pipe.c: New file, from GNU gettext.
81055
81056 2004-01-27  Bruno Haible  <bruno@clisp.org>
81057
81058         * m4/execute.m4: New file, from GNU gettext.
81059
81060 2004-01-27  Bruno Haible  <bruno@clisp.org>
81061
81062         * lib/execute.h: New file, from GNU gettext.
81063         * lib/execute.c: New file, from GNU gettext.
81064         * lib/w32spawn.h: New file, from GNU gettext.
81065
81066 2004-01-24  Paul Eggert  <eggert@twinsun.com>
81067
81068         Merge from diffutils.
81069
81070         * lib/file-type.c (file_type): Add typed memory objects.
81071         * lib/file-type.h (S_TYPEISTMO): New macro.
81072
81073         * lib/c-stack.h (c_stack_action): Remove argv argument.
81074         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
81075         (die): Don't calculate message unless segv_action returns.
81076         (get_stack_location, min_address_from_argv, max_address_from_argv,
81077         volatile stack_base, volatile_stack_size): Remove.
81078         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
81079         that every segmentation violation is a stack overflow.  (Ouch!)
81080         See Debian bug 136249 (still outstanding) for more info about why
81081         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
81082
81083 2004-01-24  Paul Eggert  <eggert@twinsun.com>
81084
81085         Exit-status fix from coreutils.
81086
81087         Use exit_failure consistently in place of EXIT_FAILURE,
81088         so that program exit statuses are consistent on failure.
81089
81090         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
81091         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
81092         * lib/argmatch.h: Comment fix to match the above.
81093         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
81094         Now a macro referring to exit_failure, instead of a separate
81095         variable.  Include "exitfail.h" to get it.
81096         * lib/xstrtol.h: Include "exitfail.h".
81097         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
81098
81099         * lib/long-options.c (parse_long_options): Use prototype
81100         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
81101         for clarity.
81102
81103 2004-01-21  Jim Meyering  <jim@meyering.net>
81104
81105         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
81106         so as not to conflict with a different-sized __mktime_internal
81107         function in GNU libc.
81108         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
81109         Problem building statically-linked `ls' reported by Michael Brunnbauer.
81110
81111 2004-01-20  Karl Berry  <karl@gnu.org>
81112
81113         * config/config.guess: update from config.
81114
81115         * config/srclistvars.sh: GNUWWWLICENSES for karl.
81116
81117 2004-01-20  Bruno Haible  <bruno@clisp.org>
81118
81119         Safer stack allocation.
81120         * lib/setenv.c: Include allocsa.h.
81121         (alloca): Remove fallback definition.
81122         (freea): Remove macro.
81123         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
81124         instead of freea.
81125
81126 2004-01-20  Bruno Haible  <bruno@clisp.org>
81127
81128         * m4/eealloc.m4: New file, from GNU gettext.
81129
81130 2004-01-20  Bruno Haible  <bruno@clisp.org>
81131
81132         * m4/allocsa.m4: New file, from GNU gettext.
81133
81134 2004-01-20  Bruno Haible  <bruno@clisp.org>
81135
81136         * lib/xallocsa.h: New file, from GNU gettext.
81137         * lib/xallocsa.c: New file, from GNU gettext.
81138
81139 2004-01-20  Bruno Haible  <bruno@clisp.org>
81140
81141         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
81142
81143 2004-01-20  Bruno Haible  <bruno@clisp.org>
81144
81145         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
81146         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
81147         specially.
81148
81149 2004-01-20  Bruno Haible  <bruno@clisp.org>
81150
81151         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
81152         patch.
81153
81154 2004-01-20  Bruno Haible  <bruno@clisp.org>
81155
81156         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
81157
81158 2004-01-20  Bruno Haible  <bruno@clisp.org>
81159
81160         * lib/eealloc.h: New file.
81161
81162 2004-01-20  Bruno Haible  <bruno@clisp.org>
81163
81164         * lib/binary-io.h: Avoid warnings on Cygwin.
81165
81166 2004-01-20  Bruno Haible  <bruno@clisp.org>
81167
81168         * lib/allocsa.h: New file, from GNU gettext.
81169         * lib/allocsa.c: New file, from GNU gettext.
81170
81171 2004-01-18  Karl Berry  <karl@gnu.org>
81172
81173         * doc/gpl.texi, doc/lgpl.texi: new files.
81174
81175 2004-01-18  Karl Berry  <karl@gnu.org>
81176
81177         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
81178         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
81179
81180 2004-01-15  Paul Eggert  <eggert@twinsun.com>
81181
81182         Merge from coreutils.
81183
81184         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
81185         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
81186         (gl_DEFAULT_POSIX2_VERSION): Move
81187         the documentation from 'configure' into 'config.hin',
81188         so that 'configure --help' isn't burdened by it and
81189         we don't have to worry about its formatting there.
81190         Reword the documentation so that it's more succinct
81191         and can be run together into a single paragraph.
81192         * m4/same.m4 (gl_SAME): Check for pathconf.
81193
81194 2004-01-15  Paul Eggert  <eggert@twinsun.com>
81195
81196         Merge from coreutils.
81197
81198         * lib/posixver.c: Include posixver.h.
81199
81200         * lib/same.c: Include <stdbool.h>, <limits.h>.
81201         (_POSIX_NAME_MAX): Define if not defined.
81202         (MIN): New macro.
81203         (same_name): If file names are silently truncated, report
81204         that the file names are the same if they are the same after
81205         the silent truncation.
81206
81207         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
81208         conversion function.
81209         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
81210         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
81211         longer needed.
81212
81213 2004-01-15  Jim Meyering  <jim@meyering.net>
81214
81215         Merge from coreutils.
81216
81217         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
81218         if no library is required.
81219         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
81220         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
81221         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
81222         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
81223         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
81224         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
81225         value, $ac_cv_search_crypt, if it's "none required".
81226         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
81227         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
81228         not gl_FUNC_GETLOADAVG.
81229         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
81230         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
81231
81232 2004-01-15  Jim Meyering  <jim@meyering.net>
81233
81234         Merge from coreutils.
81235
81236         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
81237         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
81238         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
81239
81240         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
81241         optional configure-time default.
81242
81243         * lib/version-etc.c (version_etc_copyright): Update copyright date.
81244
81245         * lib/xreadlink.c (xreadlink): Correct outdated comment.
81246
81247 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
81248
81249         Merge from coreutils.
81250
81251         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
81252         value, $ac_cv_search_nanosleep, if it's "none required".
81253
81254 2004-01-14  Paul Eggert  <eggert@twinsun.com>
81255
81256         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
81257         with like-named macro in fnmatch.c.
81258         (EXT): Use an internal constant instead.
81259
81260         Merge fnmatch patches from glibc.
81261         * lib/fnmatch.c (mbsinit): Remove define.
81262         Add libc_hidden_ver (__fnmatch, fnmatch).
81263         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
81264         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
81265
81266 2004-01-14  Karl Berry  <karl@gnu.org>
81267
81268         * config/install-sh: update from automake.
81269
81270 2004-01-13  Karl Berry  <karl@gnu.org>
81271
81272         * config/install-sh: update from automake.
81273
81274 2004-01-09  Karl Berry  <karl@gnu.org>
81275
81276         * config/install-sh: update from automake.
81277
81278 2004-01-05  Karl Berry  <karl@gnu.org>
81279
81280         * config/config.{sub,guess}: update from config.
81281
81282 2003-12-31  Karl Berry  <karl@gnu.org>
81283
81284         * config/depcomp: update from automake.
81285
81286 2003-12-14  Karl Berry  <karl@gnu.org>
81287
81288         * lib/config.charset: update from gettext-runtime.
81289
81290 2003-12-03  Paul Eggert  <eggert@twinsun.com>
81291
81292         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
81293         Bug reported by Alfred M. Szmidt.
81294
81295 2003-12-03  Bruno Haible  <bruno@clisp.org>
81296
81297         * m4/gettext.m4: Upgrade from gettext-0.13.
81298         * m4/po.m4: Upgrade from gettext-0.13.
81299         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
81300         * m4/intmax.m4: New file, from gettext-0.13.
81301         * m4/printf-posix.m4: New file, from gettext-0.13.
81302
81303 2003-11-29  Karl Berry  <karl@gnu.org>
81304
81305         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
81306
81307 2003-11-25  Paul Eggert  <eggert@twinsun.com>
81308             Bruno Haible  <bruno@clisp.org>
81309
81310         * lib/printf-parse.h: Don't include sys/types.h.
81311         (ARG_NONE): New macro.
81312         (char_directive): Change type of *arg_index fields to size_t.
81313         * lib/printf-parse.c: Don't include sys/types.h.
81314         (SSIZE_MAX): Remove macro.
81315         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
81316         Remove unnecessary overflow check.
81317         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
81318         fields.
81319
81320 2003-11-25  Bruno Haible  <bruno@clisp.org>
81321
81322         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
81323
81324 2003-11-25  Bruno Haible  <bruno@clisp.org>
81325
81326         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
81327         gt_TYPE_SSIZE_T.
81328
81329 2003-11-24  Paul Eggert  <eggert@twinsun.com>
81330
81331         * modules/alloca: Remove dependency on xalloc.
81332
81333 2003-11-24  Paul Eggert  <eggert@twinsun.com>
81334
81335         * lib/alloca.c: Remove dependency on xalloc module.
81336         (xalloc_die): Remove.
81337         (memory_full) [!defined emacs]: New macro.
81338         [!defined emacs]: Don't include xalloc.h.
81339         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
81340         address arithmetic overflows.  Change datatypes a bit to avoid
81341         unnecessary casts.
81342
81343 2003-11-22  Jim Meyering  <jim@meyering.net>
81344
81345         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
81346         s/size/size_t/.
81347
81348 2003-11-21  Karl Berry  <karl@gnu.org>
81349
81350         * config/config.{sub,guess}: update from config.
81351
81352 2003-11-18  Karl Berry  <karl@gnu.org>
81353
81354         * config/config.{sub,guess}: update from config.
81355
81356         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
81357
81358 2003-11-17  Paul Eggert  <eggert@twinsun.com>
81359
81360         * README: Mention that S+T cannot overflow if S is the size of
81361         an existing object and T is sufficiently small.
81362
81363 2003-11-17  Jim Meyering  <jim@meyering.net>
81364
81365         On systems without utime and without a utimes function capable of
81366         dealing with a NULL struct utimbuf* argument, this utime replacement
81367         could -- in unusual circumstances -- leak a file descriptor.
81368         * lib/utime.c: Include <unistd.h> and <errno.h>.
81369         (utime_null): Be sure to close `fd' and to preserve errno.
81370         Reported by Geoff Collyer via Arnold Robbins.
81371
81372 2003-11-17  Bruno Haible  <bruno@clisp.org>
81373
81374         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
81375         (Depends-on): Add xsize.
81376
81377 2003-11-17  Bruno Haible  <bruno@clisp.org>
81378
81379         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
81380
81381 2003-11-17  Bruno Haible  <bruno@clisp.org>
81382
81383         * lib/vasnprintf.c (alloca): Remove fallback definition.
81384         (freea): Remove definition.
81385         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
81386         Reported by Paul Eggert.
81387
81388 2003-11-16  Paul Eggert  <eggert@twinsun.com>
81389             Bruno Haible  <bruno@clisp.org>
81390
81391         Protect against address arithmetic overflow.
81392         * lib/printf-args.h: Include stddef.h.
81393         (arguments): Change type of field 'count' to size_t.
81394         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
81395         'unsigned int' where appropriate.
81396         * lib/printf-parse.h: Include sys/types.h.
81397         (char_directive): Change type of *arg_index fields to ssize_t.
81398         (char_directives): Change type of fields 'count', max_*_length to
81399         size_t.
81400         * lib/printf-parse.c: Include sys/types.h and xsize.h.
81401         (SSIZE_MAX): Define fallback value.
81402         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
81403         instead of 'int' where appropriate. Check a_allocated, d_allocated
81404         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
81405         * lib/vasnprintf.c: Include xsize.h.
81406         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
81407         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
81408         overflow. Avoid wraparound when converting a width or precision from
81409         decimal to binary.
81410
81411 2003-11-16  Bruno Haible  <bruno@clisp.org>
81412
81413         Update from GNU gettext.
81414         * lib/printf-parse.c: Generalize to it can be compiled for wide
81415         strings.
81416         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
81417         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
81418         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
81419         SNPRINTF): New macros.
81420         Don't include <alloca.h> if the file is used inside libintl.
81421         (local_wcslen): New function, for Solaris 2.5.1.
81422         (VASNPRINTF): Use it instead of wcslen.
81423
81424 2003-11-16  Bruno Haible  <bruno@clisp.org>
81425
81426         * lib/xsize.h (xmax): New function.
81427         (xsum, xsum3, xsum4): Declare as "pure" functions.
81428
81429 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81430
81431         * modules/xalloc (Files): Undo latest change, since xalloc.h
81432         no longer needs SIZE_MAX or PTRDIFF_MAX.
81433
81434 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81435
81436         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
81437         gl_PTRDIFF_MAX.
81438
81439 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81440
81441         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
81442         "return", to pacify some unknown compiler.  Problem reported
81443         by Joerg Schilling.
81444
81445 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81446
81447         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
81448         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
81449         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
81450         heuristic is just as accurate as far as we know, and it removes a
81451         dependency on size_max.m4 and ptrdiff_max.m4.
81452
81453 2003-11-11  Bruno Haible  <bruno@clisp.org>
81454
81455         * modules/xsize (Files): Add m4/size_max.m4.
81456         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
81457
81458 2003-11-11  Bruno Haible  <bruno@clisp.org>
81459
81460         * m4/size_max.m4: New file.
81461         * m4/ptrdiff_max.m4: New file.
81462         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
81463         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
81464         (gl_XALLOC): Invoke it.
81465
81466 2003-11-11  Bruno Haible  <bruno@clisp.org>
81467
81468         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
81469         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
81470         defined.
81471
81472 2003-11-10  Paul Eggert  <eggert@twinsun.com>
81473
81474         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
81475         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
81476         rejected some allocations of exactly SIZE_MAX - 2 bytes.
81477         From Bruno Haible.
81478         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
81479         not (size_t) -1, since it's defined here.
81480
81481 2003-11-09  Karl Berry  <karl@gnu.org>
81482
81483         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
81484
81485 2003-11-06  Paul Eggert  <eggert@twinsun.com>
81486
81487         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
81488         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
81489         Reject sizes of exactly SIZE_MAX bytes.
81490         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
81491         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
81492
81493 2003-11-05  Bruno Haible  <bruno@clisp.org>
81494
81495         * lib/xsize.h: Include limits.h, to avoid a possible collision with
81496         SIZE_MAX defined in <limits.h> on Solaris.
81497
81498 2003-11-04  Jim Meyering  <jim@meyering.net>
81499
81500         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
81501         variable names, rather than @VAR@.
81502         * modules/poll: Likewise.
81503
81504 2003-11-04  Bruno Haible  <bruno@clisp.org>
81505
81506         * modules/xsize: New file.
81507         * modules/linebreak: Depend on xsize.
81508         * MODULES.html.sh (func_all_modules): Add xsize.
81509
81510 2003-11-04  Bruno Haible  <bruno@clisp.org>
81511
81512         * m4/xsize.m4: New file.
81513
81514 2003-11-04  Bruno Haible  <bruno@clisp.org>
81515
81516         * lib/xsize.h: New file.
81517         * lib/linebreak.c: Include xsize.h.
81518         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
81519         argument for overflow.
81520         Suggested by Paul Eggert.
81521
81522 2003-11-03  Karl Berry  <karl@gnu.org>
81523
81524         * config/config.{guess,sub}: update from config.
81525
81526 2003-11-03  Jim Meyering  <jim@meyering.net>
81527
81528         * modules/userspec (lib_SOURCES): Add userspec.h.
81529         (Include): Add "userspec.h".
81530         Improve description.
81531
81532 2003-11-03  Jim Meyering  <jim@meyering.net>
81533
81534         * lib/userspec.c: Include "userspec.h".
81535         * lib/userspec.h: New file.
81536
81537 2003-11-03  Bruno Haible  <bruno@clisp.org>
81538
81539         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
81540
81541 2003-11-03  Bruno Haible  <bruno@clisp.org>
81542
81543         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
81544         available, to avoid (extremely rare) race condition.
81545         Suggested by Paul Eggert.
81546
81547 2003-11-02  Karl Berry  <karl@gnu.org>
81548
81549         * config/srclist.txt (vasprintf.c): sync broken, sigh.
81550
81551 2003-10-31  Paul Eggert  <eggert@twinsun.com>
81552
81553         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
81554         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
81555         (read_filesystem_list): Set and use me_type_malloced.
81556         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
81557         whatever the type happens to be), for brevity and consistency.
81558         Check for size calculation overflow on Alphas running OSF/1.
81559
81560 2003-10-31  Jim Meyering  <jim@meyering.net>
81561
81562         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
81563
81564         * lib/linebuffer.c: Include <string.h> for declaration of memset.
81565
81566 2003-10-30  Paul Eggert  <eggert@twinsun.com>
81567             Bruno Haible  <bruno@clisp.org>
81568
81569         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
81570         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
81571
81572 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
81573
81574         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
81575         netbsd*-gnu*.  Suggested by Robert Millan.
81576
81577 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81578
81579         * modules/group-member: Depend on stdbool.
81580
81581 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81582
81583         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
81584
81585 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81586
81587         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
81588         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
81589         after the 'gnu' in these cases.  This fixes some bugs in the
81590         previous change, and is based on suggestions by Robert Millan.
81591
81592 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81593
81594         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
81595         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
81596         no longer needed.
81597         * lib/quotearg.c (quotearg_n_options): Use it.
81598         * lib/group-member.c: Include <stdbool.h>.
81599         (free_group_info): Arg is now const *; don't free arg.
81600         (get_group_info): Now returns bool and accepts struct group_info *,
81601         rather than returning a malloc'ed struct group_info *.
81602         All uses changed.  Check for overflow in internal size calculation.
81603
81604         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
81605         rather than xmalloc/xrealloc.
81606         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
81607         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
81608         conformance bug: the old code used a pointer after freeing the
81609         storage that it addressed.
81610         * lib/hash.c (hash_initialize): Simplify the code by using
81611         xalloc_oversized rather than doing it by hand.
81612         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
81613         the buffer preserved.  Use free and xmalloc instead.
81614         * lib/quotearg.c (quotearg_n_options): Likewise.
81615         Use a simpler test for size overflow.  Don't use xalloc_oversized
81616         because unsigned int might be wider than size_t (!); this suggests
81617         that we should switch from unsigned int to size_t for slot numbers.
81618
81619 2003-10-28  Paul Eggert  <eggert@twinsun.com>
81620
81621         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
81622         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
81623         NetBSD kernels.  Requested by Richard Stallman.
81624
81625 2003-10-27  Paul Eggert  <eggert@twinsun.com>
81626
81627         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
81628         to allocate the returned structure.  Do not allocate a subarray,
81629         as x2nrealloc will do that.
81630         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
81631         instead of xnrealloc.
81632         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
81633
81634 2003-10-27  Bruno Haible  <bruno@clisp.org>
81635
81636         * lib/stdbool_.h: Better support for BeOS.
81637
81638 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81639
81640         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
81641         now uses inline.
81642
81643 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81644
81645         * lib/xalloc.h (xalloc_oversized): New static inline function, for
81646         callers that want to do their own size-overflow checking.  Include
81647         <stdbool.h>, since xalloc_oversized returns bool.
81648         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
81649         to use xalloc_oversized.
81650
81651         Add two functions x2realloc, x2nrealloc, for programs that grow
81652         arrays dynamically by doubling their sizes.
81653         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
81654         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
81655         New functions.
81656
81657         Port to C99 semantics for 'inline' of external functions.
81658         Bug reported by Bruno Haible.
81659         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
81660         with the old contents of xnmalloc.
81661         (xnmalloc, xmalloc): Use it.
81662         (xnrealloc_inline): New static inline function,
81663         with the old contents of xnrealloc.
81664         (xnrealloc, xrealloc): Use it.
81665
81666         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
81667         that.
81668
81669 2003-10-26  Karl Berry  <karl@gnu.org>
81670
81671         * config/srclist.txt (COPYING.DOC): no longer available from
81672         /gd/gnuorg; don't know where the ultimate source is.
81673
81674 2003-10-25  Paul Eggert  <eggert@twinsun.com>
81675
81676         Fix several address-calculation bugs in the hash modules,
81677         plus some minor code cleanup.
81678
81679         * lib/hash.h: Include <stdbool.h>, for bool.
81680         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
81681         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
81682         hash_get_n_entries, hash_get_max_bucket_length,
81683         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
81684         hash_rehash): Use size_t rather than unsigned.
81685         * lib/hash.c (struct hash_table, hash_get_n_buckets,
81686         hash_get_n_buckets_used, hash_get_n_entries,
81687         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
81688         hash_get_entries, hash_do_for_each, hash_string, is_prime,
81689         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
81690         Likewise.
81691         (SIZE_MAX): Define if not defined.
81692         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
81693         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
81694         hash_print):
81695         Use const * when possible.
81696         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
81697         (check_tuning): Fix bug: if tuning parameters were very close to
81698         0 or 1, rounding errors could have caused subscript violations.
81699         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
81700         (hash_initialize): Add 'fail:' label
81701         to free table and return NULL, and use it to simplify code.
81702         Use calloc rather than clearing the storage ourself.
81703         (hash_initialize, hash_rehash): Check for arithmetic overflow in
81704         buffer size calculations.
81705         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
81706         Include <stddef.h>, for size_t.
81707         * lib/hash-pjw.c (hash_pjw): Likewise.
81708         Switch to method described by Bruno Haible.
81709         Include <limits.h>, for CHAR_BIT.
81710         (SIZE_BITS): New macro.
81711
81712 2003-10-23  Paul Eggert  <eggert@twinsun.com>
81713
81714         * m4/getline.m4 (AM_FUNC_GETLINE):
81715         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
81716         hosts.  Problem reported by Derek Robert Price in
81717         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
81718         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
81719         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
81720
81721 2003-10-21  Paul Eggert  <eggert@twinsun.com>
81722
81723         * lib/getndelim2.c (getndelim2): When size calculation overflows,
81724         ceiling the allocation at NMAX bytes rather than silently
81725         discarding input bytes before NMAX is reached.  This makes
81726         a difference only if NMAX exceeds SIZE_MAX / 2.
81727
81728         * lib/obstack.c: Merge from glibc.
81729         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
81730         Add libc_hidden_def (_obstack_newchunk).
81731         (_obstack_free) [! defined _LIBC]: Remove.
81732         [defined _LIBC]: Make a strong alias from obstack_free, rather than
81733         a clone of the function body.
81734         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
81735         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
81736
81737         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
81738         glibc.
81739         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
81740         arg to memcpy.
81741
81742         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
81743         (obstack_ptr_grow_fast, obstack_int_grow_fast):
81744         Don't use lvalue casts, as GCC plans to remove support for them
81745         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
81746         was also present in the non-GCC version, indicating that this
81747         code had always been buggy and had never been widely used.
81748         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
81749         Use the fast variant of each macro, rather than copying the
81750         definiens of the fast variant; that way, we'll be more likely to
81751         catch future bugs in the fast variants.
81752
81753 2003-10-20  Bruno Haible  <bruno@clisp.org>
81754
81755         * modules/wait-process: New file.
81756         * MODULES.html.sh (func_all_modules): Add wait-process.
81757
81758 2003-10-20  Bruno Haible  <bruno@clisp.org>
81759
81760         * m4/wait-process.m4: New file.
81761
81762 2003-10-20  Bruno Haible  <bruno@clisp.org>
81763
81764         * lib/wait-process.h: New file, from GNU gettext.
81765         * lib/wait-process.c: New file, from GNU gettext.
81766
81767 2003-10-19  Jim Meyering  <jim@meyering.net>
81768
81769         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
81770         HPUX 10.20.
81771
81772 2003-10-18  Karl Berry  <karl@gnu.org>
81773
81774         * config/config.guess: update from config.
81775
81776 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81777
81778         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
81779         (getgroups): First arg is int, not size_t.
81780         Don't let 'free' mangle errno.
81781
81782 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81783
81784         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
81785
81786 2003-10-16  Karl Berry  <karl@gnu.org>
81787
81788         * config/config.{guess,sub}: update from config.
81789
81790 2003-10-16  Jim Meyering  <jim@meyering.net>
81791
81792         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
81793         memcpy.
81794
81795 2003-10-15  Paul Eggert  <eggert@twinsun.com>
81796
81797         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
81798         (SIZE_MAX): Remove.
81799         (new_exclude, add_exclude_file): Initial size no longer needs to
81800         be a power of 2.
81801         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
81802         our own address arithmetic overflow checking.
81803
81804         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
81805         (fnmatch): Do not alloca more than 2000 wide characters;
81806         instead, use malloc for large buffers.
81807         Check for address arithmetic overflow, and return -1
81808         with errno set to ENOMEM in that case.
81809         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
81810         (NEW_PATTERN): Do not alloca more than 8000 bytes;
81811         instead, return -1.  Check for address arithmetic overflow.
81812
81813 2003-10-14  Paul Eggert  <eggert@twinsun.com>
81814
81815         Handle invalid suffixes and overflow independently, so that
81816         callers can treat them independently as needed.  Fix some bugs in
81817         suffix handling, e.g., "100k@" was not diagnosed as an invalid
81818         suffix for a human-readable blocksize.  The major caller-visible
81819         change is the addition of a new
81820         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
81821         that both overflow and suffix chars were found.
81822
81823         * lib/human.c (humblock): Don't check separately for invalid suffix
81824         char; that is xstrtoumax's job (now that its bug is fixed).
81825         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
81826         INTMAX_MAX]: New macros.
81827         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
81828         TYPE_MAXIMUM): New macros.
81829         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
81830         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
81831         if overflow occurs, as it's what __strtol does and it's more useful
81832         in practice.
81833         (__xstrtol): If __strtol reports some error other than ERANGE,
81834         reflect it to the caller as LONGINT_INVALID.  If it reports
81835         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
81836         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
81837         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
81838         value.
81839         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
81840         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
81841         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
81842         [defined UINTMAX_MAX]: New macros.
81843
81844 2003-10-14  Bruno Haible  <bruno@clisp.org>
81845
81846         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
81847
81848 2003-10-14  Bruno Haible  <bruno@clisp.org>
81849
81850         * m4/sig_atomic_t: New file, from GNU gettext.
81851         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
81852
81853 2003-10-14  Bruno Haible  <bruno@clisp.org>
81854
81855         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
81856         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
81857         Also use volatile where needed.
81858
81859 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81860
81861         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
81862         Change maintainer from Bruno Haible to 'all'.
81863
81864 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81865
81866         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
81867
81868 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81869
81870         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
81871         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
81872         and define in terms of the other primitives.
81873         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
81874         (SIZE_MAX): Define if not already defined.
81875         (array_size_overflow): New function.
81876         (xalloc_die): Abort instead of exiting if 'error' returns.
81877         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
81878         (xmalloc, xrealloc): Use them.
81879         (xcalloc): Check for address arithmetic overflow.
81880         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
81881         a bit faster than strcpy.
81882
81883 2003-10-10  Simon Josefsson  <jas@extundo.com>
81884
81885         * modules/argp (Depends-on): Add restrict and strcase.
81886
81887 2003-10-10  Simon Josefsson  <jas@extundo.com>
81888
81889         * m4/argp.m4: Add AC_C_INLINE.
81890
81891 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81892
81893         Merge getpass from libc, plus a few fixes.
81894
81895         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
81896         Include <stdbool.h>.
81897         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
81898         __fsetlocking to empty.
81899         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
81900         do include <bits/libc-lock.h>.
81901         Do not include <fcntl.h>; not needed.
81902         [_LIBC]: Include <wchar.h>.
81903         (NOTCANCEL_MODE): New macro.
81904         (flockfile, funlockfile) [_LIBC]: New macros.
81905         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
81906         [!_LIBC]: New macros.
81907         (call_fclose): New function.
81908         (getpass): Use it.  Save tty stream separately; this simplifies the
81909         code and makes it more reliable if stdin happens to equal stdout.
81910         Invoke __fsetlocking on tty.
81911         Handle thread cancellation if needed.
81912         Namespace cleanup (use __tcgetattr, __getline).
81913         Use bool for Booleans.
81914         [USE_IN_LIBIO]: Handle wide streams.
81915         [!_LIBC]: Unconditionally do the fseek, since we don't know what
81916         stream might go where.
81917
81918         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
81919         doesn't have to include <stdio.h> before us.
81920         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
81921         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
81922         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
81923         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
81924         if not declared, so that we can use getpass.c code from libc without
81925         rewriting it.
81926         (flockfile, ftrylockfile, funlockfile): New macros.
81927
81928 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81929
81930         * modules/getpass: Depend on stdbool.
81931
81932 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81933
81934         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
81935
81936 2003-10-07  Karl Berry  <karl@gnu.org>
81937
81938         * config/config.{guess,sub}: update from config.
81939
81940 2003-10-06  Jim Meyering  <jim@meyering.net>
81941             Bruno Haible  <bruno@clisp.org>
81942
81943         This lets translators provide better translations for the
81944         "Written by ..." part of --version output.
81945         * lib/version-etc.h: Include stdarg.h.
81946         (version_etc_copyright): Declare as readonly.
81947         (version_etc): Make this function variadic with a NULL-terminated list
81948         of author name strings.
81949         (version_etc_va): New declaration.
81950         * lib/version-etc.c: Include stdarg.h, stdlib.h.
81951         (version_etc_copyright): Declare as readonly.
81952         (version_etc_va): New function. Provide a different translatable string
81953         for each possible number of authors < 10. Abbreviate when there are 10
81954         authors or more.
81955         (version_etc): Make this function variadic. Call version_etc_va.
81956         Suggestion from Gary V. Vaughan.
81957
81958         * lib/long-options.h (parse_long_options): Change prototype: the
81959         authors string is moved to the end and becomes variadic.
81960         * lib/long-options.c: Include stdarg.h.
81961         (parse_long_options): Make this function variadic, too.
81962         Call version_etc_va, not version_etc.
81963
81964 2003-10-06  Bruno Haible  <bruno@clisp.org>
81965
81966         * modules/version-etc-2: Remove file.
81967         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
81968
81969 2003-10-06  Bruno Haible  <bruno@clisp.org>
81970
81971         * modules/fatal-signal: New file.
81972         * MODULES.html.sh (func_all_modules): Add fatal-signal.
81973
81974 2003-10-06  Bruno Haible  <bruno@clisp.org>
81975
81976         * m4/fatal-signal.m4: New file.
81977         * m4/signalblocking.m4: New file, from GNU gettext.
81978
81979 2003-10-06  Bruno Haible  <bruno@clisp.org>
81980
81981         * lib/version-etc-2.h: Remove file.
81982         * lib/version-etc-2.c: Remove file.
81983
81984 2003-10-06  Bruno Haible  <bruno@clisp.org>
81985
81986         * lib/fatal-signal.h: New file, from GNU gettext.
81987         * lib/fatal-signal.c: New file, from GNU gettext.
81988
81989 2003-10-05  Paul Eggert  <eggert@twinsun.com>
81990
81991         * README: Rework advice for preventing empty .o files.
81992         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
81993         not <sys/types.h>.
81994
81995 2003-10-04  Karl Berry  <karl@gnu.org>
81996
81997         * lib/argp*: update from libc.
81998
81999 2003-10-04  Karl Berry  <karl@gnu.org>
82000
82001         * config/config.{guess,sub}: update from config.
82002
82003 2003-10-02  Bruno Haible  <bruno@clisp.org>
82004
82005         * modules/lchown (Include): Add lchown.h.
82006         * modules/time_r (Include): Use "..." syntax.
82007         * modules/xgetdomainname (Include): Add xgetdomainname.h.
82008
82009 2003-10-01  Simon Josefsson  <jas@extundo.com>
82010
82011         * MODULES.html.sh (func_all_modules): Move gethostname from section
82012         'based on' to section 'lacking' POSIX:2001.
82013
82014 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
82015
82016         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
82017         to output mode on the same stream.
82018
82019 2003-09-29  Paul Eggert  <eggert@twinsun.com>
82020
82021         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
82022         Fix arg typo in previous patch.
82023
82024 2003-09-28  Jim Meyering  <jim@meyering.net>
82025
82026         * lib/error.c: Correct cpp indentation.
82027
82028 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82029
82030         * modules/free: New file.
82031
82032 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82033
82034         * m4/free.m4: New file.
82035
82036 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82037
82038         * lib/minmax.h (MIN, MAX)
82039         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
82040         Omit the special code that used __typeof__, since we worry that
82041         it could be more trouble than it's worth.  See:
82042         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
82043         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
82044
82045         * lib/free.c: New file.
82046
82047 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
82048
82049         Trivial fixes to Makefile.am parts of module listings.
82050         * modules/strstr: Append strstr.h to lib_SOURCES.
82051         * modules/strcase: Likewise, for strcase.h.
82052
82053 2003-09-27  Karl Berry  <karl@gnu.org>
82054
82055         * config/mkinstalldirs: update from automake.
82056
82057 2003-09-26  Paul Eggert  <eggert@twinsun.com>
82058
82059         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
82060         (error_tail): Do not loop, reallocating temporary buffer, since
82061         the output cannot contain more wide characters than the input
82062         contains bytes, the size must be big enough already.  This avoids
82063         one potential size overflow calculation.  Check for size overflow
82064         when calculating temporary buffer size.  Free temporary buffer
82065         when done, if it was allocated with malloc; this plugs a memory
82066         leak.  Remove casts from void * to pointers, that are no longer
82067         needed now that we're assuming C89 or better.
82068
82069         Merge error changes from glibc.
82070
82071         * lib/error.c, error.h: Update copyright notice header to match glibc.
82072         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
82073         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
82074         Disable cancellation while printing error.
82075         * lib/error.h: Prepend __ to parameter names.
82076
82077 2003-09-26  Jim Meyering  <jim@meyering.net>
82078
82079         * lib/error.c (error_tail): Move some declarations
82080         into inner scope where the local variables are used.
82081
82082 2003-09-26  Bruno Haible  <bruno@clisp.org>
82083
82084         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
82085         stpncpy().
82086         Don't define stpncpy through config.h; it's now done through stpncpy.h.
82087
82088 2003-09-26  Bruno Haible  <bruno@clisp.org>
82089
82090         * lib/stpncpy.h (gnu_stpncpy): New declaration.
82091         (stpncpy): Define as alias for gnu_stpncpy.
82092         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
82093
82094 2003-09-25  Simon Josefsson  <jas@extundo.com>
82095
82096         * lib/xgetdomainname.h: New file.
82097         * lib/xgetdomainname.c: New file.
82098
82099 2003-09-25  Simon Josefsson  <jas@extundo.com>
82100             Bruno Haible  <bruno@clisp.org>
82101
82102         * modules/getdomainname: New file.
82103         * modules/xgetdomainname: New file.
82104         * MODULES.html.sh (func_all_modules): Add getdomainname,
82105         xgetdomainname.
82106
82107 2003-09-25  Simon Josefsson  <jas@extundo.com>
82108             Bruno Haible  <bruno@clisp.org>
82109
82110         * m4/getdomainname.m4: New file.
82111
82112 2003-09-25  Simon Josefsson  <jas@extundo.com>
82113             Bruno Haible  <bruno@clisp.org>
82114
82115         * lib/getdomainname.h: New file.
82116         * lib/getdomainname.c: New file.
82117
82118 2003-09-25  Karl Berry  <karl@gnu.org>
82119
82120         * lib/argp-fmtstream.c, argp-help.c: update from libc.
82121
82122 2003-09-25  Karl Berry  <karl@gnu.org>
82123
82124         * config/install-sh: update from automake.
82125
82126 2003-09-25  Bruno Haible  <bruno@clisp.org>
82127
82128         * modules/version-etc-2: New file, from modules/version-etc with
82129         modifications.
82130         * MODULES.html.sh (func_all_modules): Add version-etc-2.
82131
82132 2003-09-25  Bruno Haible  <bruno@clisp.org>
82133
82134         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
82135         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
82136
82137 2003-09-24  Simon Josefsson  <jas@extundo.com>
82138
82139         * modules/xgethostname: Add xgethostname.h.
82140
82141 2003-09-24  Paul Eggert  <eggert@twinsun.com>
82142
82143         * lib/linebuffer.c (freebuffer): Don't free the argument, just
82144         the buffer associated with the argument.  Bug reported by
82145         Simon Josefsson.
82146
82147 2003-09-24  Paul Eggert  <eggert@twinsun.com>
82148
82149         * README: Document assumptions that 'int' is at least 32 bits
82150         wide, that integer arithmetic is 2's complement without overflow,
82151         that there are no holes in integer values, that adding sizes of
82152         two nonoverlapping objects can't overflow, and that all-bits-zero
82153         yields scalar zero.  Fix spelling and capitalization typos.
82154
82155 2003-09-19  Karl Berry  <karl@gnu.org>
82156
82157         * lib/argp.h: update from libc.
82158
82159 2003-09-17  Paul Eggert  <eggert@twinsun.com>
82160
82161         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
82162         to avoid spurious warnings like "AC_RUN_IFELSE was called before
82163         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
82164
82165 2003-09-17  Paul Eggert  <eggert@twinsun.com>
82166
82167         * gnulib-tool: Use "test -h", not "test -L", for portability
82168         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
82169         (tags_regexp): Remove, since \| doesn't conform to POSIX.
82170         (sed_extract_prog): Issue s commands one-by-one, rather than
82171         using \| in one s command.
82172
82173 2003-09-16  Paul Eggert  <eggert@twinsun.com>
82174
82175         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
82176         input error, instead of returning NULL the next time we are called
82177         (and therefore losing track of errno).
82178
82179 2003-09-16  Bruno Haible  <bruno@clisp.org>
82180
82181         * gnulib-tool (func_create_testdir): Warn about duplicated
82182         dependencies.
82183
82184 2003-09-15  Paul Eggert  <eggert@twinsun.com>
82185
82186         * modules/argmatch, modules/fatal, modules/obstack,
82187         modules/xalloc, modules/xgethostname: Sort dependencies by
82188         importance, not alphabetically.
82189
82190 2003-09-15  Paul Eggert  <eggert@twinsun.com>
82191
82192         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
82193         fails, so that the caller gets the proper errno.
82194
82195         * lib/readutmp.c (read_utmp): Likewise.
82196         Check for fstat error.  Close stream and free storage
82197         when failing.
82198
82199 2003-09-14  Karl Berry  <karl@gnu.org>
82200
82201         * config/srclist.txt (strdup.c): disable for c89 changes.
82202
82203 2003-09-14  Jim Meyering  <jim@meyering.net>
82204
82205         * lib/getloadavg.c: Correct cpp indentation.
82206         * lib/strdup.c: Likewise.
82207         * lib/vasnprintf.c: Likewise.
82208
82209 2003-09-14  Bruno Haible  <bruno@clisp.org>
82210
82211         * modules/fwriteerror: New file.
82212         * MODULES.html.sh (func_all_modules): Add fwriteerror.
82213
82214 2003-09-14  Bruno Haible  <bruno@clisp.org>
82215
82216         * lib/fwriteerror.h: New file.
82217         * lib/fwriteerror.c: New file.
82218
82219 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82220
82221         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
82222         modules/xgethostname, modules/xalloc: Depend on exit.
82223
82224 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82225
82226         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
82227
82228         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
82229         and AC_MINIX, too, so that their extensions are available.
82230
82231         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
82232         This macro has been superseded by gl_BACKUPFILE.
82233
82234         More patches to assume C89 or better.
82235
82236         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
82237
82238         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
82239         unconditionally.
82240         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
82241         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
82242         Include <string.h>, <stdlib.h> unconditionally.
82243         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
82244         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
82245         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
82246         headers or for string.h.
82247         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
82248         or strtoul.
82249
82250         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
82251         headers.
82252         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
82253         * m4/userspec.m4 (gl_USERSPEC): Likewise.
82254         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
82255         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
82256         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
82257         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
82258         memcpy, memset.
82259         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
82260         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
82261         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
82262         strtol.
82263         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
82264         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
82265         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
82266         strtoul.
82267
82268 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82269
82270         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
82271         * lib/obstack.c [!defined _LIBC]: Likewise.
82272         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
82273         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
82274         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
82275
82276         More changes to assume C89 or better.
82277
82278         * lib/error.c (error_tail): Assume vprintf.
82279
82280         * lib/argmatch.c (getenv): Remove decl.
82281         * lib/progreloc.c (get_full_program_name): Define via prototype.
82282         * lib/setenv.c (clearenv): Likewise.
82283         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
82284         needed.
82285         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
82286         (malloc, memcpy): Remove decls.
82287         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
82288         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
82289         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
82290         (memcpy): Remove macro.
82291         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
82292         (__P): Remove.  All uses removed.
82293         (PTR): Remove.  All uses changed to void *.
82294         (CHAR_BIT, NULL): Remove.
82295         (spaces, zeros, memset_space, memset_zero)
82296         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
82297         Remove.
82298         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
82299         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
82300         Define with prototype.
82301         Remove now-unnecessary prototype decl.
82302         (extra_args_spec): Assume ANSI C.  All uses changed.
82303         (extra_args_spec_iso): Remove.
82304         (my_strftime, emacs_strftimeu): Define via prototype.
82305         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
82306         unconditionally.
82307         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
82308         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
82309         (strtoul, strtol): Remove decls.
82310         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
82311         LONG_MAX): Remove.
82312         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
82313         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
82314         (LOCALE_PARAM_PROTO): New macro.
82315         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
82316         (INTERNAL (strtol), strtol): Define with a prototype.
82317         (PARAMS): Remove.  All uses removed.
82318         * lib/tempname.c: Include <string.h> unconditionally.
82319         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
82320         * lib/xgethostname.c (main): Define with a prototype.
82321         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
82322         Include <stdlib.h> unconditionally.
82323         (calloc, malloc, realloc, free): Remove decls.
82324         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
82325         Include <stdlib.h> unconditionally.  Sort include file names.
82326         (strtod): Remove.
82327         (xstrtod): Define with a prototype.
82328         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
82329         (strtol, strtoul): Remove decls.
82330
82331 2003-09-11  Paul Eggert  <eggert@twinsun.com>
82332
82333         More patches to assume C89 or better.
82334         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
82335         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
82336         string.h, memchr, STDC_HEADERS.
82337
82338 2003-09-11  Paul Eggert  <eggert@twinsun.com>
82339
82340         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
82341         Include <stdlib.h>, <string.h> unconditionally.
82342         Remove now-unnecessary cast to char *.
82343         * lib/strnlen.c: Include <string.h> unconditionally.
82344         * lib/yesno.c (yesno): Define with a prototype.
82345
82346 2003-09-11  Bruno Haible  <bruno@clisp.org>
82347
82348         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
82349
82350 2003-09-10  Jim Meyering  <jim@meyering.net>
82351
82352         * lib/error.c: Correct indentation of cpp directives.
82353
82354 2003-09-10  Bruno Haible  <bruno@clisp.org>
82355
82356         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
82357         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
82358         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
82359         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
82360         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
82361         <stdlib.h> and <string.h> checks.
82362         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
82363         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
82364
82365 2003-09-10  Bruno Haible  <bruno@clisp.org>
82366
82367         * lib/strcspn.c: Include <string.h> unconditionally.
82368         * lib/strpbrk.c: Include <string.h> unconditionally.
82369         * lib/strstr.c: Include <string.h> unconditionally.
82370         * lib/unicodeio.c: Include <string.h> unconditionally.
82371         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
82372         * lib/unsetenv.c: Likewise.
82373         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
82374         * lib/yesno.c: Include <stdlib.h> unconditionally.
82375         (rpmatch): Add prototype.
82376
82377 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82378
82379         More patches to assume C89 or better.
82380         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
82381         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
82382         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
82383         or for string.h.
82384         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
82385         stdlib.h.
82386         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
82387         C headers.
82388         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
82389         string.h.
82390         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
82391         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
82392         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
82393         or for string.h.
82394         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
82395         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
82396         C headers.
82397         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
82398         memcpy.
82399         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
82400         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
82401         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
82402         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
82403         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
82404         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
82405         string.h, free.
82406         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
82407         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
82408         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
82409         C headers, or for string.h.
82410         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
82411         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
82412         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
82413         headers, memory.h, stdlib.h, string.h, strings.h.
82414         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
82415         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
82416         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
82417         strchr.
82418         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
82419         headers, memory.h, string.h.
82420         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
82421         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
82422         free.
82423         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
82424         headers.
82425         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
82426         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
82427         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
82428         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
82429         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
82430
82431 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82432
82433         More K&R removal.
82434
82435         * lib/acosl.c (main): Use a prototype.
82436         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
82437         tanl.c: Likewise.
82438
82439         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
82440
82441         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
82442         (getopt, etopt_long, getopt_long_only, _getopt_internal)
82443         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
82444         with a prototype.
82445         * lib/getopt.c (const): Remove macro.
82446         Include <string.h> unconditionally.
82447         (my_index): Remove; all uses changed to strchr.
82448         (strlen): Remove decl.
82449         (exchange): Remove forward decl; no longer needed.
82450         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
82451         Define with prototype.
82452         * lib/getopt1.c (const): Remove macro.
82453         (getopt_long, getopt_long_only, main): Define with prototype.
82454
82455         * lib/getugroups.c: Include <string.h> unconditionally.
82456
82457         * lib/getusershell.c: Include <stdlib.h> unconditionally.
82458         (getusershell, setusershell, endusershell, readname, main):
82459         Define with prototypes.
82460
82461         * lib/group-member.c: Include group-member.h first.
82462         Include <stdlib.h> unconditionally.
82463
82464         * lib/hard-locale.c: Include hard-locale.h first.
82465         Include <stdlib.h>, <string.h> unconditionally.
82466
82467         * lib/hash.c (free, malloc): Remove decls.
82468         Include <stdlib.h> unconditionally.
82469
82470         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
82471         (getenv): Do not declare.
82472
82473         * lib/idcache.c: Include <string.h> unconditionally.
82474
82475         * lib/long-options.c: Include long-options.h first, to test interface.
82476         Include <stdlib.h> unconditionally.
82477
82478         * lib/makepath.c: Include makepath.h first, to test interface.
82479         Include <stdlib.h> and <string.h> unconditionally.
82480
82481         * lib/linebuffer.c: Include <stdlib.h>.
82482         (free): Remove decl.
82483
82484         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
82485         stddef.h. rpl_malloc returns void *, not char *.
82486         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
82487         prototype.
82488
82489         * lib/md5.h: Include <limits.h> unconditionally.
82490         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
82491         (__P): Remove; all uses removed.
82492         * lib/md5.c: Include "md5.h" first.
82493         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
82494         md5_buffer, md5_process_bytes, md5_process_block):
82495         Define with prototypes.
82496         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
82497         * lib/sha.c: Include "sha.h" first.
82498         Include <stdlib.h>, <string.h> unconditionally.
82499
82500         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
82501         * lib/memcmp.c (__ptr_t): Likewise.
82502         * lib/memrchr.c (__ptr_t): Likewise.
82503         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
82504         Include <string.h> unconditionally.
82505         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
82506         * lib/memchr.c: Include <stdlib.h> unconditionally.
82507         * lib/memchr.c (LONG_MAX): Remove.
82508         * lib/memrchr.c (LONG_MAX): Likewise.
82509         * lib/memchr.c (__memchr): Define via a prototype.
82510         * lib/memrchr.c (__memrchr): Likewise.
82511         * lib/memcmp.c (__P): Remove, and remove all uses.
82512         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
82513         Remove forward decls; no longer needed.
82514         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
82515         Use types required by C89 in prototype.
82516
82517         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
82518         * lib/savedir.c: Likewise.
82519         * lib/mkdir.c (free): Remove decl.
82520         * lib/rmdir.c (rmdir): Define with a prototype.
82521         * lib/savedir.c: Include savedir.h first, to test interface.
82522
82523         * lib/mktime.c (STDC_HEADERS): Remove.
82524         Include <stdlib.h>, <string.h> unconditionally.
82525
82526         * lib/modechange.c: Include <stdlib.h> unconditionally.
82527         (malloc): Remove decl.
82528
82529         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
82530         (free): Remove decl.
82531
82532         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
82533         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
82534         (This type really should be intptr_t, but that's a C99ism.)
82535         (_obstack_memcpy): Remove: all uses changed to memcpy.
82536         Include <string.h> unconditionally.
82537         (struct obstack): Assume __STDC__ for types of members
82538         chunkfun, freefun, extra_arg.
82539         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
82540         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
82541         obstack_begin, obstack_specify_allocation,
82542         obstack_specify_allocation_with_arg, obstack_chunkfun,
82543         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
82544         Remove unprototyped decls and the macros that use them.
82545         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
82546         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
82547         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
82548         (defined __STDC__ && __STDC__)]:
82549         Remove nonprototyped code.
82550         Include <stdlib.h> unconditionally.
82551         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
82552         _obstack_allocated_p, _obstack_free, obstack_free,
82553         _obstack_memory_used, print_and_abort):
82554         Define using prototypes.
82555         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
82556         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
82557         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
82558         obstack_next_free, obstack_object_size, obstack_room) [0]:
82559         Remove unused, unprototyped code.
82560
82561         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
82562
82563         * lib/physmem.c (physmem_total, physmem_available, main): Define
82564         with prototypes.
82565
82566         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
82567         (main): Define with a prototype.
82568
82569         * lib/posixver.c (getenv): Remove decl.
82570
82571         * lib/putenv.c (malloc): Returns void *, not char *.
82572         Include <string.h> unconditionally.
82573         (strchr, memcpy, NULL): Do not define.
82574
82575         * lib/readtokens.c: Include readtokens.h first, to test interface.
82576         Include <stdlib.h>, <string.h> unconditionally.
82577         (init_tokenbuffer): Define with a prototype.
82578
82579         * lib/regex.c (PARAMS): Remove.  All uses removed.
82580         All uses of _RE_ARGS removed, too.
82581         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
82582         unconditionally.
82583         (bzero): Assume memset exists.
82584         (memcmp, memcpy, NULL): Remove.
82585         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
82586         char, or assignments to local vars of type signed char.
82587         (init_syntax_once, PREFIX(extract_number_and_incr),
82588         PREFIX(print_partial_compiled_pattern),
82589         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
82590         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
82591         PREFIX(regex_grow_registers), PREFIX(regex_compile),
82592         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
82593         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
82594         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
82595         wcs_compile_range, byte_compile_range, truncate_wchar,
82596         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
82597         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
82598         count_mbs_length, wcs_re_match_2_internal,
82599         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
82600         PREFIX(alt_match_null_string_p),
82601         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
82602         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
82603         regfree, PREFIX(extract_number)): Define with prototype.  Remove
82604         now-unnecessary declaration, if any.
82605         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
82606         regcomp, regexec):
82607         Remove now-unnecessary casts among pointer types.
82608         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
82609
82610         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
82611         (free): Remove decl.
82612
82613         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
82614
82615         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
82616         (free): Remove decl.
82617
82618         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
82619         * lib/xgetcwd.c: Likewise.
82620
82621         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
82622         (free): Remove decl.
82623
82624         * lib/strchrnul.c (strchrnul): Define with a prototype.
82625         Fix bug: c_in was not converted to char before searching.
82626
82627         The following changes are not K&R related:
82628
82629         * lib/group-member.h: Include <sys/types.h>, so that this file is
82630         self-contained.
82631         * lib/makepath.h: Likewise.
82632
82633         * lib/getusershell.c (readname, default_index, line_size, readname):
82634         Use size_t, not int, for sizes.
82635         (readname): If the size overflows, report an error instead of
82636         looping forever.
82637
82638 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82639
82640         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
82641         libc.
82642
82643 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82644
82645         * README: New section: portability guidelines.
82646
82647 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82648
82649         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
82650         C89 spec.
82651
82652 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82653
82654         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
82655
82656 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82657
82658         Assume C89 or better; remove K&R cruft.
82659         A few of these changes were first proposed by Derek Robert Price
82660         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
82661
82662         * lib/addext.c: Include <string.h> unconditionally.
82663         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
82664         Don't declare getenv or malloc.
82665
82666         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
82667         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
82668         (NULL): Remove.
82669         (find_stack_direction, alloca): Use prototypes.
82670
82671         * lib/atexit.c (atexit): Define using a prototype.
82672
82673         * lib/basename.c, dirname.c, stripslash.c:
82674         Include <string.h> unconditionally.
82675
82676         * lib/bcopy.c: Include <stddef.h>.
82677         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
82678
82679         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
82680
82681         * lib/error.h (error, error_at_line, error_print_progname)
82682         [! (defined (__STDC__) && __STDC__)]: Remove decls.
82683         * lib/error.c: Include error.h first, to check interface.
82684         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82685         (VA_START): Remove; all uses changeed to va_start.
82686         (exit, strerror): Remove decls.
82687         (error_print_progname): Prototype uncondionally.
82688         Don't include <errno.h>; no longer needed.
82689         (private_strerror): Remove.
82690         (error_tail): Always define.
82691         (error, error_at_line): Assume C89 or better; always use prototypes.
82692         * lib/fatal.c: Include "fatal.h" first, to test interface.
82693         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82694         (VA_START): Remove; all uses changed to va_start.
82695         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
82696         this case.
82697         (exit): Remove decl.
82698         (fatal): Prototype unconditionally.  Assume va_start works.
82699         Abort at end, to pacify gcc.
82700
82701         * lib/euidaccess.c (main): Define with a prototype.
82702
82703         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
82704
82705         * lib/exitfail.c: Include <stdlib.h> unconditionally.
82706
82707         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
82708         prototypes.
82709         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
82710         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
82711         (getenv): Remove decl.
82712         (fnmatch): Define using a prototype.
82713         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
82714         (FCT): Define using a prototype.
82715
82716         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
82717
82718         * lib/gethostname.c: Include <stddef.h>.
82719         (gethostname): Define with prototype.  Length is size_t, not int.
82720
82721 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82722
82723         Assume C89 or better; remove K&R cruft.
82724         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
82725         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
82726         string.h, getenv, malloc.
82727         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
82728         headers.
82729         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
82730         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
82731         do not check for strerror.
82732         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
82733         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
82734         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
82735         do not check for doprnt or vprintf.
82736         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
82737         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
82738
82739 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82740
82741         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
82742         getversion.c should have been removed then, but was accidentally
82743         preserved.
82744
82745         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
82746         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
82747
82748 2003-09-08  Karl Berry  <karl@gnu.org>
82749
82750         * config/config.sub, config.guess, srclistvars.sh: update from savannah
82751                 config, forget about prep.
82752
82753         * config/depcomp, missing: update from automake.
82754
82755 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82756
82757         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
82758         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82759
82760 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82761
82762         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
82763         copy_tm_result.  Bug reported by Simon Josefsson in
82764         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82765
82766 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82767
82768         * m4/time_r.m4: New file.
82769         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
82770         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
82771         is. Check for timegm declaration.
82772         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
82773         Do not check for gmtime_r.
82774         Replace mktime if __mktime_internal does not exist and if mktime
82775         hasn't been replaced already.
82776
82777 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82778
82779         * lib/time_r.c, lib/time_r.h: New files.
82780
82781         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
82782         __localtime_r.
82783         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
82784         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
82785
82786         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
82787         __gmtime_r.
82788         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
82789         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
82790         Include <time_r.h>.
82791
82792         * lib/timegm.c: Switch to glibc implementation, with the following
82793         changes:
82794         [defined HAVE_CONFIG_H]: Include <config.h>.
82795         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
82796         (__mktime_internal) [!defined _LIBC]: New decl.
82797         (__gmtime_r) [!defined _LIBC]: New macro and function.
82798         (timegm): Use a prototype, since gnulib assumes C89.
82799         Do not bother declaring tmp to be const, as it's not really usefu.
82800         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
82801         (timegm): Declare only if HAVE_DECL_TIMEGM.
82802
82803 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82804
82805         * MODULES.html.sh (func_all_modules): Add time_r.
82806         * modules/time_r: New file.
82807         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
82808         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
82809
82810 2003-09-03  Paul Eggert  <eggert@twinsun.com>
82811
82812         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
82813         Bug reported by Lute Kamstra in
82814         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
82815
82816         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
82817         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
82818         course with correspondingly smaller numbers for tomorrow and
82819         yesterday.  From Tadayoshi Funaba.  Originally installed into
82820         sh-utils on 1999-08-07, but the patch got lost (I guess during the
82821         coreutils merge?).
82822
82823 2003-08-31  Simon Josefsson  <jas@extundo.com>
82824
82825         * modules/timegm: New file.
82826         * MODULES.html.sh (func_all_modules): Add timegm.
82827
82828 2003-08-31  Simon Josefsson  <jas@extundo.com>
82829
82830         * m4/timegm.m4: New file.
82831
82832 2003-08-31  Simon Josefsson  <jas@extundo.com>
82833
82834         * lib/timegm.h: New file.
82835         * lib/timegm.c: New file.  Based on
82836         wget-1.8.2/src/http.c:mktime_from_utc.
82837
82838 2003-08-31  Karl Berry  <karl@gnu.org>
82839
82840         * lib/argp.h: update from libc.
82841
82842 2003-08-28  Bruno Haible  <bruno@clisp.org>
82843
82844         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
82845         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
82846         followed by '#define fnmatch fnmatch_posix' gives an error.
82847
82848 2003-08-28  Bruno Haible  <bruno@clisp.org>
82849
82850         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
82851         warning on QNX, which defines O_BINARY to 000000.
82852
82853 2003-08-27  Jim Meyering  <jim@meyering.net>
82854
82855         * m4/mkstemp.m4: Require that the system mkstemp be able to create
82856         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
82857         would fail after 32.  Reported by Danny Levinson.  Details here:
82858         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
82859
82860 2003-08-24  Bruno Haible  <bruno@clisp.org>
82861
82862         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
82863         MSVC7 <stdio.h> is included later.
82864
82865 2003-08-22  Simon Josefsson  <jas@extundo.com>
82866
82867         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
82868
82869 2003-08-20  Karl Berry  <karl@gnu.org>
82870
82871         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
82872
82873 2003-08-20  Bruno Haible  <bruno@clisp.org>
82874
82875         * modules/progname: New file.
82876         * MODULES.html.sh (func_all_modules): Add progname.
82877
82878 2003-08-20  Bruno Haible  <bruno@clisp.org>
82879
82880         * lib/progname.h: New file, from GNU gettext.
82881         * lib/progname.c: New file, from GNU gettext.
82882         * lib/progreloc.c: New file, from GNU gettext.
82883
82884 2003-08-19  Jim Meyering  <jim@meyering.net>
82885
82886         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
82887         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
82888
82889 2003-08-19  Bruno Haible  <bruno@clisp.org>
82890
82891         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
82892         more.
82893
82894 2003-08-19  Bruno Haible  <bruno@clisp.org>
82895
82896         * lib/xstrdup.c: Assume <string.h> exists.
82897
82898 2003-08-18  Paul Eggert  <eggert@twinsun.com>
82899
82900         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
82901         in makefile rules.
82902
82903 2003-08-18  Jim Meyering  <jim@meyering.net>
82904
82905         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
82906         * m4/lib-ld.m4: Likewise.
82907
82908 2003-08-18  Jim Meyering  <jim@meyering.net>
82909
82910         * lib/setenv.h: Indent nested cpp directive.
82911         * lib/vasnprintf.c: Remove trailing blanks.
82912
82913 2003-08-17  Simon Josefsson  <jas@extundo.com>
82914
82915         * modules/xstrndup: New file.
82916         * MODULES.html.sh (func_all_modules): Add xstrndup.
82917
82918 2003-08-17  Simon Josefsson  <jas@extundo.com>
82919
82920         * modules/argp: Fix autoconf macro name. Add more dependencies.
82921
82922 2003-08-17  Simon Josefsson  <jas@extundo.com>
82923
82924         * m4/xstrndup.m4: New file.
82925
82926 2003-08-17  Simon Josefsson  <jas@extundo.com>
82927
82928         * m4/argp.m4: New file.
82929
82930 2003-08-17  Simon Josefsson  <jas@extundo.com>
82931             Bruno Haible  <bruno@clisp.org>
82932
82933         * lib/xstrndup.h: New file.
82934         * lib/xstrndup.c: New file.
82935
82936 2003-08-17  Bruno Haible  <bruno@clisp.org>
82937
82938         * modules/strndup (Files, Include): Add lib/strndup.h.
82939
82940 2003-08-17  Bruno Haible  <bruno@clisp.org>
82941
82942         * modules/euidaccess (Files): Add lib/euidaccess.h.
82943
82944 2003-08-17  Bruno Haible  <bruno@clisp.org>
82945
82946         * lib/strndup.h: New file.
82947
82948 2003-08-17  Bruno Haible  <bruno@clisp.org>
82949
82950         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
82951         like AC_GNU_SOURCE.
82952         * modules/extensions (configure.ac): Comment out the invocation of
82953         gl_USE_SYSTEM_EXTENSIONS.
82954
82955 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82956
82957         Merges from coreutils, etc.
82958         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
82959         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
82960         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
82961         fixing a typo.
82962         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
82963         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
82964
82965 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82966
82967         Document merge from coreutils.
82968         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
82969         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
82970         * modules/utime: Add m4/utimes-null.m4.
82971
82972 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82973
82974         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
82975         space, undoing this 2003-08-12 change:
82976         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82977
82978 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82979
82980         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
82981         strtoul.c from libc, undoing this 2003-08-12 change:
82982         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82983
82984 2003-08-16  Jim Meyering  <jim@meyering.net>
82985
82986         Merges from coreutils.
82987         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
82988         prefix.  Adjust cache variables similarly.  Create 500 rather than
82989         just 300 files, to exercise bug on Darwin6.5, too.
82990         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
82991         $missing_dir.
82992         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
82993         AM_SYS_POSIX_TERMIOS.
82994         Reported by mkc@mathdogs.com.
82995         Also change use of $am_cv_sys_posix_termios
82996         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
82997         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
82998         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
82999         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
83000         in /proc/mounts until it finds one with matching device number.  This
83001         is unnecessary when the FILE argument *is* a mount point.  No stat call
83002         is necessary in that case.  So, disable the statvfs-testing code on
83003         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
83004         as RedHat bug# 84846.
83005         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
83006         to 1MB, so as not to render systems with no stack size limit (e.g.,
83007         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
83008         Include <unistd.h>.  On some systems,
83009         it is required for the definition of _SC_PAGESIZE.
83010
83011 2003-08-16  Jim Meyering  <jim@meyering.net>
83012
83013         Merge from coreutils.
83014         * lib/xstrtoimax.c: #else #if -> #elif.
83015         * lib/xstrtoumax.c: Likewise.
83016
83017 2003-08-16  Jim Meyering  <jim@meyering.net>
83018
83019         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
83020         * m4/utimes.m4: Removed.
83021         * m4/utimes-null.m4: Renamed from utimes.m4.
83022
83023         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
83024         to 1MB, so as not to render systems with no stack size limit (e.g.,
83025         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
83026         Include <unistd.h>.  On some systems,
83027         it is required for the definition of _SC_PAGESIZE.
83028
83029 2003-08-16  Jim Meyering  <jim@meyering.net>
83030         and Paul Eggert  <eggert@cs.ucla.edu>
83031
83032         Merges from coreutils, etc.
83033
83034         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
83035         using the latest version from cvs.  This avoids problems with #line
83036         directives using a vendor (Sun) compiler.
83037         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
83038         Don't set GETGROUPS_LIB here; now it's
83039         done via getgroups.m4's wrapper function.
83040         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
83041         rather than just in sh-util/configure.in, so that the
83042         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
83043         same.
83044         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
83045         AC_FUNC_GETLOADAVG where to find getloadavg.c.
83046         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
83047         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
83048         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
83049         Remove code that is now done by the newly-required macros.
83050         Append $(EXEEXT) to DF_PROG.
83051         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
83052         Do not invoke or require the following here,
83053         since prereq.m4 or some gnulib .m4 now does this for us:
83054         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
83055         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
83056         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
83057         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
83058         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
83059         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
83060         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
83061         AC_FUNC_OBSTACK.
83062         Do not replace the following functions, as this is now the job
83063         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
83064         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
83065         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
83066         atexit getpass, strdup, getpagesize.
83067         Replace 'raise'.
83068         Do not check for the following functions, as this is now the job
83069         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
83070         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
83071         setregid.
83072         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
83073         Check for sys/sysctl.h.
83074         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
83075         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
83076         of checking for ssize_t ourselves.
83077
83078         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
83079         Require every macro that gnulib/modules/* suggests for us.
83080         (jm_PREREQ_ADDEXT): New macro.
83081         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
83082         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
83083
83084         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
83085         (gl_PHYSMEM): Use it.
83086         Also check for `table' function.
83087         Check for new headers and functions.
83088         Add check for sys/sysmp.h.
83089         With suggestions from Kaveh Ghazi.
83090         Ignore headers that are present but cannot be compiled.  This
83091         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
83092         C 5.4.
83093
83094 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83095
83096         Document merge from coreutils.
83097         * modules/userspec: Depend on posixver.
83098         * modules/strftime: Depend on tzset.
83099
83100 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83101
83102         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
83103         rather than tab, after '#' in shell-script copyright notices.
83104         Suggested by Bruno Haible.
83105
83106 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83107
83108         * config/srclist-update: Use three spaces, rather than tab, after '#'
83109         in shell-script copyright notices.  Suggested by Bruno Haible.
83110         Remove unnecessary parenthesization in regular expression.
83111
83112 2003-08-15  Jim Meyering  <jim@meyering.net>
83113
83114         Merge from coreutils.
83115         * lib/xgethostname.c: Include <stdlib.h>.
83116         (xghostname): Don't exit for anything other than memory-related
83117         failure; just return NULL.
83118         * lib/userspec.c: Include "posixver.h".
83119         (parse_user_spec): Accept `.' as a separator only
83120         in pre-POSIX-200112 mode.
83121         * lib/strtoimax.c: Use #elif rather than #else #if.
83122         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
83123         Remove function, now that we can rely on a working tzset function.
83124         [!_LIBC]: Ensure that the required autoconf test has been run.
83125         [!defined _NL_CURRENT && HAVE_STRFTIME]:
83126         Use underlying_strftime for %r.
83127         * lib/sha.c: Merge in some clean-up and optimization changes from
83128         glibc.
83129         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
83130         Ensure that it is a multiple of 64.
83131         Rearrange loop exit tests so as to avoid performing an
83132         additional fread after encountering an error or EOF.
83133         * lib/realloc.c: Update copyright date.
83134
83135 2003-08-15  Jim Meyering  <jim@meyering.net>
83136         and Paul Eggert  <eggert@twinsun.com>
83137
83138         Merge from coreutils.
83139         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
83140         member but strut utmpx does not.  Needed for AIX 4.3.3.
83141         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
83142
83143 2003-08-15  Jim Meyering  <jim@meyering.net>
83144         and Paul Eggert  <eggert@cs.ucla.edu>
83145
83146         Merges from coreutils, etc.
83147         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
83148         Require gl_FUNC_TZSET_CLOBBER.
83149         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
83150         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
83151         members.
83152
83153 2003-08-14  Paul Eggert  <eggert@twinsun.com>
83154
83155         Help the merge from coreutils.
83156         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
83157         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
83158         * m4/tzset.m4: Use it too.
83159
83160 2003-08-14  Paul Eggert  <eggert@twinsun.com>
83161
83162         * modules/tzset: New file.
83163
83164 2003-08-14  Jim Meyering  <jim@meyering.net>
83165
83166         Merges from coreutils.
83167         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
83168         variable names, rather than @FNMATCH_H@.
83169         * modules/alloca: Likewise for $(ALLOCA_H).
83170
83171         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
83172         the three copies of the literal target, `fnmatch.h'.
83173         * modules/alloca (alloca.h): Likewise.
83174
83175 2003-08-14  Jim Meyering  <jim@meyering.net>
83176
83177         Merge from coreutils.
83178         * m4/tzset.m4: New file.
83179         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
83180         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
83181         otherwise, AIX 5.1 systems would end up using the latter.
83182         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
83183         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
83184         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
83185         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
83186
83187 2003-08-14  Jim Meyering  <jim@meyering.net>
83188
83189         Merge from coreutils.
83190         * lib/obstack.h: Whitespace changes.
83191         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
83192         and xcalloc return values.
83193         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
83194         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
83195         hang on OSF/1 5.1 for DIR on both local and remote file systems.
83196         Reported by (and fix confirmed by) Nelson H. F. Beebe.
83197         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
83198         error from mntctl.
83199         Use mntctl's return value to drive the entry-processing loop, since
83200         we can't rely on the value of the vmt_length member in the last
83201         entry.  On some systems doing so could result in exhausting
83202         virtual memory.  Based in part on a patch from Mike Jetzer.
83203
83204 2003-08-14  Jim Meyering  <jim@meyering.net>
83205         and Paul Eggert  <eggert@twinsun.com>
83206
83207         Merges from coreutils, plus other fixes.
83208         * lib/physmem.c: Merge in portability changes from gcc/libiberty
83209         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
83210         for credits and details.  Thanks to Kaveh Ghazi for helping
83211         to keep these files in sync.
83212         (ARRAY_SIZE): Define it.
83213         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
83214         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
83215         (memcasecmp): Don't assume size_t fits in unsigned int.
83216         Remove casts and duplicate code.
83217         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
83218         (memcpy): Remove definition.
83219         Merge in some clean-up and optimization changes from glibc.
83220         [BLOCKSIZE]: Move definition to top of file.
83221         Ensure that it is a multiple of 64.
83222         Rearrange loop exit tests so as to avoid performing an
83223         additional fread after encountering an error or EOF.
83224         * lib/md5.h (md5_uintptr): Define.
83225         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
83226         return to the initial working directory.  Preserve errno
83227         for caller.
83228         * lib/idcache.c: Include "xalloc.h".
83229         (xmalloc, xrealloc): Remove decls.
83230         (getuser): Remove casts no longer required in C89.
83231         * lib/human.c: Include stdio.h, for sprintf.
83232         * lib/group-member.c: Include "xalloc.h".
83233         (xmalloc, xrealloc): Remove decls.
83234         (get_group_info): Remove casts no longer required in C89.
83235         * lib/getusershell.c (readname): Remove casts no longer required in
83236         C89.
83237         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
83238         * lib/getline.c: Whitespace fix, from coreutils.
83239
83240 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83241
83242         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
83243         Check for isascii.
83244
83245         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
83246         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
83247         Undo previous (whitespace-only) change.
83248
83249 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83250
83251         * lib/exclude.c: Include <ctype.h>
83252         (IN_CTYPE_DOMAIN): New macro.
83253         (is_space): New fn.
83254         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
83255         and empty lines.
83256
83257         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
83258         Undo previous (whitespace-only) change.
83259
83260 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83261
83262         * config/srclist-update: Change update back to the old behavior,
83263         leaving whitespace alone.  Use one 'sed' command rather than a
83264         pipeline.
83265         (fixlicense): Now a variable, not a function.
83266         (remove_trailing_blanks): Remove.
83267         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
83268         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
83269         Undo previous (whitespace-only) change.
83270
83271 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83272
83273         Merge from coreutils.
83274         * modules/euidaccess: Add lib_SOURCES, include for new
83275         file euidaccess.h
83276
83277 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83278
83279         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
83280         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
83281         Normalize leading white space and remove trailing white space.
83282
83283         Merge from coreutils
83284         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
83285
83286         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
83287         0.12.1.  These files are now being upgraded automatically by
83288         ../config/srclist-update.
83289
83290 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83291
83292         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
83293         Normalize leading white space and remove trailing white space.
83294         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
83295         notice, as per ../config/srclist-update.
83296
83297         Merge from coreutils.
83298         * lib/euidaccess.h: New file.
83299         * lib/euidaccess.c: Include it.
83300         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
83301         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
83302         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
83303
83304 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83305
83306         * config/srclist-update: Add copyright notice.
83307         (remove_id_lines, remove_trailing_blanks): New constants.
83308         (fixfile): Use them to normalize spacing a bit in copied files.
83309         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
83310         Normalize leading white space and remove trailing white space.
83311
83312         * config/texinfo.tex: Sync with texinfo.
83313
83314         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
83315         strtoul.c from libc, to merge coreutils whitespace changes.
83316
83317         * config/srclist.txt: Get the following m4 files from gettext:
83318         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
83319         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
83320         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
83321         wint_t.m4.
83322
83323 2003-08-12  Karl Berry  <karl@gnu.org>
83324
83325         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
83326         been made.
83327
83328 2003-08-11  Paul Eggert  <eggert@twinsun.com>
83329
83330         * modules/gnu-source, m4/gnu-source.m4:
83331         Remove; we're assuming Autoconf 2.54 or later now.
83332         Suggested by Bruno Haible.
83333         * MODULES.html.sh (func_all_modules): Remove gnu-source.
83334
83335 2003-08-11  Bruno Haible  <bruno@clisp.org>
83336
83337         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
83338
83339 2003-08-11  Bruno Haible  <bruno@clisp.org>
83340
83341         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
83342         (vasnprintf): Use it instead of wcslen.
83343
83344 2003-08-11  Bruno Haible  <bruno@clisp.org>
83345
83346         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
83347         value to ensure that _Bool promotes to int. Use #define for _Bool when
83348         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
83349
83350 2003-08-10  Karl Berry  <karl@gnu.org>
83351
83352         * lib/regex.h: update from libc (whitespace fix).
83353
83354 2003-08-09  Paul Eggert  <eggert@twinsun.com>
83355
83356         Merge some files from coreutils.  These changes were
83357         originally made by Jim Meyering.
83358         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
83359         many older Unixes require this.
83360         * lib/alloca.c (alloca): Remove cast to argument of free;
83361         no longer needed in C89.
83362         * lib/alloca_.h, regex.h: Fix white space to match
83363         what GNU indent does.
83364
83365 2003-08-09  Paul Eggert  <eggert@twinsun.com>
83366
83367         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
83368         apparently Emacs's Unicode mode got confused before my 2003-08-05
83369         checkin.
83370
83371 2003-08-08  Paul Eggert  <eggert@twinsun.com>
83372
83373         * m4/extensions.m4: New file.
83374         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
83375         Require gl_USE_SYSTEM_EXTENSIONS.
83376         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
83377         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
83378
83379 2003-08-08  Paul Eggert  <eggert@twinsun.com>
83380
83381         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
83382         * modules/extensions, modules/gnu-source: New files.
83383         * modules/timespec, modules/unlocked-io: Depend on extensions.
83384
83385 2003-08-07  Paul Eggert  <eggert@twinsun.com>
83386
83387         * modules/restrict: New file.
83388         * MODULES.html.sh (func_all_modules): Add restrict.
83389         * modules/regex: Depend on restrict.
83390
83391 2003-08-07  Paul Eggert  <eggert@twinsun.com>
83392
83393         * m4/restrict.m4: New file.
83394         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
83395
83396 2003-08-07  Bruno Haible  <bruno@clisp.org>
83397
83398         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
83399         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
83400
83401 2003-08-07  Bruno Haible  <bruno@clisp.org>
83402
83403         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
83404         makes the module 'getndelim2' compatible with the module 'getline'.
83405
83406 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83407
83408         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
83409         byte with "\201" to avoid glitches when editing that source file
83410         with multi-gnome-terminal.
83411
83412 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83413
83414         * lib/bumpalloc.h: Remove.
83415
83416 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83417
83418         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
83419         * modules/bumpalloc: Remove.
83420
83421 2003-08-04  Paul Eggert  <eggert@twinsun.com>
83422
83423         * lib/getloadavg.c: Change copyright notice and spacing to conform to
83424         GNU coding style.
83425
83426         Merge from coreutils.
83427         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
83428         1. From glibc.
83429         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
83430         from Karl Berry, implemented by Jim Meyering.
83431         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
83432         from Dmitry V. Levin.
83433         Remove anachronistic cast of xrealloc.
83434         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
83435         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
83436         type. Otherwise, it wouldn't compile with at least /bin/cc on
83437         ymp-cray-unicos9.0.2.X.
83438         Combine two mostly-identical uses of alloca into one.
83439         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
83440
83441 2003-08-04  Dave Love  <d.love@dl.ac.uk>
83442
83443         [From Emacs.]
83444
83445         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
83446         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
83447         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
83448         obsolete NLIST_NAME_UNION.
83449         [__GNU__]: Undef BSD and FSCALE.
83450         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
83451
83452 2003-08-03  Paul Eggert  <eggert@twinsun.com>
83453
83454         * lib/stdbool_.h (_Bool): Make it signed char, instead of
83455         an enum type, so that it's guaranteed to promote to int.  See:
83456         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
83457
83458 2003-08-03  Karl Berry  <karl@gnu.org>
83459
83460         * config/depcomp: update from automake.
83461
83462 2003-07-31  Paul Eggert  <eggert@twinsun.com>
83463
83464         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
83465         (strerror): Don't assume that a printable int fits in 14 bytes.
83466
83467 2003-07-31  Bruno Haible  <bruno@clisp.org>
83468
83469         * modules/getpass-gnu: New file.
83470         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
83471
83472 2003-07-31  Bruno Haible  <bruno@clisp.org>
83473
83474         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
83475
83476 2003-07-24  Karl Berry  <karl@gnu.org>
83477
83478         * config/missing: update from automake.
83479
83480 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
83481             Bruno Haible  <bruno@clisp.org>
83482
83483         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
83484         * lib/getline.c (getline, getdelim): Likewise.
83485         Remove _GNU_SOURCE define; now it's defined in config.h through
83486         m4/getline.m4.
83487
83488 2003-07-23  Karl Berry  <karl@gnu.org>
83489
83490         * config/config.sub: update from prep.
83491
83492 2003-07-22  Paul Eggert  <eggert@twinsun.com>
83493
83494         * modules/xalloc (Depends-on): Add exitfail.
83495         * modules/xmemcoll: Likewise.
83496
83497 2003-07-22  Paul Eggert  <eggert@twinsun.com>
83498
83499         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
83500         over-parenthesization in macros.
83501
83502         Sync with coreutils.
83503
83504         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
83505         required by C99.
83506
83507         Use `exit_failure' for xalloc and xmemcoll instead of their own
83508         private exit-failure variables.
83509         * lib/xalloc.h (xalloc_exit_failure): Remove.
83510         * lib/xmalloc.c: Likewise.  Include exitfail.h.
83511         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
83512         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
83513         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
83514         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
83515
83516 2003-07-20  Jim Meyering  <jim@meyering.net>
83517
83518         * modules/closeout (Depends-on): Add exitfail.
83519         Suggestion from Bruno Haible.
83520
83521 2003-07-19  Karl Berry  <karl@gnu.org>
83522
83523         * config/config.sub: update from prep.
83524
83525 2003-07-18  Paul Eggert  <eggert@twinsun.com>
83526
83527         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
83528         Remove.
83529         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
83530         to test that it can stand by itself.  Include "exitfail.h".
83531         Clients should set exit_failure instead.
83532         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
83533
83534 2003-07-18  Bruno Haible  <bruno@clisp.org>
83535
83536         * modules/getndelim2: New file.
83537         * modules/getline: Share files with module getndelim2.
83538         * modules/getnline: Depend on getndelim2 instead of sharing files with
83539         it. Add getnline.c to lib_SOURCES.
83540         * MODULES.html.sh (func_all_modules): Add getndelim2.
83541
83542 2003-07-18  Bruno Haible  <bruno@clisp.org>
83543
83544         * m4/getndelim2.m4: New file.
83545         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
83546         invoke gl_PREREQ_GETNDELIM2.
83547         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
83548         gl_PREREQ_GETNDELIM2.
83549         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
83550         gl_GETNDELIM2.
83551
83552 2003-07-18  Bruno Haible  <bruno@clisp.org>
83553
83554         * lib/getndelim2.h: New file.
83555         * lib/getndelim2.c: Make into a module of its own. Include config.h,
83556         getndelim2.h.
83557         (getndelim2): Make non-static. Change return type to ssize_t.
83558         * lib/getline.h: Change argument names.
83559         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
83560         * lib/getnline.c: Include getndelim2.h.
83561
83562 2003-07-18  Andreas Schwab  <schwab@suse.de>
83563
83564         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
83565
83566 2003-07-17  Karl Berry  <karl@gnu.org>
83567
83568         * config/config.sub: update from prep.
83569
83570 2003-07-17  Bruno Haible  <bruno@clisp.org>
83571
83572         * modules/getnline: New file.
83573         * modules/getline: Add lib/getndelim2.c to source file list.
83574         * MODULES.html.sh (func_all_modules): Add getnline.
83575
83576 2003-07-17  Bruno Haible  <bruno@clisp.org>
83577
83578         * m4/getnline.m4: New file.
83579
83580 2003-07-17  Bruno Haible  <bruno@clisp.org>
83581
83582         * m4/Makefile.am.in: Remove file.
83583         * m4/Makefile.am: Remove file.
83584         * m4/Makefile.in: Remove file.
83585
83586 2003-07-17  Bruno Haible  <bruno@clisp.org>
83587
83588         * lib/getnline.h: New file.
83589         * lib/getnline.c: New file.
83590         * lib/getndelim2.c: New file, extracted from getline.c.
83591         (getndelim2): Renamed from getdelim2, with added nmax argument.
83592         * lib/getline.c: Include getndelim2.c.
83593         (getdelim2): Moved out to getndelim2.c.
83594         (getline, getdelim): Update.
83595
83596 2003-07-17  Bruno Haible  <bruno@clisp.org>
83597
83598         * lib/Makefile.am: Remove file.
83599         * lib/Makefile.in: Remove file.
83600
83601 2003-07-17  Bruno Haible  <bruno@clisp.org>
83602
83603         * configure.in: Remove file.
83604         * Makefile.in: Remove file.
83605
83606 2003-07-17  Bruno Haible  <bruno@clisp.org>
83607
83608         * MODULES.html.sh: Put the </BODY> right before </HTML>.
83609
83610 2003-07-16  Karl Berry  <karl@gnu.org>
83611
83612         * config/srclist-update: was running fixlicense twice, which caused
83613                 texinfo.tex to be nullified for some reason.  Simplify,
83614                 $gplsrc is no longer needed as far as I can see?
83615
83616 2003-07-16  Jim Meyering  <jim@meyering.net>
83617
83618         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
83619
83620 2003-07-15  Paul Eggert  <eggert@twinsun.com>
83621
83622         * config/srclist.txt: Get the following files from gettext-runtime/intl
83623         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
83624         ref-del.sin.  From Bruno Haible.
83625         * config/srclist-update (fixfile): Change grep pattern again, since the
83626         previous fix didn't work (there was another trailing $).  Use
83627         '[$]' to escape the $s.
83628
83629 2003-07-15  Karl Berry  <karl@gnu.org>
83630
83631         * lib/vasnprintf.c: update from gettext.
83632
83633 2003-07-15  Karl Berry  <karl@gnu.org>
83634
83635         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
83636         gets expanded when surrounded by '$'.
83637
83638 2003-07-15  Jim Meyering  <jim@meyering.net>
83639
83640         * modules/save-cwd: Don't depend on error.  From Derek Price.
83641
83642 2003-07-15  Jim Meyering  <jim@meyering.net>
83643
83644         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
83645
83646 2003-07-14  Simon Josefsson  <jas@extundo.com>
83647
83648         * modules/mempcpy: New file.
83649         * MODULES.html.sh (func_all_modules): Add mempcpy.
83650
83651 2003-07-14  Simon Josefsson  <jas@extundo.com>
83652
83653         * m4/mempcpy.m4: New file.
83654
83655 2003-07-14  Simon Josefsson  <jas@extundo.com>
83656
83657         * lib/mempcpy.h: New file.
83658         * lib/mempcpy.c: New file.
83659
83660 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83661
83662         * modules/getdate, modules/posixtm: Depend on mktime.
83663
83664 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83665
83666         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
83667         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
83668         unicodeio.c, unicodeio.h, unlocked-io.h:
83669         Switch from LGPL to GPL.
83670
83671 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83672
83673         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
83674         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
83675         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
83676         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
83677         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
83678         updated automatically by ../config/srclist-update.  This changes
83679         their license from LPGL to GPL.
83680
83681 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83682
83683         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
83684         assumed to refer to the root of the most recent stable gettext version.
83685         * config/srclistvars.sh: Add defaults for eggert.
83686         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
83687         Match "This program" as well as "The program".  This is needed
83688         for gettext.
83689
83690 2003-07-14  Jim Meyering  <jim@meyering.net>
83691
83692         Don't emit diagnostics.  Let callers do that.
83693         * lib/save-cwd.c: Don't include "error.h".
83694         (save_cwd): Don't call error.  Ensure that errno is valid
83695         when returning nonzero.
83696
83697         * lib/save-cwd.h (restore_cwd): Update prototype.
83698         * lib/save-cwd.c (restore_cwd): Remove two parameters.
83699         Simplify.  Don't call error upon failure.  Let callers do that.
83700         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
83701         when auditing is enabled.  But don't bother updating the #if.
83702
83703 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
83704
83705         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
83706         it breaks C++ compilation.
83707         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
83708
83709 2003-07-10  Simon Josefsson  <jas@extundo.com>
83710
83711         * modules/strchrnul (Makefile.am): Add strchrnul.h.
83712
83713 2003-07-10  Jim Meyering  <jim@meyering.net>
83714
83715         * m4/clock_time.m4: Remove trailing blank.
83716         * m4/intmax_t.m4: Likewise.
83717
83718 2003-07-10  Jim Meyering  <jim@meyering.net>
83719
83720         * lib/vasnprintf.c: Remove trailing blanks.
83721         Make cpp indentation consistent.
83722
83723 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83724
83725         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
83726         posixver.c, strftime.c, strnlen.c, strverscmp.c:
83727         Switch from LGPL to GPL.
83728
83729 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83730
83731         * config/srclist.txt: Sort sublists.  Add
83732         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
83733         that differ from gnulib for one reason or another; we'd like this list
83734         to be smaller but for now let's document what we have.
83735
83736 2003-07-08  Paul Eggert  <eggert@twinsun.com>
83737
83738         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
83739         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
83740         and sweeter "eval x=$x".
83741         * config/srclist.txt: Get lib/argp* from glibc.
83742
83743 2003-07-07  Paul Eggert  <eggert@twinsun.com>
83744
83745         * lib/mktime.c: Fix some boundary cases and remove need for floating
83746         point.
83747
83748         Issue a compile-time diagnostic if time_t is floating point, or if
83749         two's complement arithmetic is not in effect, or if arithmetic
83750         right shift does not propagate the sign.  These assumptions were
83751         all in the original code but they weren't checked.
83752
83753         (TIME_T_MIDPOINT, verify): New macros.
83754         (__isleap): Remove; it has integer overflow problems.
83755         (leapyear): New function, without those problems.
83756         (ydhms_tm_diff): Remove; splitting into two parts.
83757         (ydhms_diff): New function, containing the arithmetic part of
83758         the old ydhms_tm_diff function.  Issue a compile-time
83759         diagnostic if we are not using C99 integer division.
83760         Avoid casts when possible.
83761         (guess_time_tm): New function, containing the checking part of
83762         the old ydhms_tm_diff function.  Return the new value, rather than
83763         the difference between it and the old.  Accept a new argument T
83764         so that *T specifies the old value.  Check for overflow in the result.
83765
83766         (__mktime_internal): Use a time_t offset, not a long int offset.
83767         This undoes the 2003-06-04 change, which is no longer needed now
83768         that we have better overflow checking.
83769         (localtime_offset): Likewise.
83770
83771         (__mktime_internal): Avoid harmful overflow on hosts where time_t
83772         and long are 64-bit but int is only 32-bit.
83773         (ydhms_diff): Use long int to store year1 and yday1.
83774         Issue a compile-time diagnostic if long int is not wide enough.
83775
83776         (__mktime_internal): Use long int to store adjusted year and yday.
83777         Use plain C rather than preprocessor commands, if that doesn't
83778         affect efficiency.
83779         Check for overflow (and try to repair) after each probe
83780         rather than checking only at the very end.  This avoids some bugs
83781         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
83782         does not equal GMT offset at maximum time).
83783         Use integer to check for overflow rather than floating point; this
83784         is more portable to non-IEEE hosts, and is a tad faster.
83785         When we detect that we are oscillating between two values,
83786         don't check whether tm_isdst has the requested value, since
83787         we already know the answer.  When tm_isdst has the wrong value,
83788         use a different heuristic to find the right one, based on the
83789         extreme values actually observed in practice in tz2003a,
83790         rather than the (overly optimistic) "previous 3 calendar quarters".
83791
83792         (not_equal_tm, print_tm, check_result): Use "const T" rather than
83793         "T const" to accommodate glibc style.
83794         (check_result): Use less-confusing report format.  "long" -> "long int.
83795         (main): Likewise.
83796         Don't loop if the iteration overflows time_t.
83797         Allow a negative step in the iteration.
83798
83799 2003-07-06  Karl Berry  <karl@gnu.org>
83800
83801         * config/depcomp: update from automake.
83802         * config/config.sub: update from prep.
83803
83804 2003-07-03  Karl Berry  <karl@gnu.org>
83805
83806         * config/config.guess: update from prep.
83807
83808 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83809
83810         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
83811         xreadlink.c now includes it unconditionally.
83812
83813 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83814
83815         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
83816         having it depend on HAVE_SYS_TYPES_H.
83817
83818 2003-07-01  Bruno Haible  <bruno@clisp.org>
83819
83820         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
83821         <sys/types.h> should be sufficient.
83822         Reported by Paul Eggert.
83823
83824 2003-06-26  Karl Berry  <karl@gnu.org>
83825
83826         * config/depcomp: update from automake.
83827
83828 2003-06-26  Bruno Haible  <bruno@clisp.org>
83829
83830         * modules/human: Depend on module stdbool.
83831
83832 2003-06-25  Bruno Haible  <bruno@clisp.org>
83833
83834         * modules/readlink: New file.
83835         * modules/xreadlink: Depend on it.
83836         * MODULES.html.sh (func_all_modules): Add readlink.
83837
83838 2003-06-25  Bruno Haible  <bruno@clisp.org>
83839
83840         * m4/readlink.m4: New file.
83841
83842 2003-06-25  Bruno Haible  <bruno@clisp.org>
83843
83844         * lib/readlink.c: New file.
83845
83846 2003-06-22  Karl Berry  <karl@gnu.org>
83847
83848         * config/srclist.txt: update mkinstalldirs from automake.
83849         * config/mkinstalldirs: update.
83850
83851 2003-06-22  Bruno Haible  <bruno@clisp.org>
83852
83853         Portability to mingw32.
83854         * m4/ssize_t.m4: New file, from GNU gettext.
83855         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
83856         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
83857
83858 2003-06-22  Bruno Haible  <bruno@clisp.org>
83859
83860         * modules/safe-read: Add m4/ssize_t.m4.
83861         * modules/xreadlink: Add m4/ssize_t.m4.
83862
83863 2003-06-20  Bruno Haible  <bruno@clisp.org>
83864
83865         Assume C89, so PARAMS isn't needed.
83866         * lib/unicodeio.h (PARAMS): Remove.
83867         * lib/unicodeio.c: Don't use PARAMS.
83868
83869 2003-06-18  Karl Berry  <karl@gnu.org>
83870
83871         * config/config.{guess,sub}: update from prep.
83872
83873 2003-06-18  Jim Meyering  <jim@meyering.net>
83874
83875         Merge changes from coreutils.
83876         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
83877         Remove explicit declarations of xmalloc and realloc.
83878         Include xalloc.h.
83879         (read_utmp): Remove anachronistic cast of xmalloc.
83880
83881 2003-06-17  Paul Eggert  <eggert@twinsun.com>
83882
83883         Assume C89, so PARAMS isn't needed.
83884         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
83885         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
83886         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
83887         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
83888         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
83889         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
83890         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
83891         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
83892         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
83893         lib/xstrtod.h, lib/xstrtol.h: Likewise.
83894         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
83895         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
83896         no longer needed. Anyway, config.h should always be included before any
83897         other file.
83898
83899 2003-06-11  Simon Josefsson  <jas@extundo.com>
83900
83901         * modules/sysexits: New file.
83902         * MODULES.html.sh (func_all_modules): Add sysexits.
83903
83904 2003-06-11  Simon Josefsson  <jas@extundo.com>
83905
83906         * lib/sysexit_.h: New file.
83907
83908 2003-06-11  Derek Price  <derek@ximbiot.com>
83909
83910         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
83911         necessary.
83912
83913 2003-06-11  Bruno Haible  <bruno@clisp.org>
83914
83915         * m4/sysexits.m4: New file.
83916
83917 2003-06-10  Simon Josefsson  <jas@extundo.com>
83918
83919         * lib/argp.h: New file, from glibc.
83920         * lib/argp-ba.c: New file, from glibc.
83921         * lib/argp-eexst.c: New file, from glibc.
83922         * lib/argp-fmtstream.c: New file, from glibc.
83923         * lib/argp-fmtstream.h: New file, from glibc.
83924         * lib/argp-fs-xinl.c: New file, from glibc.
83925         * lib/argp-help.c: New file, from glibc.
83926         * lib/argp-namefrob.h: New file, from glibc.
83927         * lib/argp-parse.c: New file, from glibc.
83928         * lib/argp-pv.c: New file, from glibc.
83929         * lib/argp-pvh.c: New file, from glibc.
83930         * lib/argp-xinl.c: New file, from glibc.
83931
83932 2003-06-10  Simon Josefsson  <jas@extundo.com>
83933
83934         * modules/strchrnul: New file.
83935
83936 2003-06-10  Simon Josefsson  <jas@extundo.com>
83937
83938         * modules/argp: New file.
83939
83940 2003-06-10  Simon Josefsson  <jas@extundo.com>
83941
83942         * m4/strchrnul.m4: New file.
83943
83944 2003-06-10  Simon Josefsson  <jas@extundo.com>
83945
83946         * lib/strchrnul.h: New file.
83947         * lib/strchrnul.c: New file.
83948
83949 2003-06-10  Bruno Haible  <bruno@clisp.org>
83950
83951         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
83952
83953 2003-06-07  Karl Berry  <karl@gnu.org>
83954
83955         * config/config.{guess,sub}: update from prep.
83956
83957 2003-06-07  Jim Meyering  <jim@meyering.net>
83958
83959         * modules/strtod: Use $(...) notation, not @...@ for
83960         AC_REPLACE'd variables.
83961         * modules/localcharset: Likewise.
83962
83963 2003-06-07  Jim Meyering  <jim@meyering.net>
83964
83965         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
83966         in place of my name in the copyright comment.
83967         Remove definition and uses of __P.
83968
83969         From coreutils.
83970         * lib/stat.c: Don't declare xmalloc explicitly.
83971         Instead, include "xalloc.h".
83972         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
83973         xrealloc, and xcalloc return values.
83974         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
83975         Improve comment.
83976         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
83977
83978 2003-06-07  Bruno Haible  <bruno@clisp.org>
83979
83980         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
83981         avoid AC_CONFIG_LINKS.
83982         * modules/fnmatch (Makefile.am): Use explicit creation rule for
83983         fnmatch.h, to avoid AC_CONFIG_LINKS.
83984         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
83985
83986 2003-06-07  Bruno Haible  <bruno@clisp.org>
83987
83988         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
83989         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
83990         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83991         directory.
83992         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
83993         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83994         directory.
83995
83996 2003-06-06  Jim Meyering  <jim@meyering.net>
83997
83998         Merge from coreutils.
83999         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
84000         Consolidate declarations and initializations of *_base* locals.
84001
84002         Merge from coreutils.
84003         This avoids a core dump on systems without GNU putenv,
84004         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
84005         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
84006         (unsetenv): New static function, from GNU libc.
84007         (rpl_putenv): Use it.
84008
84009         * lib/modechange.c: Remove trailing blanks.
84010
84011         Merge from coreutils.
84012         * lib/fsusage.c: Remove declaration of statfs.
84013         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
84014
84015         * lib/posixtm.c: Include <stdbool.h> unconditionally.
84016
84017 2003-06-06  Jim Meyering  <jim@meyering.net>
84018
84019         * lib/stdbool_.h: Renamed from stdbool.h.in.
84020
84021 2003-06-06  Jim Meyering  <jim@meyering.net>
84022             Bruno Haible  <bruno@clisp.org>
84023
84024         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
84025         Adjust Makefile.am snippet not to redirect directly to target.
84026         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
84027
84028 2003-06-05  Paul Eggert  <eggert@twinsun.com>
84029
84030         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
84031         mismatch, look in future quarters as well as past.  This fixes a
84032         bug when processing fall-backwards gaps immediately after a long
84033         period of daylight-saving time.
84034
84035         * lib/mktime.c: Assume freestanding C89 or better.
84036         (HAVE_LIMITS_H): Remove.  Assume it's 1.
84037         (__P): Remove; not used.
84038         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
84039         (mktime, not_equal_tm, print_tm, check_result,
84040         main): Use prototypes.  Use const * where appropriate.
84041         (main): Fix typo in testing code that uncovered by above changes.
84042         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
84043
84044 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84045
84046         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
84047         locale.h, localeconv.  This merges changes from coreutils.
84048
84049         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
84050         It can be removed after the next Autoconf is released.
84051         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
84052         needed.
84053
84054 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84055
84056         * lib/mktime.c: Fix Debian bug 177940
84057         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
84058         (localtime_offset): Now long int, not time_t, because we want it
84059         to be guaranteed to be signed.  All uses changed.
84060         (__mktime_internal): If overflow would occur when adding offset,
84061         don't add it.
84062
84063         Merge 'human' changes from coreutils.  Rewrite to support
84064         locale-specific notations like thousands separators.
84065         * lib/human.c: Simplify authorship notice.
84066         Include human.h immediately after config.h.
84067         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
84068         <limits.h>: Do not include, since human.h does.
84069         (SIZE_MAX, UINTMAX_MAX): New macros.
84070         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
84071         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
84072         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
84073         (power_letter): Renamed from suffixes.
84074         (generate_suffix_backwards): Remove.
84075         (adjust_value): Now takes int style (because of human.h changes)
84076         and long double value (for greater precision on some platforms).
84077         (group_number): New function.
84078         (human_readable): Use it.  Use integer options, not enum.
84079         Put the options before the sizes in the arg list.
84080         Support all the new options.
84081         The old human_readable function has been removed;
84082         use inttostr.h instead.
84083         (human_readable, default_block_size, humblock):
84084         Use uintmax_t, not int, for block sizes.
84085         (human_readable_inexact, block_size_types): Remove.
84086         (block_size_opts): New constant.
84087         (human_options): Renamed from human_block_size, with new signature
84088         that allows block sizes up to UINTMAX_MAX.  All callers changed.
84089         * lib/human.h: Add copyright and authorship notice.
84090         Include <limits.h> and <stdbool.h> unconditionally.
84091         (PARAMS): Remove.  All uses removed.
84092         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
84093         (enum human_inexact_style): Remove tag; now a nameless enum.
84094         (human_floor, human_ceiling, human_round_to_even): Now have
84095         values 2, 0, 1 rather than -1, 1, 0.
84096         (human_group_digits, human_suppress_point_zero, human_autoscale,
84097         human_base_1024, human_SI, human_B): New constants.
84098         (human_readable_inexact, human_block_size): Remove.
84099         (human_readable): Size args are now uintmax_t, not int.
84100         (human_options): New decl.
84101
84102         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
84103         unnecessary now that we assume C89 or better.  This change
84104         imported from coreutils.
84105
84106         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
84107         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
84108         in the 2003-05-30 sync from glibc.
84109
84110         .h files should stand alone, but we shouldn't include <sys/types.h>
84111         if we can get away with just <stddef.h>.
84112
84113         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
84114         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
84115         rather than <sys/types.h>, as we merely need size_t.
84116         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
84117         to get size_t.
84118         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
84119         Include <stdio.h>, to get FILE.
84120         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
84121         memcasecmp.h has included <stddef.h> and all we need is size_t.
84122         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
84123         our interface, instead of including <sys/types.h>
84124
84125 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84126
84127         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
84128         now, as glibc mktime is buggy on non-glibc systems.
84129
84130 2003-06-03  Karl Berry  <karl@gnu.org>
84131
84132         * config/config.sub: update from prep.
84133
84134 2003-06-02  Paul Eggert  <eggert@twinsun.com>
84135
84136         [from coreutils]
84137         Fix some minor time-related bugs with POSIX time arguments.
84138         Some valid time stamps were being rejected (notably -1, and
84139         time stamps before 1900 on 64-bit hosts).  And some invalid
84140         time stamps were being accepted, e.g. September 31.
84141
84142         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
84143         that we can return (time_t) -1 successfully.
84144         * lib/posixtm.c: Likewise.
84145         [HAVE_STDBOOL_H]: Include <stdbool.h>.
84146         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
84147         (t): Remove static var.
84148         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
84149         of static var.  All uses changed.
84150         (year): Do not reject years before 1900; they can occur with
84151         64-bit time_t.
84152         (posix_time_parse): Do not check for out-of-range components;
84153         that is now the caller's responsibility, since our checks were
84154         only approximations.
84155         (posixtime): Use mktime to check for out-of-range components,
84156         since it knows them exactly.
84157         If mktime returns (time_t) -1, check whether an error actually occurred
84158         by invoking localtime on -1.
84159         (main) [TEST_POSIXTIME]: Check for input data errors, and report
84160         posixtime failures better.
84161         Improve the test data (in comments only).
84162
84163 2003-06-02  Karl Berry  <karl@gnu.org>
84164
84165         * config/mkinstalldirs (version): new variable.
84166         (--version): new option.
84167         (usage): improve message.
84168
84169 2003-05-30  Karl Berry  <karl@gnu.org>
84170
84171         * lib/mktime.c: update from libc.
84172
84173 2003-05-30  Bruno Haible  <bruno@clisp.org>
84174
84175         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
84176         * config/config.rpath: Upgrade to gettext-0.12.1.
84177
84178 2003-05-30  Bruno Haible  <bruno@clisp.org>
84179
84180         * m4/gettext.m4: Upgrade to gettext-0.12.1.
84181         * m4/nls.m4: New file, from gettext-0.12.1.
84182         * m4/po.m4: New file, from gettext-0.12.1.
84183         * m4/progtest.m4: Upgrade to gettext-0.12.1.
84184
84185 2003-05-30  Bruno Haible  <bruno@clisp.org>
84186
84187         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
84188         * lib/localcharset.h: Likewise.
84189         * lib/localcharset.c: Likewise.
84190
84191 2003-05-29  Karl Berry  <karl@gnu.org>
84192
84193         * config/config.rpath: update from gettext.
84194
84195 2003-05-28  Paul Eggert  <eggert@twinsun.com>
84196
84197         Assume the headers required for C89 freestanding compilers.
84198         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
84199         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
84200         * m4/human.m4 (gl_HUMAN): Likewise.
84201         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
84202         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
84203         * m4/userspec.m4 (gl_USERSPEC): Likewise.
84204         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
84205         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
84206         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
84207
84208 2003-05-28  Paul Eggert  <eggert@twinsun.com>
84209
84210         Assume the headers required for C89 freestanding compilers.
84211         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
84212         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
84213         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
84214         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
84215         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
84216         define, since <limits.h> is guaranteed to do that.
84217         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
84218         * lib/exclude.c: Include <stdbool.h> unconditionally.
84219         * lib/tempname.c: Include <stddef.h> unconditionally.
84220         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
84221         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
84222         <stddef.h> does that.
84223         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
84224         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
84225         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
84226         needed.
84227         * lib/xstrtol.c: Likewise.
84228         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
84229         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
84230
84231         * lib/addext.c (addext): Use assignment rather than cast, to avoid
84232         warnings on some platforms.
84233
84234         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
84235         arbitrarily.
84236
84237 2003-05-26  Jim Meyering  <jim@meyering.net>
84238
84239         Merge in a change from coreutils:
84240         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
84241         that is guaranteed to be `no'.  Use `no_such_member' to indicate
84242         that condition, rather than `-1' which is slightly misleading.
84243         Change the name of the cache variable to have the gl_ prefix.
84244         Prompted by a patch from Richard Dawe for DJGPP.
84245
84246 2003-05-24  Karl Berry  <karl@gnu.org>
84247
84248         * config/config.guess: update from prep.
84249
84250 2003-05-22  Karl Berry  <karl@gnu.org>
84251
84252         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
84253
84254 2003-05-20  Karl Berry  <karl@gnu.org>
84255
84256         * config/config.guess: update from prep.
84257
84258 2003-05-18  Karl Berry  <karl@gnu.org>
84259
84260         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
84261         might actually be set by the user.
84262
84263         * config/depcomp, install-sh, mdate-sh: update from automake.
84264
84265 2003-05-17  Bruno Haible  <bruno@clisp.org>
84266
84267         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
84268         invalid expansion for AC_EGREP_CPP.
84269         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
84270         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
84271         Suggested by Akim Demaille <akim@epita.fr> in
84272         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
84273
84274 2003-05-12  Jim Meyering  <jim@meyering.net>
84275
84276         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
84277         the space-padded-by-default conversion specifiers, %e, %k, %l.
84278
84279 2003-05-12  Bruno Haible  <bruno@clisp.org>
84280
84281         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
84282         the string is longer than 4 KB.
84283
84284 2003-05-11  Karl Berry  <karl@gnu.org>
84285
84286         * config/config.{guess,sub}: update from prep.
84287
84288 2003-05-09  Bruno Haible  <bruno@clisp.org>
84289
84290         * modules/error: Add m4/strerror_r.m4 to file list.
84291
84292 2003-05-03  Bruno Haible  <bruno@clisp.org>
84293
84294         Upgrade to Unicode-4.0.
84295         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
84296         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
84297         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
84298         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
84299         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
84300         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
84301         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
84302         Change width of U+E0100..U+E01EF from 1 to 0.
84303
84304 2003-04-25  Jim Meyering  <jim@meyering.net>
84305
84306         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
84307         of type size_t, not int.
84308
84309 2003-04-25  Bruno Haible  <bruno@clisp.org>
84310
84311         * lib/copy-file.c: Include <stddef.h>, for size_t.
84312
84313 2003-04-21  Paul Eggert  <eggert@twinsun.com>
84314
84315         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
84316         code which expansion is under static control.  Patch imported from
84317         Akim Demaille's patch to Bison; see
84318         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
84319
84320 2003-04-14  Bruno Haible  <bruno@clisp.org>
84321
84322         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
84323
84324 2003-04-11  Jim Meyering  <jim@meyering.net>
84325
84326         Merge changes from Coreutils.
84327
84328         2003-03-22  Jim Meyering  <jim@meyering.net>
84329
84330         * lib/strftime.c (widen): Cast alloca return value to proper type.
84331
84332         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
84333
84334         From GNU libc.
84335         * lib/strftime.c (my_strftime): Handle very large width
84336         specifications for numeric values correctly.  Improve checks for
84337         overflow.
84338
84339         2003-01-19  Jim Meyering  <jim@meyering.net>
84340
84341         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
84342         definitions.
84343         (nl_get_alt_digit) [! defined my_strftime]: Define.
84344         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
84345         _nl_get_alt_digit and _nl_get_walt_digit.
84346
84347         * lib/strftime.c (my_strftime): Merge in locale-related changes from
84348         libc. These changes have no effect outside of _LIBC.
84349
84350 2003-04-10  Bruno Haible  <bruno@clisp.org>
84351
84352         * modules/findprog: New file.
84353         * MODULES.html.sh (func_all_modules): Add it.
84354
84355 2003-04-10  Bruno Haible  <bruno@clisp.org>
84356
84357         * m4/findprog.m4: New file.
84358         * m4/eaccess.m4: New file.
84359
84360 2003-04-10  Bruno Haible  <bruno@clisp.org>
84361
84362         * lib/findprog.h: New file, from GNU gettext.
84363         * lib/findprog.c: New file, from GNU gettext.
84364
84365 2003-04-05  Jim Meyering  <jim@meyering.net>
84366
84367         Merge changes from Coreutils.
84368
84369         * lib/exclude.h (PARAMS): Remove definition and uses.
84370         * lib/exclude.c: Remove uses of `PARAMS'.
84371
84372         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
84373         Add test-cases for DOS filenames. Declare program_name.
84374         (main): Set up program_name.  Patch by Rich Dawe.
84375
84376         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
84377         error from mntctl.
84378         Use mntctl's return value to drive the entry-processing loop, since
84379         we can't rely on the value of the vmt_length member in the last
84380         entry.  On some systems doing so could result in exhausting
84381         virtual memory.  Based in part on a patch from Mike Jetzer.
84382
84383 2003-04-04  Bruno Haible  <bruno@clisp.org>
84384
84385         * modules/linebreak: New file.
84386         * MODULES.html.sh (func_all_modules): Add it.
84387
84388 2003-04-04  Bruno Haible  <bruno@clisp.org>
84389
84390         * m4/linebreak.m4: New file.
84391
84392 2003-04-04  Bruno Haible  <bruno@clisp.org>
84393
84394         * lib/linebreak.h: New file, from GNU gettext.
84395         * lib/linebreak.c: New file, from GNU gettext with slight
84396         modifications.
84397         * lib/lbrkprop.h: New file, from GNU gettext.
84398
84399 2003-04-03  Bruno Haible  <bruno@clisp.org>
84400
84401         * modules/utf8-ucs4: New file.
84402         * modules/utf16-ucs4: New file.
84403         * modules/ucs4-utf8: New file.
84404         * modules/ucs4-utf16: New file.
84405         * MODULES.html.sh (func_all_modules): Add them.
84406
84407 2003-04-03  Bruno Haible  <bruno@clisp.org>
84408
84409         * m4/utf-ucs4.m4: New file.
84410         * m4/ucs4-utf.m4: New file.
84411
84412 2003-04-03  Bruno Haible  <bruno@clisp.org>
84413
84414         * lib/utf8-ucs4.h: New file, from GNU gettext.
84415         * lib/utf16-ucs4.h: New file, from GNU gettext.
84416         * lib/ucs4-utf8.h: New file, from GNU gettext.
84417         * lib/ucs4-utf16.h: New file, from GNU gettext.
84418
84419 2003-04-02  Bruno Haible  <bruno@clisp.org>
84420
84421         * modules/binary-io: New file.
84422         * MODULES.html.sh (func_all_modules): Add it.
84423
84424 2003-04-02  Bruno Haible  <bruno@clisp.org>
84425
84426         * lib/binary-io.h: New file, from GNU gettext.
84427
84428 2003-04-01  Bruno Haible  <bruno@clisp.org>
84429
84430         * modules/pathname: New file.
84431         * MODULES.html.sh (func_all_modules): Add it.
84432
84433 2003-04-01  Bruno Haible  <bruno@clisp.org>
84434
84435         * lib/pathname.h: New file, from GNU gettext.
84436         * lib/concatpath.c: New file, from GNU gettext.
84437
84438 2003-03-30  Bruno Haible  <bruno@clisp.org>
84439
84440         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
84441
84442 2003-03-30  Bruno Haible  <bruno@clisp.org>
84443
84444         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
84445         function chown() doesn't exist.
84446
84447 2003-03-28  Bruno Haible  <bruno@clisp.org>
84448
84449         * modules/copy-file: New file.
84450         * MODULES.html.sh (func_all_modules): Add it.
84451
84452 2003-03-28  Bruno Haible  <bruno@clisp.org>
84453
84454         * m4/copy-file.m4: New file.
84455
84456 2003-03-28  Bruno Haible  <bruno@clisp.org>
84457
84458         * lib/copy-file.h: New file, from GNU gettext.
84459         * lib/copy-file.c: New file, from GNU gettext.
84460
84461 2003-03-18  Jim Meyering  <jim@meyering.net>
84462
84463         * lib/quote.c (quote_n): Fix typo in comment.
84464
84465 2003-03-18  Bruno Haible  <bruno@clisp.org>
84466
84467         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
84468         checking.
84469         * m4/onceonly_2_57.m4: Likewise.
84470
84471 2003-03-17  Bruno Haible  <bruno@clisp.org>
84472
84473         * m4/onceonly.m4: Require autoconf 2.54 or newer.
84474         (m4_quote): Remove macro.
84475         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
84476
84477 2003-03-14  Jim Meyering  <jim@meyering.net>
84478
84479         Merge changes from Coreutils.
84480         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
84481         to be const, in order to avoid warnings.
84482         (obstack_room): Likewise.
84483         (obstack_empty_p): Likewise.
84484
84485 2003-03-14  Bruno Haible  <bruno@clisp.org>
84486
84487         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
84488         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
84489
84490 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84491
84492         Merge changes from Bison.
84493         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
84494         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
84495         when compiling Bison 1.875's `bitset bset = obstack_alloc
84496         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
84497         * lib/hash.c: Include <stdbool.h> unconditionally.
84498
84499 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84500
84501         * m4/onceonly.m4 (m4_quote): New macro.
84502         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
84503         Quote AC_FOREACH variable-expansions properly.
84504
84505 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84506
84507         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
84508
84509 2003-03-09  Paul Eggert  <eggert@twinsun.com>
84510
84511         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
84512         Reported by Bruce Becker; see:
84513         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
84514
84515 2003-03-03  Paul Eggert  <eggert@twinsun.com>
84516             Bruno Haible  <bruno@clisp.org>
84517
84518         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
84519         Reported by John Hughes, see
84520         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
84521
84522 2003-02-20  Bruno Haible  <bruno@clisp.org>
84523
84524         * MODULES.html.sh (func_all_modules): Add poll.
84525
84526 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84527
84528         * modules/poll: New file.
84529
84530 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84531
84532         * lib/poll_.h: New file.
84533         * lib/poll.c: New file.
84534
84535 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84536
84537         * m4/poll.m4: New file.
84538
84539 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84540
84541         * modules/mathl: New file.
84542
84543 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84544
84545         * lib/mathl.h: New file.
84546         * lib/acosl.c: New file.
84547         * lib/asinl.c: New file.
84548         * lib/atanl.c: New file.
84549         * lib/ceill.c: New file.
84550         * lib/cosl.c: New file.
84551         * lib/expl.c: New file.
84552         * lib/floorl.c: New file.
84553         * lib/frexpl.c: New file.
84554         * lib/ldexpl.c: New file.
84555         * lib/logl.c: New file.
84556         * lib/sincosl.c: New file.
84557         * lib/sinl.c: New file.
84558         * lib/sqrtl.c: New file.
84559         * lib/tanl.c: New file.
84560         * lib/trigl.c: New file.
84561         * lib/trigl.h: New file.
84562
84563 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84564
84565         * m4/mathl.m4: New file.
84566
84567 2003-02-18  Bruno Haible  <bruno@clisp.org>
84568
84569         * MODULES.html.sh (func_all_modules): Add mathl.
84570
84571 2003-02-17  Bruno Haible  <bruno@clisp.org>
84572
84573         * modules/mkdtemp: New module.
84574         * MODULES.html.sh (func_all_modules): Add it.
84575
84576 2003-02-17  Bruno Haible  <bruno@clisp.org>
84577
84578         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
84579
84580 2003-02-17  Bruno Haible  <bruno@clisp.org>
84581
84582         * lib/mkdtemp.h: New file, from GNU gettext.
84583         * lib/mkdtemp.c: New file, from GNU gettext.
84584
84585 2003-02-02  Jim Meyering  <jim@meyering.net>
84586
84587         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
84588         e.g. glibc-2.2.93.
84589
84590 2003-01-31  Bruno Haible  <bruno@clisp.org>
84591
84592         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
84593         'rpl_rename'.
84594         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
84595         'rpl_strnlen'.
84596         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
84597         'rpl_strtod'.
84598         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
84599         'rpl_utime'.
84600
84601 2003-01-31  Bruno Haible  <bruno@clisp.org>
84602
84603         * lib/rename.c: #undef rename before defining rpl_rename.
84604         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
84605
84606 2003-01-30  Bruno Haible  <bruno@clisp.org>
84607
84608         * modules/vasnprintf, modules/vasprintf: New modules.
84609         * MODULES.html.sh (func_all_modules): Add them.
84610
84611 2003-01-30  Bruno Haible  <bruno@clisp.org>
84612
84613         * m4/signed.m4: New file, from GNU gettext.
84614         * m4/longdouble.m4: New file, from GNU gettext.
84615         * m4/wchar_t.m4: New file, from GNU gettext.
84616         * m4/wint_t.m4: New file, from GNU gettext.
84617         * m4/vasnprintf.m4: New file.
84618         * m4/vasprintf.m4: New file.
84619
84620 2003-01-30  Bruno Haible  <bruno@clisp.org>
84621
84622         * lib/printf-args.h: New file, from GNU gettext.
84623         * lib/printf-args.c: New file, from GNU gettext.
84624         * lib/printf-parse.h: New file, from GNU gettext.
84625         * lib/printf-parse.c: New file, from GNU gettext.
84626         * lib/vasnprintf.h: New file, from GNU gettext.
84627         * lib/vasnprintf.c: New file, from GNU gettext.
84628         * lib/asnprintf.c: New file, from GNU gettext.
84629         * lib/vasprintf.h: New file, from GNU gettext with modifications.
84630         * lib/vasprintf.c: New file, from GNU gettext.
84631         * lib/asprintf.c: New file, from GNU gettext.
84632
84633 2003-01-29  Bruno Haible  <bruno@clisp.org>
84634
84635         * modules/stpncpy: New module.
84636         * MODULES.html.sh (func_all_modules): Add it.
84637
84638 2003-01-29  Bruno Haible  <bruno@clisp.org>
84639
84640         * m4/stpncpy.m4: New file.
84641
84642 2003-01-29  Bruno Haible  <bruno@clisp.org>
84643
84644         * lib/stpncpy.h: New file, from GNU gettext with modifications.
84645         * lib/stpncpy.c: New file, from GNU gettext with modifications.
84646
84647 2003-01-28  Bruno Haible  <bruno@clisp.org>
84648
84649         * modules/c-ctype: New module.
84650         * MODULES.html.sh (func_all_modules): Add it.
84651
84652 2003-01-28  Bruno Haible  <bruno@clisp.org>
84653
84654         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
84655         Paul Eggert.
84656         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
84657         Paul Eggert.
84658
84659 2003-01-27  Bruno Haible  <bruno@clisp.org>
84660
84661         * modules/xsetenv: New module.
84662         * MODULES.html.sh (func_all_modules): Add it.
84663
84664 2003-01-27  Bruno Haible  <bruno@clisp.org>
84665
84666         * lib/xsetenv.h: New file, from GNU gettext.
84667         * lib/xsetenv.c: New file, from GNU gettext.
84668
84669 2003-01-23  Jim Meyering  <jim@meyering.net>
84670
84671         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
84672         from working on systems without dirfd (at least Irix and OSF1/Tru64).
84673
84674 2003-01-23  Bruno Haible  <bruno@clisp.org>
84675
84676         * modules/minmax: New module.
84677         * MODULES.html.sh (func_all_modules): Add it.
84678
84679 2003-01-23  Bruno Haible  <bruno@clisp.org>
84680
84681         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
84682         Eggert.
84683
84684 2003-01-22  Bruno Haible  <bruno@clisp.org>
84685
84686         * modules/exit: New module.
84687         * MODULES.html.sh (func_all_modules): Add it.
84688
84689 2003-01-22  Bruno Haible  <bruno@clisp.org>
84690
84691         * lib/exit.h: New file, from GNU gettext.
84692
84693 2003-01-19  Bruno Haible  <bruno@clisp.org>
84694
84695         * gnulib-tool: Recognize option --extract-maintainer.
84696         (func_get_maintainer): New function.
84697         * modules/*: Add Maintainer entry.
84698
84699 2003-01-16  Jim Meyering  <jim@meyering.net>
84700
84701         * m4/regex.m4: The `regex' struct is both input and output.
84702         Initialize it before each use.  Patch by Tim Waugh.
84703
84704 2003-01-16  Bruno Haible  <bruno@clisp.org>
84705
84706         * MODULES.html.sh: Add a table of contents. Add the module name as
84707         leftmost column. Add hyperlinks.
84708
84709 2003-01-15  Bruno Haible  <bruno@clisp.org>
84710
84711         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
84712
84713 2003-01-15  Bruno Haible  <bruno@clisp.org>
84714
84715         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
84716         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
84717         suffix.
84718
84719 2003-01-15  Bruno Haible  <bruno@clisp.org>
84720
84721         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
84722
84723 2003-01-15  Bruno Haible  <bruno@clisp.org>
84724
84725         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
84726         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
84727
84728 2003-01-14  Jim Meyering  <jim@meyering.net>
84729
84730         * lib/same.c (same_name): Tweak a comment.
84731
84732 2003-01-14  Bruno Haible  <bruno@clisp.org>
84733
84734         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
84735         when a string comparison is sufficient.
84736
84737 2003-01-14  Bruno Haible  <bruno@clisp.org>
84738
84739         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
84740         'unsigned int'.
84741
84742 2003-01-14  Bruno Haible  <bruno@clisp.org>
84743
84744         * lib/hash-pjw.c: Add comment about low quality of this function.
84745
84746 2003-01-13  Bruno Haible  <bruno@clisp.org>
84747
84748         * modules/stpcpy: Distribute lib/stpcpy.h.
84749         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
84750
84751 2003-01-13  Bruno Haible  <bruno@clisp.org>
84752
84753         * modules/*: Add a description.
84754         * modules/strpbrk: Fix Makefile.am snippet.
84755         * modules/strtoimax: Fix dependencies.
84756         * modules/strtoumax: Likewise.
84757
84758 2003-01-13  Bruno Haible  <bruno@clisp.org>
84759
84760         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
84761         * modules/alloca (Makefile.am): All object files depend on alloca.h.
84762         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
84763
84764 2003-01-13  Bruno Haible  <bruno@clisp.org>
84765
84766         * gnulib-tool (func_create_testdir): Store config/* files in the main
84767         directory.
84768         * config.rpath: Move to ...
84769         * config/config.rpath: ... here.
84770         * modules/gettext: Contains config/config.rpath, not config.rpath.
84771         * modules/iconv: Likewise.
84772
84773 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84774
84775         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84776         to avoid collisions with libcurses and libreadline.
84777
84778         * m4/getstr.m4: Remove.
84779         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
84780
84781 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84782
84783         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84784         to avoid collisions with libcurses and libreadline.
84785
84786         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
84787         * lib/getstr.h, getstr.c: Remove.
84788         * lib/getline.c: Include "getline.h", to check interface.
84789         Move body of old getstr.c here: this defines MIN_CHUNK and
84790         declares getdelim2, which is renamed from getstr.
84791         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
84792
84793         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
84794         All uses changed.
84795         * lib/linebuffer.h: Likewise.
84796         (readline): Remove backward-compatibility macro.
84797
84798 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84799
84800         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84801         to avoid collisions with libcurses and libreadline.
84802         * getstr: Remove.
84803         * MODULES.html.sh: Remove getstr.
84804         * modules/getline: Depend on unlocked-io, not getstr.
84805
84806 2003-01-12  Jim Meyering  <jim@meyering.net>
84807
84808         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
84809
84810 2003-01-10  Bruno Haible  <bruno@clisp.org>
84811
84812         * modules/alloca: Change Makefile.am requirements. Simplify Include
84813         requirements. Add lib/alloca_.h to file list.
84814
84815 2003-01-10  Bruno Haible  <bruno@clisp.org>
84816
84817         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
84818
84819 2003-01-10  Bruno Haible  <bruno@clisp.org>
84820
84821         * lib/alloca_.h: New file.
84822         * lib/getdate.y: Unconditionally include alloca.h.
84823         * lib/makepath.c: Likewise.
84824         * lib/setenv.c: Likewise.
84825         * lib/userspec.c: Likewise.
84826
84827 2003-01-09  Karl Berry  <karl@gnu.org>
84828
84829         * MODULES.html.sh: include `dirname $0` in PATH, to find
84830         gnulib-tool.
84831
84832 2003-01-09  Bruno Haible  <bruno@clisp.org>
84833
84834         * modules/stdbool: Change configure.ac, Makefile.am requirements.
84835         Simplify Include requirements. Add lib/stdbool.h.in to file list.
84836
84837 2003-01-09  Bruno Haible  <bruno@clisp.org>
84838
84839         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
84840
84841 2003-01-09  Bruno Haible  <bruno@clisp.org>
84842
84843         * lib/stdbool.h.in: New file.
84844
84845 2003-01-09  Bruno Haible  <bruno@clisp.org>
84846
84847         * gnulib-tool (func_all_modules): Ignore files ending in ~.
84848         * MODULES.html.sh: Likewise.
84849
84850 2003-01-08  Jim Meyering  <jim@meyering.net>
84851
84852         * lib/full-write.c: Undefine and define-away `const' after inclusion
84853         of errno.h, not before.  Suggestion from Bruno Haible.
84854
84855 2003-01-08  Bruno Haible  <bruno@clisp.org>
84856
84857         * modules/full-read: Depend on full-write.
84858
84859 2003-01-08  Bruno Haible  <bruno@clisp.org>
84860
84861         * lib/safe-read.c: Include specification header first, to ensure its
84862         selfcontainedness.
84863         * lib/full-write.c: Likewise.
84864
84865 2003-01-07  Jim Meyering  <jim@meyering.net>
84866
84867         * lib/full-write.c: Rework so that it may serve to define full_read,
84868         too.
84869         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
84870
84871 2003-01-07  Bruno Haible  <bruno@clisp.org>
84872
84873         * lib/strtoimax.c: Include <stdint.h> as an alternative to
84874         <inttypes.h>.
84875         * lib/xstrtol.h: Likewise.
84876         * lib/xstrtoimax.c: Likewise.
84877         * lib/xstrtoumax.c: Likewise.
84878         * lib/human.h: Likewise.
84879
84880         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
84881         on systems that have <inttypes.h> but not <stdint.h>.
84882
84883 2003-01-07  Bruno Haible  <bruno@clisp.org>
84884
84885         * MODULES.html.sh: Add copyright notice.
84886         (missed_files): Omit CVS directory entries.
84887         (func_module): Make it work with sed-3.02.
84888         * MODULES.txt: Remove file.
84889
84890 2003-01-06  Jim Meyering  <jim@meyering.net>
84891
84892         * lib/version-etc.c: Update year in translatable copyright string.
84893
84894 2003-01-03  Karl Berry  <karl@gnu.org>
84895
84896         * config/config.{guess,sub}: update from prep.
84897
84898 2003-01-02  Karl Berry  <karl@gnu.org>
84899
84900         * doc/COPYING.DOC: belatedly updated to 1.2.
84901
84902 2003-01-01  Karl Berry  <karl@gnu.org>
84903
84904         * gnulib-tool (func_verify_module): report module name $module in
84905         error message, not $1.
84906         * gnulib-tool (create-testdir): don't complain if destdir couldn't
84907         be created, only if it doesn't exist.
84908         * gnulib-tool (last_checkin_date): don't expand the $Date here.
84909
84910 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84911
84912         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
84913
84914 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84915
84916         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
84917         memcmp if strcoll doesn't work.
84918
84919 2002-12-31  Bruno Haible  <bruno@clisp.org>
84920
84921         * lib/utime.c (utime_null): No need to call ftruncate if the file was
84922         nonempty.
84923
84924 2002-12-31  Bruno Haible  <bruno@clisp.org>
84925
84926         * lib/memcoll.c (STRCOLL): New macro.
84927         (memcoll): Use it.
84928
84929 2002-12-31  Bruno Haible  <bruno@clisp.org>
84930
84931         * lib/localcharset.h: New file.
84932         * lib/localcharset.c: Include it.
84933         * lib/unicodeio.c: Likewise.
84934
84935 2002-12-31  Bruno Haible  <bruno@clisp.org>
84936
84937         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
84938         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
84939
84940 2002-12-31  Bruno Haible  <bruno@clisp.org>
84941
84942         * lib/getline.h: Include <stddef.h>, for size_t.
84943
84944         * lib/unicodeio.h: Include <stddef.h>, for size_t.
84945         * lib/unicodeio.c: Don't include <stddef.h>.
84946
84947 2002-12-31  Bruno Haible  <bruno@clisp.org>
84948
84949         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
84950         HAVE_TM_ZONE.
84951
84952 2002-12-24  Karl Berry  <karl@gnu.org>
84953
84954         * config/config.guess: update from prep.
84955
84956 2002-12-24  Bruno Haible  <bruno@clisp.org>
84957
84958         General infrasructure.
84959         * m4/README: Rewritten.
84960         * m4/onceonly.m4: New file.
84961         * m4/onceonly_2_57.m4: New file.
84962
84963         Module atexit.
84964         * m4/atexit.m4: New file.
84965
84966         Module strtod.
84967         * m4/strtod.m4: New file.
84968
84969         Module strtol.
84970         * m4/strtol.m4: New file.
84971
84972         Module strtoul.
84973         * m4/strtoul.m4: New file.
84974
84975         Module memchr.
84976         * m4/memchr.m4: New file.
84977
84978         Module memcmp.
84979         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
84980         (jm_FUNC_MEMCMP): Invoke it.
84981
84982         Module memcpy.
84983         * m4/memcpy.m4: New file.
84984
84985         Module memmove.
84986         * m4/memmove.m4: New file.
84987
84988         Module memset.
84989         * m4/memset.m4: New file.
84990
84991         Module strcspn.
84992         * m4/strcspn.m4: New file.
84993
84994         Module strpbrk.
84995         * m4/strpbrk.m4: New file.
84996
84997         Module strstr.
84998         * m4/strstr.m4: New file.
84999
85000         Module strerror.
85001         * m4/strerror.m4: New file.
85002
85003         Module mktime.
85004         * m4/mktime.m4: Renamed from jm-mktime.m4.
85005         (gl_PREREQ_MKTIME): New macro.
85006         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
85007
85008         Module malloc.
85009         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
85010         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
85011         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
85012
85013         Module realloc.
85014         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
85015         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
85016         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
85017
85018         Module strftime.
85019         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
85020         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
85021         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
85022         gl_TM_GMTOFF.
85023         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
85024
85025         Module xalloc.
85026         * m4/xalloc.m4: New file.
85027
85028         Module alloca.
85029         * m4/alloca.m4: New file.
85030
85031         Module putenv.
85032         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
85033         (jm_FUNC_PUTENV): Invoke it.
85034
85035         Module setenv.
85036         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
85037         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
85038         when invoked twice.
85039         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
85040         gt_FUNC_SETENV.
85041
85042         Module memrchr.
85043         * m4/memrchr.m4: New file.
85044
85045         Module stpcpy.
85046         * m4/stpcpy.m4: New file.
85047
85048         Module strcase.
85049         * m4/strcase.m4: New file.
85050
85051         Module strdup.
85052         * m4/strdup.m4: New file.
85053
85054         Module strnlen.
85055         * m4/strnlen.m4: New file.
85056
85057         Module strndup.
85058         * m4/strndup.m4: New file.
85059
85060         Module xstrtod.
85061         * m4/xstrtod.m4: New file.
85062
85063         Module xstrtol.
85064         * m4/xstrtol.m4: New file.
85065
85066         Module getdate.
85067         * m4/getdate.m4: New file.
85068
85069         Module unlocked-io.
85070         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
85071         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
85072         * m4/jm-glibc-io.m4n: Remove file.
85073
85074         Module long-options.
85075         * m4/long-options.m4: New file.
85076
85077         Module md5.
85078         * m4/md5.m4: New file.
85079
85080         Module sha.
85081         * m4/sha.m4: New file.
85082
85083         Module getstr.
85084         * m4/getstr.m4: New file.
85085
85086         Module getline.
85087         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
85088         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
85089         <sys/types.h>, for size_t. Use the function name gnu_getline, not
85090         simply getline. Infoke gl_PREREQ_GETLINE.
85091
85092         Module obstack.
85093         * m4/obstack.m4: New file.
85094
85095         Module hash.
85096         * m4/hash.m4: New file.
85097
85098         Module readtokens.
85099         * m4/readtokens.m4: New file.
85100
85101         Module strverscmp.
85102         * m4/strverscmp.m4: New file.
85103
85104         Module stdbool.
85105         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
85106         OSF/1.
85107
85108         Module strtoll.
85109         * m4/strtoll.m4: New file.
85110
85111         Module strtoull.
85112         * m4/strtoull.m4: New file.
85113
85114         Module strtoimax.
85115         * m4/strtoimax.m4: New file.
85116
85117         Module strtoumax.
85118         * m4/strtoumax.m4: New file.
85119
85120         Module xstrtoimax.
85121         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
85122         jm_AC_PREREQ_XSTRTOIMAX.
85123         Moved the strtol prerequisites to strtol.m4.
85124         Moved the strtoll prerequisites to strtoll.m4.
85125         Moved the strtoimax prerequisites to strtoimax.m4.
85126
85127         Module xstrtoumax.
85128         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
85129         jm_AC_PREREQ_XSTRTOUMAX.
85130         Moved the strtoul prerequisites to strtoul.m4.
85131         Moved the strtoull prerequisites to strtoull.m4.
85132         Moved the strtoumax prerequisites to strtoumax.m4.
85133
85134         Module chown.
85135         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
85136         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
85137
85138         Module dup2.
85139         * m4/dup2.m4: New file.
85140
85141         Module ftruncate.
85142         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
85143         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
85144
85145         Module getgroups.
85146         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
85147         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
85148
85149         Module gettimeofday.
85150         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
85151         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
85152         gl_PREREQ_GETTIMEOFDAY.
85153
85154         Module mkdir.
85155         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
85156         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
85157
85158         Module mkstemp.
85159         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
85160         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
85161         jm_AC_TYPE_UINTMAX_T.
85162         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
85163
85164         Module stat.
85165         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
85166         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
85167
85168         Module lstat.
85169         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
85170         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
85171
85172         Module timespec.
85173         * m4/timespec.m4 (gl_TIMESPEC): New macro.
85174         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
85175         * m4/st_mtim.m4: Indentation.
85176
85177         Module nanosleep.
85178         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
85179         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
85180         gl_PREREQ_NANOSLEEP.
85181
85182         Module regex.
85183         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
85184         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
85185         (gl_REGEX): New macro.
85186
85187         Module rename.
85188         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
85189         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
85190
85191         Module rmdir.
85192         * m4/rmdir.m4: New file.
85193
85194         Module utime.
85195         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
85196         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
85197         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
85198
85199         Module dirname.
85200         * m4/dirname.m4: New file.
85201
85202         Module getopt.
85203         * m4/getopt.m4: New file.
85204
85205         Module unistd-safer.
85206         * m4/unistd-safer.m4: New file.
85207
85208         Module fnmatch.
85209         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
85210         declaration.
85211         (gl_PREREQ_FNMATCH_EXTRA): New macro.
85212         (gl_FUNC_FNMATCH_POSIX): New macro.
85213         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
85214         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
85215         simply fnmatch.
85216
85217         Module exclude.
85218         * m4/exclude.m4: New file.
85219
85220         Module human.
85221         * m4/human.m4: New file.
85222
85223         Module acl.
85224         * m4/acl.m4: Nop.
85225
85226         Module backupfile.
85227         * m4/backupfile.m4: New file.
85228         * m4/d-ino.m4: Indentation.
85229
85230         Module fsusage.
85231         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
85232         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
85233         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
85234
85235         Module dirfd.
85236         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
85237         requirements.
85238
85239         Module euidaccess.
85240         * m4/euidaccess.m4: New file.
85241
85242         Module file-type.
85243         * m4/file-type.m4: New file.
85244
85245         Module fileblocks.
85246         * m4/fileblocks.m4: New file.
85247
85248         Module filemode.
85249         * m4/filemode.m4: New file.
85250
85251         Module isdir.
85252         * m4/isdir.m4: New file.
85253
85254         Module lchown.
85255         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
85256         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
85257
85258         Module makepath.
85259         * m4/makepath.m4: New file.
85260
85261         Module modechange.
85262         * m4/modechange.m4: New file.
85263
85264         Module mountlist.
85265         * m4/mountlist.m4: New file.
85266         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
85267         Indentation.
85268
85269         Module path-concat.
85270         * m4/path-concat.m4: New file.
85271
85272         Module pathmax.
85273         * m4/pathmax.m4: New file.
85274
85275         Module same.
85276         * m4/same.m4: New file.
85277
85278         Module save-cwd.
85279         * m4/save-cwd.m4: New file.
85280
85281         Module savedir.
85282         * m4/savedir.m4: New file.
85283
85284         Module xgetcwd.
85285         * m4/xgetcwd.m4: New file.
85286         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
85287
85288         Module xreadlink.
85289         * m4/xreadlink.m4: New file.
85290
85291         Module safe-read.
85292         * m4/safe-read.m4: New file.
85293
85294         Module safe-write.
85295         * m4/safe-write.m4: New file.
85296
85297         Module closeout.
85298         * m4/closeout.m4: New file.
85299
85300         Module stdio-safer.
85301         * m4/stdio-safer.m4: New file.
85302
85303         Module getpass.
85304         * m4/getpass.m4: New file.
85305
85306         Module getugroups.
85307         * m4/getugroups.m4: New file.
85308
85309         Module group-member.
85310         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
85311         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
85312
85313         Module idcache.
85314         * m4/idcache.m4: New file.
85315
85316         Module userspec.
85317         * m4/userspec.m4: New file.
85318
85319         Module gettime.
85320         * m4/clock_time.m4: New file.
85321         * m4/gettime.m4: New file.
85322
85323         Module settime.
85324         * m4/settime.m4: New file.
85325
85326         Module posixtm.
85327         * m4/posixtm.m4: New file.
85328
85329         Module gethostname.
85330         * m4/gethostname.m4: New file.
85331
85332         Module canon-host.
85333         * m4/canon-host.m4: New file.
85334
85335         Module gettext.
85336         * m4/codeset.m4: New file, from gettext-0.11.5.
85337         * m4/gettext.m4: New file, from gettext-0.11.5.
85338         * m4/glibc21.m4: New file, from gettext-0.11.5.
85339         * m4/iconv.m4: New file, from gettext-0.11.5.
85340         * m4/intdiv0.m4: New file, from gettext-0.11.5.
85341         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
85342         * m4/inttypes.m4: New file, from gettext-0.11.5.
85343         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
85344         * m4/isc-posix.m4: New file, from gettext-0.11.5.
85345         * m4/lcmessage.m4: New file, from gettext-0.11.5.
85346         * m4/lib-ld.m4: New file, from gettext-0.11.5.
85347         * m4/lib-link.m4: New file, from gettext-0.11.5.
85348         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
85349         * m4/progtest.m4: New file, from gettext-0.11.5.
85350         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
85351         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
85352         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
85353
85354         Module localcharset.
85355         * m4/localcharset.m4: New file.
85356
85357         Module hard-locale.
85358         * m4/hard-locale.m4: New file.
85359
85360         Module mbswidth.
85361         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
85362         onceonly macros.
85363         * m4/mbrtowc.m4: Add comment.
85364
85365         Module memcasecmp.
85366         * m4/memcasecmp.m4: New file.
85367
85368         Module memcoll.
85369         * m4/memcoll.m4: New file.
85370
85371         Module unicodeio.
85372         * m4/unicodeio.m4: New file.
85373
85374         Module rpmatch.
85375         * m4/rpmatch.m4: New file.
85376
85377         Module yesno.
85378         * m4/yesno.m4: New file.
85379
85380         Module exitfail.
85381         * m4/exitfail.m4: New file.
85382
85383         Module c-stack.
85384         * m4/c-stack.m4 (gl_C_STACK): New macro.
85385         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
85386
85387         Module error.
85388         * m4/error.m4 (gl_ERROR): New macro.
85389         (jm_PREREQ_ERROR): Use onceonly macros.
85390
85391         Module fatal.
85392         * m4/fatal.m4: New file.
85393
85394         Module getloadavg.
85395         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
85396         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
85397
85398         Module getpagesize.
85399         * m4/getpagesize.m4: New file.
85400
85401         Module getusershell.
85402         * m4/getusershell.m4: New file.
85403
85404         Module physmem.
85405         * m4/physmem.m4: New file.
85406
85407         Module posixver.
85408         * m4/posixver.m4: New file.
85409
85410         Module quotearg.
85411         * m4/quotearg.m4: New file.
85412
85413         Module quote.
85414         * m4/quote.m4: New file.
85415
85416         Module readutmp.
85417         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
85418
85419         Module sig2str.
85420         * m4/sig2str.m4: New file.
85421
85422         Other.
85423         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
85424         ulonglong.m4.
85425         * m4/intmax_t.m4: New file.
85426         * m4/d-type.m4: Indentation.
85427         * m4/jm-macros.m4: Update.
85428         * m4/prereq.m4 (jm_PREREQ): Update.
85429         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
85430         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
85431         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
85432         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
85433         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
85434         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
85435         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
85436         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
85437         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
85438         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
85439         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
85440         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
85441         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
85442         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
85443         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
85444         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
85445         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
85446         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
85447         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
85448
85449 2002-12-24  Bruno Haible  <bruno@clisp.org>
85450
85451         * MODULES.txt: Update according to m4/ changes.
85452
85453         Module gettext.
85454         * config.rpath: New file, from gettext-0.11.5.
85455
85456         * modules/*: New module descriptions.
85457         * gnulib-tool: New file.
85458         * MODULES.html.sh: New file.
85459
85460 2002-12-21  Karl Berry  <karl@gnu.org>
85461
85462         * doc/fdl.texi: update to version 1.2.
85463
85464 2002-12-19  Karl Berry  <karl@gnu.org>
85465
85466         * config/config.guess: update from prep.
85467
85468 2002-12-18  Bruno Haible  <bruno@clisp.org>
85469
85470         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
85471         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
85472
85473 2002-12-17  Bruno Haible  <bruno@clisp.org>
85474
85475         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
85476         stdlib.h, string.h.
85477
85478 2002-12-17  Bruno Haible  <bruno@clisp.org>
85479
85480         * lib/canon-host.c (strdup): Remove unused declaration.
85481
85482         * lib/fsusage.c: Include full_read.h.
85483         (get_fs_usage): Use full_read instead of safe_read.
85484
85485         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
85486
85487 2002-12-12  Karl Berry  <karl@gnu.org>
85488
85489         * config/config.guess: update from prep.
85490
85491 2002-12-11  Bruno Haible  <bruno@clisp.org>
85492
85493         * m4/setenv.m4: New file, from gettext-0.11.5.
85494
85495 2002-12-11  Bruno Haible  <bruno@clisp.org>
85496
85497         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
85498         not unsetenv().
85499         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
85500         modifications:
85501
85502         2002-12-11  Bruno Haible  <bruno@clisp.org>
85503
85504                 * setenv.c (alloca): Fall back to malloc.
85505                 (freea): New macro.
85506                 (setenv): Use freea() to free memory allocated with alloca().
85507
85508         2002-11-13  Bruno Haible  <bruno@clisp.org>
85509
85510                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
85511                 function declarations.
85512                 * unsetenv.c (unsetenv): Likewise.
85513
85514         2002-03-04  Bruno Haible  <bruno@clisp.org>
85515
85516                 Portability to AIX 4.3.3.
85517                 * unsetenv.c: New file, extracted from setenv.c.
85518                 * setenv.c: Move the unsetenv() function to unsetenv.c.
85519
85520         2001-12-20  Bruno Haible  <bruno@clisp.org>
85521
85522                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
85523                 use malloc instead. For SunOS 4.
85524
85525         2001-12-11  Bruno Haible  <bruno@clisp.org>
85526
85527                 * setenv.c: Declare alloca.
85528                 (compar_fn_t): New typedef.
85529                 (KNOWN_VALUE, STORE_VALUE): Use it.
85530
85531         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
85532         setenv.h.
85533
85534 2002-12-10  Paul Eggert  <eggert@twinsun.com>
85535
85536         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
85537         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
85538         Choose values that are less likely to collide with system fnmatch
85539         options.
85540         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
85541         defined (e.g., a pure POSIX system).
85542         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
85543         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
85544
85545 2002-12-06  Paul Eggert  <eggert@twinsun.com>
85546
85547         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
85548         a pain in practice to deal with generated m4 files.  This change
85549         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
85550
85551         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
85552         and jm-glibc-io.m4, as they are no longer a special case.
85553         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
85554         kludge and the auto-generation stuff.  Check only whether the
85555         functions are declared, not whether they exist, since older hosts
85556         that don't declare the functions can't use the optimization anyway.
85557
85558 2002-12-06  Jim Meyering  <jim@meyering.net>
85559
85560         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
85561
85562         Merge in changes from libc's misc/error.c, in preparation
85563         for the merge of gnulib's changes back into libc.
85564
85565         * lib/error.c (_): Define only if not already defined.
85566         Move definition to follow all #include directives.
85567         Include unlocked-io.h only if !_LIBC.
85568         [_LIBC]: Include <libio/libioP.h>.
85569         [USE_IN_LIBIO]: Include <libio/iolibio.h>
85570         (fflush): Tweak definition to use INTUSE.
85571         (putc): Define.
85572
85573 2002-12-05  Paul Eggert  <eggert@twinsun.com>
85574
85575         * lib/alloca.c [defined emacs]: Include "lisp.h".
85576         (xalloc_die) [defined emacs]: New macro.
85577         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
85578         [! defined emacs]: Include <xalloc.h>.
85579         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
85580         (pointer): Typedef to POINTER_TYPE *.
85581         (malloc): Remove decl; we now always use xmalloc.
85582         (alloca): Use old-style definition, since Emacs needs this.
85583         Check for arithmetic overflow when computing combined size.
85584
85585 2002-12-04  Paul Eggert  <eggert@twinsun.com>
85586
85587         Do not generate unlocked-io.h automatically, since it's easier to
85588         maintain it by hand.
85589
85590         * lib/unlocked-io.h: New file, from GNU diffutils,
85591         but with proper copyright notice and attribution.
85592         * lib/gen-uio: Remove.
85593         * lib/Makefile.am: Add copyright notice.
85594         (libfetish_a_SOURCES): Add unlocked-io.h.
85595         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
85596         (DISTCLEANFILES, io_functions): Remove macros.
85597         (EXTRA_DIST): Remove gen_uio.
85598         (unlocked-io.h): Remove rule.
85599
85600 2002-12-04  Jim Meyering  <jim@meyering.net>
85601
85602         Reflect the fact that stat.c and lstat.c are no longer generated.
85603         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
85604         (DISTCLEANFILES): Likewise.
85605         (EXTRA_DIST): Likewise.
85606         (all_local): Don't depend on stat.c or lstat.c.
85607         (stat.c, lstat.c): Remove rules.
85608         (EXTRA_DIST): Remove xstat.in.
85609
85610         * lib/xstat.in: Remove file.  Contents moved into stat.c.
85611         * lib/stat.c: New file.  Contents mostly from xstat.in.
85612         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
85613         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
85614
85615         * lib/safe-read.c: Rework so that it may serve to define safe_write,
85616         too.
85617         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
85618
85619 2002-12-03  Jim Meyering  <jim@meyering.net>
85620
85621         * lib/safe-read.c, safe-write.c: Change variable names and comments,
85622         but not semantics, to minimize the differences between these two files.
85623         (safe_read): Change comment to mention SAFE_READ_ERROR.
85624
85625         * lib/safe-read.c (IS_EINTR): Define.
85626         (safe_read): Use IS_EINTR in place of in-function cpp directives.
85627
85628 2002-12-02  Jim Meyering  <jim@meyering.net>
85629
85630         * lib/safe-read.c (EINTR): Define.
85631         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
85632         (INT_MAX): Provide fallback.
85633         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
85634
85635         * lib/safe-read.h (SAFE_READ_ERROR): Define.
85636
85637 2002-12-02  Bruno Haible  <bruno@clisp.org>
85638
85639         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
85640         Define, taken from safe-read.c.
85641         (INT_MAX): Provide fallback.
85642         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
85643         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
85644
85645         * lib/safe-read.c (EINTR): Remove definition.
85646         (safe_read): Don't use EINTR if it is absent.
85647
85648 2002-12-01  Jim Meyering  <jim@meyering.net>
85649
85650         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
85651         zero.
85652         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
85653
85654 2002-11-27  Paul Eggert  <eggert@twinsun.com>
85655
85656         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
85657         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
85658         with `if (! (value < limit)) abort ();', for readability.
85659
85660 2002-11-26  Karl Berry  <karl@gnu.org>
85661
85662         * lib/strdup.c: copy from libc again, with jim's ok.
85663         * lib/.cppi-disable: re-add strdup.c
85664
85665 2002-11-25  Karl Berry  <karl@gnu.org>
85666
85667         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
85668         instead of "strtol.c".
85669
85670 2002-11-25  Karl Berry  <karl@gnu.org>
85671
85672         * config/install-sh: update from automake for variable quoting, $0 in
85673         error msgs, etc.
85674
85675         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
85676         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
85677         entry.
85678
85679 2002-11-25  Jim Meyering  <jim@meyering.net>
85680
85681         * lib/mktime.c: Sync from libc, now that it has the latest fix.
85682
85683 2002-11-24  Karl Berry  <karl@gnu.org>
85684
85685         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
85686         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
85687
85688 2002-11-24  Jim Meyering  <jim@meyering.net>
85689
85690         Update from coreutils:
85691
85692         * lib/mktime.c: Merge in changes from libc.
85693
85694         Avoid a link-time failure on some Linux systems.
85695         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
85696         (otherwise).
85697         (__mon_yday): Declare with the STATIC attribute.
85698         (__mktime_internal): Likewise.
85699         Based on a report from Greg Schafer.
85700
85701 2002-11-23  Jim Meyering  <jim@meyering.net>
85702
85703         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
85704         Use `unsigned', not `int', as type of index.
85705
85706         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
85707
85708         * lib/fsusage.c: Remove unneeded parentheses around operands of
85709         `defined'.
85710
85711 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85712
85713         * lib/quotearg.h: Allow multiple inclusion by surrounding with
85714         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
85715         so that we can be included first.
85716         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
85717         * lib/quotearg.c: Include quotearg.h immediately after config.h.
85718         No need to include stddef.h or sys/types.h any more.
85719         Surround local include files with "", not "<>".
85720         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
85721         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
85722         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
85723         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
85724         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
85725         (ISPRINT): Remove; no longer needed now that we assume C89.
85726
85727         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
85728         Preserve errno.
85729
85730         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
85731         quotearg_char): Use SIZE_MAX rather than
85732         (size_t) -1 when we are talking about "infinity".
85733
85734         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
85735
85736 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85737
85738         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
85739         hint that one should use `if (! x) abort ();' rather than `assert
85740         (x);', and anyway it's one less thing to worry about configuring.
85741         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
85742         hash_rehash, hash_insert): Use abort rather than assert.
85743
85744 2002-11-22  Bruno Haible  <bruno@clisp.org>
85745
85746         * lib/safe-read.h: Assume C89. Add comments.
85747         (safe_read): Change return type to size_t.
85748         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
85749         byte counts > SSIZE_MAX correctly.
85750         * lib/safe-write.h: New file.
85751         * lib/safe-write.c: New file.
85752         * lib/full-read.h: New file.
85753         * lib/full-read.c: New file.
85754         * lib/full-write.h: Assume C89. Add comments.
85755         * lib/full-write.c: Include safe-write.h.
85756         (full_write): Rewritten to use safe_write.
85757         Suggested by Jim Meyering and Paul Eggert.
85758
85759 2002-11-21  Jim Meyering  <jim@meyering.net>
85760
85761         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
85762
85763         Merge in changes from the coreutils.
85764
85765         2002-09-25  Paul Eggert  <eggert@twinsun.com>
85766         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
85767         <stdint.h>.
85768         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
85769         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
85770         int.  Work more efficiently if X is the same width as uintmax_t.
85771         Do not compare X to -1, to avoid bogus compiler warning.
85772         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
85773         Don't assume that f_frsize and f_bsize are the same type.
85774
85775         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
85776         warning on FreeBSD.
85777
85778         * lib/makepath.c (make_path): Restore umask *before* creating the final
85779         component.
85780         (make_path): Minor reformatting.
85781
85782         * lib/xmalloc.c: Adjust to work with new autoconf macros,
85783         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
85784         HAVE_MALLOC/HAVE_REALLOC.
85785
85786         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
85787         dummy ones.  At least on GNU/Linux systems, `auto' means something
85788         else.
85789         From Michael Stone.
85790
85791 2002-11-21  Bruno Haible  <bruno@clisp.org>
85792
85793         Remove case insensitive option matching.
85794         * lib/argmatch.h (argcasematch): Remove declaration.
85795         (ARGCASEMATCH): Remove macro.
85796         (__xargmatch_internal): Remove case_sensitive argument.
85797         (XARGMATCH): Update.
85798         (XARGCASEMATCH): Remove macro.
85799         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
85800         case_sensitive argument.
85801         (argcasematch): Remove function.
85802         (__xargmatch_internal): Remove case_sensitive argument.
85803         (main): Use XARGMATCH instead of XARGCASEMATCH.
85804
85805         * lib/xmalloc.c: Change compile-time error message. Add comment about
85806         required autoconf version.
85807
85808 2002-11-20  Paul Eggert  <eggert@twinsun.com>
85809
85810         Merge argmatch cleanups from Bison.  Assume C89.
85811
85812         * lib/argmatch.c: Include config.h here, not in argmatch.h.
85813         Include stdlib.h, for EXIT_FAILURE.
85814         Always include <string.h>, since we assume C89.
85815         (EXIT_FAILURE): Remove pre-C89 bug workaround.
85816         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
85817         Include <stddef.h> instead, since it's all we need for size_t.
85818         (PARAMS): Remove.  All uses removed.
85819         (ARRAY_CARDINALITY): Do not bother to #undef.
85820         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
85821         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85822         Remove unnecessary parentheses.
85823         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85824         Insert necessary parentheses.
85825         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
85826         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
85827
85828 2002-11-19  Bruno Haible  <bruno@clisp.org>
85829
85830         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
85831         * lib/mbswidth.h: Include <stddef.h>, for size_t.
85832
85833         * lib/mbswidth.h (PARAMS): Remove macro.
85834         (mbswidth, mbsnwidth): Use ANSI C function declarations.
85835         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
85836
85837         * lib/gcd.h (PARAMS): Remove macro.
85838         (gcd): Use ANSI C function declarations.
85839         * lib/gcd.c (gcd): Likewise.
85840
85841 2002-11-15  Bruno Haible  <bruno@clisp.org>
85842
85843         * lib/strcspn.c: Include <stddef.h>.
85844         (strcspn): Use ANSI C function declaration. Change return type to
85845         size_t. Use NULL.
85846         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
85847         (strpbrk): Use NULL.
85848         * lib/strpbrk.h (PARAMS): Remove macro.
85849         (strpbrk): Use ANSI C function declaration.
85850         * lib/strstr.c: Don't include <sys/types.h>.
85851         * lib/strstr.h (PARAMS): Remove macro.
85852         (strstr): Use ANSI C function declarations.
85853
85854 2002-11-14  Karl Berry  <karl@gnu.org>
85855
85856         * config/mkinstalldirs: `do' on separate line, instead of
85857         `for var; do'.
85858
85859 2002-11-06  Bruno Haible  <bruno@clisp.org>
85860
85861         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
85862         * lib/gcd.c (gcd): Likewise.
85863
85864 2002-11-05  Bruno Haible  <bruno@clisp.org>
85865
85866         * lib/gcd.h: New file, from gettext-0.11.5.
85867         * lib/gcd.c: New file, from gettext-0.11.5.
85868
85869 2002-11-05  Bruno Haible  <bruno@clisp.org>
85870
85871         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85872         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85873         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85874         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85875
85876         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
85877         <libintl.h>.
85878         * lib/makepath.c: Include gettext.h instead of <locale.h> and
85879         <libintl.h>.
85880
85881         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
85882         * lib/human.c: Include gettext.h instead of <libintl.h>.
85883         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
85884         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
85885         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
85886         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
85887         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
85888         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
85889         (textdomain): Remove definition.
85890         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
85891
85892         * lib/long-options.c: Remove include of <libintl.h> and definition of
85893         _.
85894         * lib/same.c: Remove include of <libintl.h> and definition of _.
85895
85896 2002-11-04  Owen Taylor  <otaylor@redhat.com>
85897
85898         * lib/config.charset: A few additions for Solaris.
85899
85900 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85901
85902         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
85903         * lib/localcharset.c (locale_charset): Declare as extern "C".
85904
85905 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85906
85907         * lib/config.charset: msdos in uk_UA uses CP1125.
85908
85909 2002-11-04  Bruno Haible  <bruno@clisp.org>
85910
85911         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
85912         * lib/strcase.h: New file, from GNU gettext-0.11.5.
85913         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
85914         * lib/strstr.h: New file, from GNU gettext-0.11.5.
85915         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
85916
85917 2002-11-04  Bruno Haible  <bruno@clisp.org>
85918
85919         * lib/localcharset.c (locale_charset): Don't return an empty string.
85920
85921 2002-11-04  Bruno Haible  <bruno@clisp.org>
85922
85923         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
85924         aliases.
85925
85926 2002-11-04  Bruno Haible  <bruno@clisp.org>
85927
85928         * lib/config.charset: Update for newest glibc. Add canonical names
85929         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
85930
85931 2002-11-04  Bruno Haible  <bruno@clisp.org>
85932
85933         * lib/config.charset: Add support for NetBSD.
85934
85935 2002-11-04  Bruno Haible  <bruno@clisp.org>
85936
85937         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
85938
85939 2002-11-01  Bruno Haible  <bruno@clisp.org>
85940
85941         * configure.in: Add AC_CONFIG_AUX_DIR call.
85942         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
85943         test/Makefile.
85944         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
85945
85946 2002-09-28  Karl Berry  <karl@gnu.org>
85947
85948         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
85949         installed automake until the next release, since changes have been
85950         made.
85951
85952 2002-09-25  Karl Berry  <karl@gnu.org>
85953
85954         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
85955         * lib/getopt*: copy from libc/posix.
85956         * lib/gettext.h: copy from gettext.
85957         * lib/.cppi-disable: add strdup.c, gettext.h.
85958
85959 2002-09-25  Karl Berry  <karl@gnu.org>
85960
85961         * config/srclist.txt: enable gettext.h check.
85962         * config/config.{guess,sub}: update from prep.
85963         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
85964                 from automake 1.6.3.
85965         See srclist*.
85966
85967 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
85968
85969         * regex.c (PATFETCH): Remove the translating fetch.
85970         (PATFETCH_RAW): Rename to PATFETCH.
85971         (set_image_of_range): New fun.
85972         (SET_RANGE_TABLE_WORK_AREA): Use it.
85973         (regex_compile): Don't translate the pattern chars so eagerly.
85974         Only do it when inserting an `exactn' bytecode or when handling
85975         a char-range.
85976         (mutually_exclusive_p): Avoid empty statement.
85977
85978 2002-07-06  Jim Meyering  <meyering@lucent.com>
85979
85980         * m4/README: Don't mention Makefile.am.in.
85981         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
85982
85983 2002-07-01  Jim Meyering  <meyering@lucent.com>
85984
85985         * lib/c-stack.c: Include sys/time.h.
85986         From Volker Borchert.
85987
85988 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85989
85990         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
85991
85992 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85993
85994         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
85995         New macro.  Use it uniformly instead of
85996         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
85997         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
85998         reported by Vin Shelton.
85999
86000 2002-06-22  Paul Eggert  <eggert@twinsun.com>
86001
86002         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
86003         Do not assume SA_SIGINFO behavior.
86004         Bug reported by Jim Meyering on NetBSD 1.5.2.
86005
86006 2002-06-22  Jim Meyering  <meyering@lucent.com>
86007
86008         * m4/c-stack.m4: New file, from diffutils-2.8.2.
86009         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
86010
86011         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
86012         now that configure.ac uses AC_GNU_SOURCE.
86013         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
86014         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
86015
86016         Update to latest tools.  Suggestions from Paul Eggert.
86017         * m4/stdbool.m4: New file, from diffutils-2.8.2.
86018         * m4/gnu-source.m4: Update from diffutils-2.8.2.
86019         * m4/fnmatch.m4: Likewise.
86020         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
86021         to AC_HEADER_STDBOOL
86022
86023 2002-06-22  Jim Meyering  <meyering@lucent.com>
86024
86025         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
86026         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
86027
86028 2002-06-22  Jim Meyering  <meyering@lucent.com>
86029
86030         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
86031
86032         * lib/exitfail.c, exitfail.h: Likewise.
86033         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
86034
86035         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
86036         of fnmatch.h.
86037         (EXTRA_DIST): Add fnmatch_loop.c.
86038         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
86039
86040         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
86041         * lib/fnmatch.c: Update from diffutils-2.8.2.
86042         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
86043         * lib/fnmatch.h: Remove file.
86044
86045 2002-06-21  Jim Meyering  <meyering@lucent.com>
86046
86047         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
86048         * m4/mbrtowc.m4: Likewise.
86049
86050         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
86051         * m4/mbswidth.m4: Reflect name change:
86052         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
86053         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
86054
86055         * m4/lib-link.m4: Update from gettext-0.11.2.
86056         * m4/gettext.m4: Likewise.
86057
86058         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
86059         From Alfred M. Szmidt.
86060
86061 2002-06-18  Paul Eggert  <eggert@twinsun.com>
86062
86063         * lib/file-type.h: Report an error if neither S_ISREG nor
86064         S_IFREG is defined, instead of using a test specific to glibc
86065         2.2.  This should be safe, since POSIX requires S_ISREG and
86066         Unix Version 7 had S_IFREG.  We don't need to check for
86067         <sys/types.h> since we don't use any symbols that it defines.
86068
86069 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
86070
86071         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
86072         $@-t, so that each temporary file name is unique and valid in the first
86073         8 characters, for operation under DOS.
86074
86075 2002-06-15  Paul Eggert  <eggert@twinsun.com>
86076
86077         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
86078
86079 2002-06-15  Jim Meyering  <meyering@lucent.com>
86080
86081         Work even with DJGPP 2.03, which lacks support for symlinks.
86082         From Richard Dawe.
86083         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
86084         is defined.
86085         * lib/lchown.c (S_ISLNK): Likewise.
86086
86087 2002-06-15  Jim Meyering  <meyering@lucent.com>
86088
86089         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
86090         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
86091         have been included before this file.
86092
86093 2002-06-14  Jim Meyering  <meyering@lucent.com>
86094
86095         * lib/file-type.h: Use the version from diffutils-2.8.2.
86096         * lib/file-type.c: Likewise.
86097
86098 2002-06-07  Jim Meyering  <meyering@lucent.com>
86099
86100         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
86101         They're needed at least for NetBSD 1.5.2.
86102         ($statxfs_includes): Include those same headers.
86103         ($statxfs_includes): Include sys/vfs.h if available.
86104         ($statxfs_includes): Likewise for sys/statvfs.h.
86105         Check for the following members in both structs statfs and statvfs:
86106         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
86107
86108 2002-06-01  Jim Meyering  <meyering@lucent.com>
86109
86110         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
86111         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
86112
86113 2002-05-28  Jim Meyering  <meyering@lucent.com>
86114
86115         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
86116         Reported by Volker Borchert.
86117
86118 2002-05-27  Jim Meyering  <meyering@lucent.com>
86119
86120         Fix a problem seen only on nonconforming systems whereby ls.c's
86121         use of localtime, and then of gettimeofday would cause trouble:
86122         the localtime call used to initialize rpl_gettimeofday's save
86123         mechanism would clobber ls's current local time information so
86124         that in any long listing the first file would always be listed
86125         with date 1970-01-01.  Analysis by Volker Borchert.
86126
86127         * lib/gettimeofday.c (localtime): Undefine.
86128         (rpl_localtime): New function.
86129
86130 2002-05-27  Jim Meyering  <meyering@lucent.com>
86131
86132         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
86133         localtime.
86134
86135         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
86136         use the replacement function; it wouldn't resolve at link time.
86137         Reported by Volker Borchert.
86138
86139 2002-05-22  Jim Meyering  <meyering@lucent.com>
86140
86141         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
86142         file-type.h.
86143         * lib/file-type.h: New file.
86144         * lib/file-type.c (file_type): New file/function.  Extracted from
86145         diffutils.
86146
86147 2002-04-30  Jim Meyering  <meyering@lucent.com>
86148
86149         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
86150
86151 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86152
86153         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
86154
86155 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86156
86157         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
86158         Do not check for alloca.h (no longer used) or stdbool.h (was never
86159         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
86160
86161 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86162
86163         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
86164
86165 2002-04-29  Jim Meyering  <meyering@lucent.com>
86166
86167         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
86168         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
86169         Use AC_FUNC_STRNLEN here instead.
86170
86171         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
86172         With autoconf-2.53a, it's part of AC_PROG_CC.
86173
86174 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86175
86176         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
86177         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
86178
86179 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86180
86181         * lib/sig2str.h, lib/sig2str.c: New files.
86182         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
86183
86184 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86185
86186         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
86187         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
86188         of 127, since 64 is the largest conceivable number for ancient
86189         nonstandard hosts.
86190         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
86191
86192 2002-04-28  Jim Meyering  <meyering@lucent.com>
86193
86194         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
86195
86196 2002-04-24  Jim Meyering  <meyering@lucent.com>
86197
86198         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
86199         (jm_PREREQ): Use it.
86200
86201         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
86202         mach/mach.h fcntl.h.
86203         Check for this function: setlocale.
86204
86205 2002-04-24  Jim Meyering  <meyering@lucent.com>
86206
86207         * lib/gettext.h: New file, from Gettext.
86208         * lib/Makefile.am (INCLUDES): Remove -I../intl.
86209         (libfetish_a_SOURCES): Add gettext.h.
86210
86211 2002-04-16  Jim Meyering  <meyering@lucent.com>
86212
86213         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
86214         ut_pid, ut_id, ut_exit.
86215
86216 2002-04-16  Jim Meyering  <meyering@lucent.com>
86217
86218         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
86219         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
86220         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
86221
86222 2002-04-12  Jim Meyering  <meyering@lucent.com>
86223
86224         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
86225         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
86226         existence of the getmntinfo function.  Needed for Darwin 5.3.
86227
86228         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
86229         This is necessary at least on Darwin 5.3.
86230
86231         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
86232         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
86233         strnlen.o in the library, and that makes some versions of ranlib
86234         object.
86235
86236 2002-04-12  Jim Meyering  <meyering@lucent.com>
86237
86238         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
86239
86240 2002-04-09  Jim Meyering  <meyering@lucent.com>
86241
86242         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
86243         to be more precise.  Rather than saying we're checking whether the
86244         function `works', say what we're testing.
86245         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
86246         Reported by Bruno Haible.
86247
86248 2002-03-10  Jim Meyering  <meyering@lucent.com>
86249
86250         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
86251         Suggestion from Santiago Vila.
86252
86253 2002-03-08  Jim Meyering  <meyering@lucent.com>
86254
86255         * lib/rename.c: Mention that this wrapper is needed also on
86256         mips-dec-ultrix4.4 systems.
86257
86258 2002-03-02  Jim Meyering  <meyering@lucent.com>
86259
86260         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
86261         not HAVE_CLOCK_SETTIME.
86262
86263 2002-02-27  Paul Eggert  <eggert@twinsun.com>
86264
86265         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
86266         Check for clock_settime.
86267
86268 2002-02-27  Paul Eggert  <eggert@twinsun.com>
86269
86270         * lib/nanosleep.h: Rename to....
86271         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
86272
86273         * lib/gettime.c: New file.
86274         * lib/settime.c: New file.
86275         * lib/stime.c: Remove.
86276
86277         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
86278         timespec.h.  Remove nanosleep.h.
86279
86280 2002-02-25  Paul Eggert  <eggert@twinsun.com>
86281
86282         * m4/acl.m4: New file.
86283         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
86284         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
86285
86286 2002-02-25  Paul Eggert  <eggert@twinsun.com>
86287
86288         * lib/acl.c, lib/acl.h: New files.
86289         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
86290
86291 2002-02-24  Jim Meyering  <meyering@lucent.com>
86292
86293         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
86294         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
86295         cause trouble.  Reported by Nelson Beebe.
86296
86297 2002-02-23  Paul Eggert  <eggert@twinsun.com>
86298
86299         * lib/path-concat.c (xpath_concat): Reorder code to pacify
86300         compilers that don't know that xalloc_die never returns.
86301
86302 2002-02-20  Jim Meyering  <meyering@lucent.com>
86303
86304         * lib/getdate.c: Regenerate using bison-1.33.
86305
86306 2002-02-17  Jim Meyering  <meyering@lucent.com>
86307
86308         * config/config.guess (main): Don't use `head -1'; it's no longer
86309         portable. Use `sed 1q' instead.
86310
86311 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
86312
86313         * m4/codeset.m4: Upgrade to gettext-0.11.
86314         * m4/gettext.m4: Upgrade to gettext-0.11.
86315         * m4/glibc21.m4: Upgrade to gettext-0.11.
86316         * m4/iconv.m4: Upgrade to gettext-0.11.
86317         * m4/isc-posix.m4: Upgrade to gettext-0.11.
86318         * m4/lcmessage.m4: Upgrade to gettext-0.11.
86319         * m4/lib-ld.m4: New file, from gettext-0.11.
86320         * m4/lib-link.m4: New file, from gettext-0.11.
86321         * m4/lib-prefix.m4: New file, from gettext-0.11.
86322         * m4/progtest.m4: Upgrade to gettext-0.11.
86323
86324 2002-02-15  Paul Eggert  <eggert@twinsun.com>
86325
86326         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
86327         (jm_PREREQ): Use it.
86328
86329 2002-02-15  Paul Eggert  <eggert@twinsun.com>
86330
86331         * lib/posixver.c, lib/posixver.h: New files.
86332         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
86333
86334 2002-02-02  Paul Eggert  <eggert@twinsun.com>
86335             Bruno Haible  <bruno@clisp.org>
86336
86337         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
86338         (fwrite_success_callback): New declaration.
86339         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
86340         print_unicode_char. Call failure callback instead of error.
86341         (fwrite_success_callback): New function.
86342         (exit_failure_callback): New function.
86343         (fallback_failure_callback): New function.
86344         (print_unicode_char): Call unicode_to_mb.
86345
86346 2002-01-26  Jim Meyering  <meyering@lucent.com>
86347
86348         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
86349         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
86350
86351 2002-01-26  Jim Meyering  <meyering@lucent.com>
86352
86353         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
86354
86355 2002-01-22  Paul Eggert  <eggert@twinsun.com>
86356
86357         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
86358
86359 2002-01-22  Jim Meyering  <meyering@lucent.com>
86360
86361         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
86362         Otherwise, some versions of automake would omit the rule that makes
86363         Makefile from Makefile.in.
86364
86365 2002-01-21  Paul Eggert  <eggert@twinsun.com>
86366
86367         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
86368         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
86369         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
86370         (memcoll): Set errno to zero if there is no error.
86371
86372         * lib/quotearg.c (quotearg_buffer_restyled):
86373         Fix bug with quoting buffers containing NUL when backslashing escapes.
86374         This bug was exposed by the other changes in this patch.
86375         (quotearg_n_options): New arg ARGSIZE.
86376         All callers changed.
86377         (quoting_options_from_style): New function.
86378         (quotearg_n_style): Use it.
86379         (quotearg_n_style_mem): New function.
86380
86381         * lib/quotearg.h (quotearg_n_style_mem): New function.
86382
86383 2002-01-19  Jim Meyering  <meyering@lucent.com>
86384
86385         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
86386         Remove useless quotes: DF_PROG="df".
86387         * m4/strnlen.m4: New file.
86388
86389 2002-01-16  Paul Eggert  <eggert@twinsun.com>
86390
86391         * lib/backupfile.c (ISDIGIT): Comment fix.
86392         * lib/getdate.y (ISDIGIT): Likewise.
86393         * lib/posixtm.c (ISDIGIT, year): Likewise.
86394         * lib/strverscmp.c (ISDIGIT): Likewise.
86395         * lib/userspec.c (ISDIGIT): Likewise.
86396
86397 2002-01-16  Jim Meyering  <meyering@lucent.com>
86398
86399         * lib/getdate.y: Add three semicolons, each just before a closing
86400         brace. Bison (as of version 1.31) no longer papers over that mistake.
86401
86402 2002-01-05  Jim Meyering  <meyering@lucent.com>
86403
86404         * lib/version-etc.c (version_etc_copyright): Update copyright year.
86405
86406 2001-12-19  Paul Eggert  <eggert@twinsun.com>
86407
86408         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
86409         not silently exit merely because the output buffer happens to
86410         have nothing pending.
86411
86412 2001-12-18  Paul Eggert  <eggert@twinsun.com>
86413
86414         See the big note in ../ChangeLog.
86415         * lib/human.c (suffixes): Prefer K to k for 1024.
86416         (generate_suffix_backwards): New function.
86417         (human_readable_inexact): Use it.
86418         * lib/xstrtol.c (__xstrtol): If there is no number but there
86419         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
86420         Accept 'K' as well as 'k'.
86421
86422 2001-12-15  Jim Meyering  <meyering@lucent.com>
86423
86424         * lib/regex.h (__restrict_arr): Update from libc.
86425
86426         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
86427         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
86428         (STREQ): Define.
86429
86430 2001-12-14  Jim Meyering  <meyering@lucent.com>
86431
86432         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
86433         Suggestion from Bruno Haible.
86434
86435 2001-12-10  Jim Meyering  <meyering@lucent.com>
86436
86437         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
86438         xrealloc, Instead, include "xalloc.h".
86439         (initbuffer): Don't cast xmalloc return value to char*.
86440         (readline): Reword comment.
86441         Don't cast xrealloc return value to char*
86442         Return NULL, not 0.
86443
86444 2001-12-09  Jim Meyering  <meyering@lucent.com>
86445
86446         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
86447         about `signed and unsigned type in conditional expression'.
86448         * lib/posixtm.c (posix_time_parse): Likewise.
86449
86450         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
86451
86452         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
86453         to avoid a pedantic warning.
86454
86455         * lib/getstr.c: Don't include assert.h.
86456         (getstr): Remove warning-evoking assertions.
86457         Return -1 if offset parameter is out of bounds.
86458         Change the type of a local from int to size_t.
86459
86460         * lib/strftime.c (my_strftime_localtime_r): Include this function
86461         definition in the `#if ! HAVE_TM_GMTOFF' block.
86462
86463         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
86464         Include xalloc.h instead.
86465
86466 2001-12-02  Jim Meyering  <meyering@lucent.com>
86467
86468         * lib/tempname.c: Don't declare getenv, thus reverting the change of
86469         2001-11-18.  It's no longer necessary, now that stdlib.h is always
86470         included.
86471
86472         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
86473         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
86474
86475 2001-11-30  Akim Demaille  <akim@epita.fr>
86476
86477         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
86478         before being defined.
86479
86480 2001-11-27  Paul Eggert  <eggert@twinsun.com>
86481
86482         * lib/quotearg.h (quotearg_n, quotearg_n_style):
86483         First arg is int, not unsigned.
86484         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
86485         (SIZE_MAX, UINT_MAX): New macros.
86486         (quotearg_n_options): Abort if N is negative.
86487         Avoid overflow check on hosts where size_t is 64 bits and int
86488         is 32 bits, as overflow is impossible there.
86489         Fix off-by-one typo that caused unnecessary reallocation.
86490
86491 2001-11-27  Jim Meyering  <meyering@lucent.com>
86492
86493         * lib/tempname.c: Merge with version from libc.
86494         * lib/regex.c: Likewise.
86495
86496         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
86497         systems for which STDC_HEADERS is 0, it was not included, resulting in
86498         a warning about an integer-to-pointer conversion problem with getenv.
86499         Reported by Volker Borchert.
86500
86501 2001-11-26  Jim Meyering  <meyering@lucent.com>
86502
86503         * lib/gtod.h: Remove file.
86504         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
86505         * lib/gettimeofday.c: Don't include gtod.h.
86506         (GTOD_init): Remove function.
86507         (rpl_gettimeofday): Do its job here instead, rather than aborting.
86508         Suggestion from Volker Borchert.
86509
86510 2001-11-23  Jim Meyering  <meyering@lucent.com>
86511
86512         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
86513         it.
86514         * lib/hash.c (struct hash_table): Define it here instead.
86515
86516 2001-11-22  Jim Meyering  <meyering@lucent.com>
86517
86518         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
86519
86520 2001-11-20  Jim Meyering  <meyering@lucent.com>
86521
86522         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
86523         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
86524
86525 2001-11-19  Jim Meyering  <meyering@lucent.com>
86526
86527         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
86528         directory.  Use "conftestXXXXXX" as the template.
86529         Suggestion from Paul Eggert.
86530
86531         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
86532         immediately, so the test doesn't mistakenly hit the max-open-files
86533         limit.
86534
86535 2001-11-18  Paul Eggert  <eggert@twinsun.com>
86536
86537         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
86538         (TEMPORARIES): New macro.
86539         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
86540         removes an artificial limitation (e.g. HP-UX 10.20, where
86541         TMP_MAX is 17576).
86542
86543 2001-11-18  Jim Meyering  <meyering@lucent.com>
86544
86545         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
86546
86547 2001-11-18  Jim Meyering  <meyering@lucent.com>
86548
86549         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
86550         on SunOS 4.
86551
86552         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
86553         files will be created before anything else.
86554
86555 2001-11-17  Paul Eggert  <eggert@twinsun.com>
86556
86557         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
86558         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
86559
86560 2001-11-17  Jim Meyering  <meyering@lucent.com>
86561
86562         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
86563         Prompted by a report from Bob Proulx.
86564
86565         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
86566         Instead, require UTILS_FUNC_MKSTEMP.
86567
86568 2001-11-17  Jim Meyering  <meyering@lucent.com>
86569
86570         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
86571         Now, that's done as part of AC_FUNC_STRTOD.
86572
86573 2001-11-17  Jim Meyering  <meyering@lucent.com>
86574
86575         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
86576         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
86577         rather than group writable.  Patch by Juan F. Codagnone.
86578
86579         * lib/readtokens.c: Remove explicit declarations of xmalloc and
86580         xrealloc, Instead, include "xalloc.h".
86581
86582         * lib/mountlist.c: Include unlocked-io.h after all system headers.
86583         Remove explicit declarations of xmalloc, xrealloc,
86584         and xstrdup.  Instead, include "xalloc.h".
86585
86586         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
86587         unlocked-io.h.
86588         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
86589         Likewise.
86590         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
86591
86592         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
86593         Reported by Padraig Brady.
86594
86595         * lib/mkstemp.c: #undef mkstemp.
86596         Include config.h.
86597         (rpl_mkstemp): Rename from mkstemp.
86598         Protoize.
86599
86600 2001-11-16  Jim Meyering  <meyering@lucent.com>
86601
86602         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
86603         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
86604         determine the amount of total physical memory, use pstat_getstatic.
86605         HPUX-11 doesn't define _SC_PHYS_PAGES.
86606         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
86607         If sysconf couldn't be used to determine the amount of available
86608         physical memory, use both pstat_getstatic and pstat_getdynamic.
86609         Based on a patch from Bob Proulx.
86610
86611 2001-11-10  Jim Meyering  <meyering@lucent.com>
86612
86613         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
86614         (jm_PREREQ): Use it.
86615
86616 2001-11-09  Jim Meyering  <meyering@lucent.com>
86617
86618         * m4/jm-macros.m4: Require autoconf-2.52f.
86619         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
86620         Use these AC_-prefixed names, not the AM_-prefixed ones.
86621
86622         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
86623
86624 2001-11-05  Jim Meyering  <meyering@lucent.com>
86625
86626         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
86627
86628 2001-11-04  Jim Meyering  <meyering@lucent.com>
86629
86630         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
86631         $DEFS.
86632
86633 2001-11-03  Jim Meyering  <meyering@lucent.com>
86634
86635         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
86636         of AC_DEFUN.
86637
86638         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
86639         know the name of the variable in the macro definition.
86640
86641 2001-11-03  Jim Meyering  <meyering@lucent.com>
86642
86643         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
86644         in argmatch_to_argument call.
86645
86646         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
86647         argument.
86648
86649         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
86650         e.g., a fault due to an attempt to free a NULL pointer.
86651
86652 2001-11-01  Jim Meyering  <meyering@lucent.com>
86653
86654         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
86655         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
86656
86657 2001-11-01  Jim Meyering  <meyering@lucent.com>
86658
86659         * lib/dirfd.c, lib/dirfd.h: New files.
86660         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
86661
86662         * lib/hash.c (hash_print) [TESTING]: Clean up.
86663
86664 2001-10-22  Paul Eggert  <eggert@twinsun.com>
86665
86666         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
86667         to avoid a warning if -Wall.
86668
86669 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
86670
86671         * README: New file
86672         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
86673         (per RMS's instructions, this is now the canonical source)
86674         * lgpl/, gpl/: New directories.
86675
86676 2001-10-21  Paul Eggert  <eggert@twinsun.com>
86677
86678         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
86679
86680 2001-10-21  Jim Meyering  <meyering@lucent.com>
86681
86682         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
86683         this code would end up calling gettext even in packages built
86684         with --disable-nls.
86685         * lib/getopt.c (_): Likewise.
86686         * lib/regex.c (_): Likewise.
86687
86688 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86689
86690         * m4/error.m4 (jm_PREREQ_ERROR):
86691         Do not invoke AC_CHECK_FUNCS with strerror_r, as
86692         AC_FUNC_STRERROR_R does that.
86693         Check for strerror declaration.
86694
86695         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
86696         are supposed to have them these days.
86697         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
86698         Merge changes from latest Autoconf CVS.
86699         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
86700         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
86701         POSIX decided to standardize on the int flavor of strerror_r.
86702
86703 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86704
86705         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
86706         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
86707         Use strerror_r that is only a macro, even if it is not a function.
86708         (strerror): Check for HAVE_DECL_STRERROR before declaring.
86709         (private_strerror): Use prototypes, not old-style function definition.
86710         (print_errno_message): New function.
86711         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
86712         char*-flavored one.
86713         (error_tail, error, error_at_line): Use it.
86714
86715 2001-10-11  Jim Meyering  <meyering@lucent.com>
86716
86717         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
86718         and quote_n (1, ... to avoid clobbering a buffer.
86719
86720 2001-10-05  Jim Meyering  <meyering@lucent.com>
86721
86722         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
86723         hash-pjw.h.
86724         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
86725         * lib/hash-pjw.h: New file.
86726
86727 2001-09-30  Jim Meyering  <meyering@lucent.com>
86728
86729         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
86730         `struct fsstat' has the `f_fstypename' member.
86731         Use that to define FS_TYPE, which is now used to make
86732         the getfsstat link test tighter.
86733
86734 2001-09-30  Jim Meyering  <meyering@lucent.com>
86735
86736         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
86737         Include <sys/ucred.h>, for Apple Darwin.
86738         Include sys/mount.h and sys/fs_types.h only if available.
86739         (FS_TYPE): Define.
86740         (read_filesystem_list): Use FS_TYPE.
86741
86742 2001-09-29  Paul Eggert  <eggert@twinsun.com>
86743
86744         * lib/exclude.c (excluded_filename): 0 -> false, since it's
86745         a boolean context.
86746
86747 2001-09-29  Jim Meyering  <meyering@lucent.com>
86748
86749         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86750         [one-argument getmntent function]): Include stdio.h before mntent.h.
86751         SunOS 4.1.x needs it for the declaration of `FILE'.
86752         Patch by Volker Borchert.
86753
86754         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86755         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
86756         sys/fs_types.h, and make the link-test for getfsstat guard #include
86757         directives with appropriate #if HAVE_*_H tests so that we can
86758         detect getfsstat on Apple Darwin1.3.7 systems.
86759         Reported by Nelson Beebe.
86760         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
86761
86762 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86763
86764         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86765         #defines strtoimax.  Also treat the other strto* functions
86766         like strtoimax.
86767
86768         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86769         Check for strtoul and strtoumax,
86770         as those declarations are made even in the signed case.
86771         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
86772         Likewise, for strtol and strtoimax.
86773
86774 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86775
86776         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86777         #defines strtoimax.  Also treat the other strto* functions
86778         like strtoimax.
86779
86780         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
86781         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
86782         (strtoimax, strtoumax): Do not declare if already defined as a macro.
86783
86784 2001-09-26  Jim Meyering  <meyering@lucent.com>
86785
86786         Most macros in unlocked-io.h had the wrong number of arguments.
86787         * lib/gen-uio: New script.
86788         (USE_UNLOCKED_IO): Define to 1 if not already defined.
86789         * lib/unlocked-io.hin: Remove file.
86790         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
86791         rather than trying to embed it here.
86792         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
86793         Reported by Padraig Brady.
86794
86795 2001-09-25  Volker Borchert  <bt@teknon.de>
86796
86797         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
86798         `result'.
86799
86800 2001-09-24  Jim Meyering  <meyering@lucent.com>
86801
86802         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
86803
86804 2001-09-23  Jim Meyering  <meyering@lucent.com>
86805
86806         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
86807         instead of the mere test for existence of mntent.h.  The latter
86808         would get a false-positive on AIX 3.4 systems.
86809         In the outer getmntent if-block, don't die if neither of the getmntent
86810         tests succeeds.  Instead, just fall through and continue with the
86811         remaining tests.
86812
86813 2001-09-23  Jim Meyering  <meyering@lucent.com>
86814
86815         * lib/mountlist.c: Remove useless parentheses in #if directives.
86816         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
86817         the deprecated MOUNTED symbol is no longer defined in mntent.h.
86818
86819 2001-09-22  Jim Meyering  <meyering@lucent.com>
86820
86821         * m4/gettext.m4: New file.  From gettext.
86822         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
86823         * m4/progtest.m4: Likewise
86824         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
86825         * m4/glibc21.m4: Likewise.
86826
86827         * m4/libintl.m4: Remove.  No longer used.
86828
86829 2001-09-22  Jim Meyering  <meyering@lucent.com>
86830
86831         * lib/localcharset.c: Update from latest gettext.
86832         * lib/config.charset: Likewise.
86833
86834 2001-09-20  Jim Meyering  <meyering@lucent.com>
86835
86836         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
86837         strtoimax.
86838         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
86839         strtoumax.
86840
86841 2001-09-20  Jim Meyering  <meyering@lucent.com>
86842
86843         * lib/xstrtol.c (strtoimax): Guard declaration with
86844         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
86845         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
86846         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
86847         (strtoumax): Likewise, for completeness (it wasn't necessary).
86848
86849 2001-09-17  Paul Eggert  <eggert@twinsun.com>
86850
86851         * lib/strtoimax.c (HAVE_LONG_LONG):
86852         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
86853         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
86854         to work around bug in IBM C compiler.
86855
86856 2001-09-17  Jim Meyering  <meyering@lucent.com>
86857
86858         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
86859         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
86860         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
86861         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
86862         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
86863         whenever the right hand side need not be expanded by the shell.
86864
86865 2001-09-16  Paul Eggert  <eggert@twinsun.com>
86866
86867         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
86868         library.  It's not correct, as some older glibcs are buggy.
86869         fnmatch wasn't fixed until glibc 2.2.
86870
86871         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
86872         special shell magic here.
86873
86874 2001-09-16  Jim Meyering  <meyering@lucent.com>
86875
86876         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
86877         * m4/jm-macros.m4: Require it.
86878
86879 2001-09-16  Jim Meyering  <meyering@lucent.com>
86880
86881         * lib/mkdir.c: New file.
86882
86883 2001-09-15  Jim Meyering  <meyering@lucent.com>
86884
86885         * m4/jm-macros.m4: Check for help2man.
86886
86887 2001-09-11  Jim Meyering  <meyering@lucent.com>
86888
86889         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
86890         The body, by Paul Eggert, was moved here from configure.in.
86891         * m4/jm-macros.m4: Require UTILS_HOST_OS.
86892
86893 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86894
86895         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
86896         (jm_PREREQ): Use it.
86897
86898 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86899
86900         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
86901         Use ssize_t, not int, to store result of readlink.
86902         Check for ssize_t overflow as well as size_t overflow,
86903         as POSIX says the result of readlink is implementation-defined
86904         when ssize_t overflows.
86905         Remove unnecessary cast to char*.
86906         Use free+malloc instead of realloc, as the storage doesn't need
86907         to be preserved and it's clearer and can be more efficient that way.
86908         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
86909         * lib/xreadlink.h (xreadlink): Update prototype.
86910
86911 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86912
86913         * lib/xgetcwd.c: Revert some of the previous change; intead,
86914         fix the HAVE_GETCWD_NULL code to behave more like the
86915         !HAVE_GETCWD_NULL code used to.
86916
86917         Include "xalloc.h".
86918         (xgetcwd): Do not return NULL when memory is exhausted; instead,
86919         invoke xalloc_die.
86920
86921 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86922
86923         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
86924         sys/param.h, as pathmax.h includes them.
86925
86926 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86927
86928         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
86929         (jm_PREREQ_XGETCWD): New macro.
86930
86931         * m4/getcwd.m4: New file.
86932
86933 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86934
86935         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
86936         like the HAVE_GETCWD_NULL code.
86937         Include pathmax.h if not HAVE_GETCWD.
86938         Do not include xalloc.h.
86939         (INITIAL_BUFFER_SIZE): New symbol.
86940         Do not use xmalloc / xrealloc, since the caller is responsible for
86941         handling errors.  Preserve errno around `free' during failure.
86942         Do not overrun buffer when using getwd.
86943
86944 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86945
86946         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
86947         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
86948         getcwd (NULL, 0).
86949
86950 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86951
86952         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
86953         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
86954         spotted by Jim Meyering.
86955
86956 2001-09-03  Jim Meyering  <meyering@lucent.com>
86957
86958         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
86959         failure.
86960
86961 2001-09-02  Jim Meyering  <meyering@lucent.com>
86962
86963         * lib/error.c: Update from GNU libc.
86964
86965 2001-09-01  Jim Meyering  <meyering@lucent.com>
86966
86967         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
86968         Used by df.
86969
86970 2001-09-01  Jim Meyering  <meyering@lucent.com>
86971
86972         * lib/xreadlink.c: New file.
86973         * lib/xreadlink.h: New file.
86974         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
86975         xreadlink.h.
86976
86977         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
86978         doesn't conflict with sparc Solaris 7's definition in
86979         /usr/include/sys/int_types.h.
86980
86981         * lib/exclude.c: Use `""', not `<>' to #include non-system header
86982         files.
86983         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
86984         and strncasecmp as r-values.  Unixware didn't have declarations.
86985
86986 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86987
86988         * lib/xstrtol.h: Add copyright notice.
86989         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
86990         LONGINT_INVALID_SUFFIX_CHAR.
86991
86992 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86993
86994         * lib/xstrtol.c (strtoimax): New decl.
86995
86996 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86997
86998         * lib/xgetcwd.c: Don't include pathmax.h.
86999         Include stdlib.h and unistd.h if available.
87000         Include xalloc.h.
87001         (xmalloc, xstrdup, free): Remove decls.
87002         (xgetcwd): Don't assume sizes fit in unsigned.
87003         Check for overflow when computing sizes.
87004         Simplify reallocation code.
87005
87006 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87007
87008         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
87009         a directory's st_size can have an arbitrary value, so the old
87010         usage could waste an arbitrary amount of memory.  All uses
87011         changed.
87012         * lib/savedir.h: Update prototype.
87013
87014 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87015
87016         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
87017
87018         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
87019         old strtoimax.c.
87020
87021         Also, make the following further changes to make this file's
87022         configuration more similar to that of strtol.c:
87023         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
87024         (strtoumax, uintmax_t, strtoull, strtol): Remove.
87025         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
87026         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
87027         changed to signed values.
87028
87029         And make the following changes as well:
87030         Fix copyright notice, as 1999 was missing.
87031         (verify): New macro.
87032         (strtoimax): Check sizes at compile-time, not run-time.
87033         Prefer strtol to strtoll if both work.
87034         (main): Remove; it was not that useful and was a pain to maintain.
87035
87036         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
87037
87038 2001-08-31  Jim Meyering  <meyering@lucent.com>
87039
87040         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
87041         Use an initial, malloc'd, buffer of length 128 rather than
87042         a statically allocated one of length 1024.
87043
87044 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87045
87046         Simplify code, partly by assuming autoconf 2.52 semantics.
87047
87048         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
87049
87050         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
87051         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
87052         All uses removed.
87053         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
87054         Move AC_REQUIRE to next-to-top level, to avoid confusion.
87055         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
87056         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
87057         jm_AC_HEADER_INTTYPES_H.
87058         * m4/jm-macros.m4 (jm_MACROS): Likewise.
87059
87060         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
87061
87062         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
87063         Quote first arg of AC_DEFUN.
87064         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
87065         since they are needed to parse the include file even if we need
87066         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
87067         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
87068         but with opposite signedness.
87069
87070 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87071
87072         Merge 'exclude' changes from tar 1.13.22.
87073         This fixes one or two unlikely storage allocation overflow bugs,
87074         but doesn't change user-visible behavior otherwise.
87075
87076 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87077
87078         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
87079         (jm_PREREQ_EXCLUDE): New macro.
87080
87081 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87082
87083         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
87084         tm to be declared.
87085
87086 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87087
87088         * lib/hash.c: Remove '2001' from copyright notice.
87089
87090 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87091
87092         * lib/full-write.h: New file.
87093         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
87094         * lib/full-write.c: Correct credits, as cccp.c no longer
87095         exists and anyway it was so heavily changed from the old cccp
87096         code as to be unrecognizable.  Include full-write.h.
87097         (full_write): Return size_t, with short writes meaning failure.
87098         All callers changed.  This fixes a bug with large buffers
87099         on 64-bit hosts.
87100         * lib/utime.c: Include full-write.h.
87101
87102 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87103
87104         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
87105         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
87106         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
87107         Include if available.
87108         (<xalloc.h>): Include
87109         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
87110         (verify): New macro.  Use it to verify that EXCLUDE macros do not
87111         collide with FNM macros.
87112         (struct patopts): New struct.
87113         (struct exclude): Use it, as exclude patterns now come with options.
87114         (new_exclude): Support above changes.
87115         (new_exclude, add_exclude_file):
87116         Initial size must now be a power of two to simplify overflow checking.
87117         (free_exclude, fnmatch_no_wildcards): New function.
87118         (excluded_filename): No longer requires options arg, as the options
87119         are determined by add_exclude.  Now returns bool, not int.
87120         (excluded_filename, add_exclude):
87121         Add support for the fancy new exclusion options.
87122         (add_exclude, add_exclude_file): Now takes int options arg.
87123         Check for arithmetic overflow when computing sizes.
87124         (add_exclude_file): xrealloc might modify errno, so don't
87125         realloc until after errno might be used.
87126
87127         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
87128         New macros.
87129         (free_exclude): New decl.
87130         (add_exclude, add_exclude_file): Now takes int options arg.
87131         (excluded_filename): No longer requires options arg, as the options
87132         are determined by add_exclude.  Now returns bool, not int.
87133
87134 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87135
87136         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
87137
87138 2001-08-27  Jim Meyering  <meyering@lucent.com>
87139
87140         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
87141
87142         * lib/version-etc.c (N_): Remove definition.
87143         Revert most of last change.
87144         Instead, simply don't mark the `Copyright...' string for translation.
87145         Based on advice from Paul Eggert.
87146
87147         * lib/strtoxmax.c: Tweak comment.
87148
87149 2001-08-26  Jim Meyering  <meyering@lucent.com>
87150
87151         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
87152
87153         * m4/xstrtoimax.m4: New file.
87154         * m4/xstrtoumax.m4: Add comments explaining why we
87155         AC_REPLACE_FUNCS(strtol).
87156
87157 2001-08-26  Jim Meyering  <meyering@lucent.com>
87158
87159         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
87160         of copyright with `%s' so translators don't get an untranslated
87161         message in 2002.
87162         (COPYRIGHT_YEAR): Define.
87163         (version_etc): Use fprintf rather than fputs.
87164         Suggestion from Ulrich Drepper.
87165
87166         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
87167
87168         * lib/strtoll.c: New file, from GNU libc.
87169         * lib/xstrtoimax.c: New file.
87170
87171         * lib/xstrtol.h: Add xstrtoimax.
87172         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
87173         * lib/strtoimax.c: New file.  Likewise, but first define
87174         STRTOUXMAX_SIGNED.
87175
87176         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
87177         ...
87178         * lib/strtoxmax.c: ... then renamed to this.
87179
87180 2001-08-18  Paul Eggert  <eggert@twinsun.com>
87181
87182         * m4/inttypes.m4: Add AC_PREREQ(2.13).
87183         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
87184         (jm_AC_TYPE_INTMAX_T): New macro.
87185         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
87186
87187         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
87188
87189         * m4/longlong.m4: Renamed from ulonglong.m4.
87190         * m4/inttypes.m4: Renamed from inttypes_h.m4.
87191         * m4/uintmax_t.m4: Removed.
87192
87193 2001-08-13  Paul Eggert  <eggert@twinsun.com>
87194
87195         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
87196         Port to Solaris 8, where 'sed' requires a space after the 'r'
87197         command, and where sh dislikes "$/".  Clean up the spacing a bit.
87198         Redirect output to $tmp just once.
87199
87200 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
87201
87202         * lib/addext.c (<errno.h>): Include.
87203         (errno): Declare if not defined.
87204         (addext): Work correctly when pathconf returns -1 and leaves
87205         errno alone because there is no limit.  Also, work even if
87206         pathconf returns a value greater than SIZE_MAX.
87207
87208 2001-08-12  Jim Meyering  <meyering@lucent.com>
87209
87210         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
87211         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
87212         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
87213         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
87214         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
87215         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
87216         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
87217         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
87218         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
87219         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
87220         utime.m4, utimes.m4, xstrtoumax.m4:
87221         Quote the first argument in each use of AC_DEFUN.
87222
87223 2001-08-12  Jim Meyering  <meyering@lucent.com>
87224
87225         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
87226         Simply `return getcwd (NULL, 0);'.
87227         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
87228         Use 1300 as initial value for length, not PATH_MAX.
87229
87230         * lib/pathmax.h: Clean up cpp syntax.
87231
87232 2001-08-12  Jim Meyering  <meyering@lucent.com>
87233
87234         * lib/gettimeofday.c: New file.
87235         * lib/gtod.h: New file.
87236         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
87237
87238 2001-08-05  Jim Meyering  <meyering@lucent.com>
87239
87240         * m4/jm-macros.m4: Require autoconf-2.52.
87241
87242 2001-08-04  Jim Meyering  <meyering@lucent.com>
87243
87244         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
87245         stmt, to get in sync with glibc.
87246
87247 2001-08-03  Paul Eggert  <eggert@twinsun.com>
87248
87249         The following changes are from gettext 0.10.39 as maintained by
87250         Bruno Haible.
87251
87252         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
87253         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
87254         with inverted sense.  All uses changed.
87255
87256         * lib/mbswidth.c: Don't include <limits.h>.
87257         Include <stdlib.h> and <string.h> unconditionally.
87258         (iswcntrl, mbsinit, ISCNTRL): New macros.
87259         (mbsnwidth): Use K&R style function declarations.
87260         Don't bother checking for MB_LEN_MAX == 1, since the compiler
87261         can optimize it when MB_CUR_MAX == 1.
87262         The width of control characters is zero, not 1.
87263
87264 2001-08-03  Paul Eggert  <eggert@twinsun.com>
87265
87266         The following changes are from gettext 0.10.39 as maintained by
87267         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
87268
87269         * m4/codeset.m4: Upgrade to serial AM1.
87270         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
87271         all uses changed.  Quote first arg of AC_DEFUN.
87272         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
87273
87274         * m4/iconv.m4: Upgrade to serial AM2.
87275         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
87276         Add --with-libconv-prefix.
87277         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
87278         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
87279         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
87280         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
87281         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
87282
87283         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
87284         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
87285         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
87286         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
87287         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
87288         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
87289         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
87290         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
87291         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
87292
87293         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
87294         string.h any more.
87295
87296         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
87297         not the default value.
87298
87299         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
87300         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
87301         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
87302         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
87303         Also check for iswcntrl, used for wcwidth fallback.
87304         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
87305         to Autoconf 2.13.
87306
87307 2001-08-03  Jim Meyering  <meyering@lucent.com>
87308
87309         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
87310         as it was in the original.  Reported by Paul Eggert.
87311
87312 2001-07-16  Jim Meyering  <meyering@lucent.com>
87313
87314         * m4/gettimeofday.m4: New file.
87315         Prompted by a report from Bernhard Baehr.
87316
87317 2001-07-15  Jim Meyering  <meyering@lucent.com>
87318
87319         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
87320         stuff. Now it's in ../Makefile.cfg.
87321
87322 2001-07-15  Jim Meyering  <meyering@lucent.com>
87323
87324         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
87325         (BUILT_SOURCES): Add unlocked-io.h.
87326         (io_functions): Define.
87327         (unlocked-io.h): New rule.
87328         (DISTCLEANFILES): Add unlocked-io.h.
87329         (all-local): Depend on unlocked-io.h, to ensure it is created.
87330
87331         * lib/unlocked-io.hin: New file
87332
87333         * lib/regex.c: Update from glibc.
87334
87335 2001-07-05  Jim Meyering  <meyering@lucent.com>
87336
87337         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
87338         recommendation.
87339         (libfetish_a_SOURCES): Put all .h files here instead.
87340         Remove a thus-exposed (better checks in automake) duplicate and
87341         two unnecessary .h files.
87342
87343 2001-07-04  Jim Meyering  <meyering@lucent.com>
87344
87345         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
87346         that generates jm-glibc-io.m4 so that it doesn't trigger any make
87347         distcheck failure.
87348
87349 2001-07-02  Jim Meyering  <meyering@lucent.com>
87350
87351         The following changes were prompted by suggestions from Bruno Haible.
87352
87353         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
87354         is now generated.
87355         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
87356         definition of EXTRA_DIST.
87357         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
87358         ensure that the generated file is created/updated whenever the list
87359         of $(unlocked_functions) is changed.
87360         (jm-glibc-io.m4): New rule.
87361         (unlocked-io.h): New rule -- currently unused.
87362
87363 2001-06-24  Jim Meyering  <meyering@lucent.com>
87364
87365         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
87366         unmatched right bracket, rather than kludging it with an extra,
87367         falsely-matching quote in a comment.  Patch by Akim Demaille.
87368
87369 2001-06-11  Jim Meyering  <meyering@lucent.com>
87370
87371         * lib/regex.c: Update from GNU libc.
87372
87373 2001-05-27  Jim Meyering  <meyering@lucent.com>
87374
87375         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
87376         Check for ut_type in struct utmp.
87377
87378 2001-05-27  Jim Meyering  <meyering@lucent.com>
87379
87380         * lib/readutmp.h (UT_TYPE): Define.
87381
87382 2001-05-24  Jim Meyering  <meyering@lucent.com>
87383
87384         * lib/argmatch.c: Include "quote.h".
87385         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
87386         quote function.  Reported by Göran Uddeborg.
87387
87388 2001-05-22  Jim Meyering  <meyering@lucent.com>
87389
87390         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
87391         now that we use the package-supplied version unconditionally.
87392         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
87393
87394 2001-05-21  Jim Meyering  <meyering@lucent.com>
87395
87396         * m4/regex.m4: Change a couple backticks to single quotes to avoid
87397         shell syntax errors.
87398
87399 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
87400
87401         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
87402
87403 2001-05-20  Paul Eggert  <eggert@twinsun.com>
87404
87405         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
87406         Don't bother to check library strftime, since
87407         we'll be using our own my_strftime function anyway.
87408         Define my_strftime instead of strftime.
87409
87410 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
87411
87412         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
87413         which is not yet declared.
87414
87415 2001-05-15  Jim Meyering  <meyering@lucent.com>
87416
87417         * m4/regex.m4: Use proper quoting so brackets appear in the test
87418         program.
87419         Reported by, and with help from, Bruno Haible.
87420
87421 2001-05-13  Jim Meyering  <meyering@lucent.com>
87422
87423         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
87424         undefined.
87425
87426 2001-05-11  Paul Eggert  <eggert@twinsun.com>
87427
87428         dirname code cleanup.  base_name now behaves more compatibly
87429         with POSIX basename when given file names that have trailing
87430         slashes, and similarly for dir_name.  Add new primitives
87431         base_len and dir_len.  Put the directory-name-related decls
87432         into dirname.h.
87433
87434         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
87435         * lib/backupfile.c (base_name): Likewise.
87436         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
87437         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
87438         * lib/makepath.c (strip_trailing_slashes): Likewise.
87439         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
87440         ISSLASH): Likewise.
87441         * lib/rename.c (strip_trailing_slashes): Likewise.
87442         * lib/same.c (base_name): Likewise.
87443         * lib/stripslash.c (ISSLASH): Likewise.
87444
87445         * lib/addext.c: Include <dirname.h> after size_t is defined.
87446         * lib/backupfile.c: Likewise.
87447
87448         * lib/addext.c (addext): Use base_len to trim redundant
87449         trailing slashes instead of doing it ourselves.
87450         But do not trim the last slash if it is not redundant.
87451
87452         * lib/backupfile.c (find_backup_file_name,
87453         max_backup_version): Use base_len instead of rolling it ourselves.
87454         Handle the case of "" and (on DOS) "C:" correctly.
87455
87456         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
87457         needed. Include <string.h>, <dirname.h>.
87458         (base_name): Allow file names ending in slashes, other than names
87459         that are all slashes.  In this case, return the basename followed
87460         by the slashes.  This is more general, and can be used in places
87461         where the original base_name purposely had an assertion failure.
87462         (base_len): New function.
87463
87464         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
87465         Do not include <assert.h>; no longer needed.
87466         Include xalloc.h.
87467         (memrchr): Remove decl.
87468         (dir_name_r): Remove.
87469         (dir_len): Renamed from dirlen.  All callers changed.
87470         Rewrite in terms of base_name, for simplicity and consistency.
87471         (dir_name): Never return NULL.  All callers changed.
87472         Do not include <stdlib.h> in test program; no longer needed.
87473         return 0; is fine for test program.
87474
87475         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
87476         New macros.
87477         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
87478
87479         * lib/path-concat.c (path_concat): Use base_len to compute
87480         base length, not strlen; this means we cannot rely on memcpy
87481         to null-terminate.
87482
87483         * lib/same.c (STREQ): Remove.
87484         (same_name): Handle the case where the basename ends in trailing '/'.
87485
87486         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
87487         a slash was stripped.  Do not strip the last slash after a
87488         file system prefix.
87489
87490 2001-05-11  Paul Eggert  <eggert@twinsun.com>
87491
87492         * lib/Makefile.am (libfetish_a_SOURCES):
87493         Add strftime.c, since we now compile it on all hosts.
87494
87495         * lib/strftime.c (my_strftime):
87496         Define to nstrftime if emacs, but only if my_strftime is not defined.
87497         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
87498         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
87499         Add one more extra argument: a nanoseconds value.
87500         All uses changed.
87501         (ns): New macro.
87502         (my_strftime function): Add %N format.
87503         (emacs_strftimeu): Renamed from emacs_strftime,
87504         with extra ut argument.
87505
87506 2001-05-09  Paul Eggert  <eggert@twinsun.com>
87507
87508         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
87509
87510 2001-04-21  Jim Meyering  <meyering@lucent.com>
87511
87512         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
87513         doesn't interfere.
87514
87515 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
87516
87517         * m4/ftruncate.m4: Check for chsize.
87518         Link with ftruncate.o unconditionally if ftruncate is missing.
87519         This was required when cross-compiling to i586-mingw32msvc.
87520
87521 2001-04-08  Jim Meyering  <meyering@lucent.com>
87522
87523         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
87524         recomputed; that's necessary when the offset spans a DST transition.
87525         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
87526
87527 2001-04-02  Jim Meyering  <meyering@lucent.com>
87528
87529         * lib/regex.h, regex.c: Update from GNU libc.
87530
87531 2001-03-24  Jim Meyering  <meyering@lucent.com>
87532
87533         * m4/jm-macros.m4: Require autoconf-2.49d.
87534
87535 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
87536
87537         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
87538
87539 2001-03-19  Paul Eggert  <eggert@twinsun.com>
87540
87541         * lib/version-etc.c (version_etc_copyright): Update to 2001.
87542
87543 2001-03-17  Jim Meyering  <meyering@lucent.com>
87544
87545         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
87546         now that the version in autoconf is equivalent.
87547         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
87548
87549         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
87550         Suggestion from Akim Demaille.
87551
87552         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
87553         (jm_PREREQ_TEMPNAME): New function.
87554
87555 2001-03-16  Paul Eggert  <eggert@twinsun.com>
87556
87557         * lib/tempname.c (uint64_t): Define to uintmax_t if
87558         not defined, and if UINT64_MAX is not defined.
87559         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
87560         Reported by John David Anglin.
87561
87562 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
87563
87564         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
87565         resolve alias if codeset is empty.
87566         * lib/config.charset (BeOS): Use wildcard syntax.
87567
87568 2001-03-13  Jim Meyering  <meyering@lucent.com>
87569
87570         * lib/path-concat.c (path_concat)
87571         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
87572         concatenating e.g., `C:' and `foo'.
87573         From Bruno Haible.
87574
87575 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87576
87577         * lib/localcharset.c (locale_charset): Don't use
87578         setlocale(LC_CTYPE,NULL). Don't return NULL.
87579         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
87580
87581 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87582
87583         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
87584         support for DOS/DJGPP.
87585
87586 2001-03-01  Paul Eggert  <eggert@twinsun.com>
87587
87588         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
87589         lacks mkstemp.  Compile our own tempname.c if we compile our own
87590         mkstemp.c, as mkstemp relies on tempname.
87591
87592 2001-03-01  Jim Meyering  <meyering@lucent.com>
87593
87594         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
87595         AH_VERBATIM really does output its argument verbatim.
87596
87597 2001-02-28  Paul Eggert  <eggert@twinsun.com>
87598
87599         * lib/Makefile.am (libfetish_a_SOURCES):
87600         Add dup-safer.c, fopen-safer.c.
87601         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
87602
87603         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
87604         * lib/unistd-safer.h: New files.
87605
87606 2001-02-25  Paul Eggert  <eggert@twinsun.com>
87607
87608         The mkstemp replacement is taken from glibc 2.2.2, with some
87609         portability fixes for use outside glibc, as follows:
87610
87611         * lib/tempname.c (struct_stat64): New macro.
87612         (direxists, __gen_tempname): Use it.
87613         This avoids a portability problem with Solaris 8.
87614
87615         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
87616         (<stddef.h>, <stdint.h>, <string.h>):
87617         Include only if STDC_HEADERS || _LIBC.
87618         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
87619         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
87620         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
87621         (__set_errno): Define this macro if <errno.h> doesn't.
87622         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
87623         Define these macros if <stdio.h> doesn't.
87624         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
87625         Define these macros if <sys/stat.h>
87626         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
87627         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
87628         __xstat64): Define if not _LIBC.
87629         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
87630         (__gen_tempname): Invoke gettimeofday only if
87631         HAVE_GETTIMEOFDAY || _LIBC;
87632         otherwise, fall back on plain "time".
87633         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
87634
87635         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
87636
87637         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
87638
87639 2001-02-18  Paul Eggert  <eggert@twinsun.com>
87640
87641         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
87642
87643 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87644
87645         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
87646         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
87647         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
87648         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
87649
87650 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87651
87652         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
87653         Remove workaround macros for hosts that have mbrtowc but not
87654         mbstate_t, as we now insist on proper declarations for both
87655         before using mbrtowc.
87656
87657 2001-02-17  Jim Meyering  <meyering@lucent.com>
87658
87659         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
87660         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
87661         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
87662         UnixWare 7.1.1.
87663
87664         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
87665         rather than AC_CACHE_VAL.
87666
87667 2001-02-17  Jim Meyering  <meyering@lucent.com>
87668
87669         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
87670         around included file name.
87671
87672         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
87673
87674         * lib/strftime.c: Update from GNU libc (the only changes were to
87675         comments).
87676
87677 2001-02-17  Jim Meyering  <meyering@lucent.com>
87678
87679         * lib/regex.c: Update from libc.
87680
87681 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
87682
87683         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
87684         clash.
87685
87686 2001-02-16  Paul Eggert  <eggert@twinsun.com>
87687
87688         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
87689         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
87690         Reported by Mark Hounschell via Paul Eggert.
87691
87692 2001-02-07  Jim Meyering  <meyering@lucent.com>
87693
87694         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
87695
87696 2001-02-05  Jim Meyering  <meyering@lucent.com>
87697
87698         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
87699         it includes the patch required for `large file' support with at least
87700         HP-UX's 10.20 /bin/cc.
87701
87702 2001-02-03  Jim Meyering  <meyering@lucent.com>
87703
87704         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
87705         AS_IF, now that it works once again (mysteriously).
87706         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87707
87708 2001-01-30  Jim Meyering  <meyering@lucent.com>
87709
87710         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
87711         * m4/chown.m4: Rename conftestchown to conftest.chown.
87712         * m4/rename.m4: s/conftestdir/conftest.d1/ and
87713         s/conftestdir2/conftest.d2/.
87714         * m4/utimes.m4: s/conftestdata/conftest.data/
87715         Inspired by Pavel Roskin's change in autoconf.
87716
87717 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
87718
87719         * lib/config.charset: Update for FreeBSD 4.2.
87720
87721 2001-01-27  Jim Meyering  <meyering@lucent.com>
87722
87723         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
87724         a use of AS_IF.
87725         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87726
87727 2001-01-26  Jim Meyering  <meyering@lucent.com>
87728
87729         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
87730         quotearg.c includes it.
87731
87732 2001-01-26  Jim Meyering  <meyering@lucent.com>
87733
87734         * lib/quotearg.c: Include stddef.h.
87735         * lib/quote.c: Include stddef.h.
87736         Reported by Axel Kittenberger.
87737
87738         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
87739         line in double quotes so that it evokes a better diagnostic.
87740         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
87741         Reported by Axel Kittenberger.
87742
87743 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
87744
87745         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
87746         as if it was a `charset'.
87747
87748 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87749
87750         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
87751         has const.
87752
87753 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87754
87755         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
87756         to avoid a warning.  Add back 'const' to inptr.
87757
87758 2001-01-20  Jim Meyering  <meyering@lucent.com>
87759
87760         Be sure that headers are checked before used in code compiled
87761         for the type checks.
87762         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
87763         In place of that, invoke jm_CHECK_ALL_TYPES.
87764         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
87765         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
87766         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
87767         The check for ssize_t was mistakenly run before the test for unistd.h.
87768
87769         The configure-time check for stdbool.h was missing.
87770         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
87771         (jm_PREREQ_HASH): New function.
87772
87773 2001-01-17  Jim Meyering  <meyering@lucent.com>
87774
87775         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
87776         for autoconf-2.49c.
87777         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
87778
87779 2001-01-16  Jim Meyering  <meyering@lucent.com>
87780
87781         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
87782         From Bruno Haible.
87783
87784 2001-01-14  Jim Meyering  <meyering@lucent.com>
87785
87786         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
87787         foo and bar.  Create conftestdir/ in the script, not in the C code.
87788         Remove directories in the script, not in the C code.
87789         Remove conftestdir{,2} before trying to create the directory.
87790         Make the entire configure script fail if the mkdir fails.
87791
87792 2001-01-14  Jim Meyering  <meyering@lucent.com>
87793
87794         * lib/rename.c: New file.  From Volker Borchert.
87795         Include stdlib.h, string.h or strings.h, and xalloc.h.
87796         Use strip_trailing_slashes rather than open-coding it.
87797
87798 2001-01-03  Paul Eggert  <eggert@twinsun.com>
87799
87800         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
87801
87802 2001-01-03  Jim Meyering  <meyering@lucent.com>
87803
87804         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
87805         of local `inptr' to avoid warning with some system declarations of
87806         iconv.
87807
87808 2001-01-02  Volker Borchert  <bt@teknon.de>
87809
87810         * m4/rename.m4: New file.
87811         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
87812
87813 2001-01-01  Jim Meyering  <meyering@lucent.com>
87814
87815         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
87816         even on systems with utmpx.h.  It's necessary for the declaration of
87817         utmp's ut_user member.  Reported by Andreas Jaeger.
87818
87819         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
87820         available. They are required for the declarations of getgrgid and
87821         getpwuid resp.
87822         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
87823         Reported by Andreas Jaeger.
87824
87825 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
87826
87827         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
87828         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
87829         so `make install' also works in VPATH builds.
87830
87831 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
87832
87833         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
87834         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
87835         can be used in subdirectories.
87836
87837 2000-12-29  Paul Eggert  <eggert@twinsun.com>
87838
87839         * lib/modechange.c: Do not assume that mode_t uses the
87840         traditional octal encoding.  E.g. "chmod 1 FOO" should set
87841         the other-execute bit of FOO even if S_IXOTH != 1.
87842
87843         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
87844         WOTH, XOTH, ALLM): New macros.
87845         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
87846          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
87847         Use them.
87848         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
87849         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
87850         (mode_compile):
87851         No need to use uintmax_t; unsigned long is long enough.
87852         Don't bother to get suffix since we don't use it.
87853
87854 2000-12-26  Jim Meyering  <meyering@lucent.com>
87855
87856         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
87857         better with autoheader.
87858
87859 2000-12-24  Jim Meyering  <meyering@lucent.com>
87860
87861         * lib/hash.c (is_prime): Return explicit boolean values.
87862         (hash_get_first): Return NULL to appease Irix5.6's 89.
87863         Reported by Nelson Beebe.
87864
87865 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
87866
87867         * lib/localcharset.c (locale_charset): Add support for Win32.
87868
87869 2000-12-18  Paul Eggert  <eggert@twinsun.com>
87870
87871         * lib/physmem.h, lib/physmem.c: New files.
87872
87873         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
87874         (noinst_HEADERS): Add physmem.h.
87875
87876         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
87877         't' for compatibility with Solaris 8 sort.
87878
87879 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
87880
87881         * lib/config.charset: Add support for BeOS.
87882
87883 2000-12-17  Jim Meyering  <meyering@lucent.com>
87884
87885         * m4/dos.m4 (jm_AC_DOS): New file and macro.
87886         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
87887
87888 2000-12-16  Jim Meyering  <meyering@lucent.com>
87889
87890         This bug had a serious impact on chown: `chown N:M FILE' (for integer
87891         N and M) would have treated it like `chown N:N FILE'.
87892
87893         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
87894
87895 2000-12-16  Jim Meyering  <meyering@lucent.com>
87896
87897         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
87898         SHELLS_FILE to a file name that's useful on djgpp systems.
87899         Include stdlib.h.
87900         (ADDITIONAL_DEFAULT_SHELLS): Define.
87901         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
87902         Based mostly on a patch from Prashant TR.
87903
87904 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
87905
87906         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
87907         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
87908         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
87909
87910 2000-12-08  Andreas Schwab  <schwab@suse.de>
87911
87912         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
87913         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
87914
87915 2000-12-07  Jim Meyering  <meyering@lucent.com>
87916
87917         * lib/stripslash.c (ISSLASH): Define.
87918         (strip_trailing_slashes): Use ISSLASH rather than comparing against
87919         `/'.
87920         From Prashant TR.
87921
87922         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
87923         (dir_name_r): Declare this function as static.
87924         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
87925         manifest itself on a name containing a mix of slashes and
87926         backslashes.
87927         Make this function work with names starting with a DOS-style
87928         drive letter and colon prefix.
87929         (dir_name): Append `.' if necessary.
87930         Based mostly on patches from Prashant TR and Eli Zaretskii.
87931
87932         * lib/dirname.h (dir_name_r): Remove prototype.
87933
87934 2000-12-06  Paul Eggert  <eggert@twinsun.com>
87935
87936         * m4/off_t-format.m4: Remove this file.
87937         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
87938
87939 2000-12-06  Jim Meyering  <meyering@lucent.com>
87940
87941         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
87942         replacement strtoull, we may well need the replacement strtoul, too.
87943         Check for declarations of strtoul and strtoull.
87944         Check for strtol.  Mainly as a cue to cause automake to include
87945         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
87946         Check for limits.h -- strtol.c needs it.
87947
87948 2000-12-05  Jim Meyering  <meyering@lucent.com>
87949
87950         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
87951
87952 2000-12-04  Jim Meyering  <meyering@lucent.com>
87953
87954         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
87955         Also include memory.h, stdlib.h, unistd.h if appropriate.
87956         Reported by Andreas Jaeger (conflicting declaration of malloc).
87957
87958 2000-12-02  Jim Meyering  <meyering@lucent.com>
87959
87960         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
87961         * m4/jm-macros.m4 (jm_MACROS): require it.
87962
87963 2000-12-02  Jim Meyering  <meyering@lucent.com>
87964
87965         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
87966
87967 2000-12-01  Paul Eggert  <eggert@twinsun.com>
87968
87969         * lib/memrchr.c: Include <config.h> before any system include file.
87970
87971 2000-11-30  Jim Meyering  <meyering@lucent.com>
87972
87973         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
87974
87975 2000-11-30  Jim Meyering  <meyering@lucent.com>
87976
87977         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
87978
87979 2000-11-29  Paul Eggert  <eggert@twinsun.com>
87980
87981         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
87982
87983 2000-11-26  Jim Meyering  <meyering@lucent.com>
87984
87985         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
87986
87987 2000-11-22  Paul Eggert  <eggert@twinsun.com>
87988
87989         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
87990         size of (size_t) -1; it's not portable.
87991
87992 2000-11-17  Jim Meyering  <meyering@lucent.com>
87993
87994         * lib/strstr.c: Update from GNU libc.
87995
87996 2000-11-17  Akim Demaille  <akim@epita.fr>
87997
87998         * lib/obstack.h: Formatting changes.
87999         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
88000         prevent type checking.
88001         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
88002         cast the value to (void *): assigning a `foo *' to a `void *'
88003         variable is valid.
88004         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
88005
88006 2000-11-16  Jim Meyering  <meyering@lucent.com>
88007
88008         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
88009
88010 2000-11-11  Jim Meyering  <meyering@lucent.com>
88011
88012         * lib/error.c: Add a couple #includes, merging from GNU libc version.
88013
88014 2000-11-10  Jim Meyering  <meyering@lucent.com>
88015
88016         * lib/obstack.h: Update from GNU libc.
88017         * lib/obstack.c: Likewise.
88018
88019 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
88020
88021         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
88022
88023 2000-11-06  Paul Eggert  <eggert@twinsun.com>
88024
88025         * lib/getusershell.c (setusershell): Use rewind rather than
88026         fseek/fseeko, to avoid configuration hassles with fseeko.
88027         Don't bother opening SHELLS_FILE if shellstream is NULL;
88028         it's not necessary.
88029
88030 2000-11-05  Jim Meyering  <meyering@lucent.com>
88031
88032         * lib/makepath.h (make_dir): Declare.
88033         * lib/makepath.c (make_dir): Remove `static' attribute.
88034         Tweak a comment.
88035
88036 2000-11-04  Jim Meyering  <meyering@lucent.com>
88037
88038         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
88039
88040 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
88041
88042         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
88043         last one in a bucket, advance to the next bucket.
88044
88045 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
88046
88047         * lib/fnmatch.c: Do not comment out all the code if we are using
88048         the GNU C library, because in some cases we are replacing buggy
88049         code in the GNU C library itself.
88050
88051 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
88052
88053         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
88054         (regex_compile): Catch bogus \(\1\).
88055
88056 2000-10-30  Paul Eggert  <eggert@twinsun.com>
88057
88058         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
88059         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
88060         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
88061
88062 2000-10-30  Paul Eggert  <eggert@twinsun.com>
88063
88064         * lib/error.h, getline.h, modechange.h:
88065         Remove "2000" from Copyright line, as the file hasn't been
88066         changed this year other than in the copyright notice.
88067
88068         * lib/xalloc.h: Add "2000" to Copyright line, as this file
88069         was changed this year.
88070
88071 2000-10-29  Jim Meyering  <meyering@lucent.com>
88072
88073         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
88074         renaming.
88075         * m4/ls-mntd-fs.m4: Likewise
88076
88077 2000-10-29  Jim Meyering  <meyering@lucent.com>
88078
88079         * lib/xstat.in: Fix grammar in comment.
88080
88081 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
88082
88083         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
88084         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
88085         doesn't define __restrict_arr.
88086
88087 2000-10-28  Jim Meyering  <meyering@lucent.com>
88088
88089         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
88090         (jm_PREREQ_MEMCHR): New function.
88091
88092 2000-10-28  Jim Meyering  <meyering@lucent.com>
88093
88094         * lib/memchr.c: Update from libc.
88095         Adjust for portability:
88096         [HAVE_STDLIB_H]: Include stdlib.h.
88097         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
88098         Undef __memchr, too.
88099         [!weak_alias]: Define __memchr to memchr.
88100
88101         * lib/regex.c: Update from libc.
88102         * lib/regex.h: Likewise.
88103         * lib/getopt1.c: Likewise.
88104         * lib/memcmp.c: Likewise.
88105
88106         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
88107         Avoid using fseek, when possible -- it's broken by design.
88108         Patch by Ulrich Drepper.
88109
88110 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
88111
88112         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
88113         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
88114         Giving in to popular pressure to shut up the compiler with casts.
88115
88116 2000-10-26  Jim Meyering  <meyering@lucent.com>
88117
88118         * lib/strftime.c: Update from libc.
88119
88120 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
88121
88122         * regex.c: More `unsigned char' -> `re_char' changes.
88123         Also change several `int' into `re_wchar_t'.
88124         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
88125         (PUSH_FAILURE_POINTER): Don't cast any more.
88126         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
88127         We want GCC to complain, since this piece of code makes
88128         re_match non-reentrant, which *should* be fixed.
88129         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
88130         (EXTEND_BUFFER): Use RETALLOC.
88131         (SET_LIST_BIT): Don't cast.
88132         (re_wchar_t): New type.
88133         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
88134         that those two functions will always properly return.
88135         (IMMEDIATE_QUIT_CHECK): Cast to void.
88136         (analyse_first): Use recursion rather than an explicit stack.
88137         (re_compile_fastmap): Can't fail anymore.
88138         (re_search_2): Don't check re_compile_fastmap for failure.
88139         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
88140         Now also sets the new value (passed in a new argument).
88141         (re_match_2_internal): Use it.
88142         Also, use a new var `reg' of type size_t when looping through regs
88143         rather than reuse the inappropriate `mcnt'.
88144
88145 2000-10-25  Jim Meyering  <meyering@lucent.com>
88146
88147         * lib/obstack.c: Update from libc.
88148
88149 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
88150
88151         * regex.c (regex_compile): Change the way of handling a range from
88152         a char less than 256 to a char not less than 256.
88153
88154 2000-10-24  Andrew Innes  <andrewi@gnu.org>
88155
88156         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
88157         NT-Emacs only.
88158         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
88159         so that re_search functions only quit when callers expect them to.
88160
88161 2000-10-23  Jim Meyering  <meyering@lucent.com>
88162
88163         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
88164         wrong.  That set_locale call must not have any side effects.
88165         From Paul Eggert.
88166
88167 2000-10-22  Jim Meyering  <meyering@lucent.com>
88168
88169         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
88170         [CYCLIC]: Remove now-unused definition.
88171
88172         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
88173         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
88174         Suggestion from Ulrich Drepper.
88175
88176 2000-10-21  Jim Meyering  <meyering@lucent.com>
88177
88178         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
88179         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
88180         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
88181
88182 2000-10-21  Jim Meyering  <meyering@lucent.com>
88183
88184         * lib/dirname.c (memrchr): Declare if necessary.
88185         (dir_name): Remove the restriction that there be no
88186         trailing slashes.  Now, this code skips past them, effectively
88187         ignoring them.
88188         [TEST_DIRNAME] (main): New unit tests.
88189
88190         * lib/memrchr.c: New file from GNU libc.
88191         Undef __memrchr, too.
88192         [!weak_alias]: Define __memrchr to memrchr.
88193         Guard weak_alias use with `#ifdef weak_alias'.
88194
88195 2000-10-21  Jim Meyering  <meyering@lucent.com>
88196
88197         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
88198         (dir_name): Use dir_name_r.
88199         * lib/dirname.h (dir_name_r): Declare it.
88200
88201 2000-10-17  Jim Meyering  <meyering@lucent.com>
88202
88203         * lib/quote.h (PARAMS): Define and use.
88204         Reported by Akim Demaille.
88205
88206         * lib/getopt.c: Update from libc.
88207
88208 2000-10-16  Jim Meyering  <meyering@lucent.com>
88209
88210         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
88211         setlocale.
88212         From Jan Fedak.
88213
88214 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
88215
88216         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
88217
88218 2000-09-25  Jim Meyering  <meyering@lucent.com>
88219
88220         * lib/md5.h (rol): Define (from GnuPG).
88221
88222         * lib/sha.c: Give credit (GnuPG) where due.
88223         (M): Use rol rather than open-coding it.
88224         Add a FIXME comment.
88225
88226 2000-09-21  Jim Meyering  <meyering@lucent.com>
88227
88228         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
88229         Reported by Michael Stone.
88230
88231 2000-09-20  Jim Meyering  <meyering@lucent.com>
88232
88233         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
88234         (noinst_HEADERS): Add sha.h.
88235         Based on code from Scott G. Miller and from GnuPG.
88236
88237 2000-09-18  Jim Meyering  <meyering@lucent.com>
88238
88239         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
88240         LIBS. Otherwise, everyone ends up linking with -lelf for some
88241         configurations.
88242         Reported by Mike Stone.
88243
88244 2000-09-15  Jim Meyering  <meyering@lucent.com>
88245
88246         * lib/regex.c: Update from libc.
88247
88248 2000-09-10  Jim Meyering  <meyering@lucent.com>
88249
88250         * lib/getopt.c (_getopt_internal): Update from glibc.
88251
88252 2000-09-09  Jim Meyering  <meyering@lucent.com>
88253
88254         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
88255         think it should be used as a general replacement for isascii.
88256         * lib/fnmatch.c: Likewise.
88257         * lib/mbswidth.c: Likewise
88258         * lib/regex.c: Likewise.
88259
88260         Don't use atoi.
88261         * lib/userspec.c: Include sys/param.h and limits.h.
88262         Include xstrtol.h.
88263         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
88264         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
88265         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
88266         UID, GID.  Check range.
88267
88268 2000-09-06  Jim Meyering  <meyering@lucent.com>
88269
88270         * lib/getopt.c (_getopt_internal): Update from glibc.
88271
88272 2000-08-30  Jim Meyering  <meyering@lucent.com>
88273
88274         * lib/strftime.c: Merge in changes from GNU libc.
88275
88276 2000-08-26  Jim Meyering  <meyering@lucent.com>
88277
88278         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
88279         * m4/fpending.m4: New file.
88280
88281 2000-08-26  Jim Meyering  <meyering@lucent.com>
88282
88283         * lib/closeout.c: Include "__fpending.h".
88284         (close_stdout_status): Return right away if there's nothing to flush.
88285
88286         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
88287         * lib/__fpending.c: New file.
88288         * lib/__fpending.h: New file.
88289
88290 2000-08-20  Jim Meyering  <meyering@lucent.com>
88291
88292         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
88293         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
88294         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
88295
88296 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
88297
88298         Improve fileutils installation on systems where running
88299         programs (like install) can't be unlinked.
88300         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
88301         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
88302
88303 2000-08-07  Paul Eggert  <eggert@twinsun.com>
88304
88305         Standardize on "memory exhausted" instead of "Memory exhausted"
88306         or "virtual memory exhausted".
88307         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
88308         "virtual memory exhausted".
88309         * lib/same.c (same_name): Invoke xalloc_die instead of printing
88310         our own message.
88311         * lib/userspec.c (parse_user_spec): Likewise.
88312         * lib/bumpalloc.h: comment fix
88313         * lib/same.c, userspec.c: Include xalloc.h.
88314
88315         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
88316         not char *const and pointing to a constant array.
88317         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
88318         (xrealloc): Comment fix.
88319
88320         * lib/userspec.c (parse_user_spec):
88321         Don't translate a message until just before returning,
88322         to avoid unnecessary translation.
88323
88324 2000-08-07  Jim Meyering  <meyering@lucent.com>
88325
88326         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
88327         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
88328         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
88329         getgroups.c, gethostname.c, getopt.h, group-member.c,
88330         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
88331         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
88332         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
88333         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
88334         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
88335         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
88336         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
88337         yesno.c: Back out Copyright date changes for each file with no change
88338         this year.  This eases coordination with other programs using the same
88339         source code modules.  From Paul Eggert.
88340
88341 2000-08-06  Paul Eggert  <eggert@twinsun.com>
88342
88343         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
88344         not char, for compatibility with glibc 2.1.3 strftime.c.
88345
88346 2000-08-03  Greg McGary  <greg@mcgary.org>
88347
88348         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
88349         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
88350         (EXTEND_BUFFER): Use them.
88351
88352 2000-08-01  Jim Meyering  <meyering@lucent.com>
88353
88354         * lib/dirname.c (ISSLASH): Define.
88355         (BACKSLASH_IS_PATH_SEPARATOR): Define.
88356         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
88357         both `\' and `/' may be use as path separators.
88358         Based on a patch from Prashant TR.
88359
88360 2000-07-31  Paul Eggert  <eggert@twinsun.com>
88361
88362         * lib/quotearg.c (quotearg_n_options): Don't make the initial
88363         slot vector a constant, since it might get modified.
88364
88365 2000-07-31  Jim Meyering  <meyering@lucent.com>
88366
88367         * lib/xmalloc.c: Use `virtual memory exhausted', not
88368         `Memory exhausted'.
88369         * lib/obstack.c (print_and_abort): Likewise.
88370
88371 2000-07-30  Paul Eggert  <eggert@twinsun.com>
88372
88373         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
88374         buffer, so that the caller can always quote one small
88375         component of a "memory exhausted" message in slot 0.
88376         From a suggestion by Jim Meyering.
88377
88378 2000-07-30  Jim Meyering  <meyering@lucent.com>
88379
88380         * lib/makepath.c (make_path): Quote the other instance, too.
88381
88382         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
88383         (STATIC_BUF_SIZE): Define.
88384         (quotearg_n_options): Use only statically allocated storage when
88385         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
88386         than STATIC_BUF_SIZE.
88387
88388 2000-07-29  Jim Meyering  <meyering@lucent.com>
88389
88390         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
88391         * lib/dirname.c (dir_name): Likewise.
88392
88393         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
88394         `/'.
88395
88396         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
88397         (dir_name): Assert that there are no trailing slashes.
88398
88399 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
88400
88401         * lib/mbswidth.h (mbswidth): Add a flags argument.
88402         (mbswidth): New declaration.
88403         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
88404         * lib/mbswidth.c (mbswidth): Add a flags argument.
88405         (mbsnwidth): New function.
88406
88407 2000-07-24  Jim Meyering  <meyering@lucent.com>
88408
88409         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
88410
88411 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88412
88413         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
88414
88415 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88416
88417         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
88418         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
88419         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
88420         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
88421         invoke multibyte primitives.
88422
88423 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88424
88425         * lib/quotearg.c:
88426         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
88427         so that mbstate_t is always defined.
88428
88429         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
88430         be 1 in at least one GCC installation, and this configuration
88431         error is likely to be common.  Ignoring MB_LEN_MAX hurts
88432         performance on hosts that have mbrtowc but have only unibyte
88433         locales, but I assume these hosts are rare.
88434
88435 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88436
88437         * lib/mbswidth.c (_XOPEN_SOURCE):
88438         Don't define; this causes problems on Solaris 7.
88439         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
88440
88441 2000-07-23  Jim Meyering  <meyering@lucent.com>
88442
88443         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
88444         too: getgrgid, getpwuid, getuid.
88445
88446 2000-07-23  Jim Meyering  <meyering@lucent.com>
88447
88448         * lib/basename.c (base_name): Add an assertion.
88449
88450 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
88451
88452         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
88453         shadow its mbsinit function.
88454
88455 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
88456
88457         * lib/mbswidth.h: New file.
88458         * lib/mbswidth.c: New file.
88459         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
88460         (noinst_HEADERS): Add mbswidth.h.
88461
88462 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
88463
88464         * lib/config.charset: Add support for FreeBSD. Improve support for
88465         HP-UX and IRIX 6.
88466
88467 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
88468
88469         * m4/mbswidth.m4: New file.
88470         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
88471
88472 2000-07-15  Jim Meyering  <meyering@lucent.com>
88473
88474         * lib/makepath.c: Include quote.h.
88475         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
88476         corresponding argument in a `quote (...)' call.
88477         Give better diagnostics.
88478
88479         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
88480         (noinst_HEADERS): Add quote.h.
88481
88482         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
88483         from tar's src/misc.c.
88484         * lib/quote.h: New file.  Prototypes for same.
88485
88486 2000-07-14  Paul Eggert  <eggert@twinsun.com>
88487
88488         From a suggestion by Bruno Haible.
88489         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
88490         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
88491         to decide whether to define the BeOS workaround macro;
88492         this adjusts to the change to AC_MBSTATE_T.
88493
88494 2000-07-14  Jim Meyering  <meyering@lucent.com>
88495
88496         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
88497         jm_AC_TYPE_UINTMAX_T.
88498
88499 2000-07-13  Paul Eggert  <eggert@twinsun.com>
88500
88501         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
88502
88503         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
88504         quotearg_buffer_restyled): Add support for
88505         clocale_quoting_style.  Undo previous change to
88506         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
88507         and "{RIGHT QUOTATION MARK}" msgids.
88508
88509 2000-07-10  Paul Eggert  <eggert@twinsun.com>
88510
88511         From a suggestion by Bruno Haible.
88512         * m4/mbstate_t.m4 (AC_MBSTATE_T):
88513         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
88514         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
88515         and mbstate_t, to a single-part test that simply defines mbstate_t.
88516         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
88517         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
88518
88519 2000-07-10  Jim Meyering  <meyering@lucent.com>
88520
88521         * m4/strerror_r.m4: Mirror the correction made in autoconf.
88522
88523         * m4/gnu-source.m4: Output to confdefs.h directly.
88524         Suggestion from Akim Demaille.
88525
88526 2000-07-09  Paul Eggert  <eggert@twinsun.com>
88527
88528         The old behavior of quoting `like this' doesn't look good with
88529         newer, ISO-style fonts.  See:
88530         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
88531
88532         Instead, quote "like this" by default.  Let the translator
88533         tailor the locale-specific quoting behavior by providing
88534         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
88535
88536         * lib/quotearg.c (N_): New macro.
88537         (gettext_default): New function.
88538         (quotearg_buffer_restyled): Use
88539         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
88540         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
88541
88542 2000-07-09  Jim Meyering  <meyering@lucent.com>
88543
88544         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
88545         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
88546
88547         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
88548         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
88549
88550 2000-07-09  Jim Meyering  <meyering@lucent.com>
88551
88552         * lib/Most files: Update copyright dates to include 2000.
88553
88554 2000-07-08  Jim Meyering  <meyering@lucent.com>
88555
88556         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
88557         if not defined.
88558         (xgethostname): Remove now-unnecessary #ifdef.
88559         Move declaration of `err' into loop where it's used.
88560
88561 2000-07-05  Paul Eggert  <eggert@twinsun.com>
88562         and Bruno Haible  <haible@clisp.cons.org>
88563
88564         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
88565         only if the test for an object-type mbstate_t fails.  This
88566         prevents us from mistakenly reporting that mbstate_t is a
88567         system object type after we "#define mbstate_t int" to work
88568         around its lack.
88569
88570 2000-07-05  Paul Eggert  <eggert@twinsun.com>
88571         and Bruno Haible  <haible@clisp.cons.org>
88572
88573         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
88574
88575 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88576
88577         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
88578         to strerror_r.
88579         Include <ctype.h> for use of isalpha.
88580
88581 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88582
88583         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
88584         by allocating a larger buffer. Test the gethostname return value for
88585         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
88586         returns an error and ENAMETOOLONG isn't defined.
88587
88588 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88589
88590         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
88591         dimension.
88592
88593 2000-07-04  Jim Meyering  <meyering@lucent.com>
88594
88595         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
88596         of the deprecated AC_CHECKING.
88597
88598 2000-07-04  Jim Meyering  <meyering@lucent.com>
88599
88600         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
88601         Reported by Bruno Haible.
88602
88603 2000-07-04  Jim Meyering  <meyering@lucent.com>
88604
88605         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
88606         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
88607         lacks mbrtowc.
88608
88609 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88610
88611         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
88612         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
88613
88614 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88615         and Bruno Haible  <haible@clisp.cons.org>
88616
88617         * lib/quotearg.c (mbrtowc):
88618         Assign to *pwc, and return 1 only if result is nonzero.
88619         (iswprint): Use ISPRINT when substituting our own mbrtowc.
88620
88621 2000-07-03  Jim Meyering  <meyering@lucent.com>
88622
88623         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
88624
88625 2000-07-03  Jim Meyering  <meyering@lucent.com>
88626
88627         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
88628         This is necessary to get a definition of e.g., UTMP_FILE on
88629         HP-UX 10.20.
88630         From Bob Proulx.
88631
88632 2000-07-02  Jim Meyering  <meyering@lucent.com>
88633
88634         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
88635
88636         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
88637         AC_LIBOBJ(function_name).
88638         * m4/chown.m4: Likewise.
88639         * m4/fnmatch.m4: Likewise.
88640         * m4/ftruncate.m4: Likewise.
88641         * m4/getgroups.m4: Likewise.
88642         * m4/getline.m4: Likewise.
88643         * m4/group-member.m4: Likewise.
88644         * m4/jm-macros.m4: Likewise.
88645         * m4/lstat.m4: Likewise.
88646         * m4/malloc.m4: Likewise.
88647         * m4/memcmp.m4: Likewise.
88648         * m4/nanosleep.m4: Likewise.
88649         * m4/putenv.m4: Likewise.
88650         * m4/realloc.m4: Likewise.
88651         * m4/regex.m4: Likewise.
88652         * m4/stat.m4: Likewise.
88653         * m4/strftime.m4: Likewise.
88654
88655 2000-07-02  Jim Meyering  <meyering@lucent.com>
88656
88657         * lib/quotearg.c (mbstate_t): Don't define here.
88658
88659 2000-07-02  Jim Meyering  <meyering@lucent.com>
88660
88661         * lib/nanosleep.c (SIGCONT): Define if not already defined.
88662
88663 2000-07-01  Jim Meyering  <meyering@lucent.com>
88664
88665         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
88666
88667 2000-07-01  Jim Meyering  <meyering@lucent.com>
88668
88669         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
88670         problem.
88671
88672 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88673
88674         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
88675         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
88676
88677 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88678
88679         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
88680         per change in ../m4/ls-mntd-fs.m4.
88681         (read_filesystem_list): Ignore symbolic links.
88682
88683 2000-06-29  Jim Meyering  <meyering@lucent.com>
88684
88685         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
88686         for declaration of strcmp.
88687
88688         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
88689
88690         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
88691         Avoid warning by casting result to `char *' to remove `const'.
88692
88693 2000-06-28  Jim Meyering  <meyering@lucent.com>
88694
88695         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
88696         included by quotearg.c, for which we perform this test.  From
88697         Bruno Haible.
88698
88699 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88700
88701         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
88702         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
88703         <utmpx.h> exists, put readutmp.o into LIBOBJS.
88704
88705 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88706
88707         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
88708
88709 2000-06-26  Paul Eggert  <eggert@twinsun.com>
88710
88711         savedir now sets errno on failure and invokes xmalloc to get memory.
88712         Fix a couple of other minor bugs while we're at it.
88713
88714         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
88715         (NAMLEN): Remove macro.
88716         (malloc, realloc): Remove decls.
88717         (stpcpy): Likewise.
88718         ("xalloc.h"): Include.
88719         (NAME_SIZE_DEFAULT): New macro.
88720         (savedir): Use xmalloc / xrealloc to allocate memory.
88721         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
88722         Skip "" directory entries.
88723         Use strlen to calculate directory entry length, since the old method
88724         is rarely used these days and isn't worth supporting.
88725         Don't use a pointer after freeing it.
88726         Check for integer overflow when calculating allocation size.
88727         Use memcpy to copy entries, instead of stpcpy.
88728         Set errno properly when returning NULL.
88729         Check for readdir error.
88730
88731 2000-06-26  Jim Meyering  <meyering@lucent.com>
88732
88733         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
88734
88735 2000-06-25  Jim Meyering  <meyering@lucent.com>
88736
88737         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
88738         Linux header bug when _XOPEN_SOURCE is defined to 500.
88739
88740 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88741
88742         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
88743         deficiency.
88744
88745 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88746
88747         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
88748         Include xalloc.h.
88749         Don't include <stdlib.h>.  Don't declare malloc, realloc.
88750
88751 2000-06-24  Jim Meyering  <meyering@lucent.com>
88752
88753         * m4/strerror_r.m4: Revive this file -- to try out an experimental
88754         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
88755         for which strerror does return char*, but which lacks a conveniently
88756         accessible declaration of the function.  If the compile-test says
88757         strerror_r doesn't work, then resort to a `run'-test that works on
88758         BeOS and segfaults on DEC Unix.
88759
88760 2000-06-24  Jim Meyering  <meyering@lucent.com>
88761
88762         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
88763
88764 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88765
88766         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
88767         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
88768
88769 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88770
88771         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
88772         (mbrtowc, mbstate_t): Define substitutes if
88773         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
88774         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
88775         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
88776
88777 2000-06-23  Jim Meyering  <meyering@lucent.com>
88778
88779         * m4/afs.m4: Add missing AC_MSG_RESULT.
88780         Reported by Bruno Haible.
88781
88782         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
88783         Suggestion from Bruno Haible.
88784
88785 2000-06-23  Jim Meyering  <meyering@lucent.com>
88786
88787         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
88788
88789 2000-06-21  Jim Meyering  <meyering@lucent.com>
88790
88791         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
88792
88793 2000-06-21  Jim Meyering  <meyering@lucent.com>
88794
88795         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
88796         (noinst_HEADERS): Add getstr.h.
88797
88798         * lib/getline.c (getstr): Move into a separate file.
88799         * lib/getstr.c (getstr): New file, extracted from getline.c, with
88800         the following changes: new parameter, delim2; both delim[12]
88801         parameters have type `int', not `char'.  The latter would lose
88802         with 8-bit delimiters.
88803         * lib/getstr.h: New file.
88804
88805 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88806
88807         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
88808         than 1024, return a memory chunk of least possible size, instead
88809         of size PATH_MAX + 2. In the loop, increment the size proportionally.
88810         Use free/xmalloc instead of xrealloc to avoid copying for very long
88811         paths.
88812
88813 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88814
88815         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
88816         the empty string.
88817
88818 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88819
88820         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
88821         address, not strdup.  Include <stdlib.h> and don't declare free().
88822
88823 2000-06-19  Jim Meyering  <meyering@lucent.com>
88824
88825         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
88826
88827 2000-06-18  Jim Meyering  <meyering@lucent.com>
88828
88829         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
88830
88831         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
88832         `checking whether...' message to be consistent with that of the
88833         lstat test.
88834
88835 2000-06-18  Jim Meyering  <meyering@lucent.com>
88836
88837         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
88838         Besides, these days every porting target provides a mkdir function.
88839
88840         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
88841         needed. (this snippet comes from src/system.h).
88842
88843 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
88844
88845         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
88846
88847 2000-06-15  Paul Eggert  <eggert@twinsun.com>
88848
88849         * lib/human.c (adjust_value): New function.
88850         (human_readable_inexact): Apply rounding style even when
88851         printing approximate values.
88852
88853 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88854
88855         * lib/human.c (human_readable_inexact): Allow an input block
88856         size that is not a multiple of the output block size, and vice versa.
88857         Reported by Piergiorgio Sartor.
88858
88859 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88860
88861         * lib/getdate.y (get_date): Apply relative times after time
88862         zone indicator, not before.  Reported by Todd A. Jacobs.
88863
88864 2000-06-13  Jim Meyering  <meyering@lucent.com>
88865
88866         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
88867
88868         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
88869
88870 2000-06-12  Paul Eggert  <eggert@twinsun.com>
88871
88872         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
88873
88874 2000-06-12  Jim Meyering  <meyering@lucent.com>
88875
88876         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
88877         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
88878         optional argument.
88879         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
88880         the optional argument, `lib'.
88881
88882 2000-06-08  Jim Meyering  <meyering@lucent.com>
88883
88884         * m4/largefile.m4: Remove file (now that it's part of autoconf).
88885
88886 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88887
88888         Rewrite largefile configuration so that we don't need to run
88889         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
88890         AC_CANONICAL_HOST in configure.in -- jmm]
88891
88892         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
88893         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
88894         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
88895         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
88896         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
88897         All uses changed.
88898         Instead of inspecting the output of getconf, try to compile the
88899         test program without and with the macro definition.
88900         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
88901         for getconf.  Instead, check for the needed flags by compiling
88902         test programs.
88903
88904 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88905
88906         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
88907
88908 2000-06-04  Jim Meyering  <meyering@lucent.com>
88909
88910         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
88911         SunOS 4.1.4 for which gid_t is an unsigned type.
88912
88913 2000-06-03  Jim Meyering  <meyering@lucent.com>
88914
88915         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
88916         now that autoconf requires that.
88917
88918         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
88919         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
88920         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
88921
88922 2000-06-03  Jim Meyering  <meyering@lucent.com>
88923
88924         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
88925
88926 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88927
88928         * m4/glibc21.m4: New file.
88929         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
88930
88931 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88932
88933         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
88934         newer, don't install charset.alias.
88935         * lib/config.charset: Change the Linux/glibc rules so they become empty
88936         on glibc-2.1 or newer.
88937
88938 2000-06-02  Jim Meyering  <meyering@lucent.com>
88939
88940         * lib/mountlist.c: Back out last change.  Instead, do this...
88941         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
88942         me_dummy member using the same `ignore'-testing code.
88943         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
88944         fs_type strings.
88945         From Mark D. Roth.
88946
88947 2000-05-29  Jim Meyering  <meyering@lucent.com>
88948
88949         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
88950         mounts with the `ignore' attribute.  Based on a patch from
88951         Mark D. Roth.
88952
88953 2000-05-28  Jim Meyering  <meyering@lucent.com>
88954
88955         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
88956         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88957         * m4/stat.m4: Likewise.
88958         * m4/lstat.m4: Likewise.
88959         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
88960
88961         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
88962         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
88963
88964 2000-05-26  Jim Meyering  <meyering@lucent.com>
88965
88966         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
88967
88968 2000-05-24  Jim Meyering  <meyering@lucent.com>
88969
88970         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
88971         autoconf requires that.
88972         * m4/lib-check.m4: Likewise.
88973         * m4/jm-macros.m4: Likewise.
88974         * m4/strftime.m4: Likewise.
88975
88976         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
88977         AC_CHECK_DECLS, now that autoconf requires that.
88978
88979 2000-05-22  Jim Meyering  <meyering@lucent.com>
88980
88981         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88982         * m4/lstat.m4: Likewise.
88983
88984 2000-05-22  Jim Meyering  <meyering@lucent.com>
88985
88986         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
88987
88988 2000-05-20  Jim Meyering  <meyering@lucent.com>
88989
88990         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
88991         (jm_PREREQ): Use it.
88992
88993 2000-05-18  Jim Meyering  <meyering@lucent.com>
88994
88995         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
88996         back, too, since it may have been modified by allocate_entry.
88997         (hash_delete): Rewrite to use neither the assignment operator
88998         nor the comma operator in an if-expression.
88999
89000 2000-05-15  Paul Eggert  <eggert@twinsun.com>
89001
89002         * lib/closeout.c:
89003         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
89004         Remove; no longer needed.
89005         "quotearg.h": Add include.
89006         (file_name): Do not bother to explicitly initialize to NULL; it's less
89007         efficient on some hosts.
89008         (close_stdout_status): Remove test as to whether stdout was already
89009         closed; it breaks for the case "echo x | sort >&-".
89010         Quote file name colons.
89011         Do not assume that _("write error") lacks format strings.
89012
89013 2000-05-15  Jim Meyering  <meyering@lucent.com>
89014
89015         * lib/version-etc.c (version_etc_copyright): Update the copyright
89016         string used in all --version output.
89017
89018 2000-05-14  Jim Meyering  <meyering@lucent.com>
89019
89020         * lib/closeout.c (close_stdout_set_file_name): New function.
89021         (close_stdout_status): Use new file-scoped global.
89022         Return right away if fstat says the stdout file descriptor is invalid.
89023         * lib/closeout.h (close_stdout_set_file_name): Declare.
89024
89025 2000-05-10  Jim Meyering  <meyering@lucent.com>
89026
89027         * lib/closeout.c [default_exit_status]: New file-scoped variable.
89028         (close_stdout_set_status): New function.
89029         * lib/closeout.h (close_stdout_set_status): Declare.
89030
89031 2000-05-09  Jim Meyering  <meyering@lucent.com>
89032
89033         * m4/gettext.m4: Rename this...
89034         * m4/libintl.m4: ...to this.
89035
89036 2000-05-08  Jim Meyering  <meyering@lucent.com>
89037
89038         * lib/long-options.c: Don't include closeout.h.
89039         (parse_long_options): Don't call close_stdout for --version.
89040
89041 2000-05-06  Paul Eggert  <eggert@twinsun.com>
89042
89043         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
89044         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
89045         2.1.3 bug.  This avoids a clash when files like regex.c define
89046         _GNU_SOURCE.
89047
89048 2000-05-06  Jim Meyering  <meyering@lucent.com>
89049
89050         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
89051         (AC_REPLACE_FUNCS): Add strnlen.
89052
89053         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
89054         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
89055
89056         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
89057         AC_SEARCH_LIBS call for nanosleep.
89058         (LIB_NANOSLEEP): Set and AC_SUBST.
89059
89060 2000-05-06  Jim Meyering  <meyering@lucent.com>
89061
89062         * lib/strnlen.c: Undefine __strnlen and strnlen.
89063         [!weak_alias]: Define __strnlen to strnlen.
89064
89065         * lib/atexit.c: New file, from libiberty.
89066
89067 2000-05-06  Jim Meyering  <meyering@lucent.com>
89068
89069         * lib/closeout.c (close_stdout_status): Also check for errors on the
89070         stderr stream.
89071
89072 2000-05-05  Jim Meyering  <meyering@lucent.com>
89073
89074         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
89075         AC_SEARCH_LIBS call for clock_gettime.
89076         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
89077
89078         * m4/search-libs.m4: Update from autoconf.
89079
89080         su doesn't work on Solaris 2.6.
89081         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
89082         <shadow.h>.  Reported by Dragos Harabor.
89083
89084 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
89085
89086         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
89087         memcpy instead of xmalloc, xrealloc, path_concat.
89088         (locale_charset): Treat empty environment variables as absent.
89089         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
89090
89091 2000-05-04  Jim Meyering  <meyering@lucent.com>
89092
89093         * lib/getopt.c: Update from glibc.
89094         * lib/obstack.c: Likewise.
89095         * lib/obstack.h: Likewise.
89096         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
89097         file
89098
89099         * lib/regex.h: Likewise.
89100         * lib/strndup.c: Likewise.
89101         * lib/strnlen.c: New file, from glibc.
89102
89103 2000-05-03  Jim Meyering  <meyering@lucent.com>
89104
89105         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
89106
89107 2000-05-02  Paul Eggert  <eggert@twinsun.com>
89108
89109         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
89110         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
89111         compile-time test, rather than inspecting host and OS, to
89112         decide whether to define _LARGEFILE_SOURCE.
89113
89114 2000-05-01  Jim Meyering  <meyering@lucent.com>
89115
89116         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
89117
89118         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
89119         Based on a patch from Bruno Haible.
89120
89121 2000-05-01  Jim Meyering  <meyering@lucent.com>
89122
89123         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
89124
89125 2000-04-29  Jim Meyering  <meyering@lucent.com>
89126
89127         * lib/path-concat.c: Declare strdup only if it's not defined.
89128         * lib/canon-host.c: Likewise.
89129
89130 2000-04-28  Jim Meyering  <meyering@lucent.com>
89131
89132         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
89133         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
89134         is included first, then limits.h is included by locale.h by libintl.h.
89135         From John David Anglin.
89136
89137 2000-04-25  Jim Meyering  <meyering@lucent.com>
89138
89139         * lib/makepath.c (S_IRWXUGO): Define.
89140         (make_path): Always perform explicit chmod if MODE specifies any
89141         of the `special' permission bits.  Prompted by a bug report against
89142         install from Mate Wierdl and Joost van Baal.
89143
89144 2000-04-18  Jim Meyering  <meyering@lucent.com>
89145
89146         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
89147         (jm_PREREQ): Use it.
89148
89149 2000-04-18  Jim Meyering  <meyering@lucent.com>
89150
89151         * lib/README: New file.
89152
89153         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
89154         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
89155
89156 2000-04-17  Jim Meyering  <meyering@lucent.com>
89157
89158         Get it right :-)
89159         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
89160         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
89161         Suggestion from Akim Demaille.
89162
89163 2000-04-17  Jim Meyering  <meyering@lucent.com>
89164
89165         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
89166         the definition of it to rpl_strftime also defined-away the system's
89167         declaration.
89168
89169 2000-04-15  Jim Meyering  <meyering@lucent.com>
89170
89171         Use `C' to denote so-called `contiguous' files, the same way
89172         that tar does.
89173         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
89174         (ftypelet): Use S_ISCTG.
89175         From Michael Deutschmann.
89176
89177 2000-04-14  Jim Meyering  <meyering@lucent.com>
89178
89179         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
89180         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
89181         clobbered.
89182
89183 2000-04-14  Jim Meyering  <meyering@lucent.com>
89184
89185         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
89186
89187 2000-04-13  Jim Meyering  <meyering@lucent.com>
89188
89189         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
89190         AH_VERBATIM to insert required #ifndef into config.h.in.
89191         Suggestion from Akim Demaille.
89192
89193 2000-04-12  Jim Meyering  <meyering@lucent.com>
89194
89195         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
89196         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
89197         Christian Krackowizer.
89198
89199         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
89200         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
89201         (AC_SYS_LARGEFILE): Require.
89202         (AM_C_PROTOTYPES): Require.
89203
89204 2000-04-08  Jim Meyering  <meyering@lucent.com>
89205
89206         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
89207         names don't conflict.  Reported by Eli Zaretskii.
89208
89209 2000-04-07  Jim Meyering  <meyering@lucent.com>
89210
89211         * lib/putenv.c: Move inclusion of errno.h so it follows that of
89212         sys/types.h, to work around system header problems on AIX 3.2.5.
89213         From Bruno Haible.
89214
89215 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
89216
89217         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
89218         bug.  Deal with the different error behavior of Irix iconv.
89219
89220 2000-04-05  Paul Eggert  <eggert@twinsun.com>
89221
89222         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
89223         IRIX if the installer said otherwise.
89224
89225 2000-04-05  Jim Meyering  <meyering@lucent.com>
89226
89227         Portability tweaks required for ultrix4.3.
89228         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
89229         (jm_CHECK_DECLS): Add getutent to the list of functions.
89230         (_jm_DECL_HEADERS): Add utmpx.h.
89231         From John David Anglin.
89232
89233         * m4/strftime.m4: Back out the 2000-04-02 change.
89234         Instead of that change, simply undefine putenv in the test program.
89235
89236 2000-04-05  Jim Meyering  <meyering@lucent.com>
89237
89238         Portability tweaks required for ultrix4.3.
89239         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
89240         getutent.
89241         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
89242         * lib/canon-host.c: Declare strdup.
89243         * lib/path-concat.c: Likewise.
89244         From John David Anglin.
89245
89246 2000-04-04  Jim Meyering  <meyering@lucent.com>
89247
89248         Be more DOS 8.3-friendly.
89249         * lib/ref-add.sin: Renamed from ref-add.sed.in.
89250         * lib/ref-del.sin: Renamed from ref-del.sed.in.
89251         * lib/Makefile.am: Reflect renaming.
89252         Reported by Eli Zaretskii.
89253
89254         Use a temporary file name that won't clash with `charset.alias'
89255         in the DOS 8.3 name space.
89256         * lib/Makefile.am (charset_tmp): Define.
89257         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
89258         (uninstall-local): Likewise.
89259         Reported by Eli Zaretskii.
89260
89261 2000-04-03  Jim Meyering  <meyering@lucent.com>
89262
89263         * m4/gettext.m4: Fix typo in comment.
89264
89265         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
89266         textutils/configure.in).  Suggestion from Paul Eggert.
89267         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
89268
89269 2000-04-02  Paul Eggert  <eggert@twinsun.com>
89270
89271         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
89272         variable in the shell rather than using putenv, which isn't
89273         portable.  This avoids the configure-time inter-test dependency
89274         on the potentially-renamed putenv function.
89275
89276 2000-03-30  Paul Eggert  <eggert@twinsun.com>
89277
89278         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
89279         before checking struct stat.st_blksize, so that
89280         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
89281
89282 2000-03-29  Paul Eggert  <eggert@twinsun.com>
89283
89284         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
89285         since strftime.c uses HAVE_STRFTIME to decide whether to use
89286         the underlying strftime.
89287
89288 2000-03-29  Paul Eggert  <eggert@twinsun.com>
89289
89290         * lib/time/strftime.c (my_strftime): Make sure we call the system
89291         strftime, not ourselves, when invoking the underlying strftime.
89292
89293 2000-03-24  Jim Meyering  <meyering@lucent.com>
89294
89295         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
89296         (charset_alias): Define.
89297         (install-exec-local): Factor out common code.
89298         (uninstall-local): Split lines longer than 80.
89299         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
89300         (SUFFIXES): Define.
89301         (.sed.in.sed): New rule.  Don't redirect directly to $@.
89302         (CLEANFILES): Add ref-add.sed and ref-del.sed.
89303
89304 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
89305
89306         * lib/config.charset: Output a line containing "Packages using this
89307         file".
89308         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
89309         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
89310         ref-del.sed): New rules.
89311
89312 2000-03-17  Jim Meyering  <meyering@lucent.com>
89313
89314         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
89315         Otherwise, include <strings.h>
89316
89317 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
89318
89319         * lib/unicodeio.c (utf8_wctomb): New function.
89320         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
89321         format instead of in UCS-4 with platform dependent endianness.
89322
89323 2000-03-10  Jim Meyering  <meyering@lucent.com>
89324
89325         * m4/lib-check.m4: Look for getspnam in -lgen, too.
89326         From Marco Franzen.
89327
89328 2000-03-07  Paul Eggert  <eggert@twinsun.com>
89329
89330         * lib/savedir.c (savedir): Work even if directory size is
89331         negative; this can happen with some screwy NFS configurations.
89332
89333 2000-03-06  Jim Meyering  <meyering@lucent.com>
89334
89335         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
89336         if it's NULL (because we ran out of memory).  From Bruno Haible.
89337
89338 2000-03-05  Jim Meyering  <meyering@lucent.com>
89339
89340         * lib/localcharset.c ("path-concat.h"): Include.
89341         (get_charset_aliases): Use path_concat instead of ANSI string
89342         concatenation.
89343
89344         * lib/unicodeio.h (PARAMS): Define.
89345         Use it to guard prototype.
89346
89347 2000-03-04  Jim Meyering  <meyering@lucent.com>
89348
89349         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
89350         for lib/localcharset.c.
89351
89352 2000-03-04  Jim Meyering  <meyering@lucent.com>
89353
89354         * lib/Makefile.am (install-exec-local): Create $(libdir) before
89355         installing into it.
89356         (uninstall-local): Uncomment this rule so `make distcheck' works
89357         once again.
89358
89359         * lib/unicodeio.c (<errno.h>): Include it.
89360         (errno): Declare if not defined.
89361
89362         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
89363
89364         * lib/config.charset: New version, incorporating remarks from a linux
89365         i18n mailing list.  From Bruno Haible.
89366
89367 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
89368
89369         * m4/codeset.m4: New file.
89370         * m4/iconv.m4: New file.
89371         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
89372
89373 2000-03-03  Jim Meyering  <meyering@lucent.com>
89374
89375         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
89376
89377 2000-03-02  Jim Meyering  <meyering@lucent.com>
89378
89379         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
89380         the messages come out on separate lines.
89381
89382         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
89383         rather than jm_CHECK_DECLARATIONS.
89384         * m4/decl.m4: Remove now-unused file.
89385
89386         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
89387         geteuid.
89388
89389 2000-03-02  Jim Meyering  <meyering@lucent.com>
89390
89391         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
89392
89393 2000-03-01  Jim Meyering  <meyering@lucent.com>
89394
89395         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
89396         * lib/unicodeio.c: Likewise.
89397
89398 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
89399
89400         * lib/config.charset: New file.
89401         * lib/localcharset.c: New file.
89402         * lib/unicodeio.h, lib/unicodeio.c: New files.
89403         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
89404         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
89405         (noinst_HEADERS): Add unicodeio.h.
89406         (all-local, install-exec-local, charset.alias): New targets.
89407
89408 2000-02-28  Paul Eggert  <eggert@twinsun.com>
89409
89410         * lib/quotearg.c (ALERT_CHAR): New macro.
89411         (quotearg_buffer_restyled): Use it.
89412
89413 2000-02-27  Jim Meyering  <meyering@lucent.com>
89414
89415         * m4/check-decl.m4: Add getenv to the list.
89416
89417 2000-02-27  Jim Meyering  <meyering@lucent.com>
89418
89419         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
89420         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
89421
89422         * lib/backupfile.c: Guard inclusion of stdlib.h with
89423         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
89424         Declare malloc if needed.
89425
89426         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
89427         `#ifndef HAVE_DECL..'
89428         now that autoconf always defines the HAVE_DECL_ symbols.
89429         * lib/human.c: Likewise.
89430         * lib/same.c: Likewise.
89431         * lib/strtoumax.c: Likewise.
89432
89433         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
89434         declaration check was not run.
89435         * lib/hash.c: Likewise.
89436         * lib/human.c: Likewise.
89437         * lib/same.c: Likewise.
89438         * lib/strtoumax.c: Likewise.
89439
89440         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
89441         `.', then first look up the entire `.'-containing string as a login
89442         name.
89443
89444 2000-02-23  Jim Meyering  <meyering@lucent.com>
89445
89446         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
89447         in place of my hack.
89448
89449 2000-02-18  Paul Eggert  <eggert@twinsun.com>
89450
89451         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
89452         (textint): New typedef.
89453         (parser_control): Member year changed from int to textint.
89454         All uses changed.
89455         (YYSTYPE): Removed; replaced by %union with int and textint members.
89456         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
89457         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
89458         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
89459         (tSNUMBER, tUNUMBER): Now of type <textintval>.
89460         (date, number, to_year): Use width of number in digits, not its value,
89461         to determine whether it's a 2-digit year, or a 2-digit time.
89462         (yylex): Store number of digits of numeric tokens.
89463         Reported by John Kendall.
89464
89465         (parser_control): Changed from struct parser_control to typedef (for
89466         consistency).  All uses changed.
89467
89468         (tID): Removed; not used.
89469         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
89470
89471 2000-02-14  Paul Eggert  <eggert@twinsun.com>
89472
89473         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
89474         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
89475
89476 2000-02-12  Jim Meyering  <meyering@lucent.com>
89477
89478         * lib/userspec.c (ISDIGIT): Define it.
89479         (isdigit): Remove definition.
89480         (is_number): Use ISDIGIT, not isdigit.
89481         <libintl.h>: Include.
89482         (_ and N_): Define.
89483         (parse_user_spec): Mark translatable strings.
89484
89485 2000-02-10  Jim Meyering  <meyering@lucent.com>
89486
89487         With these changes, nanosleep.[ch] are finally enough like the other
89488         lib/* replacement files to compile on a few more losing systems.
89489
89490         * lib/nanosleep.h: Don't include config.h.
89491         Remove prototype from declaration of nanosleep.
89492         (PARAMS): Remove now-unneeded definition.
89493         * lib/nanosleep.c: #undef nanosleep.
89494         (rpl_nanosleep): Rename from nanosleep.
89495
89496 2000-02-10  Jim Meyering  <meyering@lucent.com>
89497
89498         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
89499         gnu_nanosleep to rpl_nanosleep.
89500
89501 2000-02-09  Jim Meyering  <meyering@lucent.com>
89502
89503         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
89504         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
89505
89506 2000-02-08  Akim Demaille  <akim@epita.fr>
89507
89508         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
89509         `[' and `]' and remove uses of `changequote'.
89510         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
89511         (AC_SYS_LARGEFILE): Likewise.
89512         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
89513         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
89514         of changequote.
89515         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
89516         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
89517         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
89518         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
89519
89520 2000-02-05  Jim Meyering  <meyering@lucent.com>
89521
89522         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
89523         Remove explicit use of AC_HEADER_TIME.  It is required by
89524         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
89525         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
89526         in autoconf whereby the expansion of the latter ended up preceding
89527         the expansion of its prerequisite, AC_HEADER_TIME.
89528         Reported by Volker Borchert.
89529
89530 2000-02-03  Jim Meyering  <meyering@lucent.com>
89531
89532         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
89533
89534 2000-02-03  Jim Meyering  <meyering@lucent.com>
89535
89536         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
89537         rather than with `#if HAVE_UTMPNAME'.
89538
89539 2000-02-02  Jim Meyering  <meyering@lucent.com>
89540
89541         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
89542         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
89543         Reported by Eli Zaretskii.
89544
89545 2000-02-01  Jim Meyering  <meyering@lucent.com>
89546
89547         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
89548
89549 2000-01-31  Jim Meyering  <meyering@lucent.com>
89550
89551         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
89552         functions.  Add the time.h and sys/time.h headers along with the
89553         AC_REQUIRE'ment of AC_HEADER_TIME.
89554
89555 2000-01-31  Jim Meyering  <meyering@lucent.com>
89556
89557         * lib/nanosleep.h (nanosleep): Guard declaration with
89558         `#if ! HAVE_DECL_NANOSLEEP'.
89559         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
89560         the declaration in that vendor's sys/timers.h.
89561         Reported by Christian Krackowizer.
89562
89563         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
89564         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
89565         (ISPRINT): Likewise.
89566         Reported by Tom Tromey.
89567
89568 2000-01-30  Jim Meyering  <meyering@lucent.com>
89569
89570         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
89571
89572         * m4/prereq.m4 (utmp_includes): Define.
89573         Check for ut_user and ut_name members in both struct utmpx
89574         and struct utmp.
89575
89576 2000-01-30  Jim Meyering  <meyering@lucent.com>
89577
89578         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
89579         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
89580         header files where only utmpx.ut_user is declared.
89581
89582         * lib/readutmp.h (UT_USER): Define.
89583
89584 2000-01-29  Jim Meyering  <meyering@lucent.com>
89585
89586         * m4/lib-check.m4: New file containing library-related checks from
89587         fileutils and sh-utils (textutils had none).
89588
89589 2000-01-28  Jim Meyering  <meyering@lucent.com>
89590
89591         * m4/perl.m4: Change format of warning message to look more like that
89592         from the missing script.  Suggestion from François Pinard.
89593
89594 2000-01-25  Jim Meyering  <meyering@lucent.com>
89595
89596         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
89597         well as time.h in the compile check.
89598         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
89599         Fix typo in cross-compiling case: s/yes/no/.
89600
89601 2000-01-23  Jim Meyering  <meyering@lucent.com>
89602
89603         * m4/jm-macros.m4: Move df-related tests here from
89604         fileutils/configure.in
89605
89606         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
89607         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
89608
89609         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
89610         s/space/ac_fsusage_space/.
89611         (jm_FILE_SYSTEM_USAGE): Take two parameters.
89612
89613         * m4/ftruncate.m4: New file (derived from part of
89614         fileutils/configure.in).
89615         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
89616         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
89617
89618         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
89619         AC_SUBST these here, rather than just in sh-util/configure.in, so
89620         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
89621         all the same.
89622         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
89623         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
89624         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
89625         (AC_SUBST(POW_LIBM)): Likewise.
89626         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
89627
89628 2000-01-23  Jim Meyering  <meyering@lucent.com>
89629
89630         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
89631         obstack.c.
89632
89633 2000-01-22  Jim Meyering  <meyering@lucent.com>
89634
89635         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
89636
89637         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
89638
89639         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
89640         configure.in
89641         (AC_CHECK_HEADERS): Likewise for sh-utils.
89642         (AC_CHECK_HEADERS): Likewise for textutils.
89643         Merge the three lists of headers.
89644
89645         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
89646         from fileutils' configure.in.
89647
89648         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
89649         code. Moved tests into their own function (_jm_DECL_HEADERS) in
89650         check-decl.m4.
89651
89652         * m4/check-decl.m4: Use #if rather than #ifdef.
89653         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
89654         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
89655         (_jm_DECL_HEADERS): Define new function.
89656         (jm_CHECK_DECLARATIONS): Require it.
89657
89658 2000-01-22  Jim Meyering  <meyering@lucent.com>
89659
89660         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
89661         [! HAVE_DECL_STRTOULL]: Declare strtoull.
89662         Required for some AIX systems.  Reported by Christian Krackowizer.
89663         [TESTING] (main): New function.
89664
89665         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
89666         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
89667         letters.
89668
89669         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
89670         iswprint.
89671
89672         * lib/strverscmp.c (ISDIGIT): Define.
89673         (strverscmp): Use ISDIGIT, not isdigit.
89674
89675 2000-01-19  Jim Meyering  <meyering@lucent.com>
89676
89677         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
89678         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
89679         defines `struct timespec' in <sys/time.h>
89680
89681         * m4/c-bs-a.m4: Remove uses of changequote altogether.
89682         Thanks to Akim for explaining.
89683
89684 2000-01-17  Paul Eggert  <eggert@twinsun.com>
89685
89686         * lib/nanosleep.c (nanosleep):
89687         Don't use SA_INTERRUPT to decide whether to call sigaction, as
89688         POSIX.1 doesn't require SA_INTERRUPT and some systems
89689         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
89690         it's been part of POSIX.1 since day 1 (in 1988).
89691
89692 2000-01-17  Jim Meyering  <meyering@lucent.com>
89693
89694         * lib/interlock: Remove unused file.  Reported by François Pinard.
89695
89696 2000-01-16  Paul Eggert  <eggert@twinsun.com>
89697
89698         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
89699         alert, backslash, formfeed, and vertical tab unnecessarily in
89700         shell quoting style.
89701
89702 2000-01-16  Jim Meyering  <meyering@lucent.com>
89703
89704         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
89705         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
89706         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
89707         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
89708
89709 2000-01-16  Jim Meyering  <meyering@lucent.com>
89710
89711         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
89712         because the latter didn't work.
89713
89714 2000-01-15  Jim Meyering  <meyering@lucent.com>
89715
89716         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
89717         (AC_REPLACE_FUNCS): Add memcpy and memset.
89718         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
89719         Add strpbrk.
89720         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
89721
89722 2000-01-12  Jim Meyering  <meyering@lucent.com>
89723
89724         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
89725         (jm_PREREQ): Use it.
89726         (jm_PREREQ_READUTMP): New macro.
89727         (jm_PREREQ): Use it.
89728
89729 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89730
89731         Quote multibyte characters correctly.
89732         * m4/c-bs-a.m4: New file.
89733         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
89734         (jm_PREREQ): Use it.
89735
89736 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89737
89738         * m4/uintmax_t.m4: Port to autoconf 2.13.
89739
89740 2000-01-08  Jim Meyering  <meyering@ascend.com>
89741
89742         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
89743         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
89744
89745 2000-01-04  Jim Meyering  <meyering@ascend.com>
89746
89747         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
89748         jm_STRUCT_DIRENT_D_TYPE.
89749         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
89750         jm_STRUCT_DIRENT_D_INO.
89751         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
89752         jm_STRUCT_UTIMBUF.
89753         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
89754         renamings.
89755         * m4/utime.m4: Likewise.
89756
89757         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
89758         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
89759
89760 2000-01-03  Paul Eggert  <eggert@twinsun.com>
89761
89762         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
89763         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
89764
89765 2000-01-02  Jim Meyering  <meyering@ascend.com>
89766
89767         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
89768         remember if this is necessary.
89769
89770 1999-12-26  Jim Meyering  <meyering@ascend.com>
89771
89772         * m4/jm-macros.m4: Use it here.
89773         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
89774
89775 1999-12-23  Jim Meyering  <meyering@ascend.com>
89776
89777         * m4/jm-macros.m4: Check for clock_gettime (moved from
89778         fileutils/configure.in)
89779         Check for gettimeofday.
89780
89781 1999-12-20  Jim Meyering  <meyering@ascend.com>
89782
89783         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
89784         autoconf-2.14a-1999-12-20.
89785
89786 1999-12-19  Jim Meyering  <meyering@ascend.com>
89787
89788         * m4/lstat-slash.m4: New file.
89789         * m4/jm-macros.m4: Use the new macro:
89790         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89791
89792 1999-12-07  Jim Meyering  <meyering@ascend.com>
89793
89794         * m4/perl.m4: Require that File::Compare be available, too.
89795         Too many systems seem to lack it.
89796
89797         * m4/strftime.m4: Add checks for most of the cpp macros tested in
89798         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
89799
89800 1999-11-18  Paul Eggert  <eggert@twinsun.com>
89801
89802         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
89803         problem with the QNX 4.25 shell, which doesn't propagate exit
89804         status of failed commands inside shell assignments.
89805
89806 1999-11-17  Jim Meyering  <meyering@ascend.com>
89807
89808         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
89809
89810 1999-11-07  Jim Meyering  <meyering@ascend.com>
89811
89812         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
89813
89814 1999-11-06  Jim Meyering  <meyering@ascend.com>
89815
89816         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
89817         * m4/jm-macros.m4 (jm_MACROS): Use it here.
89818
89819 1999-11-05  Jim Meyering  <meyering@ascend.com>
89820
89821         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
89822         configure.in of textutils, fileutils, and sh-utils into this one
89823         (shared between those packages) file.
89824         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
89825         AC_STRUCT_ST_BLKSIZE.
89826
89827 1999-11-03  Jim Meyering  <meyering@ascend.com>
89828
89829         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
89830         of AC_CHECK_TYPE checks includes unistd.h.
89831         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
89832         Suggestion from Akim Demaille.
89833
89834 1999-10-30  Jim Meyering  <meyering@ascend.com>
89835
89836         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
89837         m4-quoted string.
89838         * m4/ls-mntd-fs.m4: Likewise.
89839         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
89840         * m4/jm-winsz1.m4: Likewise.
89841
89842         * m4/const.m4: Remove file, since the fix made it into the experimental
89843         version of autoconf.
89844         * m4/mktime.m4: Likewise.
89845
89846         * m4/check-type.m4: Remove file, now that the latest version of
89847         AC_CHECK_TYPE takes a third arg to specify additional #includes.
89848
89849         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
89850         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
89851         AC_CHECK_TYPE.
89852
89853 1999-10-04  Jim Meyering  <meyering@ascend.com>
89854
89855         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
89856
89857 1999-09-22  Paul Eggert  <eggert@twinsun.com>
89858
89859         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
89860         2.95.1 bug with HP-UX 10.20.
89861
89862 1999-09-17  Jim Meyering  <meyering@ascend.com>
89863
89864         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
89865         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
89866         due to missing strdup (against sh-utils-2.0).
89867
89868 1999-08-29  Jim Meyering  <meyering@ascend.com>
89869
89870         * m4/jm-macros.m4: Require jm_BISON.
89871         * m4/bison.m4: New file.
89872
89873 1999-08-17  Paul Eggert  <eggert@twinsun.com>
89874
89875         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
89876         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
89877
89878 1999-08-05  Jim Meyering  <meyering@ascend.com>
89879
89880         * m4/getline.m4: Rename test file from conftestdata to conftest.data
89881         to avoid conflicts with `conftest' on 8+3 filesystems.
89882         Suggestion from Eli Zaretskii.
89883
89884 1999-08-04  Jim Meyering  <meyering@ascend.com>
89885
89886         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
89887         fileutils and sh-utils (textutils's getline test was inadequate).
89888         (AM_FUNC_GETLINE): Run this test.
89889         (AC_CHECK_FUNCS): Check for getdelim.
89890         Reported by Bob Proulx.
89891
89892 1999-08-02  Jim Meyering  <meyering@ascend.com>
89893
89894         * m4/jm-macros.m4: Add a comment.
89895
89896 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89897
89898         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
89899         <inttypes.h> defines strtoumax as a macro (and not as a
89900         function).
89901
89902 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89903
89904         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
89905         that we can shift, multiply and divide unsigned long long
89906         values; Ultrix cc can't do it.
89907
89908 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89909
89910         * m4/mktime.m4: New file, which is a preview of what should appear
89911         in the next public autoconf release.
89912
89913 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89914
89915         * m4/lfs.m4: Remove this file.
89916         * m4/largefile.m4: New file.  It contains the old contents of
89917         lfs.m4, except that all names with prefix AC_LFS have been
89918         changed to use the prefix AC_SYS_LARGEFILE instead, to be
89919         compatible with future autoconf versions.  Also, some minor m4
89920         quoting problems have been fixed.
89921
89922 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89923
89924         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
89925         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
89926         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
89927         and simplify the shell code.
89928
89929 1999-08-01  Jim Meyering  <meyering@ascend.com>
89930
89931         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
89932         m4.
89933
89934 1999-07-20  Jim Meyering  <meyering@ascend.com>
89935
89936         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
89937
89938 1999-07-15  Jim Meyering  <meyering@ascend.com>
89939
89940         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
89941
89942 1999-05-22  Jim Meyering  <meyering@ascend.com>
89943
89944         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
89945
89946 1999-05-20  Jim Meyering  <meyering@ascend.com>
89947
89948         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
89949         Add a colon after each `then' in case $4 is empty.
89950
89951 1999-05-16  Jim Meyering  <meyering@ascend.com>
89952
89953         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
89954
89955 1999-05-10  Jim Meyering  <meyering@ascend.com>
89956
89957         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
89958
89959         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
89960         AC_FUNC_MKTIME.
89961
89962 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
89963
89964         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
89965
89966 1999-05-04  Paul Eggert  <eggert@twinsun.com>
89967
89968         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
89969         not CPPFLAGS, so that linking works correctly in IRIX.
89970
89971 1999-04-30  Paul Eggert  <eggert@twinsun.com>
89972
89973         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
89974
89975 1999-04-20  Paul Eggert  <eggert@twinsun.com>
89976
89977         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
89978         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
89979         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
89980         jm_AC_TYPE_UNSIGNED_LONG_LONG.
89981         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
89982
89983         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
89984
89985 1999-04-20  Jim Meyering  <meyering@ascend.com>
89986
89987         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
89988         AC_REPLACE xstroull if necessary.  From Paul Eggert.
89989         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
89990
89991 1999-04-18  Jim Meyering  <meyering@ascend.com>
89992
89993         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
89994         * m4/jm-macros.m4: Use it.
89995
89996 1999-04-06  Jim Meyering  <meyering@ascend.com>
89997
89998         * m4/strftime.m4: Remove test for %f.
89999
90000 1999-03-29  Jim Meyering  <meyering@ascend.com>
90001
90002         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
90003         superset of the AC_TYPE_* checks in the textutils, fileutils,
90004         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
90005         AC_TYPE_PID_T.
90006
90007 1999-03-28  Jim Meyering  <meyering@ascend.com>
90008
90009         * m4/jm-macros.m4: Define GNU_PACKAGE here.
90010         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
90011         replaced e.g., in the *.sh files of the sh-utils.
90012
90013 1999-03-20  Jim Meyering  <meyering@ascend.com>
90014
90015         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
90016         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
90017         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
90018
90019 1999-03-19  Jim Meyering  <meyering@ascend.com>
90020
90021         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
90022
90023 1999-03-12  Jim Meyering  <meyering@ascend.com>
90024
90025         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
90026
90027 1999-03-07  Jim Meyering  <meyering@ascend.com>
90028
90029         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
90030         declared.
90031
90032 1999-02-17  Jim Meyering  <meyering@ascend.com>
90033
90034         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
90035         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
90036
90037 1999-02-07  Jim Meyering  <meyering@ascend.com>
90038
90039         * m4/group-member.m4: New file -- extracted from sh-utils'
90040         configure.in.
90041
90042         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
90043         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
90044
90045 1999-02-06  Jim Meyering  <meyering@ascend.com>
90046
90047         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
90048         * m4/fnmatch.m4: Likewise.
90049         * m4/getgroups.m4: Likewise.
90050         * m4/lstat.m4: Likewise.
90051         * m4/malloc.m4: Likewise.
90052         * m4/putenv.m4: Likewise.
90053         * m4/realloc.m4: Likewise.
90054         * m4/regex.m4: Likewise.
90055         * m4/stat.m4: Likewise.
90056         * m4/strftime.m4: Likewise.
90057         Suggestion from Alain Magloire.
90058
90059         * m4/chown.m4: Use `.$ac_objext', not `.o'.
90060         * m4/fnmatch.m4: Likewise.
90061         * m4/getgroups.m4: Likewise.
90062         * m4/getline.m4: Likewise.
90063         * m4/lstat.m4: Likewise.
90064         * m4/malloc.m4: Likewise.
90065         * m4/memcmp.m4: Likewise.
90066         * m4/putenv.m4: Likewise.
90067         * m4/realloc.m4: Likewise.
90068         * m4/regex.m4: Likewise.
90069         * m4/stat.m4: Likewise.
90070         * m4/strftime.m4: Likewise.
90071         Suggestion from Alain Magloire.
90072
90073         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
90074         an argument.
90075
90076         * m4/regex.m4: Add a run-time Test for proper operation of
90077         re_compile_pattern.
90078
90079 1999-01-31  Jim Meyering  <meyering@ascend.com>
90080
90081         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
90082
90083 1999-01-30  Jim Meyering  <meyering@ascend.com>
90084
90085         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
90086
90087         * m4/jm-mktime.m4: Make this a wrapper around the official
90088         AM_FUNC_MKTIME rather than my private copy, now that the official one
90089         is up to date.
90090         * m4/mktime.m4: Remove file.
90091
90092         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
90093         * m4/uptime.m4: Likewise.
90094         * m4/uintmax_t.m4: Likewise.
90095
90096 1999-01-28  Jim Meyering  <meyering@ascend.com>
90097
90098         * m4/jm-macros.m4: Use jm_AFS.
90099         * m4/afs.m4: New file (from fileutils' configure.in).
90100
90101         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
90102         * m4/chown.m4: Likewise.
90103         * m4/d-ino.m4: Likewise.
90104         * m4/d-type.m4: Likewise.
90105         * m4/fnmatch.m4: Likewise.
90106         * m4/getgroups.m4: Likewise.
90107         * m4/gettext.m4: Likewise.
90108         * m4/jm-mktime.m4: Likewise.
90109         * m4/jm-winsz2.m4: Likewise.
90110         * m4/lcmessage.m4: Likewise.
90111         * m4/ls-mntd-fs.m4: Likewise.
90112         * m4/malloc.m4: Likewise.
90113         * m4/memcmp.m4: Likewise.
90114         * m4/putenv.m4: Likewise.
90115         * m4/realloc.m4: Likewise.
90116         * m4/st_mtim.m4: Likewise.
90117         * m4/strftime.m4: Likewise.
90118
90119 1999-01-16  Jim Meyering  <meyering@ascend.com>
90120
90121         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
90122         (ARGMATCH_DIE_DECL): Define.
90123
90124 1999-01-12  Jim Meyering  <meyering@ascend.com>
90125
90126         * m4/Makefile.am.in: Rewrite to avoid using fmt.
90127         Reported by Lars Hecking.
90128
90129 1999-01-10  Jim Meyering  <meyering@ascend.com>
90130
90131         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
90132         gross kludge.
90133         * m4/inttypes_h.m4: Likewise.
90134         * m4/lstat.m4: Likewise.
90135         * m4/malloc.m4: Likewise.
90136         * m4/readdir.m4: Likewise.
90137         * m4/realloc.m4: Likewise.
90138         * m4/st_dm_mode.m4: Likewise.
90139         * m4/stat.m4: Likewise.
90140         * m4/utimbuf.m4: Likewise.
90141         * m4/utimes.m4: Likewise.
90142
90143         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
90144         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
90145         comments in config.h.in are meaningful.
90146
90147         * m4/jm-macros.m4: Require autoconf-2.13 here.
90148
90149         * m4/regex.m4: By default, don't use the included regex.c on systems
90150         with glibc 2.  Suggestion from Uli Drepper.
90151
90152 1999-01-02  Jim Meyering  <meyering@ascend.com>
90153
90154         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
90155
90156 1998-12-18  Jim Meyering  <meyering@ascend.com>
90157
90158         * m4/Makefile.am.in (Makefile.am): Simplify rule.
90159         Based on a suggestion from Lars Hecking.
90160
90161 1998-11-16  Paul Eggert  <eggert@twinsun.com>
90162
90163         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
90164
90165 1998-11-16  Jim Meyering  <meyering@ascend.com>
90166
90167         * m4/lfs.m4: Double-quote the `uname...` expression.
90168
90169 1998-11-14  Jim Meyering  <meyering@ascend.com>
90170
90171         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
90172         * m4/stat.m4: Likewise.
90173
90174 1998-11-03  Jim Meyering  <meyering@ascend.com>
90175
90176         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
90177         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
90178
90179 1998-10-18  Jim Meyering  <meyering@ascend.com>
90180
90181         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
90182
90183 1998-10-17  Jim Meyering  <meyering@ascend.com>
90184
90185         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
90186         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
90187         calls for those previously hard-coded headers.  Instead, take a new
90188         parameter.
90189         (jm_CHECK_DECLARATIONS): Reflect interface change.
90190         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
90191         (jm_CHECK_DECL_LOCALTIME_R): New macro.
90192
90193         * m4/mktime.m4: Test for spring-forward gap before long-running test.
90194
90195 1998-10-14  Jim Meyering  <meyering@ascend.com>
90196
90197         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
90198         instead of "TZ=America/Vancouver".  From Paul Eggert.
90199
90200 1998-10-11  Jim Meyering  <meyering@ascend.com>
90201
90202         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
90203         This adds a test for a recently added compatibility fix for mktime.c.
90204         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
90205
90206 1998-09-27  Jim Meyering  <meyering@ascend.com>
90207
90208         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
90209
90210         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
90211         ../configure.in, including a change from Gordon Matzigkeit to allow
90212         cross-compiling for the Hurd.
90213
90214         * m4/glibc.m4: New file/macro to test for the GNU C Library
90215         versions 1 and 2.  From Gordon Matzigkeit.
90216         Indent.
90217
90218 1998-09-21  Jim Meyering  <meyering@ascend.com>
90219
90220         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
90221
90222 1998-08-18  Paul Eggert  <eggert@twinsun.com>
90223
90224         Port nanosecond-resolution times to UnixWare 2.1.2 and
90225         pedantic Solaris 2.6.
90226
90227         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
90228         AC_STRUCT_ST_MTIM.
90229         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
90230         Generate name of ns member, instead of just 1 or undef.
90231         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
90232
90233 1998-08-15  Jim Meyering  <meyering@ascend.com>
90234
90235         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
90236         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
90237         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
90238         instead of jm_TYPE_SSIZE_T.
90239
90240 1998-08-12  Jim Meyering  <meyering@ascend.com>
90241
90242         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
90243
90244 1998-08-02  Jim Meyering  <meyering@ascend.com>
90245
90246         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
90247         in acconfig.h manually.
90248
90249 1998-07-31  Paul Eggert  <eggert@twinsun.com>
90250
90251         * m4/st_mtim.m4: New file.
90252
90253 1998-07-28  Jim Meyering  <meyering@ascend.com>
90254
90255         * m4/utimes.m4: Undef stat.
90256
90257 1998-07-25  Jim Meyering  <meyering@ascend.com>
90258
90259         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
90260         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
90261
90262 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
90263
90264         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
90265         uid and gid actually remain unchanged.
90266
90267 1998-07-07  Jim Meyering  <meyering@ascend.com>
90268
90269         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
90270
90271 1998-07-04  Jim Meyering  <meyering@ascend.com>
90272
90273         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
90274         to prove that this macro can be used in packages without regex.c.
90275
90276 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
90277
90278         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
90279         is to be used.
90280
90281 1998-07-03  Jim Meyering  <meyering@ascend.com>
90282
90283         * m4/gettext.m4: Add -lintl if it's found to be necessary.
90284
90285         * m4/gettext.m4: New file -- from gettext-0.10.35.
90286         * m4/lcmessage.m4: Likewise.
90287         * m4/progtest.m4: Likewise.
90288
90289         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
90290         * m4/jm-macros.m4: Require the new macro.
90291
90292 1998-06-29  Jim Meyering  <meyering@ascend.com>
90293
90294         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
90295         for the definition of NGROUPS (used in a system header included
90296         by sys/mount.h).
90297
90298 1998-06-28  Jim Meyering  <meyering@ascend.com>
90299
90300         * m4/ls-mntd-fs.m4: New file.
90301         * m4/fstypename.m4: New file.
90302
90303         * m4/jm-macros.m4: Require the new macro.
90304         * m4/jm-glibc-io.m4: New file.
90305
90306 1998-05-19  Jim Meyering  <meyering@ascend.com>
90307
90308         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
90309         * m4/lchown.m4: New file.
90310
90311         * m4/Makefile.am.in: New file.
90312         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
90313
90314 1998-05-14  Jim Meyering  <meyering@ascend.com>
90315
90316         * m4/Makefile.am (EXTRA_DIST): Add them.
90317         * m4/jm-macros.m4: New file.
90318         * m4/utimbuf.m4: New file.
90319
90320 1998-05-12  Jim Meyering  <meyering@ascend.com>
90321
90322         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
90323
90324 1998-05-11  Jim Meyering  <meyering@ascend.com>
90325
90326         * m4/isc-posix.m4: New file.
90327
90328 1998-05-10  Jim Meyering  <meyering@ascend.com>
90329
90330         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
90331
90332 1998-05-09  Jim Meyering  <meyering@ascend.com>
90333
90334         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
90335         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
90336         with automake.
90337
90338         * m4/ssize_t.m4: New file.
90339         * m4/mktime.m4: Remove file -- the new automake has this now.
90340
90341 1998-04-26  Jim Meyering  <meyering@ascend.com>
90342
90343         * m4/assert.m4: New file.
90344         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
90345
90346 1998-04-05  Jim Meyering  <meyering@ascend.com>
90347
90348         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
90349         (jm_PREREQ): Use it here.
90350
90351 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
90352
90353         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
90354         in acconfig.h.
90355
90356 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
90357
90358         * m4/prereq.m4: New file.
90359         * m4/error.m4: New file.
90360         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
90361
90362 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
90363
90364         * m4/getline.m4: Don't set am_cv_func_working_getline before the
90365         cache-check for the same variable -- that defeated the purpose of
90366         the test; the test program was never run.  This was a problem only
90367         on systems with losing getline functions -- HP-UX 10.20 is one.
90368         Reported by Bjorn Helgaas.
90369
90370 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
90371
90372         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
90373
90374 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
90375
90376         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
90377
90378         * m4/const.m4: New file.  Use an initializer in this declaration
90379         typedef int charset[2]; const charset x;
90380         Reported by Bob Glickstein.
90381
90382 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
90383
90384         * m4/chown.m4: Fix reversed types on -1 args to chown.
90385         From Kaveh Ghazi.
90386
90387 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
90388
90389         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
90390         Add lseek and memchr.
90391
90392         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
90393         T.E.Dickey <dickey@clark.net> said that some older preprocessors
90394         have a 20-character limit on names.
90395
90396 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
90397
90398         * m4/inttypes_h.m4: New file.
90399         * m4/uintmax_t.m4: New file.
90400         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
90401
90402
90403         -----
90404
90405         Local Variables:
90406         coding: utf-8
90407         End:
90408
90409         Copyright (C) 1997-2011 Free Software Foundation, Inc.
90410
90411         Copying and distribution of this file, with or without
90412         modification, are permitted provided the copyright notice
90413         and this notice are preserved.